From d292350bf054f117ba5bcc813058500a86189a6a Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 3 Jan 2017 21:37:36 -0800 Subject: Fix implementation of Z80 HALT instruction --- z80_to_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'z80_to_x86.c') 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; } -- cgit v1.2.3