diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-12-26 12:56:53 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-12-26 12:56:53 -0800 |
commit | 48d4b66ac0a36c584d03e59062f58a9c4de9d33b (patch) | |
tree | 4b3b2a6be2d526abf683749fbd40165ab9df7683 | |
parent | 669d5ebf9474cb7efcd6aee6a84c28b3910b9348 (diff) |
Fix an off-by-one error in a branch destination in the generation of handle_cycle_limit for the Z80
-rw-r--r-- | z80_to_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |