Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
+ * simops.c: Fix "movdm, an", "movbu dm, (an)", and "movhu dm, (an)".
+
* simops.c: Fix "mov am, dn".
* simops.c: Fix more bugs in "add imm,an" and
/* mov dm, an */
void OP_F1E0 ()
{
- State.regs[REG_A0 + (insn & 0x3)] = State.regs[REG_D0 + ((insn & 0xc) >> 3)];
+ State.regs[REG_A0 + (insn & 0x3)] = State.regs[REG_D0 + ((insn & 0xc) >> 2)];
}
/* mov am, dn */
/* movbu dm, (an) */
void OP_F050 ()
{
- store_mem (State.regs[REG_A0 + ((insn & 0xc) >> 2)], 1,
- State.regs[REG_D0 + (insn & 0x3)]);
+ store_mem (State.regs[REG_A0 + (insn & 0x3)], 1,
+ State.regs[REG_D0 + ((insn & 0xc) >> 2)]);
}
/* movbu dm, (d8,an) */
/* movhu dm, (an) */
void OP_F070 ()
{
- store_mem (State.regs[REG_A0 + ((insn & 0xc) >> 2)], 2,
- State.regs[REG_D0 + (insn & 0x3)]);
+ store_mem (State.regs[REG_A0 + (insn & 0x3)], 2,
+ State.regs[REG_D0 + ((insn & 0xc) >> 2)]);
}
/* movhu dm, (d8,an) */