Get MBR ready, add hdimage target

This commit is contained in:
Nero 2019-09-17 22:41:39 +00:00
parent 7c4a618385
commit c70f388548
3 changed files with 79 additions and 7 deletions

View file

@ -151,6 +151,10 @@ load_sectors:
push cx
push dx
; add partition offset (required for HDD)
add ax, [fdc.po]
adc dx, [fdc.po+2]
; calculate CHS data
div word [cs:fdc.spt] ; ax:temp = (lba / spt)
inc dx ; dx:sector = (lba % spt) + 1