WIP on main

This commit is contained in:
Nero 2019-03-13 21:11:49 +00:00
parent 4d827ec4e9
commit 8c4821967c

View File

@ -40,14 +40,24 @@ _exit:
db "Halted: Waiting for poweroff...", 0
main:
call dumpreg
mov ax,cs
mov ds,ax
mov si, string_halt
call kprintf
.loop:
hlt
jmp .loop
sub sp, 0x30
xor ax,ax
mov es,ax
mov ax,_int_2F
xchg ax,[es:0x2F*4]
mov ax,cs
xchg ax,[es:0x2F*4+2]
int 0x2F
test ax, 0xFF
int 0x2F
add sp, 0x30
ret
%include "dumpreg.asm"
%include "kprintf.asm"