fat vbr: fix incorrect addition of partition offset

This commit is contained in:
Nero 2020-10-25 14:22:53 +00:00
parent 50aa6e4eec
commit c06c6ac918

View File

@ -112,7 +112,7 @@ offset_fat: ; add reserved sectors
adc dx, 0 adc dx, 0
offset_part: ; add partition offset offset_part: ; add partition offset
add ax, [bp+BPBHS] add ax, [bp+BPBHS]
add dx, [bp+BPBHS] add dx, [bp+BPBHS+2]
ret ret
resetbuf: ; DS = ES resetbuf: ; DS = ES