rdos/kernel/debug.asm

31 lines
464 B
NASM
Raw Normal View History

2019-05-02 22:12:45 +02:00
; this prints registers
; expect to be called as interrupt routine
2019-05-02 22:12:45 +02:00
isr_debug:
2019-03-13 22:10:41 +01:00
push ss
push es
push ds
push di
push si
push bp
push sp
push dx
push cx
push bx
push ax
2019-05-02 22:12:45 +02:00
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
2019-03-13 22:10:41 +01:00
pop ax
pop bx
pop cx
pop dx
pop sp
pop bp
pop si
pop di
pop ds
pop es
pop ss
2019-05-02 22:12:45 +02:00
iret