rdos/com/@rdos.asm

53 lines
654 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"
%include "kernel/rootdir.asm"
%include "kernel/cluster.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
2021-04-20 18:27:10 +02:00
push ds
call norm
call setdta
2021-04-20 18:27:10 +02:00
pop ds
mov dx, testfcb
2021-04-20 18:27:10 +02:00
call norm
call open
call read
2021-02-19 09:57:21 +01:00
2021-04-20 18:27:10 +02:00
mov ax, [cs:testdta]
mov cx, [cs:testdta+2]
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