diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-04 22:30:49 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-04 22:30:49 -0700 |
commit | 6b5b9aee0bcdd18c5c42c269d7ff66ea86eefc7b (patch) | |
tree | acaeaee221e89c06944070074cf9de0aa1681972 /z80_to_x86.c | |
parent | 3bb0d543ba0b9b29af022ce85851fabf76af3c46 (diff) |
Fix set/res when the operand is in memory
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |