#.MODEL small\r
.stack: \r
.486p: \r
- .code: \r
+ .code16\r
\r
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020\r
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5\r
# ****************************************************************************\r
# Start Print\r
# ****************************************************************************\r
- leaw %cs:StartString, %si\r
+ movw $StartString, %si\r
call PrintString\r
\r
# ****************************************************************************\r
jne FoundEFILDR\r
BadBootSector: \r
DiskError: \r
- leaw %cs:ErrorString, %si\r
+ movw $ErrorString, %si\r
call PrintString\r
Halt: \r
jmp Halt\r
# LBA Offset for BootSector, need patched by tool for HD boot.\r
# ****************************************************************************\r
\r
- # .org 0x01fa # Comment it for pass build. Should optimise code size. \r
+ .org 0x01fa\r
LBAOffsetForBootSector: \r
.long 0x0\r
\r
# Sector Signature\r
# ****************************************************************************\r
\r
- # .org 0x01fe # Comment it for pass build. Should optimise code size. \r
+ .org 0x01fe\r
SectorSignature: \r
.word 0xaa55 # Boot Sector Signature\r
\r