Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com)
+ * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
+
* simops.c: Fix thinkos in last change to "inc dn".
Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com)
* simops.c: Fix overflow computation for many instructions.
- * simops.c: Fix "movdm, an", "movbu dm, (an)", and "movhu dm, (an)".
+ * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)".
* simops.c: Fix "mov am, dn".
/* mov am, (d16,an) */
void OP_FA300000 ()
{
- store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 17)]
+ store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 16)]
+ SEXT16 (insn & 0xffff)), 4,
State.regs[REG_A0 + ((insn & 0xc0000) >> 18)]);
}
/* mov am, (d32,an) */
void OP_FC300000 ()
{
- store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 17)]
+ store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 16)]
+ ((insn & 0xffff) << 16) + extension), 4,
State.regs[REG_A0 + ((insn & 0xc0000) >> 18)]);
}