about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-20 20:51:15 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-20 20:51:15 -0800
commitd26836caae389e82efae57650a5a386a1386f14f (patch)
tree0df8a32d3d92be8712feb348807df2f946844e63
parentc1ffd4c0a6b7ab0847a77e82259c2268ee45a57e (diff)
downloadmu-d26836caae389e82efae57650a5a386a1386f14f.tar.gz
7364
-rw-r--r--apps/bos/32bit.hex23
1 files changed, 12 insertions, 11 deletions
diff --git a/apps/bos/32bit.hex b/apps/bos/32bit.hex
index e05ebf0a..842a3b57 100644
--- a/apps/bos/32bit.hex
+++ b/apps/bos/32bit.hex
@@ -18,7 +18,7 @@
 # We don't read or write the stack before we get to 32-bit mode.
 
 # 00:
-  fa
+  fa  # cli  # TODO: don't forget to reenable interrupts at some point
   0f 01 16  # lgdt 00/mod/indirect 010/subop 110/rm32/TODO
     38 7c  # *gdt_descriptor
   0f 20 c0  # eax <- cr0
@@ -83,16 +83,17 @@
 ## 'application' SubX code: print one character to top-left of screen
 
 # 70:
-# *0xb8000 <- 0x0f48
-c7  # opcode
-  # modrm
-  05  # 00/mod/indirect 000/subop/copy 101/rm32/use-disp32
-  # disp32
-  00 80 0b 00
-  # imm32
-  48  # 'H'
-  0f  # white on black
-  00 00
+# Entry:
+  # *0xb8000 <- 0x0f48
+  c7  # opcode
+    # modrm
+    05  # 00/mod/indirect 000/subop/copy 101/rm32/use-disp32
+    # disp32
+    00 80 0b 00
+    # imm32
+    48  # 'H'
+    0f  # white on black
+    00 00
 
 e9 fb ff ff ff  # loop forever