rdos/com/@rdos.asm

33 lines
389 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 "kernel/drive.asm"
2021-12-10 11:41:02 +01:00
%include "kernel/fat.asm"
section .text
init: call rstseg
call dinit
2021-02-19 09:57:21 +01:00
mov dx, banner
call puts
2021-12-10 11:41:02 +01:00
mov dl, 0
call select
2021-04-20 18:27:10 +02:00
2021-12-10 11:41:02 +01:00
mov dx, 3
call setclus
call rdfat
mov dx, bx
inc dx
call wdfat
hlt: hlt
jmp hlt