summaryrefslogtreecommitdiff
path: root/comboot.inc
diff options
context:
space:
mode:
Diffstat (limited to 'comboot.inc')
-rw-r--r--comboot.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/comboot.inc b/comboot.inc
index 2e768ea4..454d42c0 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -409,6 +409,7 @@ comapi_open:
mov P_HAX,dx
mov ax,[ClustSize]
mov P_CX,ax
+ mov P_SI,si
clc
ret
.err:
@@ -420,8 +421,10 @@ comapi_open:
; INT 22h AX=0007h Read file
;
comapi_read:
- mov ax,P_BX
+ mov es,P_ES
+ mov bx,P_BX
mov si,P_SI
+ mov cx,P_CX
call getfssec
jnc .noteof
xor si,si ; SI <- 0 on EOF, CF <- 0