File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ utf8tocp/utf8tocp.exe : utf8tocp/utf8tocp.obj
209209# --- CLEANUP ---------------------------------------------------------------
210210
211211clean : .SYMBOLIC
212+ rm -f bootnorm.c
212213 rm -f * .obj
213214 rm -f fdisk.lnk
214215
Original file line number Diff line number Diff line change 1616 RELOCATED_OFFSET equ 0x0600
1717 PARTTBL_SIZE equ 64
1818 PARTTBL_OFFSET equ 0x1be
19+ MAGIC_OFFSET equ 0x1fe
1920 CODE_SIZE equ 440
2021
2122org RELOCATED_OFFSET
@@ -67,7 +68,7 @@ chainload_bootsect:
6768 call fatal ; does not return
6869 db 'read error while reading drive' , 0
6970 .check_signature:
70- cmp word [ signature ], 0xaa55
71+ cmp word [ BOOTSECT_OFFSET + MAGIC_OFFSET ], 0xaa55
7172 je handoff_to_volume_bootrecord
7273 call fatal ; does not return
7374 db 'partition signature != 55AA' , 0
You can’t perform that action at this time.
0 commit comments