rdos/com/@rdos.asm

41 lines
497 B
NASM

org 0x100
jmp init
%defstr V VERSION
banner: db "RDOS KERNEL ", V, 0x0A, 0x0D, '$', 0x1A
%include "kernel/far.asm"
%include "kernel/char.asm"
%include "inc/bpb.asm"
%include "kernel/drive.asm"
%include "kernel/fcb.asm"
section .text
init: call rstseg
call dinit
mov dx, banner
call puts
call rstseg
mov dx, testdta
call setdta
mov dx, testfcb
call fndfst
int 3
hlt: hlt
jmp hlt
section .data
testfcb db 0, "HELLO ","COM"
times FCBSIZ db 0
section .bss
testdta resb 128