Other debugging code.

parent 014830da
......@@ -206,6 +206,9 @@ single_step_handler:
mov ebp, esp
;; Fix ESP, because EFLAGS, CS and EIP have been pushed in the meantime
add DWORD [ebp+0x0c], 12
;; Possibly call the user defined handler
test eax, eax
......@@ -263,8 +263,12 @@ write_hex:
;; cmp DWORD [instr_num], 0x3129
;; jne single_stepping_handler_end
mov ebx, [instr_num]
sub ebx, 0x15000
cmp ebx, 0
jl single_stepping_handler_end
cmp ebx, 0x2000
jge shutdown
mov ebx, [esp+4]
mov esi, str_instr_num
......@@ -319,8 +323,6 @@ enable_single_stepping:
mov DWORD [instr_num], 0x3126
mov DWORD [0x10010], single_stepping_handler
call [0x1001c]
cmp DWORD [term_row], 0
jne platform_panic
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment