debug: use printf instead of kprintf

This commit is contained in:
Nero 2019-05-02 20:12:45 +00:00
parent 924f7496c8
commit 49ae13c73a

View File

@ -1,6 +1,6 @@
; this kprints registers
; this prints registers
; expect to be called as interrupt routine
debug_reg_ir:
isr_debug:
push ss
push es
push ds
@ -13,10 +13,9 @@ debug_reg_ir:
push bx
push ax
mov ax,cs
mov ds,ax
mov si,.fmt
call kprintf
call printf
db "AX=%X BX=%X CX=%X DX=%X SP=%X BP=%X SI=%X DI=%X", 0x0A, 0x0D
db "DS=%X ES=%X SS=%X IP=%X CS=%X FL=%X", 0x0A, 0x0D, 0
pop ax
pop bx
@ -29,6 +28,4 @@ debug_reg_ir:
pop ds
pop es
pop ss
iret
.fmt:
db "AX=%X BX=%X CX=%X DX=%X SP=%X BP=%X SI=%X DI=%X", 0x0A, 0x0D, "DS=%X ES=%X SS=%X IP=%X CS=%X FL=%X", 0
iret