Mercurial > repos > blastem
changeset 384:5500d1d1269e
Fix set/res when the operand is in memory
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 04 Jun 2013 22:30:49 -0700 |
parents | 72933100c55c |
children | e45327305bb7 |
files | z80_to_x86.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/z80_to_x86.c Tue Jun 04 21:23:12 2013 -0700 +++ b/z80_to_x86.c Tue Jun 04 22:30:49 2013 -0700 @@ -1228,7 +1228,7 @@ } 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 @@ } 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);