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