Fixing missing STI at the top of the handler.
This commit is contained in:
@@ -286,6 +286,7 @@ entry:
|
||||
; INT 13h entry point.
|
||||
;
|
||||
int13h_entry:
|
||||
sti
|
||||
%ifdef EXTRA_DEBUG
|
||||
call dump_regs
|
||||
%endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user