summary refs log tree commit diff
path: root/pc-thing/code/move-bootloader.c
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-03-31 19:47:54 +0300
committerWlodekM <[email protected]>2025-03-31 19:47:54 +0300
commitcccb99226d3951fd9dfe1c4cf1c43126a1309d51 (patch)
tree518d3e965558ba313f103cee6161cd2b6aedb3b9 /pc-thing/code/move-bootloader.c
parentef4e8c20719822eebd6318a878cc37902c2b85a5 (diff)
move to pc-thing/
Diffstat (limited to 'pc-thing/code/move-bootloader.c')
-rw-r--r--pc-thing/code/move-bootloader.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pc-thing/code/move-bootloader.c b/pc-thing/code/move-bootloader.c
new file mode 100644
index 0000000..1aa938a
--- /dev/null
+++ b/pc-thing/code/move-bootloader.c
@@ -0,0 +1,11 @@
+#define codeStart 900
+
+int main() {
+    // set up stack
+    *(volatile unsigned char *)0x7000 = 0x6000;
+    volatile unsigned char* codePointer = 0;
+    while ()
+    {
+        volatile unsigned char* targetPointer = 0x6000 + codePointer;
+    }
+}
\ No newline at end of file