summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-26 12:56:53 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-26 12:56:53 -0800
commit48d4b66ac0a36c584d03e59062f58a9c4de9d33b (patch)
tree4b3b2a6be2d526abf683749fbd40165ab9df7683
parent669d5ebf9474cb7efcd6aee6a84c28b3910b9348 (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.c2
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);