39 lines
440 B
NASM
39 lines
440 B
NASM
|
org 0x100
|
||
|
|
||
|
jmp init
|
||
|
|
||
|
%defstr V VERSION
|
||
|
banner: db "RDOS ", V, 0x0A, 0x0D, 0, 0x1A
|
||
|
|
||
|
%include "kernel/far.asm"
|
||
|
%include "inc/bpb.asm"
|
||
|
%include "kernel/drive.asm"
|
||
|
|
||
|
section .text
|
||
|
|
||
|
init: call rstseg
|
||
|
mov si, banner
|
||
|
.l01: lodsb
|
||
|
test al, al
|
||
|
jz .l02
|
||
|
mov ah, 0x0e
|
||
|
xor bx, bx
|
||
|
int 0x10
|
||
|
jmp .l01
|
||
|
.l02:
|
||
|
call dinit
|
||
|
|
||
|
mov dl, 0
|
||
|
call logdrv
|
||
|
|
||
|
xor ax, ax
|
||
|
xor dx, dx
|
||
|
call maprd
|
||
|
|
||
|
inc word [dskbuf+0x80]
|
||
|
call dirty
|
||
|
call flush
|
||
|
|
||
|
hlt: hlt
|
||
|
jmp hlt
|