Use BIOS instead of MS-DOS for kprintf
This commit is contained in:
parent
6ce37b4e28
commit
6270e04339
12
kprintf.asm
12
kprintf.asm
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user