1
0
mirror of synced 2026-03-01 09:41:15 +00:00

Fixing missing STI at the top of the handler.

This commit is contained in:
Matthieu Bucchianeri
2025-02-14 23:01:20 -08:00
parent 163e16bb59
commit 730b632510
4 changed files with 127 additions and 118 deletions

View File

@@ -286,6 +286,7 @@ entry:
; INT 13h entry point.
;
int13h_entry:
sti
%ifdef EXTRA_DEBUG
call dump_regs
%endif

View File

@@ -8,6 +8,7 @@
xor ax, ax
lahf
sti
mov ax, 0x1122
mov bx, 0x3344
mov cx, 0x5566
@@ -16,7 +17,7 @@
mov di, 0xbbcc
mov bp, 0xddee
mov dl, 0x81
mov dl, 0x80
mov ah, 0x08
;mov bx, buf_write
@@ -27,7 +28,7 @@
call do_int13h
mov dl, 0x81
mov dl, 0x80
mov ah, 0x02
mov bx, ds
@@ -114,6 +115,8 @@ do_int13h:
; dump registers
%ifdef DUMP_REGS
popf
pushf
call dump_regs
pop ax
call print_hex

View File

@@ -130,10 +130,15 @@ dump_regs:
call print_hex
mov ax, space
call print_string
pushf
pop ax
call print_hex
mov ax, space
call print_string
mov ax, newline
call print_string
pop ax
ret
registers_msg db ' AX BX CX DX DS SI ES DI BP', 0xD, 0xA, 0
registers_msg db ' AX BX CX DX DS SI ES DI BP FLAGS', 0xD, 0xA, 0
%endif