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 "kernel/drive.asm"
|
2021-12-10 11:41:02 +01:00
|
|
|
%include "kernel/fat.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-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
|
2021-02-07 17:17:31 +01:00
|
|
|
|
|
|
|
hlt: hlt
|
|
|
|
jmp hlt
|