From bb675a67a7a02669450839a73cb7191e17648ea1 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:10:41 +0000 Subject: [PATCH] Add missing dumpreg.asm --- dumpreg.asm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dumpreg.asm diff --git a/dumpreg.asm b/dumpreg.asm new file mode 100644 index 0000000..213bc63 --- /dev/null +++ b/dumpreg.asm @@ -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