summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r--z80_to_x86.c4
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);