Use BIOS instead of MS-DOS for kprintf

This commit is contained in:
Nero 2019-03-13 20:11:49 +00:00
parent 6ce37b4e28
commit 6270e04339
1 changed files with 6 additions and 6 deletions

View File

@ -3,12 +3,12 @@
; write a character to kernel output ; write a character to kernel output
; in: al ; in: al
kputc: kputc:
push ax ; dont destroy ah push ax
push dx push bx
mov ah,0x02 ; DOS putc mov bx, 0x0000
mov dl,al mov ah, 0x0e
int 0x21 int 0x10
pop dx pop bx
pop ax pop ax
ret ret