Mercurial > repos > blastem
diff z80_to_x86.c @ 1147:06468b25a543
Fix implementation of Z80 HALT instruction
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 03 Jan 2017 21:37:36 -0800 |
parents | 5c8b1c33ca10 |
children | 2a799f24563f |
line wrap: on
line diff
--- 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; }