From fd345a8336933105ea98c9d2d1cc5602ad611d70 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 24 Apr 2016 00:22:38 -0700 Subject: Fix order of writes for move.l with a predec destination --- m68k_core_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_core_x86.c') diff --git a/m68k_core_x86.c b/m68k_core_x86.c index ee2d6e2..9882b35 100644 --- a/m68k_core_x86.c +++ b/m68k_core_x86.c @@ -692,7 +692,7 @@ void translate_m68k_move(m68k_options * opts, m68kinst * inst) update_flags(opts, N|Z|V0|C0); } if (inst->dst.addr_mode != MODE_REG && inst->dst.addr_mode != MODE_AREG) { - m68k_write_size(opts, inst->extra.size); + m68k_write_size(opts, inst->extra.size, inst->dst.addr_mode == MODE_AREG_PREDEC); if (inst->dst.addr_mode == MODE_AREG_POSTINC) { inc_amount = inst->extra.size == OPSIZE_WORD ? 2 : (inst->extra.size == OPSIZE_LONG ? 4 : (inst->dst.params.regs.pri == 7 ? 2 : 1)); addi_areg(opts, inc_amount, inst->dst.params.regs.pri); -- cgit v1.2.3