* simops.c: Don't forget to initialize temp for

"ld.h" and "ld.w"
This commit is contained in:
Jeff Law 1996-08-30 20:15:51 +00:00
parent 1a393e50be
commit 3046d87986
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Fri Aug 30 10:33:49 1996 Jeffrey A Law (law@cygnus.com)
* simops.c: Don't forget to initialize temp for
"ld.h" and "ld.w"
* interp.c: Remove various debugging printfs.
* simops.c: Fix satadd, satsub boundary case handling.

View File

@ -112,6 +112,7 @@ OP_720 ()
int result, temp;
op0 = State.regs[OP[0]];
temp = OP[2];
temp = (temp << 16) >> 16;
temp &= ~0x1;
op2 = temp;
@ -128,6 +129,7 @@ OP_10720 ()
int result, temp;
op0 = State.regs[OP[0]];
temp = OP[2];
temp = (temp << 16) >> 16;
temp &= ~0x1;
op2 = temp;