From f800328d2c7e5e05557e957aea5bb768ff0aa709 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 3 Apr 2020 23:47:57 -0700 Subject: Fix bug in in (c) instruction in Z80 dynarec --- 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 d447ee3..a175a9e 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2327,7 +2327,7 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, if (inst->addr_mode == Z80_IMMED_INDIRECT) { mov_ir(code, inst->immed, opts->gen.scratch1, SZ_B); } else { - zreg_to_native(opts, Z80_C, opts->gen.scratch2); + zreg_to_native(opts, Z80_C, opts->gen.scratch1); } call(code, opts->read_io); if (inst->addr_mode != Z80_IMMED_INDIRECT) { -- cgit v1.2.3