# HG changeset patch # User Michael Pavone # Date 1483508256 28800 # Node ID 06468b25a54373f6fc73a5b65afba5493e4e1a21 # Parent 3e24de8d80735c708bf677eac63aa57df91ec5ec Fix implementation of Z80 HALT instruction diff -r 3e24de8d8073 -r 06468b25a543 z80_to_x86.c --- a/z80_to_x86.c Tue Jan 03 21:18:52 2017 -0800 +++ b/z80_to_x86.c Tue Jan 03 21:37:36 2017 -0800 @@ -1411,7 +1411,7 @@ 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; }