# HG changeset patch # User Michael Pavone # Date 1419627413 28800 # Node ID faad1927d836943ba3929670f09489982b637603 # Parent 8d6ae5b3b87b96b9092ea23e342bf9237586e907 Fix an off-by-one error in a branch destination in the generation of handle_cycle_limit for the Z80 diff -r 8d6ae5b3b87b -r faad1927d836 z80_to_x86.c --- a/z80_to_x86.c Fri Dec 26 12:52:13 2014 -0800 +++ b/z80_to_x86.c Fri Dec 26 12:56:53 2014 -0800 @@ -2037,7 +2037,7 @@ 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);