rdos/com/@rdos.asm

41 lines
497 B
NASM
Raw Normal View History

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