about summary refs log tree commit diff stats
path: root/baremetal/boot.hex
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal/boot.hex')
-rw-r--r--baremetal/boot.hex18
1 files changed, 10 insertions, 8 deletions
diff --git a/baremetal/boot.hex b/baremetal/boot.hex
index f57ae364..f6ded4aa 100644
--- a/baremetal/boot.hex
+++ b/baremetal/boot.hex
@@ -240,7 +240,7 @@ e9 fb ff  # loop forever
   # . var index/ecx: byte
   8a  # copy m8 at r32 to r8
     0d  # 00/mod/indirect 001/r8/cl 101/rm32/use-disp32
-    ce 7d 00 00  # disp32 [label]
+    c8 7d 00 00  # disp32 [label]
   # . al = *(keyboard buffer + index)
   8a  # copy m8 at r32 to r8
     81  # 10/mod/*+disp32 000/r8/al 001/rm32/ecx
@@ -270,11 +270,11 @@ e9 fb ff  # loop forever
   # increment index
   fe  # increment byte
     05  # 00/mod/indirect 000/subop/increment 101/rm32/use-disp32
-    ce 7d 00 00  # disp32 [label]
+    c8 7d 00 00  # disp32 [label]
   # clear top nibble of index (keyboard buffer is circular)
   80  # and byte
     25  # 00/mod/indirect 100/subop/and 101/rm32/use-disp32
-    ce 7d 00 00  # disp32 [label]
+    c8 7d 00 00  # disp32 [label]
     0f  # imm8
 # 155:
   # epilogue
@@ -291,15 +291,17 @@ e9 fb ff  # loop forever
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00
 
-# 1ce:
+# 1c8:
 # var keyboard circular buffer
 # write index: nibble
-  00
-# 1cf:
+# still take up 4 bytes so SubX can handle it
+  00 00 00 00
+# 1cc:
 # read index: nibble
-  00
+# still take up 4 bytes so SubX can handle it
+  00 00 00 00
 # 1d0:
 # circular buffer: byte[16]
   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00