* simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"

Fixes remaining hangs while running c-torture execution tests.
Only 12 c-torture execution failures left:

  * 920625-1.c fails all 6 execution tests.

  * 960521-1.c fails all 6 execution tests.
This commit is contained in:
Jeff Law 1996-12-06 07:57:21 +00:00
parent 48712b3060
commit e5a7a53799
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
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)
@ -26,7 +28,7 @@ Sun Dec 1 16:05:42 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".

View File

@ -378,7 +378,7 @@ void OP_F83000 ()
/* 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)]);
}
@ -386,7 +386,7 @@ void OP_FA300000 ()
/* 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)]);
}