Get MBR ready, add hdimage target
This commit is contained in:
parent
7c4a618385
commit
c70f388548
3 changed files with 79 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue