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
|
; 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user