changeset 966:f765c2fc7508

Fix crash bug in Z80 debugger introduced with stack alignment changes
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Apr 2016 23:00:37 -0700
parents 5257e85364ed
children 1eb616b8cbe9
files z80_to_x86.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Wed Apr 20 09:18:58 2016 -0700
+++ b/z80_to_x86.c	Wed Apr 20 23:00:37 2016 -0700
@@ -2729,7 +2729,7 @@
 
 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;