Fix addressing mistake when splitting MCB
This commit is contained in:
parent
6d38a313c7
commit
f7d3d5c62f
@ -26,6 +26,7 @@ mcb_init:
|
|||||||
mcb_split:
|
mcb_split:
|
||||||
call mcb_find
|
call mcb_find
|
||||||
dec dx
|
dec dx
|
||||||
|
push dx
|
||||||
; Calculate size of first block
|
; Calculate size of first block
|
||||||
; dx = dx - ds - 1
|
; dx = dx - ds - 1
|
||||||
stc
|
stc
|
||||||
@ -40,9 +41,10 @@ mcb_split:
|
|||||||
xchg cl, byte [si+0]
|
xchg cl, byte [si+0]
|
||||||
; advance DS to begin of first block
|
; advance DS to begin of first block
|
||||||
pop ax
|
pop ax
|
||||||
mov ds, ax
|
|
||||||
stc
|
stc
|
||||||
sbb dx, ax
|
sbb dx, ax
|
||||||
|
pop ax
|
||||||
|
mov ds, ax
|
||||||
; write MCB data
|
; write MCB data
|
||||||
mov byte [si+0], cl
|
mov byte [si+0], cl
|
||||||
mov word [si+1], 0
|
mov word [si+1], 0
|
||||||
|
Loading…
Reference in New Issue
Block a user