38 lines
466 B
NASM
38 lines
466 B
NASM
org 0x100
|
|
|
|
jmp init
|
|
|
|
%defstr V VERSION
|
|
banner: db "RDOS KERNEL ", V, 0x0A, 0x0D, '$', 0x1A
|
|
|
|
%include "kernel/far.asm"
|
|
%include "kernel/char.asm"
|
|
%include "inc/bpb.asm"
|
|
%include "kernel/drive.asm"
|
|
|
|
section .text
|
|
|
|
init: call rstseg
|
|
call dinit
|
|
|
|
mov dx, banner
|
|
call puts
|
|
|
|
mov byte [testbuf], 5
|
|
mov dx, testbuf
|
|
call gets
|
|
|
|
mov ax, [testbuf]
|
|
mov cx, [testbuf+2]
|
|
mov dx, [testbuf+4]
|
|
mov bx, [testbuf+6]
|
|
|
|
int 3
|
|
|
|
hlt: hlt
|
|
jmp hlt
|
|
|
|
section .bss
|
|
|
|
testbuf resb 130
|