Use BIOS instead of MS-DOS for kprintf
This commit is contained in:
parent
6ce37b4e28
commit
6270e04339
1 changed files with 6 additions and 6 deletions
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…
Add table
Add a link
Reference in a new issue