Add missing dumpreg.asm

This commit is contained in:
Nero 2019-03-13 21:10:41 +00:00
parent e76ec880bb
commit bb675a67a7

33
dumpreg.asm Normal file
View File

@ -0,0 +1,33 @@
; this kprints registers
_int_2F:
push ss
push es
push ds
push di
push si
push bp
push sp
push dx
push cx
push bx
push ax
mov ax,cs
mov ds,ax
mov si,.fmt
call kprintf
pop ax
pop bx
pop cx
pop dx
pop sp
pop bp
pop si
pop di
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=%B", 0