about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-23 00:25:33 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-23 00:34:46 -0800
commite412bf94438dfa8f4d7ea4b5d351e141e7f9fe03 (patch)
treebc5d847d159b7590f8dfeba8eecb8a02ed2a98cf /apps
parent6a9fff36c40401da840bd98961c144276273f291 (diff)
downloadmu-e412bf94438dfa8f4d7ea4b5d351e141e7f9fe03.tar.gz
7379
Diffstat (limited to 'apps')
-rw-r--r--apps/boot.hex12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/boot.hex b/apps/boot.hex
index bad66d0a..8638fdb5 100644
--- a/apps/boot.hex
+++ b/apps/boot.hex
@@ -31,7 +31,7 @@
 #   from some bootable image (see the boot sector marker at the end of this file)
 #   to the address range [0x7c00, 0x7e00)
 
-# 00:
+# offset 00 (address 0x7c00):
   # disable interrupts for this initialization
   fa  # cli
 
@@ -170,16 +170,17 @@ e9 fb ff  # loop forever
 
   # initialization is done; enable interrupts
   fb
-  e9 1d 00 00 00  # jump to 0x7cf0
+  e9 2d 00 00 00  # jump to 0x7d00
 
 # padding
 # 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
+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
 
-# f0:
+# offset 100 (address 0x7d00):
 # Entry:
   # eax <- *0x7e04  # random address in second segment containing 'H'
   8b  # copy rm32 to r32
@@ -195,7 +196,7 @@ e9 fb ff  # loop forever
 e9 fb ff ff ff  # loop forever
 
 # padding to 512 bytes
-# 101:
+# 111:
    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
@@ -210,7 +211,6 @@ e9 fb ff ff 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 00 00 00 00 00 00 00 00
 
 55 aa  # final 2 bytes: boot sector marker
@@ -218,7 +218,7 @@ e9 fb ff ff ff  # loop forever
 ## sector 2
 # not loaded on boot; loaded by load_disk
 
-# 200:
+# offset 200 (address 0x7e00):
 00 00 00 00 48 0f 00 00 00 00 00 00 00 00 00 00  # spot the 'H' with attributes
 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