From 6b5b9aee0bcdd18c5c42c269d7ff66ea86eefc7b Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 4 Jun 2013 22:30:49 -0700 Subject: Fix set/res when the operand is in memory --- z80_to_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'z80_to_x86.c') diff --git a/z80_to_x86.c b/z80_to_x86.c index 02757de..d5daa5c 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -1228,7 +1228,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context } else { size = SZ_B; bit = inst->immed; - dst = translate_z80_ea(inst, &src_op, dst, opts, READ, DONT_MODIFY); + dst = translate_z80_ea(inst, &src_op, dst, opts, READ, MODIFY); } if (inst->reg != Z80_USE_IMMED) { dst = translate_z80_reg(inst, &dst_op, dst, opts); @@ -1270,7 +1270,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context } else { size = SZ_B; bit = inst->immed; - dst = translate_z80_ea(inst, &src_op, dst, opts, READ, DONT_MODIFY); + dst = translate_z80_ea(inst, &src_op, dst, opts, READ, MODIFY); } if (inst->reg != Z80_USE_IMMED) { dst = translate_z80_reg(inst, &dst_op, dst, opts); -- cgit v1.2.3