make logdrv also use int13 stub

This commit is contained in:
Nero 2020-12-26 16:43:01 +00:00
parent c5afc6ec61
commit b8b56e1f45

View File

@ -42,6 +42,8 @@ dinit: ; copy previously set DPT to our data area
; set vector ; set vector
mov word [4*0x1E], dpt mov word [4*0x1E], dpt
mov word [4*0x1E+2], ds mov word [4*0x1E+2], ds
; set to invalid drive
mov byte [dsknum], 0xFF
ret ret
; int 13 stub ; int 13 stub
@ -66,7 +68,7 @@ int13: ; debug output
; restore DPT to default values if possible ; restore DPT to default values if possible
; IN dl bios drive number ; IN dl bios drive number
rstdpt: mov ah, 8 rstdpt: mov ah, 8
int 0x13 call int13
jc .ret jc .ret
mov ax, es mov ax, es
or ax, di or ax, di
@ -95,7 +97,7 @@ logdrv: ; dont do anything if drive already selected
cmp dl, [dsknum] cmp dl, [dsknum]
je .ret je .ret
; clear out current contents ; clear out current contents
.force: push dx push dx
call flush call flush
mov ax, 0xFFFF mov ax, 0xFFFF
mov [dskseek], ax mov [dskseek], ax