From 48d4b66ac0a36c584d03e59062f58a9c4de9d33b Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 26 Dec 2014 12:56:53 -0800 Subject: Fix an off-by-one error in a branch destination in the generation of handle_cycle_limit for the Z80 --- z80_to_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'z80_to_x86.c') diff --git a/z80_to_x86.c b/z80_to_x86.c index fd30d56..1fcd24f 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2037,7 +2037,7 @@ void init_x86_z80_opts(z80_options * options, memmap_chunk const * chunks, uint3 pop_r(code, R12); pop_r(code, RBP); pop_r(code, RBX); - *no_sync = code->cur - no_sync; + *no_sync = code->cur - (no_sync + 1); //return to caller of z80_run retn(code); -- cgit v1.2.3