about summary refs log tree commit diff stats
path: root/apps/boot.hex
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-22 17:01:54 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-23 00:04:20 -0800
commit2b61e5e0a02e6c4bd919c842ecf74ff3e089ec73 (patch)
treec7a89c5cb20460dce87b8c9dba8e81b6374deb36 /apps/boot.hex
parent6216a79974d2742bc454f722a28a3ed934f269c6 (diff)
downloadmu-2b61e5e0a02e6c4bd919c842ecf74ff3e089ec73.tar.gz
7376
Diffstat (limited to 'apps/boot.hex')
-rw-r--r--apps/boot.hex10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/boot.hex b/apps/boot.hex
index ec32103c..3157ce58 100644
--- a/apps/boot.hex
+++ b/apps/boot.hex
@@ -32,7 +32,8 @@
 #   to the address range [0x7c00, 0x7e00)
 
 # 00:
-  fa  # cli  # TODO: don't forget to reenable interrupts in a real program
+  # disable interrupts for this initialization
+  fa  # cli
 
   # initialize segment registers
   # this isn't always needed, but is considered safe not to assume
@@ -147,11 +148,14 @@ e9 fb ff  # loop forever
   8e c0  # es <- ax
   8e e0  # fs <- ax
   8e e8  # gs <- ax
+
+  # initialization is done; enable interrupts
+  fb
   e9 1d 00 00 00  # jump to 0x7cf0
 
 # padding
-# d3:
-         00 00 00 00 00 00 00 00 00 00 00 00 00
+# d4:
+            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
 
 ## 'application' SubX code: print one character to top-left of screen