Add support for hard disks

This commit is contained in:
Nero 2020-12-26 17:44:48 +00:00
parent b8b56e1f45
commit c75b323d31
2 changed files with 82 additions and 11 deletions

View file

@ -29,17 +29,21 @@ init: cli
sub dl, (0x80-2)
.k: mov [defdrv], dl
call logdrv.force
call logdrv
xor ax, ax
xor dx, dx
call maprd
inc word [dskbuf+0x82]
push word [dskbuf+0x82]
call dirty
call flush
call printf
db "Current run: ",2,0x0A,0x0D,0
hlt: hlt
jmp hlt