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

View File

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