Implement current drive for user programs

This commit is contained in:
Nero 2021-01-04 23:29:50 +00:00
parent 7e2e91b2b7
commit 34023678a4
3 changed files with 25 additions and 26 deletions

View file

@ -24,17 +24,15 @@ init: cli
call dinit
pop dx
cmp dl, 0x80
jc .k
sub dl, (0x80-2)
.k: mov [defdrv], dl
call logdrv
mov word [0x21*4], int21
mov word [0x21*4+2], cs
mov word [curpsp], 0x1000
cmp dl, 0x80
jc .k
sub dl, (0x80-2)
.k: call setdd
mov dl, 0x37
mov ah, 2
int 0x21