summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-20 23:00:37 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-20 23:00:37 -0700
commitea4a42adde53588db81488eee153920195a9a95b (patch)
tree8e6d4f6e3e32785a0a5849725a561d3a1c6ff256
parentc311221fe24b3377a342a0f284313012bc38c286 (diff)
Fix crash bug in Z80 debugger introduced with stack alignment changes
-rw-r--r--z80_to_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index fbfdbd3..8458c06 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -2729,7 +2729,7 @@ void z80_adjust_cycles(z80_context * context, uint32_t deduction)
uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst)
{
- code_info code = {dst, dst+16};
+ code_info code = {dst, dst+32};
mov_ir(&code, address, context->options->gen.scratch1, SZ_W);
call(&code, context->bp_stub);
return code.cur-dst;