Code: Select all
partition_table:
; CHS 80/2/18
db 0x80 ; Flag
db 0x00 ; Starting Head
db 0x02 ; Starting Sector
db 0x00 ; Starting Cylinder
db 0x07 ; Type
db 0x01 ; Ending Head
db 0x01 ; Ending Sector
db 0x79 ; Ending Cylinder
dd 0x00000001 ; Starting Sector
dd 0x00000b2e ; Length
2. Which numbers should be trusted, the LBA or the C/H/S (H/S/C)?
Also, which numbers should the MBR code trust to be correct, the LBA or the CHS?
Should the MBR code use INT13 AH=0x42 (LBA read), or AH=0x2 (CHS read)?