diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-03 21:37:36 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-03 21:37:36 -0800 |
commit | d292350bf054f117ba5bcc813058500a86189a6a (patch) | |
tree | c5b3376f891652e573f9708032fd6fb1ffb98fff /z80_to_x86.c | |
parent | 86f8c77a76f221fcdb245d667188fe682b4cfcdc (diff) |
Fix implementation of Z80 HALT instruction
Diffstat (limited to 'z80_to_x86.c')
-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 34ad2f5..5b5124a 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -1411,7 +1411,7 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, code_ptr loop_top = code->cur; //this isn't terribly efficient, but it's good enough for now cycles(&opts->gen, num_cycles); - check_cycles_int(&opts->gen, address); + check_cycles_int(&opts->gen, address+1); jmp(code, loop_top); break; } |