Build drive selection logic for FCBs

This commit is contained in:
Nero 2020-10-13 20:10:23 +00:00
parent 4e779c5a22
commit c41782c78f
4 changed files with 51 additions and 14 deletions

View file

@ -3,6 +3,7 @@
%include "inc/bpb.asm"
%include "inc/mbr.asm"
%include "inc/fcb.asm"
; kernel stack size in words
%define stacksize 512
@ -22,18 +23,30 @@ print_banner: mov si, banner
cmp al, 0x0D
jnz .loop
cmp dl, 0x80
jc .k
sub dl, (0x80-2)
.k: mov [defdrv], dl
call dskrst
mov dl, 0
call dsksel
mov bx, testfcb
call fcbfst
hlt: hlt
jmp hlt
%include "kernel/fcb.asm"
%include "kernel/drive.asm"
section .data
%defstr VERSIONSTR VERSION
banner: db "RDOS ", VERSIONSTR, 0x0A, 0x0D
%include "kernel/drive.asm"
testfcb: db 0
db "HELLO ", "COM"
times 30 db 0
section .bss