rdos/com/@rdos.asm

38 lines
466 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 "inc/bpb.asm"
%include "kernel/drive.asm"
section .text
init: call rstseg
call dinit
2021-02-19 09:57:21 +01:00
mov dx, banner
call puts
2021-02-19 09:57:21 +01:00
mov byte [testbuf], 5
mov dx, testbuf
call gets
2021-02-19 09:57:21 +01:00
mov ax, [testbuf]
mov cx, [testbuf+2]
mov dx, [testbuf+4]
mov bx, [testbuf+6]
int 3
hlt: hlt
jmp hlt
2021-02-19 09:57:21 +01:00
section .bss
testbuf resb 130