Mercurial > repos > blastem
changeset 1147:06468b25a543
Fix implementation of Z80 HALT instruction
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 03 Jan 2017 21:37:36 -0800 |
parents | 3e24de8d8073 |
children | 80ef49539550 |
files | z80_to_x86.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; }