diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-15 20:39:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-15 20:41:13 -0700 |
commit | 460528e85be117ac9bbfcb79bceb6e54eceecbb7 (patch) | |
tree | 7770029c2151b1471712f412dd79d17afe86b606 /boot.subx | |
parent | 9d4ca5f59af7895631bbbed80789f6a1b8cf1a1e (diff) | |
download | mu-460528e85be117ac9bbfcb79bceb6e54eceecbb7.tar.gz |
reintroduce Entry label
Diffstat (limited to 'boot.subx')
-rw-r--r-- | boot.subx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/boot.subx b/boot.subx index d75de767..369ed975 100644 --- a/boot.subx +++ b/boot.subx @@ -19,12 +19,9 @@ # see 120allocate.subx # Consult https://wiki.osdev.org/Memory_Map_(x86) before modifying any of this. -# Magic addresses (TODO): -# 0x9400: entrypoint for applications - == code -## 16-bit entry point +## 16-bit entry point: 0x7c00 # Upon reset, the IBM PC: # - loads the first sector (512 bytes) @@ -236,9 +233,7 @@ initialize_32bit_mode: 0f ba/bit-test 5/subop/bit-test-and-set 3/mod/direct 0/rm32/eax 9/imm8 # cr4 <- eax 0f 22/->cr 3/mod/direct 0/rm32/eax 4/r32/cr4 -== data - e9 d0 16 00 00 # jump to 0x9400 [label] -== code + e9/jump Entry/disp32 == boot-sector-marker 0x7dfe # final 2 bytes of boot sector |