diff --git a/alpha/alpha_cpu.c b/alpha/alpha_cpu.c index 0bb7bd8b..70fbcafe 100644 --- a/alpha/alpha_cpu.c +++ b/alpha/alpha_cpu.c @@ -23,6 +23,7 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Robert M Supnik. + 05-Oct-2017 RMS Fixed reversed definitions of FTOIS, FTOIT (Maurice Marks) 27-May-2017 RMS Fixed MIN/MAXx4 iteration counts (Mark Pizzolato) 26-May-2017 RMS Fixed other reversed definitions in opcode 12 28-Apr-2017 RMS Fixed reversed definitions of INSQH, EXTQH (Maurice Marks) @@ -1503,18 +1504,18 @@ while (reason == 0) { } break; - case 0x70: /* FTOIS */ - if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); - if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ - res = op_sts (FR[ra]); - break; - - case 0x78: /* FTOIT */ + case 0x70: /* FTOIT */ if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ res = FR[ra]; break; + case 0x78: /* FTOIS */ + if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); + if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ + res = op_sts (FR[ra]); + break; + default: ABORT (EXC_RSVI); }