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