#line 1 "rx-decode.opc"
/* -*- c -*- */
-/* Copyright (C) 2012-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2017 Free Software Foundation, Inc.
Contributed by Red Hat.
Written by DJ Delorie.
#include <string.h>
#include "ansidecl.h"
#include "opcode/rx.h"
+#include "libiberty.h"
#define RX_OPCODE_BIG_ENDIAN 0
#define LSIZE 2
/* These are for when the upper bits are "don't care" or "undefined". */
-static int bwl[] =
+static int bwl[4] =
{
RX_Byte,
RX_Word,
- RX_Long
+ RX_Long,
+ RX_Bad_Size /* Bogus instructions can have a size field set to 3. */
};
-static int sbwl[] =
+static int sbwl[4] =
{
RX_SByte,
RX_SWord,
- RX_Long
+ RX_Long,
+ RX_Bad_Size /* Bogus instructions can have a size field set to 3. */
};
-static int ubwl[] =
+static int ubw[4] =
{
RX_UByte,
RX_UWord,
- RX_Long
+ RX_Bad_Size,/* Bogus instructions can have a size field set to 2. */
+ RX_Bad_Size /* Bogus instructions can have a size field set to 3. */
};
-static int memex[] =
+static int memex[4] =
{
RX_SByte,
RX_SWord,
rx->op[n].size = s )
/* This is for the BWL and BW bitfields. */
-static int SCALE[] = { 1, 2, 4 };
+static int SCALE[] = { 1, 2, 4, 0 };
/* This is for the prefix size enum. */
static int PSCALE[] = { 4, 1, 1, 1, 2, 2, 2, 3, 4 };
+#define GET_SCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (SCALE) ? SCALE[(_indx)] : 0)
+#define GET_PSCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (PSCALE) ? PSCALE[(_indx)] : 0)
+
static int flagmap[] = {0, 1, 2, 3, 0, 0, 0, 0,
16, 17, 0, 0, 0, 0, 0, 0 };
#define DC(c) OP (0, RX_Operand_Immediate, 0, c)
#define DR(r) OP (0, RX_Operand_Register, r, 0)
#define DI(r,a) OP (0, RX_Operand_Indirect, r, a)
-#define DIs(r,a,s) OP (0, RX_Operand_Indirect, r, (a) * SCALE[s])
+#define DIs(r,a,s) OP (0, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
#define DD(t,r,s) rx_disp (0, t, r, bwl[s], ld);
#define DF(r) OP (0, RX_Operand_Flag, flagmap[r], 0)
#define SR(r) OP (1, RX_Operand_Register, r, 0)
#define SRR(r) OP (1, RX_Operand_TwoReg, r, 0)
#define SI(r,a) OP (1, RX_Operand_Indirect, r, a)
-#define SIs(r,a,s) OP (1, RX_Operand_Indirect, r, (a) * SCALE[s])
+#define SIs(r,a,s) OP (1, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
#define SD(t,r,s) rx_disp (1, t, r, bwl[s], ld);
#define SP(t,r) rx_disp (1, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 1);
#define SPm(t,r,m) rx_disp (1, t, r, memex[m], ld); rx->op[1].size = memex[m];
#define S2C(i) OP (2, RX_Operand_Immediate, 0, i)
#define S2R(r) OP (2, RX_Operand_Register, r, 0)
#define S2I(r,a) OP (2, RX_Operand_Indirect, r, a)
-#define S2Is(r,a,s) OP (2, RX_Operand_Indirect, r, (a) * SCALE[s])
+#define S2Is(r,a,s) OP (2, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
#define S2D(t,r,s) rx_disp (2, t, r, bwl[s], ld);
#define S2P(t,r) rx_disp (2, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 2);
#define S2Pm(t,r,m) rx_disp (2, t, r, memex[m], ld); rx->op[2].size = memex[m];
#define BWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = bwl[sz]
#define sBWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = sbwl[sz]
-#define uBWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = ubwl[sz]
+#define uBW(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = ubw[sz]
#define P(t, n) rx->op[n].size = (t!=3) ? RX_UByte : RX_Long;
#define F(f) store_flags(rx, f)
}
static void
-rx_disp (int n, int type, int reg, int size, LocalData * ld)
+rx_disp (int n, int type, int reg, unsigned int size, LocalData * ld)
{
int disp;
ld->rx->op[n].type = RX_Operand_Register;
break;
case 0:
- ld->rx->op[n].type = RX_Operand_Indirect;
+ ld->rx->op[n].type = RX_Operand_Zero_Indirect;
ld->rx->op[n].addend = 0;
break;
case 1:
ld->rx->op[n].type = RX_Operand_Indirect;
disp = GETBYTE ();
- ld->rx->op[n].addend = disp * PSCALE[size];
+ ld->rx->op[n].addend = disp * GET_PSCALE (size);
break;
case 2:
ld->rx->op[n].type = RX_Operand_Indirect;
#else
disp = disp + GETBYTE () * 256;
#endif
- ld->rx->op[n].addend = disp * PSCALE[size];
+ ld->rx->op[n].addend = disp * GET_PSCALE (size);
break;
default:
abort ();
#define xZ 2
#define xC 1
-#define F_____
+#define F_____
#define F___ZC rx->flags_0 = rx->flags_s = xZ|xC;
#define F__SZ_ rx->flags_0 = rx->flags_s = xS|xZ;
#define F__SZC rx->flags_0 = rx->flags_s = xS|xZ|xC;
op[0]);
}
SYNTAX("brk");
-#line 984 "rx-decode.opc"
+#line 1029 "rx-decode.opc"
ID(brk);
-
+
}
break;
case 0x01:
op[0]);
}
SYNTAX("dbt");
-#line 987 "rx-decode.opc"
+#line 1032 "rx-decode.opc"
ID(dbt);
-
+
}
break;
case 0x02:
op[0]);
}
SYNTAX("rts");
-#line 765 "rx-decode.opc"
+#line 810 "rx-decode.opc"
ID(rts);
-
+
/*----------------------------------------------------------------------*/
/* NOP */
-
+
}
break;
case 0x03:
op[0]);
}
SYNTAX("nop");
-#line 771 "rx-decode.opc"
+#line 816 "rx-decode.opc"
ID(nop);
-
+
/*----------------------------------------------------------------------*/
/* STRING FUNCTIONS */
-
+
}
break;
case 0x04:
op[0]);
}
SYNTAX("bra.a %a0");
-#line 743 "rx-decode.opc"
+#line 788 "rx-decode.opc"
ID(branch); DC(pc + IMMex(3));
-
+
}
break;
case 0x05:
op[0]);
}
SYNTAX("bsr.a %a0");
-#line 759 "rx-decode.opc"
+#line 804 "rx-decode.opc"
ID(jsr); DC(pc + IMMex(3));
-
+
}
break;
case 0x06:
op_semantics_1:
{
/** 0000 0110 mx00 00ss rsrc rdst sub %2%S2, %1 */
-#line 539 "rx-decode.opc"
+#line 546 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 539 "rx-decode.opc"
+#line 546 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 539 "rx-decode.opc"
+#line 546 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 539 "rx-decode.opc"
+#line 546 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sub %2%S2, %1");
-#line 539 "rx-decode.opc"
+#line 546 "rx-decode.opc"
ID(sub); S2Pm(ss, rsrc, mx); SR(rdst); DR(rdst); F_OSZC;
-
+
}
break;
}
op_semantics_2:
{
/** 0000 0110 mx00 01ss rsrc rdst cmp %2%S2, %1 */
-#line 527 "rx-decode.opc"
+#line 534 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 527 "rx-decode.opc"
+#line 534 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 527 "rx-decode.opc"
+#line 534 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 527 "rx-decode.opc"
+#line 534 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("cmp %2%S2, %1");
-#line 527 "rx-decode.opc"
+#line 534 "rx-decode.opc"
ID(sub); S2Pm(ss, rsrc, mx); SR(rdst); F_OSZC;
-
+
/*----------------------------------------------------------------------*/
/* SUB */
-
+
}
break;
}
op_semantics_3:
{
/** 0000 0110 mx00 10ss rsrc rdst add %1%S1, %0 */
-#line 503 "rx-decode.opc"
+#line 510 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 503 "rx-decode.opc"
+#line 510 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 503 "rx-decode.opc"
+#line 510 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 503 "rx-decode.opc"
+#line 510 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("add %1%S1, %0");
-#line 503 "rx-decode.opc"
+#line 510 "rx-decode.opc"
ID(add); SPm(ss, rsrc, mx); DR(rdst); F_OSZC;
-
+
}
break;
}
op_semantics_4:
{
/** 0000 0110 mx00 11ss rsrc rdst mul %1%S1, %0 */
-#line 608 "rx-decode.opc"
+#line 653 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 608 "rx-decode.opc"
+#line 653 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 608 "rx-decode.opc"
+#line 653 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 608 "rx-decode.opc"
+#line 653 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mul %1%S1, %0");
-#line 608 "rx-decode.opc"
+#line 653 "rx-decode.opc"
ID(mul); SPm(ss, rsrc, mx); DR(rdst); F_____;
-
+
}
break;
}
op_semantics_5:
{
/** 0000 0110 mx01 00ss rsrc rdst and %1%S1, %0 */
-#line 416 "rx-decode.opc"
+#line 423 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 416 "rx-decode.opc"
+#line 423 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 416 "rx-decode.opc"
+#line 423 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 416 "rx-decode.opc"
+#line 423 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("and %1%S1, %0");
-#line 416 "rx-decode.opc"
+#line 423 "rx-decode.opc"
ID(and); SPm(ss, rsrc, mx); DR(rdst); F__SZ_;
-
+
}
break;
}
op_semantics_6:
{
/** 0000 0110 mx01 01ss rsrc rdst or %1%S1, %0 */
-#line 434 "rx-decode.opc"
+#line 441 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 434 "rx-decode.opc"
+#line 441 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 434 "rx-decode.opc"
+#line 441 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 434 "rx-decode.opc"
+#line 441 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("or %1%S1, %0");
-#line 434 "rx-decode.opc"
+#line 441 "rx-decode.opc"
ID(or); SPm(ss, rsrc, mx); DR(rdst); F__SZ_;
-
+
}
break;
}
op_semantics_7:
{
/** 0000 0110 mx10 00sp 0000 0000 rsrc rdst sbb %1%S1, %0 */
-#line 552 "rx-decode.opc"
+#line 559 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 552 "rx-decode.opc"
+#line 559 "rx-decode.opc"
int sp AU = op[1] & 0x03;
-#line 552 "rx-decode.opc"
+#line 559 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 552 "rx-decode.opc"
+#line 559 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sbb %1%S1, %0");
-#line 552 "rx-decode.opc"
+#line 559 "rx-decode.opc"
ID(sbb); SPm(sp, rsrc, mx); DR(rdst); F_OSZC;
-
+
/*----------------------------------------------------------------------*/
/* ABS */
-
+
}
break;
}
op_semantics_8:
{
/** 0000 0110 mx10 00ss 0000 0100 rsrc rdst max %1%S1, %0 */
-#line 581 "rx-decode.opc"
+#line 598 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 581 "rx-decode.opc"
+#line 598 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 581 "rx-decode.opc"
+#line 598 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 581 "rx-decode.opc"
+#line 598 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("max %1%S1, %0");
-#line 581 "rx-decode.opc"
+#line 598 "rx-decode.opc"
ID(max); SPm(ss, rsrc, mx); DR(rdst);
-
+
/*----------------------------------------------------------------------*/
/* MIN */
-
+
}
break;
}
op_semantics_9:
{
/** 0000 0110 mx10 00ss 0000 0101 rsrc rdst min %1%S1, %0 */
-#line 593 "rx-decode.opc"
+#line 610 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 593 "rx-decode.opc"
+#line 610 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 593 "rx-decode.opc"
+#line 610 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 593 "rx-decode.opc"
+#line 610 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("min %1%S1, %0");
-#line 593 "rx-decode.opc"
+#line 610 "rx-decode.opc"
ID(min); SPm(ss, rsrc, mx); DR(rdst);
-
+
/*----------------------------------------------------------------------*/
/* MUL */
-
+
}
break;
}
op_semantics_10:
{
/** 0000 0110 mx10 00ss 0000 0110 rsrc rdst emul %1%S1, %0 */
-#line 623 "rx-decode.opc"
+#line 668 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 623 "rx-decode.opc"
+#line 668 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 623 "rx-decode.opc"
+#line 668 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 623 "rx-decode.opc"
+#line 668 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emul %1%S1, %0");
-#line 623 "rx-decode.opc"
+#line 668 "rx-decode.opc"
ID(emul); SPm(ss, rsrc, mx); DR(rdst);
-
+
/*----------------------------------------------------------------------*/
/* EMULU */
-
+
}
break;
}
op_semantics_11:
{
/** 0000 0110 mx10 00ss 0000 0111 rsrc rdst emulu %1%S1, %0 */
-#line 635 "rx-decode.opc"
+#line 680 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 635 "rx-decode.opc"
+#line 680 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 635 "rx-decode.opc"
+#line 680 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 635 "rx-decode.opc"
+#line 680 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emulu %1%S1, %0");
-#line 635 "rx-decode.opc"
+#line 680 "rx-decode.opc"
ID(emulu); SPm(ss, rsrc, mx); DR(rdst);
-
+
/*----------------------------------------------------------------------*/
/* DIV */
-
+
}
break;
}
op_semantics_12:
{
/** 0000 0110 mx10 00ss 0000 1000 rsrc rdst div %1%S1, %0 */
-#line 647 "rx-decode.opc"
+#line 692 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 647 "rx-decode.opc"
+#line 692 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 647 "rx-decode.opc"
+#line 692 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 647 "rx-decode.opc"
+#line 692 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("div %1%S1, %0");
-#line 647 "rx-decode.opc"
+#line 692 "rx-decode.opc"
ID(div); SPm(ss, rsrc, mx); DR(rdst); F_O___;
-
+
/*----------------------------------------------------------------------*/
/* DIVU */
-
+
}
break;
}
op_semantics_13:
{
/** 0000 0110 mx10 00ss 0000 1001 rsrc rdst divu %1%S1, %0 */
-#line 659 "rx-decode.opc"
+#line 704 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 659 "rx-decode.opc"
+#line 704 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 659 "rx-decode.opc"
+#line 704 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 659 "rx-decode.opc"
+#line 704 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("divu %1%S1, %0");
-#line 659 "rx-decode.opc"
+#line 704 "rx-decode.opc"
ID(divu); SPm(ss, rsrc, mx); DR(rdst); F_O___;
-
+
/*----------------------------------------------------------------------*/
/* SHIFT */
-
+
}
break;
}
op_semantics_14:
{
/** 0000 0110 mx10 00ss 0000 1100 rsrc rdst tst %1%S1, %2 */
-#line 470 "rx-decode.opc"
+#line 477 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 470 "rx-decode.opc"
+#line 477 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 470 "rx-decode.opc"
+#line 477 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 470 "rx-decode.opc"
+#line 477 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("tst %1%S1, %2");
-#line 470 "rx-decode.opc"
+#line 477 "rx-decode.opc"
ID(and); SPm(ss, rsrc, mx); S2R(rdst); F__SZ_;
-
+
/*----------------------------------------------------------------------*/
/* NEG */
-
+
}
break;
}
op_semantics_15:
{
/** 0000 0110 mx10 00ss 0000 1101 rsrc rdst xor %1%S1, %0 */
-#line 449 "rx-decode.opc"
+#line 456 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 449 "rx-decode.opc"
+#line 456 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 449 "rx-decode.opc"
+#line 456 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 449 "rx-decode.opc"
+#line 456 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("xor %1%S1, %0");
-#line 449 "rx-decode.opc"
+#line 456 "rx-decode.opc"
ID(xor); SPm(ss, rsrc, mx); DR(rdst); F__SZ_;
-
+
/*----------------------------------------------------------------------*/
/* NOT */
-
+
}
break;
}
op_semantics_16:
{
/** 0000 0110 mx10 00ss 0001 0000 rsrc rdst xchg %1%S1, %0 */
-#line 383 "rx-decode.opc"
+#line 390 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 383 "rx-decode.opc"
+#line 390 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 383 "rx-decode.opc"
+#line 390 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 383 "rx-decode.opc"
+#line 390 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("xchg %1%S1, %0");
-#line 383 "rx-decode.opc"
+#line 390 "rx-decode.opc"
ID(xchg); DR(rdst); SPm(ss, rsrc, mx);
-
+
/*----------------------------------------------------------------------*/
/* STZ/STNZ */
-
+
}
break;
}
op_semantics_17:
{
/** 0000 0110 mx10 00sd 0001 0001 rsrc rdst itof %1%S1, %0 */
-#line 888 "rx-decode.opc"
+#line 933 "rx-decode.opc"
int mx AU = (op[1] >> 6) & 0x03;
-#line 888 "rx-decode.opc"
+#line 933 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 888 "rx-decode.opc"
+#line 933 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 888 "rx-decode.opc"
+#line 933 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("itof %1%S1, %0");
-#line 888 "rx-decode.opc"
+#line 933 "rx-decode.opc"
ID(itof); DR (rdst); SPm(sd, rsrc, mx); F__SZ_;
-
+
/*----------------------------------------------------------------------*/
/* BIT OPS */
-
+
+ }
+ break;
+ }
+ break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ op_semantics_18:
+ {
+ /** 0000 0110 mx10 00sd 0001 0101 rsrc rdst utof %1%S1, %0 */
+#line 1119 "rx-decode.opc"
+ int mx AU = (op[1] >> 6) & 0x03;
+#line 1119 "rx-decode.opc"
+ int sd AU = op[1] & 0x03;
+#line 1119 "rx-decode.opc"
+ int rsrc AU = (op[3] >> 4) & 0x0f;
+#line 1119 "rx-decode.opc"
+ int rdst AU = op[3] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
+ "/** 0000 0110 mx10 00sd 0001 0101 rsrc rdst utof %1%S1, %0 */",
+ op[0], op[1], op[2], op[3]);
+ printf (" mx = 0x%x,", mx);
+ printf (" sd = 0x%x,", sd);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("utof %1%S1, %0");
+#line 1119 "rx-decode.opc"
+ ID(utof); DR (rdst); SPm(sd, rsrc, mx); F__SZ_;
+
}
break;
}
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
switch (op[3] & 0x00)
{
case 0x00:
- op_semantics_18:
+ op_semantics_19:
{
/** 0000 0110 1010 00ss 0000 0010 rsrc rdst adc %1%S1, %0 */
-#line 491 "rx-decode.opc"
+#line 498 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 491 "rx-decode.opc"
+#line 498 "rx-decode.opc"
int rsrc AU = (op[3] >> 4) & 0x0f;
-#line 491 "rx-decode.opc"
+#line 498 "rx-decode.opc"
int rdst AU = op[3] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("adc %1%S1, %0");
-#line 491 "rx-decode.opc"
+#line 498 "rx-decode.opc"
ID(adc); SPm(ss, rsrc, 2); DR(rdst); F_OSZC;
-
+
/*----------------------------------------------------------------------*/
/* ADD */
-
+
}
break;
}
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
switch (op[3] & 0x00)
{
case 0x00:
- goto op_semantics_18;
+ goto op_semantics_19;
break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
switch (op[3] & 0x00)
{
case 0x00:
- goto op_semantics_18;
+ goto op_semantics_19;
break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
switch (op[3] & 0x00)
{
case 0x00:
- goto op_semantics_18;
+ goto op_semantics_19;
break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
break;
}
break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[3] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_18;
+ break;
+ }
+ break;
default: UNSUPPORTED(); break;
}
break;
case 0x0f:
{
/** 0000 1dsp bra.s %a0 */
-#line 734 "rx-decode.opc"
+#line 779 "rx-decode.opc"
int dsp AU = op[0] & 0x07;
if (trace)
{
printf (" dsp = 0x%x\n", dsp);
}
SYNTAX("bra.s %a0");
-#line 734 "rx-decode.opc"
+#line 779 "rx-decode.opc"
ID(branch); DC(pc + dsp3map[dsp]);
-
+
}
break;
case 0x10:
case 0x1f:
{
/** 0001 n dsp b%1.s %a0 */
-#line 724 "rx-decode.opc"
+#line 769 "rx-decode.opc"
int n AU = (op[0] >> 3) & 0x01;
-#line 724 "rx-decode.opc"
+#line 769 "rx-decode.opc"
int dsp AU = op[0] & 0x07;
if (trace)
{
printf (" dsp = 0x%x\n", dsp);
}
SYNTAX("b%1.s %a0");
-#line 724 "rx-decode.opc"
+#line 769 "rx-decode.opc"
ID(branch); Scc(n); DC(pc + dsp3map[dsp]);
-
+
}
break;
case 0x20:
case 0x2f:
{
/** 0010 cond b%1.b %a0 */
-#line 727 "rx-decode.opc"
+#line 772 "rx-decode.opc"
int cond AU = op[0] & 0x0f;
if (trace)
{
printf (" cond = 0x%x\n", cond);
}
SYNTAX("b%1.b %a0");
-#line 727 "rx-decode.opc"
+#line 772 "rx-decode.opc"
ID(branch); Scc(cond); DC(pc + IMMex (1));
-
+
}
break;
case 0x2e:
op[0]);
}
SYNTAX("bra.b %a0");
-#line 737 "rx-decode.opc"
+#line 782 "rx-decode.opc"
ID(branch); DC(pc + IMMex(1));
-
+
}
break;
case 0x38:
op[0]);
}
SYNTAX("bra.w %a0");
-#line 740 "rx-decode.opc"
+#line 785 "rx-decode.opc"
ID(branch); DC(pc + IMMex(2));
-
+
}
break;
case 0x39:
op[0]);
}
SYNTAX("bsr.w %a0");
-#line 756 "rx-decode.opc"
+#line 801 "rx-decode.opc"
ID(jsr); DC(pc + IMMex(2));
-
+
}
break;
case 0x3a:
case 0x3b:
{
/** 0011 101c b%1.w %a0 */
-#line 730 "rx-decode.opc"
+#line 775 "rx-decode.opc"
int c AU = op[0] & 0x01;
if (trace)
{
printf (" c = 0x%x\n", c);
}
SYNTAX("b%1.w %a0");
-#line 730 "rx-decode.opc"
+#line 775 "rx-decode.opc"
ID(branch); Scc(c); DC(pc + IMMex (2));
-
-
+
+
}
break;
case 0x3c:
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_19:
+ op_semantics_20:
{
/** 0011 11sz d dst sppp mov%s #%1, %0 */
-#line 304 "rx-decode.opc"
+#line 311 "rx-decode.opc"
int sz AU = op[0] & 0x03;
-#line 304 "rx-decode.opc"
+#line 311 "rx-decode.opc"
int d AU = (op[1] >> 7) & 0x01;
-#line 304 "rx-decode.opc"
+#line 311 "rx-decode.opc"
int dst AU = (op[1] >> 4) & 0x07;
-#line 304 "rx-decode.opc"
+#line 311 "rx-decode.opc"
int sppp AU = op[1] & 0x0f;
if (trace)
{
printf (" sppp = 0x%x\n", sppp);
}
SYNTAX("mov%s #%1, %0");
-#line 304 "rx-decode.opc"
+#line 311 "rx-decode.opc"
ID(mov); sBWL (sz); DIs(dst, d*16+sppp, sz); SC(IMM(1)); F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_19;
+ goto op_semantics_20;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_19;
+ goto op_semantics_20;
break;
}
break;
case 0x00:
{
/** 0011 1111 rega regb rtsd #%1, %2-%0 */
-#line 401 "rx-decode.opc"
+#line 408 "rx-decode.opc"
int rega AU = (op[1] >> 4) & 0x0f;
-#line 401 "rx-decode.opc"
+#line 408 "rx-decode.opc"
int regb AU = op[1] & 0x0f;
if (trace)
{
printf (" regb = 0x%x\n", regb);
}
SYNTAX("rtsd #%1, %2-%0");
-#line 401 "rx-decode.opc"
+#line 408 "rx-decode.opc"
ID(rtsd); SC(IMM(1) * 4); S2R(rega); DR(regb);
-
+
/*----------------------------------------------------------------------*/
/* AND */
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_20:
+ op_semantics_21:
{
/** 0100 00ss rsrc rdst sub %2%S2, %1 */
-#line 536 "rx-decode.opc"
+#line 543 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 536 "rx-decode.opc"
+#line 543 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 536 "rx-decode.opc"
+#line 543 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sub %2%S2, %1");
-#line 536 "rx-decode.opc"
+#line 543 "rx-decode.opc"
ID(sub); S2P(ss, rsrc); SR(rdst); DR(rdst); F_OSZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_20;
+ goto op_semantics_21;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_20;
+ goto op_semantics_21;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_20;
+ goto op_semantics_21;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_21:
+ op_semantics_22:
{
/** 0100 01ss rsrc rdst cmp %2%S2, %1 */
-#line 524 "rx-decode.opc"
+#line 531 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 524 "rx-decode.opc"
+#line 531 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 524 "rx-decode.opc"
+#line 531 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("cmp %2%S2, %1");
-#line 524 "rx-decode.opc"
+#line 531 "rx-decode.opc"
ID(sub); S2P(ss, rsrc); SR(rdst); F_OSZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_21;
+ goto op_semantics_22;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_21;
+ goto op_semantics_22;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_21;
+ goto op_semantics_22;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_22:
+ op_semantics_23:
{
/** 0100 10ss rsrc rdst add %1%S1, %0 */
-#line 500 "rx-decode.opc"
+#line 507 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 500 "rx-decode.opc"
+#line 507 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 500 "rx-decode.opc"
+#line 507 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("add %1%S1, %0");
-#line 500 "rx-decode.opc"
+#line 507 "rx-decode.opc"
ID(add); SP(ss, rsrc); DR(rdst); F_OSZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_22;
+ goto op_semantics_23;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_22;
+ goto op_semantics_23;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_22;
+ goto op_semantics_23;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_23:
+ op_semantics_24:
{
/** 0100 11ss rsrc rdst mul %1%S1, %0 */
-#line 605 "rx-decode.opc"
+#line 650 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 605 "rx-decode.opc"
+#line 650 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 605 "rx-decode.opc"
+#line 650 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mul %1%S1, %0");
-#line 605 "rx-decode.opc"
+#line 650 "rx-decode.opc"
ID(mul); SP(ss, rsrc); DR(rdst); F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_23;
+ goto op_semantics_24;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_23;
+ goto op_semantics_24;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_23;
+ goto op_semantics_24;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_24:
+ op_semantics_25:
{
/** 0101 00ss rsrc rdst and %1%S1, %0 */
-#line 413 "rx-decode.opc"
+#line 420 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 413 "rx-decode.opc"
+#line 420 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 413 "rx-decode.opc"
+#line 420 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("and %1%S1, %0");
-#line 413 "rx-decode.opc"
+#line 420 "rx-decode.opc"
ID(and); SP(ss, rsrc); DR(rdst); F__SZ_;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_24;
+ goto op_semantics_25;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_24;
+ goto op_semantics_25;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_24;
+ goto op_semantics_25;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_25:
+ op_semantics_26:
{
/** 0101 01ss rsrc rdst or %1%S1, %0 */
-#line 431 "rx-decode.opc"
+#line 438 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 431 "rx-decode.opc"
+#line 438 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 431 "rx-decode.opc"
+#line 438 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("or %1%S1, %0");
-#line 431 "rx-decode.opc"
+#line 438 "rx-decode.opc"
ID(or); SP(ss, rsrc); DR(rdst); F__SZ_;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_25;
+ goto op_semantics_26;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_25;
+ goto op_semantics_26;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_25;
+ goto op_semantics_26;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_26:
+ op_semantics_27:
{
/** 0101 1 s ss rsrc rdst movu%s %1, %0 */
-#line 352 "rx-decode.opc"
+#line 359 "rx-decode.opc"
int s AU = (op[0] >> 2) & 0x01;
-#line 352 "rx-decode.opc"
+#line 359 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 352 "rx-decode.opc"
+#line 359 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 352 "rx-decode.opc"
+#line 359 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("movu%s %1, %0");
-#line 352 "rx-decode.opc"
- ID(mov); uBWL(s); SD(ss, rsrc, s); DR(rdst); F_____;
-
+#line 359 "rx-decode.opc"
+ ID(mov); uBW(s); SD(ss, rsrc, s); DR(rdst); F_____;
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_26;
+ goto op_semantics_27;
break;
}
break;
case 0x00:
{
/** 0110 0000 immm rdst sub #%2, %0 */
-#line 533 "rx-decode.opc"
+#line 540 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 533 "rx-decode.opc"
+#line 540 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sub #%2, %0");
-#line 533 "rx-decode.opc"
+#line 540 "rx-decode.opc"
ID(sub); S2C(immm); SR(rdst); DR(rdst); F_OSZC;
-
+
}
break;
}
case 0x00:
{
/** 0110 0001 immm rdst cmp #%2, %1 */
-#line 515 "rx-decode.opc"
+#line 522 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 515 "rx-decode.opc"
+#line 522 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("cmp #%2, %1");
-#line 515 "rx-decode.opc"
+#line 522 "rx-decode.opc"
ID(sub); S2C(immm); SR(rdst); F_OSZC;
-
+
}
break;
}
case 0x00:
{
/** 0110 0010 immm rdst add #%1, %0 */
-#line 497 "rx-decode.opc"
+#line 504 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 497 "rx-decode.opc"
+#line 504 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("add #%1, %0");
-#line 497 "rx-decode.opc"
+#line 504 "rx-decode.opc"
ID(add); SC(immm); DR(rdst); F_OSZC;
-
+
}
break;
}
case 0x00:
{
/** 0110 0011 immm rdst mul #%1, %0 */
-#line 599 "rx-decode.opc"
+#line 616 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 599 "rx-decode.opc"
+#line 616 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mul #%1, %0");
-#line 599 "rx-decode.opc"
- ID(mul); DR(rdst); SC(immm); F_____;
-
+#line 616 "rx-decode.opc"
+ if (immm == 1 && rdst == 0)
+ {
+ ID(nop2);
+ SYNTAX ("nop\t; mul\t#1, r0");
+ }
+ else
+ {
+ ID(mul);
+ }
+ DR(rdst); SC(immm); F_____;
+
}
break;
}
case 0x00:
{
/** 0110 0100 immm rdst and #%1, %0 */
-#line 407 "rx-decode.opc"
+#line 414 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 407 "rx-decode.opc"
+#line 414 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("and #%1, %0");
-#line 407 "rx-decode.opc"
+#line 414 "rx-decode.opc"
ID(and); SC(immm); DR(rdst); F__SZ_;
-
+
}
break;
}
case 0x00:
{
/** 0110 0101 immm rdst or #%1, %0 */
-#line 425 "rx-decode.opc"
+#line 432 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 425 "rx-decode.opc"
+#line 432 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("or #%1, %0");
-#line 425 "rx-decode.opc"
+#line 432 "rx-decode.opc"
ID(or); SC(immm); DR(rdst); F__SZ_;
-
+
}
break;
}
case 0x00:
{
/** 0110 0110 immm rdst mov%s #%1, %0 */
-#line 301 "rx-decode.opc"
+#line 308 "rx-decode.opc"
int immm AU = (op[1] >> 4) & 0x0f;
-#line 301 "rx-decode.opc"
+#line 308 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mov%s #%1, %0");
-#line 301 "rx-decode.opc"
+#line 308 "rx-decode.opc"
ID(mov); DR(rdst); SC(immm); F_____;
-
+
}
break;
}
op[0]);
}
SYNTAX("rtsd #%1");
-#line 398 "rx-decode.opc"
+#line 405 "rx-decode.opc"
ID(rtsd); SC(IMM(1) * 4);
-
+
}
break;
case 0x68:
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_27:
+ op_semantics_28:
{
/** 0110 100i mmmm rdst shlr #%2, %0 */
-#line 685 "rx-decode.opc"
+#line 730 "rx-decode.opc"
int i AU = op[0] & 0x01;
-#line 685 "rx-decode.opc"
+#line 730 "rx-decode.opc"
int mmmm AU = (op[1] >> 4) & 0x0f;
-#line 685 "rx-decode.opc"
+#line 730 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shlr #%2, %0");
-#line 685 "rx-decode.opc"
+#line 730 "rx-decode.opc"
ID(shlr); S2C(i*16+mmmm); SR(rdst); DR(rdst); F__SZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_27;
+ goto op_semantics_28;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_28:
+ op_semantics_29:
{
/** 0110 101i mmmm rdst shar #%2, %0 */
-#line 675 "rx-decode.opc"
+#line 720 "rx-decode.opc"
int i AU = op[0] & 0x01;
-#line 675 "rx-decode.opc"
+#line 720 "rx-decode.opc"
int mmmm AU = (op[1] >> 4) & 0x0f;
-#line 675 "rx-decode.opc"
+#line 720 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shar #%2, %0");
-#line 675 "rx-decode.opc"
+#line 720 "rx-decode.opc"
ID(shar); S2C(i*16+mmmm); SR(rdst); DR(rdst); F_0SZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_28;
+ goto op_semantics_29;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_29:
+ op_semantics_30:
{
/** 0110 110i mmmm rdst shll #%2, %0 */
-#line 665 "rx-decode.opc"
+#line 710 "rx-decode.opc"
int i AU = op[0] & 0x01;
-#line 665 "rx-decode.opc"
+#line 710 "rx-decode.opc"
int mmmm AU = (op[1] >> 4) & 0x0f;
-#line 665 "rx-decode.opc"
+#line 710 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shll #%2, %0");
-#line 665 "rx-decode.opc"
+#line 710 "rx-decode.opc"
ID(shll); S2C(i*16+mmmm); SR(rdst); DR(rdst); F_OSZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_29;
+ goto op_semantics_30;
break;
}
break;
case 0x00:
{
/** 0110 1110 dsta dstb pushm %1-%2 */
-#line 365 "rx-decode.opc"
+#line 372 "rx-decode.opc"
int dsta AU = (op[1] >> 4) & 0x0f;
-#line 365 "rx-decode.opc"
+#line 372 "rx-decode.opc"
int dstb AU = op[1] & 0x0f;
if (trace)
{
printf (" dstb = 0x%x\n", dstb);
}
SYNTAX("pushm %1-%2");
-#line 365 "rx-decode.opc"
+#line 372 "rx-decode.opc"
ID(pushm); SR(dsta); S2R(dstb); F_____;
-
+
}
break;
}
case 0x00:
{
/** 0110 1111 dsta dstb popm %1-%2 */
-#line 362 "rx-decode.opc"
+#line 369 "rx-decode.opc"
int dsta AU = (op[1] >> 4) & 0x0f;
-#line 362 "rx-decode.opc"
+#line 369 "rx-decode.opc"
int dstb AU = op[1] & 0x0f;
if (trace)
{
printf (" dstb = 0x%x\n", dstb);
}
SYNTAX("popm %1-%2");
-#line 362 "rx-decode.opc"
+#line 369 "rx-decode.opc"
ID(popm); SR(dsta); S2R(dstb); F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_30:
+ op_semantics_31:
{
/** 0111 00im rsrc rdst add #%1, %2, %0 */
-#line 506 "rx-decode.opc"
+#line 513 "rx-decode.opc"
int im AU = op[0] & 0x03;
-#line 506 "rx-decode.opc"
+#line 513 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 506 "rx-decode.opc"
+#line 513 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("add #%1, %2, %0");
-#line 506 "rx-decode.opc"
+#line 513 "rx-decode.opc"
ID(add); SC(IMMex(im)); S2R(rsrc); DR(rdst); F_OSZC;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_30;
+ goto op_semantics_31;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_30;
+ goto op_semantics_31;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_30;
+ goto op_semantics_31;
break;
}
break;
switch (op[1] & 0xf0)
{
case 0x00:
- op_semantics_31:
+ op_semantics_32:
{
/** 0111 01im 0000 rsrc cmp #%2, %1%S1 */
-#line 518 "rx-decode.opc"
+#line 525 "rx-decode.opc"
int im AU = op[0] & 0x03;
-#line 518 "rx-decode.opc"
+#line 525 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("cmp #%2, %1%S1");
-#line 518 "rx-decode.opc"
+#line 525 "rx-decode.opc"
ID(sub); SR(rsrc); S2C(IMMex(im)); F_OSZC;
-
+
}
break;
case 0x10:
- op_semantics_32:
+ op_semantics_33:
{
/** 0111 01im 0001rdst mul #%1, %0 */
-#line 602 "rx-decode.opc"
+#line 628 "rx-decode.opc"
int im AU = op[0] & 0x03;
-#line 602 "rx-decode.opc"
+#line 628 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mul #%1, %0");
-#line 602 "rx-decode.opc"
- ID(mul); DR(rdst); SC(IMMex(im)); F_____;
-
+#line 628 "rx-decode.opc"
+ int val = IMMex(im);
+ if (val == 1 && rdst == 0)
+ {
+ SYNTAX("nop\t; mul\t#1, r0");
+ switch (im)
+ {
+ case 2: ID(nop4); break;
+ case 3: ID(nop5); break;
+ case 0: ID(nop6); break;
+ default:
+ ID(mul);
+ SYNTAX("mul #%1, %0");
+ break;
+ }
+ }
+ else
+ {
+ ID(mul);
+ }
+ DR(rdst); SC(val); F_____;
+
}
break;
case 0x20:
- op_semantics_33:
+ op_semantics_34:
{
/** 0111 01im 0010 rdst and #%1, %0 */
-#line 410 "rx-decode.opc"
+#line 417 "rx-decode.opc"
int im AU = op[0] & 0x03;
-#line 410 "rx-decode.opc"
+#line 417 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("and #%1, %0");
-#line 410 "rx-decode.opc"
+#line 417 "rx-decode.opc"
ID(and); SC(IMMex(im)); DR(rdst); F__SZ_;
-
+
}
break;
case 0x30:
- op_semantics_34:
+ op_semantics_35:
{
/** 0111 01im 0011 rdst or #%1, %0 */
-#line 428 "rx-decode.opc"
+#line 435 "rx-decode.opc"
int im AU = op[0] & 0x03;
-#line 428 "rx-decode.opc"
+#line 435 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("or #%1, %0");
-#line 428 "rx-decode.opc"
+#line 435 "rx-decode.opc"
ID(or); SC(IMMex(im)); DR(rdst); F__SZ_;
-
+
}
break;
default: UNSUPPORTED(); break;
case 0x0d:
case 0x0e:
case 0x0f:
- goto op_semantics_31;
+ goto op_semantics_32;
break;
case 0x10:
case 0x11:
case 0x1d:
case 0x1e:
case 0x1f:
- goto op_semantics_32;
+ goto op_semantics_33;
break;
case 0x20:
case 0x21:
case 0x2d:
case 0x2e:
case 0x2f:
- goto op_semantics_33;
+ goto op_semantics_34;
break;
case 0x30:
case 0x31:
case 0x3d:
case 0x3e:
case 0x3f:
- goto op_semantics_34;
+ goto op_semantics_35;
break;
case 0x40:
case 0x41:
case 0x4f:
{
/** 0111 0101 0100 rdst mov%s #%1, %0 */
-#line 282 "rx-decode.opc"
+#line 289 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mov%s #%1, %0");
-#line 282 "rx-decode.opc"
+#line 289 "rx-decode.opc"
ID(mov); DR(rdst); SC(IMM (1)); F_____;
-
+
}
break;
case 0x50:
case 0x5f:
{
/** 0111 0101 0101 rsrc cmp #%2, %1 */
-#line 521 "rx-decode.opc"
+#line 528 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("cmp #%2, %1");
-#line 521 "rx-decode.opc"
+#line 528 "rx-decode.opc"
ID(sub); SR(rsrc); S2C(IMM(1)); F_OSZC;
-
+
}
break;
case 0x60:
op[0], op[1]);
}
SYNTAX("int #%1");
-#line 990 "rx-decode.opc"
+#line 1035 "rx-decode.opc"
ID(int); SC(IMM(1));
-
+
}
break;
case 0x70:
case 0x00:
{
/** 0111 0101 0111 0000 0000 immm mvtipl #%1 */
-#line 957 "rx-decode.opc"
+#line 1002 "rx-decode.opc"
int immm AU = op[2] & 0x0f;
if (trace)
{
printf (" immm = 0x%x\n", immm);
}
SYNTAX("mvtipl #%1");
-#line 957 "rx-decode.opc"
+#line 1002 "rx-decode.opc"
ID(mvtipl); SC(immm);
-
+
}
break;
default: UNSUPPORTED(); break;
switch (op[1] & 0xf0)
{
case 0x00:
- goto op_semantics_31;
+ goto op_semantics_32;
break;
case 0x10:
- goto op_semantics_32;
+ goto op_semantics_33;
break;
case 0x20:
- goto op_semantics_33;
+ goto op_semantics_34;
break;
case 0x30:
- goto op_semantics_34;
+ goto op_semantics_35;
break;
default: UNSUPPORTED(); break;
}
switch (op[1] & 0xf0)
{
case 0x00:
- goto op_semantics_31;
+ goto op_semantics_32;
break;
case 0x10:
- goto op_semantics_32;
+ goto op_semantics_33;
break;
case 0x20:
- goto op_semantics_33;
+ goto op_semantics_34;
break;
case 0x30:
- goto op_semantics_34;
+ goto op_semantics_35;
break;
default: UNSUPPORTED(); break;
}
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_35:
+ op_semantics_36:
{
/** 0111 100b ittt rdst bset #%1, %0 */
-#line 902 "rx-decode.opc"
+#line 947 "rx-decode.opc"
int b AU = op[0] & 0x01;
-#line 902 "rx-decode.opc"
+#line 947 "rx-decode.opc"
int ittt AU = (op[1] >> 4) & 0x0f;
-#line 902 "rx-decode.opc"
+#line 947 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("bset #%1, %0");
-#line 902 "rx-decode.opc"
+#line 947 "rx-decode.opc"
ID(bset); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____;
-
-
+
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_35;
+ goto op_semantics_36;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_36:
+ op_semantics_37:
{
/** 0111 101b ittt rdst bclr #%1, %0 */
-#line 914 "rx-decode.opc"
+#line 959 "rx-decode.opc"
int b AU = op[0] & 0x01;
-#line 914 "rx-decode.opc"
+#line 959 "rx-decode.opc"
int ittt AU = (op[1] >> 4) & 0x0f;
-#line 914 "rx-decode.opc"
+#line 959 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("bclr #%1, %0");
-#line 914 "rx-decode.opc"
+#line 959 "rx-decode.opc"
ID(bclr); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____;
-
-
+
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_36;
+ goto op_semantics_37;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_37:
+ op_semantics_38:
{
/** 0111 110b ittt rdst btst #%2, %1 */
-#line 926 "rx-decode.opc"
+#line 971 "rx-decode.opc"
int b AU = op[0] & 0x01;
-#line 926 "rx-decode.opc"
+#line 971 "rx-decode.opc"
int ittt AU = (op[1] >> 4) & 0x0f;
-#line 926 "rx-decode.opc"
+#line 971 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("btst #%2, %1");
-#line 926 "rx-decode.opc"
+#line 971 "rx-decode.opc"
ID(btst); BWL(LSIZE); S2C(b*16+ittt); SR(rdst); F___ZC;
-
-
+
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_37;
+ goto op_semantics_38;
break;
}
break;
case 0x00:
{
/** 0111 1110 0000 rdst not %0 */
-#line 455 "rx-decode.opc"
+#line 462 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("not %0");
-#line 455 "rx-decode.opc"
+#line 462 "rx-decode.opc"
ID(xor); DR(rdst); SR(rdst); S2C(~0); F__SZ_;
-
+
}
break;
case 0x10:
{
/** 0111 1110 0001 rdst neg %0 */
-#line 476 "rx-decode.opc"
+#line 483 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("neg %0");
-#line 476 "rx-decode.opc"
+#line 483 "rx-decode.opc"
ID(sub); DR(rdst); SC(0); S2R(rdst); F_OSZC;
-
+
}
break;
case 0x20:
{
/** 0111 1110 0010 rdst abs %0 */
-#line 558 "rx-decode.opc"
+#line 565 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("abs %0");
-#line 558 "rx-decode.opc"
+#line 565 "rx-decode.opc"
ID(abs); DR(rdst); SR(rdst); F_OSZ_;
-
+
}
break;
case 0x30:
{
/** 0111 1110 0011 rdst sat %0 */
-#line 840 "rx-decode.opc"
+#line 885 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sat %0");
-#line 840 "rx-decode.opc"
+#line 885 "rx-decode.opc"
ID(sat); DR (rdst);
-
+
}
break;
case 0x40:
{
/** 0111 1110 0100 rdst rorc %0 */
-#line 700 "rx-decode.opc"
+#line 745 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("rorc %0");
-#line 700 "rx-decode.opc"
+#line 745 "rx-decode.opc"
ID(rorc); DR(rdst); F__SZC;
-
+
}
break;
case 0x50:
{
/** 0111 1110 0101 rdst rolc %0 */
-#line 697 "rx-decode.opc"
+#line 742 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("rolc %0");
-#line 697 "rx-decode.opc"
+#line 742 "rx-decode.opc"
ID(rolc); DR(rdst); F__SZC;
-
+
}
break;
case 0x80:
case 0xa0:
{
/** 0111 1110 10sz rsrc push%s %1 */
-#line 371 "rx-decode.opc"
+#line 378 "rx-decode.opc"
int sz AU = (op[1] >> 4) & 0x03;
-#line 371 "rx-decode.opc"
+#line 378 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("push%s %1");
-#line 371 "rx-decode.opc"
+#line 378 "rx-decode.opc"
ID(mov); BWL(sz); OP(0, RX_Operand_Predec, 0, 0); SR(rsrc); F_____;
-
+
}
break;
case 0xb0:
{
/** 0111 1110 1011 rdst pop %0 */
-#line 368 "rx-decode.opc"
+#line 375 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("pop %0");
-#line 368 "rx-decode.opc"
+#line 375 "rx-decode.opc"
ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(rdst); F_____;
-
+
}
break;
case 0xc0:
case 0xd0:
{
/** 0111 1110 110 crsrc pushc %1 */
-#line 963 "rx-decode.opc"
+#line 1008 "rx-decode.opc"
int crsrc AU = op[1] & 0x1f;
if (trace)
{
printf (" crsrc = 0x%x\n", crsrc);
}
SYNTAX("pushc %1");
-#line 963 "rx-decode.opc"
+#line 1008 "rx-decode.opc"
ID(mov); OP(0, RX_Operand_Predec, 0, 0); SR(crsrc + 16);
-
+
}
break;
case 0xe0:
case 0xf0:
{
/** 0111 1110 111 crdst popc %0 */
-#line 960 "rx-decode.opc"
+#line 1005 "rx-decode.opc"
int crdst AU = op[1] & 0x1f;
if (trace)
{
printf (" crdst = 0x%x\n", crdst);
}
SYNTAX("popc %0");
-#line 960 "rx-decode.opc"
+#line 1005 "rx-decode.opc"
ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(crdst + 16);
-
+
}
break;
default: UNSUPPORTED(); break;
case 0x0f:
{
/** 0111 1111 0000 rsrc jmp %0 */
-#line 750 "rx-decode.opc"
+#line 795 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("jmp %0");
-#line 750 "rx-decode.opc"
+#line 795 "rx-decode.opc"
ID(branch); DR(rsrc);
-
+
}
break;
case 0x10:
case 0x1f:
{
/** 0111 1111 0001 rsrc jsr %0 */
-#line 753 "rx-decode.opc"
+#line 798 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("jsr %0");
-#line 753 "rx-decode.opc"
+#line 798 "rx-decode.opc"
ID(jsr); DR(rsrc);
-
+
}
break;
case 0x40:
case 0x4f:
{
/** 0111 1111 0100 rsrc bra.l %0 */
-#line 746 "rx-decode.opc"
+#line 791 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("bra.l %0");
-#line 746 "rx-decode.opc"
+#line 791 "rx-decode.opc"
ID(branchrel); DR(rsrc);
-
-
+
+
}
break;
case 0x50:
case 0x5f:
{
/** 0111 1111 0101 rsrc bsr.l %0 */
-#line 762 "rx-decode.opc"
+#line 807 "rx-decode.opc"
int rsrc AU = op[1] & 0x0f;
if (trace)
{
printf (" rsrc = 0x%x\n", rsrc);
}
SYNTAX("bsr.l %0");
-#line 762 "rx-decode.opc"
+#line 807 "rx-decode.opc"
ID(jsrrel); DR(rsrc);
-
+
}
break;
case 0x80:
case 0x82:
{
/** 0111 1111 1000 00sz suntil%s */
-#line 786 "rx-decode.opc"
+#line 831 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("suntil%s");
-#line 786 "rx-decode.opc"
+#line 831 "rx-decode.opc"
ID(suntil); BWL(sz); F___ZC;
-
+
}
break;
case 0x83:
op[0], op[1]);
}
SYNTAX("scmpu");
-#line 777 "rx-decode.opc"
+#line 822 "rx-decode.opc"
ID(scmpu); F___ZC;
-
+
}
break;
case 0x84:
case 0x86:
{
/** 0111 1111 1000 01sz swhile%s */
-#line 789 "rx-decode.opc"
+#line 834 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("swhile%s");
-#line 789 "rx-decode.opc"
+#line 834 "rx-decode.opc"
ID(swhile); BWL(sz); F___ZC;
-
+
}
break;
case 0x87:
op[0], op[1]);
}
SYNTAX("smovu");
-#line 780 "rx-decode.opc"
+#line 825 "rx-decode.opc"
ID(smovu);
-
+
}
break;
case 0x88:
case 0x8a:
{
/** 0111 1111 1000 10sz sstr%s */
-#line 795 "rx-decode.opc"
+#line 840 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("sstr%s");
-#line 795 "rx-decode.opc"
+#line 840 "rx-decode.opc"
ID(sstr); BWL(sz);
-
+
/*----------------------------------------------------------------------*/
/* RMPA */
-
+
}
break;
case 0x8b:
op[0], op[1]);
}
SYNTAX("smovb");
-#line 783 "rx-decode.opc"
+#line 828 "rx-decode.opc"
ID(smovb);
-
+
}
break;
case 0x8c:
case 0x8e:
{
/** 0111 1111 1000 11sz rmpa%s */
-#line 801 "rx-decode.opc"
+#line 846 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("rmpa%s");
-#line 801 "rx-decode.opc"
+#line 846 "rx-decode.opc"
ID(rmpa); BWL(sz); F_OS__;
-
+
/*----------------------------------------------------------------------*/
/* HI/LO stuff */
-
+
}
break;
case 0x8f:
op[0], op[1]);
}
SYNTAX("smovf");
-#line 792 "rx-decode.opc"
+#line 837 "rx-decode.opc"
ID(smovf);
-
+
}
break;
case 0x93:
op[0], op[1]);
}
SYNTAX("satr");
-#line 843 "rx-decode.opc"
+#line 888 "rx-decode.opc"
ID(satr);
-
+
/*----------------------------------------------------------------------*/
/* FLOAT */
-
+
}
break;
case 0x94:
op[0], op[1]);
}
SYNTAX("rtfi");
-#line 978 "rx-decode.opc"
+#line 1023 "rx-decode.opc"
ID(rtfi);
-
+
}
break;
case 0x95:
op[0], op[1]);
}
SYNTAX("rte");
-#line 981 "rx-decode.opc"
+#line 1026 "rx-decode.opc"
ID(rte);
-
+
}
break;
case 0x96:
op[0], op[1]);
}
SYNTAX("wait");
-#line 993 "rx-decode.opc"
+#line 1038 "rx-decode.opc"
ID(wait);
-
+
/*----------------------------------------------------------------------*/
/* SCcnd */
-
+
}
break;
case 0xa0:
case 0xaf:
{
/** 0111 1111 1010 rdst setpsw %0 */
-#line 954 "rx-decode.opc"
+#line 999 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("setpsw %0");
-#line 954 "rx-decode.opc"
+#line 999 "rx-decode.opc"
ID(setpsw); DF(rdst);
-
+
}
break;
case 0xb0:
case 0xbf:
{
/** 0111 1111 1011 rdst clrpsw %0 */
-#line 951 "rx-decode.opc"
+#line 996 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("clrpsw %0");
-#line 951 "rx-decode.opc"
+#line 996 "rx-decode.opc"
ID(clrpsw); DF(rdst);
-
+
}
break;
default: UNSUPPORTED(); break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_38:
+ op_semantics_39:
{
/** 10sz 0dsp a dst b src mov%s %1, %0 */
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int sz AU = (op[0] >> 4) & 0x03;
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int dsp AU = op[0] & 0x07;
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int a AU = (op[1] >> 7) & 0x01;
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int dst AU = (op[1] >> 4) & 0x07;
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int b AU = (op[1] >> 3) & 0x01;
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
int src AU = op[1] & 0x07;
if (trace)
{
printf (" src = 0x%x\n", src);
}
SYNTAX("mov%s %1, %0");
-#line 329 "rx-decode.opc"
+#line 336 "rx-decode.opc"
ID(mov); sBWL(sz); DIs(dst, dsp*4+a*2+b, sz); SR(src); F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_39:
+ op_semantics_40:
{
/** 10sz 1dsp a src b dst mov%s %1, %0 */
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int sz AU = (op[0] >> 4) & 0x03;
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int dsp AU = op[0] & 0x07;
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int a AU = (op[1] >> 7) & 0x01;
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int src AU = (op[1] >> 4) & 0x07;
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int b AU = (op[1] >> 3) & 0x01;
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
int dst AU = op[1] & 0x07;
if (trace)
{
printf (" dst = 0x%x\n", dst);
}
SYNTAX("mov%s %1, %0");
-#line 326 "rx-decode.opc"
+#line 333 "rx-decode.opc"
ID(mov); sBWL(sz); DR(dst); SIs(src, dsp*4+a*2+b, sz); F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_38;
+ goto op_semantics_39;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_39;
+ goto op_semantics_40;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_40:
+ op_semantics_41:
{
/** 1011 w dsp a src b dst movu%s %1, %0 */
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int w AU = (op[0] >> 3) & 0x01;
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int dsp AU = op[0] & 0x07;
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int a AU = (op[1] >> 7) & 0x01;
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int src AU = (op[1] >> 4) & 0x07;
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int b AU = (op[1] >> 3) & 0x01;
-#line 349 "rx-decode.opc"
+#line 356 "rx-decode.opc"
int dst AU = op[1] & 0x07;
if (trace)
{
printf (" dst = 0x%x\n", dst);
}
SYNTAX("movu%s %1, %0");
-#line 349 "rx-decode.opc"
- ID(mov); uBWL(w); DR(dst); SIs(src, dsp*4+a*2+b, w); F_____;
-
+#line 356 "rx-decode.opc"
+ ID(mov); uBW(w); DR(dst); SIs(src, dsp*4+a*2+b, w); F_____;
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_40;
+ goto op_semantics_41;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_41:
+ op_semantics_42:
{
/** 11sz sd ss rsrc rdst mov%s %1, %0 */
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
int sz AU = (op[0] >> 4) & 0x03;
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
int sd AU = (op[0] >> 2) & 0x03;
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("mov%s %1, %0");
-#line 307 "rx-decode.opc"
+#line 314 "rx-decode.opc"
if (sd == 3 && ss == 3 && sz == 2 && rsrc == 0 && rdst == 0)
{
ID(nop2);
- rx->syntax = "nop";
+ SYNTAX ("nop\t; mov.l\tr0, r0");
}
else
{
SD(ss, rsrc, sz); DD(sd, rdst, sz);
}
}
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_41;
+ goto op_semantics_42;
break;
}
break;
switch (op[1] & 0x08)
{
case 0x00:
- op_semantics_42:
+ op_semantics_43:
{
/** 1111 00sd rdst 0bit bset #%1, %0%S0 */
-#line 894 "rx-decode.opc"
+#line 939 "rx-decode.opc"
int sd AU = op[0] & 0x03;
-#line 894 "rx-decode.opc"
+#line 939 "rx-decode.opc"
int rdst AU = (op[1] >> 4) & 0x0f;
-#line 894 "rx-decode.opc"
+#line 939 "rx-decode.opc"
int bit AU = op[1] & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bset #%1, %0%S0");
-#line 894 "rx-decode.opc"
+#line 939 "rx-decode.opc"
ID(bset); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____;
-
+
}
break;
case 0x08:
- op_semantics_43:
+ op_semantics_44:
{
/** 1111 00sd rdst 1bit bclr #%1, %0%S0 */
-#line 906 "rx-decode.opc"
+#line 951 "rx-decode.opc"
int sd AU = op[0] & 0x03;
-#line 906 "rx-decode.opc"
+#line 951 "rx-decode.opc"
int rdst AU = (op[1] >> 4) & 0x0f;
-#line 906 "rx-decode.opc"
+#line 951 "rx-decode.opc"
int bit AU = op[1] & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bclr #%1, %0%S0");
-#line 906 "rx-decode.opc"
+#line 951 "rx-decode.opc"
ID(bclr); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____;
-
+
}
break;
}
switch (op[1] & 0x08)
{
case 0x00:
- goto op_semantics_42;
+ goto op_semantics_43;
break;
case 0x08:
- goto op_semantics_43;
+ goto op_semantics_44;
break;
}
break;
switch (op[1] & 0x08)
{
case 0x00:
- goto op_semantics_42;
+ goto op_semantics_43;
break;
case 0x08:
- goto op_semantics_43;
+ goto op_semantics_44;
break;
}
break;
switch (op[1] & 0x08)
{
case 0x00:
- goto op_semantics_42;
+ goto op_semantics_43;
break;
case 0x08:
- goto op_semantics_43;
+ goto op_semantics_44;
break;
}
break;
{
case 0x00:
case 0x04:
- op_semantics_44:
+ op_semantics_45:
{
/** 1111 01sd rdst 0bit btst #%2, %1%S1 */
-#line 918 "rx-decode.opc"
+#line 963 "rx-decode.opc"
int sd AU = op[0] & 0x03;
-#line 918 "rx-decode.opc"
+#line 963 "rx-decode.opc"
int rdst AU = (op[1] >> 4) & 0x0f;
-#line 918 "rx-decode.opc"
+#line 963 "rx-decode.opc"
int bit AU = op[1] & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("btst #%2, %1%S1");
-#line 918 "rx-decode.opc"
+#line 963 "rx-decode.opc"
ID(btst); BWL(BSIZE); S2C(bit); SD(sd, rdst, BSIZE); F___ZC;
-
+
}
break;
case 0x08:
- op_semantics_45:
+ op_semantics_46:
{
/** 1111 01ss rsrc 10sz push%s %1 */
-#line 374 "rx-decode.opc"
+#line 381 "rx-decode.opc"
int ss AU = op[0] & 0x03;
-#line 374 "rx-decode.opc"
+#line 381 "rx-decode.opc"
int rsrc AU = (op[1] >> 4) & 0x0f;
-#line 374 "rx-decode.opc"
+#line 381 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("push%s %1");
-#line 374 "rx-decode.opc"
+#line 381 "rx-decode.opc"
ID(mov); BWL(sz); OP(0, RX_Operand_Predec, 0, 0); SD(ss, rsrc, sz); F_____;
-
+
/*----------------------------------------------------------------------*/
/* XCHG */
-
+
}
break;
default: UNSUPPORTED(); break;
{
case 0x00:
case 0x04:
- goto op_semantics_44;
+ goto op_semantics_45;
break;
case 0x08:
- goto op_semantics_45;
+ goto op_semantics_46;
break;
default: UNSUPPORTED(); break;
}
{
case 0x00:
case 0x04:
- goto op_semantics_44;
+ goto op_semantics_45;
break;
case 0x08:
- goto op_semantics_45;
+ goto op_semantics_46;
break;
default: UNSUPPORTED(); break;
}
{
case 0x00:
case 0x04:
- goto op_semantics_44;
+ goto op_semantics_45;
break;
case 0x08:
- goto op_semantics_45;
+ goto op_semantics_46;
break;
default: UNSUPPORTED(); break;
}
switch (op[1] & 0x00)
{
case 0x00:
- op_semantics_46:
+ op_semantics_47:
{
/** 1111 10sd rdst im sz mov%s #%1, %0 */
-#line 285 "rx-decode.opc"
+#line 292 "rx-decode.opc"
int sd AU = op[0] & 0x03;
-#line 285 "rx-decode.opc"
+#line 292 "rx-decode.opc"
int rdst AU = (op[1] >> 4) & 0x0f;
-#line 285 "rx-decode.opc"
+#line 292 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 285 "rx-decode.opc"
+#line 292 "rx-decode.opc"
int sz AU = op[1] & 0x03;
if (trace)
{
printf (" sz = 0x%x\n", sz);
}
SYNTAX("mov%s #%1, %0");
-#line 285 "rx-decode.opc"
+#line 292 "rx-decode.opc"
ID(mov); DD(sd, rdst, sz);
if ((im == 1 && sz == 0)
|| (im == 2 && sz == 1)
SC(IMMex(im));
}
F_____;
-
+
}
break;
}
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_46;
+ goto op_semantics_47;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_46;
+ goto op_semantics_47;
break;
}
break;
switch (op[1] & 0x00)
{
case 0x00:
- goto op_semantics_46;
+ goto op_semantics_47;
break;
}
break;
case 0x00:
{
/** 1111 1100 0000 0011 rsrc rdst sbb %1, %0 */
-#line 548 "rx-decode.opc"
+#line 555 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 548 "rx-decode.opc"
+#line 555 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("sbb %1, %0");
-#line 548 "rx-decode.opc"
+#line 555 "rx-decode.opc"
ID(sbb); SR (rsrc); DR(rdst); F_OSZC;
-
+
/* FIXME: only supports .L */
}
break;
case 0x00:
{
/** 1111 1100 0000 0111 rsrc rdst neg %2, %0 */
-#line 479 "rx-decode.opc"
+#line 486 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 479 "rx-decode.opc"
+#line 486 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("neg %2, %0");
-#line 479 "rx-decode.opc"
+#line 486 "rx-decode.opc"
ID(sub); DR(rdst); SC(0); S2R(rsrc); F_OSZC;
-
+
/*----------------------------------------------------------------------*/
/* ADC */
-
+
}
break;
}
case 0x00:
{
/** 1111 1100 0000 1011 rsrc rdst adc %1, %0 */
-#line 488 "rx-decode.opc"
+#line 495 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 488 "rx-decode.opc"
+#line 495 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("adc %1, %0");
-#line 488 "rx-decode.opc"
+#line 495 "rx-decode.opc"
ID(adc); SR(rsrc); DR(rdst); F_OSZC;
-
+
}
break;
}
case 0x00:
{
/** 1111 1100 0000 1111 rsrc rdst abs %1, %0 */
-#line 561 "rx-decode.opc"
+#line 568 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 561 "rx-decode.opc"
+#line 568 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("abs %1, %0");
-#line 561 "rx-decode.opc"
+#line 568 "rx-decode.opc"
ID(abs); DR(rdst); SR(rsrc); F_OSZ_;
-
+
/*----------------------------------------------------------------------*/
/* MAX */
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_47:
+ op_semantics_48:
{
/** 1111 1100 0001 00ss rsrc rdst max %1%S1, %0 */
-#line 570 "rx-decode.opc"
+#line 587 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 570 "rx-decode.opc"
+#line 587 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 570 "rx-decode.opc"
+#line 587 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("max %1%S1, %0");
-#line 570 "rx-decode.opc"
+#line 587 "rx-decode.opc"
if (ss == 3 && rsrc == 0 && rdst == 0)
{
ID(nop3);
- rx->syntax = "nop";
+ SYNTAX("nop\t; max\tr0, r0");
}
else
{
ID(max); SP(ss, rsrc); DR(rdst);
}
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_47;
+ goto op_semantics_48;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_47;
+ goto op_semantics_48;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_47;
+ goto op_semantics_48;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_48:
+ op_semantics_49:
{
/** 1111 1100 0001 01ss rsrc rdst min %1%S1, %0 */
-#line 590 "rx-decode.opc"
+#line 607 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 590 "rx-decode.opc"
+#line 607 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 590 "rx-decode.opc"
+#line 607 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("min %1%S1, %0");
-#line 590 "rx-decode.opc"
+#line 607 "rx-decode.opc"
ID(min); SP(ss, rsrc); DR(rdst);
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_48;
+ goto op_semantics_49;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_48;
+ goto op_semantics_49;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_48;
+ goto op_semantics_49;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_49:
+ op_semantics_50:
{
/** 1111 1100 0001 10ss rsrc rdst emul %1%S1, %0 */
-#line 620 "rx-decode.opc"
+#line 665 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 620 "rx-decode.opc"
+#line 665 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 620 "rx-decode.opc"
+#line 665 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emul %1%S1, %0");
-#line 620 "rx-decode.opc"
+#line 665 "rx-decode.opc"
ID(emul); SP(ss, rsrc); DR(rdst);
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_49;
+ goto op_semantics_50;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_49;
+ goto op_semantics_50;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_49;
+ goto op_semantics_50;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_50:
+ op_semantics_51:
{
/** 1111 1100 0001 11ss rsrc rdst emulu %1%S1, %0 */
-#line 632 "rx-decode.opc"
+#line 677 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 632 "rx-decode.opc"
+#line 677 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 632 "rx-decode.opc"
+#line 677 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emulu %1%S1, %0");
-#line 632 "rx-decode.opc"
+#line 677 "rx-decode.opc"
ID(emulu); SP(ss, rsrc); DR(rdst);
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_50;
+ goto op_semantics_51;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_50;
+ goto op_semantics_51;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_50;
+ goto op_semantics_51;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_51:
+ op_semantics_52:
{
/** 1111 1100 0010 00ss rsrc rdst div %1%S1, %0 */
-#line 644 "rx-decode.opc"
+#line 689 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 644 "rx-decode.opc"
+#line 689 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 644 "rx-decode.opc"
+#line 689 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("div %1%S1, %0");
-#line 644 "rx-decode.opc"
+#line 689 "rx-decode.opc"
ID(div); SP(ss, rsrc); DR(rdst); F_O___;
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_51;
+ goto op_semantics_52;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_51;
+ goto op_semantics_52;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_51;
+ goto op_semantics_52;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_52:
+ op_semantics_53:
{
/** 1111 1100 0010 01ss rsrc rdst divu %1%S1, %0 */
-#line 656 "rx-decode.opc"
+#line 701 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 656 "rx-decode.opc"
+#line 701 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 656 "rx-decode.opc"
+#line 701 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("divu %1%S1, %0");
-#line 656 "rx-decode.opc"
+#line 701 "rx-decode.opc"
ID(divu); SP(ss, rsrc); DR(rdst); F_O___;
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_52;
+ goto op_semantics_53;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_52;
+ goto op_semantics_53;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_52;
+ goto op_semantics_53;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_53:
+ op_semantics_54:
{
/** 1111 1100 0011 00ss rsrc rdst tst %1%S1, %2 */
-#line 467 "rx-decode.opc"
+#line 474 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 467 "rx-decode.opc"
+#line 474 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 467 "rx-decode.opc"
+#line 474 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("tst %1%S1, %2");
-#line 467 "rx-decode.opc"
+#line 474 "rx-decode.opc"
ID(and); SP(ss, rsrc); S2R(rdst); F__SZ_;
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_53;
+ goto op_semantics_54;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_53;
+ goto op_semantics_54;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_53;
+ goto op_semantics_54;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_54:
+ op_semantics_55:
{
/** 1111 1100 0011 01ss rsrc rdst xor %1%S1, %0 */
-#line 446 "rx-decode.opc"
+#line 453 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 446 "rx-decode.opc"
+#line 453 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 446 "rx-decode.opc"
+#line 453 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("xor %1%S1, %0");
-#line 446 "rx-decode.opc"
+#line 453 "rx-decode.opc"
ID(xor); SP(ss, rsrc); DR(rdst); F__SZ_;
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_54;
+ goto op_semantics_55;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_54;
+ goto op_semantics_55;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_54;
+ goto op_semantics_55;
break;
}
break;
case 0x00:
{
/** 1111 1100 0011 1011 rsrc rdst not %1, %0 */
-#line 458 "rx-decode.opc"
+#line 465 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 458 "rx-decode.opc"
+#line 465 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("not %1, %0");
-#line 458 "rx-decode.opc"
+#line 465 "rx-decode.opc"
ID(xor); DR(rdst); SR(rsrc); S2C(~0); F__SZ_;
-
+
/*----------------------------------------------------------------------*/
/* TST */
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_55:
+ op_semantics_56:
{
/** 1111 1100 0100 00ss rsrc rdst xchg %1%S1, %0 */
-#line 380 "rx-decode.opc"
+#line 387 "rx-decode.opc"
int ss AU = op[1] & 0x03;
-#line 380 "rx-decode.opc"
+#line 387 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 380 "rx-decode.opc"
+#line 387 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("xchg %1%S1, %0");
-#line 380 "rx-decode.opc"
+#line 387 "rx-decode.opc"
ID(xchg); DR(rdst); SP(ss, rsrc);
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_55;
+ goto op_semantics_56;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_55;
+ goto op_semantics_56;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_55;
+ goto op_semantics_56;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_56:
+ op_semantics_57:
{
/** 1111 1100 0100 01sd rsrc rdst itof %1%S1, %0 */
-#line 885 "rx-decode.opc"
+#line 930 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 885 "rx-decode.opc"
+#line 930 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 885 "rx-decode.opc"
+#line 930 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("itof %1%S1, %0");
-#line 885 "rx-decode.opc"
+#line 930 "rx-decode.opc"
ID(itof); DR (rdst); SP(sd, rsrc); F__SZ_;
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_56;
+ goto op_semantics_57;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_56;
+ goto op_semantics_57;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_56;
+ goto op_semantics_57;
break;
}
break;
- case 0x60:
+ case 0x4b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_57:
{
- /** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */
-#line 897 "rx-decode.opc"
- int sd AU = op[1] & 0x03;
-#line 897 "rx-decode.opc"
- int rdst AU = (op[2] >> 4) & 0x0f;
-#line 897 "rx-decode.opc"
- int rsrc AU = op[2] & 0x0f;
+ /** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */
+#line 1056 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1056 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */",
+ "/** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */",
op[0], op[1], op[2]);
- printf (" sd = 0x%x,", sd);
- printf (" rdst = 0x%x,", rdst);
- printf (" rsrc = 0x%x\n", rsrc);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("bset %1, %0%S0");
-#line 897 "rx-decode.opc"
- ID(bset); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____;
- if (sd == 3) /* bset reg,reg */
- BWL(LSIZE);
-
+ SYNTAX("stz %1, %0");
+#line 1056 "rx-decode.opc"
+ ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_z);
+
}
break;
}
break;
- case 0x61:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_57;
- break;
- }
- break;
- case 0x62:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_57;
- break;
- }
- break;
- case 0x63:
+ case 0x4f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_57;
+ {
+ /** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */
+#line 1059 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1059 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("stnz %1, %0");
+#line 1059 "rx-decode.opc"
+ ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_nz);
+
+ }
break;
}
break;
- case 0x64:
+ case 0x54:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_58:
{
- /** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */
-#line 909 "rx-decode.opc"
+ /** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */
+#line 1116 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 909 "rx-decode.opc"
- int rdst AU = (op[2] >> 4) & 0x0f;
-#line 909 "rx-decode.opc"
- int rsrc AU = op[2] & 0x0f;
+#line 1116 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1116 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */",
+ "/** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
- printf (" rdst = 0x%x,", rdst);
- printf (" rsrc = 0x%x\n", rsrc);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("bclr %1, %0%S0");
-#line 909 "rx-decode.opc"
- ID(bclr); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____;
- if (sd == 3) /* bset reg,reg */
- BWL(LSIZE);
-
+ SYNTAX("utof %1%S1, %0");
+#line 1116 "rx-decode.opc"
+ ID(utof); DR (rdst); SP(sd, rsrc); F__SZ_;
+
}
break;
}
break;
- case 0x65:
+ case 0x55:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x66:
+ case 0x56:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x67:
+ case 0x57:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x68:
+ case 0x60:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_59:
{
- /** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */
-#line 921 "rx-decode.opc"
+ /** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */
+#line 942 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 921 "rx-decode.opc"
+#line 942 "rx-decode.opc"
int rdst AU = (op[2] >> 4) & 0x0f;
-#line 921 "rx-decode.opc"
+#line 942 "rx-decode.opc"
int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */",
+ "/** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rdst = 0x%x,", rdst);
printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("btst %2, %1%S1");
-#line 921 "rx-decode.opc"
- ID(btst); BWL(BSIZE); S2R(rsrc); SD(sd, rdst, BSIZE); F___ZC;
+ SYNTAX("bset %1, %0%S0");
+#line 942 "rx-decode.opc"
+ ID(bset); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____;
if (sd == 3) /* bset reg,reg */
BWL(LSIZE);
-
+
}
break;
}
break;
- case 0x69:
+ case 0x61:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x6a:
+ case 0x62:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x6b:
+ case 0x63:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x6c:
+ case 0x64:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_60:
{
- /** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */
-#line 933 "rx-decode.opc"
+ /** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */
+#line 954 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 933 "rx-decode.opc"
+#line 954 "rx-decode.opc"
int rdst AU = (op[2] >> 4) & 0x0f;
-#line 933 "rx-decode.opc"
+#line 954 "rx-decode.opc"
int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */",
+ "/** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rdst = 0x%x,", rdst);
printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("bnot %1, %0%S0");
-#line 933 "rx-decode.opc"
- ID(bnot); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE);
+ SYNTAX("bclr %1, %0%S0");
+#line 954 "rx-decode.opc"
+ ID(bclr); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____;
if (sd == 3) /* bset reg,reg */
BWL(LSIZE);
-
+
}
break;
}
break;
- case 0x6d:
+ case 0x65:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x6e:
+ case 0x66:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x6f:
+ case 0x67:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x80:
+ case 0x68:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_61:
{
- /** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */
-#line 864 "rx-decode.opc"
+ /** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */
+#line 966 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 864 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 864 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+#line 966 "rx-decode.opc"
+ int rdst AU = (op[2] >> 4) & 0x0f;
+#line 966 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */",
+ "/** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("fsub %1%S1, %0");
-#line 864 "rx-decode.opc"
- ID(fsub); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("btst %2, %1%S1");
+#line 966 "rx-decode.opc"
+ ID(btst); BWL(BSIZE); S2R(rsrc); SD(sd, rdst, BSIZE); F___ZC;
+ if (sd == 3) /* bset reg,reg */
+ BWL(LSIZE);
+
}
break;
}
break;
- case 0x81:
+ case 0x69:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x82:
+ case 0x6a:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x83:
+ case 0x6b:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x84:
+ case 0x6c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_62:
{
- /** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */
-#line 858 "rx-decode.opc"
+ /** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */
+#line 978 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 858 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 858 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+#line 978 "rx-decode.opc"
+ int rdst AU = (op[2] >> 4) & 0x0f;
+#line 978 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */",
+ "/** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("fcmp %1%S1, %0");
-#line 858 "rx-decode.opc"
- ID(fcmp); DR(rdst); SD(sd, rsrc, LSIZE); F_OSZ_;
-
+ SYNTAX("bnot %1, %0%S0");
+#line 978 "rx-decode.opc"
+ ID(bnot); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE);
+ if (sd == 3) /* bset reg,reg */
+ BWL(LSIZE);
+
}
break;
}
break;
- case 0x85:
+ case 0x6d:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x86:
+ case 0x6e:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x87:
+ case 0x6f:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x88:
+ case 0x80:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_63:
{
- /** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */
-#line 852 "rx-decode.opc"
+ /** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */
+#line 909 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 852 "rx-decode.opc"
+#line 909 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 852 "rx-decode.opc"
+#line 909 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */",
+ "/** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("fadd %1%S1, %0");
-#line 852 "rx-decode.opc"
- ID(fadd); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("fsub %1%S1, %0");
+#line 909 "rx-decode.opc"
+ ID(fsub); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
}
break;
}
break;
- case 0x89:
+ case 0x81:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x8a:
+ case 0x82:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x8b:
+ case 0x83:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x8c:
+ case 0x84:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_64:
{
- /** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */
-#line 873 "rx-decode.opc"
+ /** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */
+#line 903 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 873 "rx-decode.opc"
+#line 903 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 873 "rx-decode.opc"
+#line 903 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */",
+ "/** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("fmul %1%S1, %0");
-#line 873 "rx-decode.opc"
- ID(fmul); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("fcmp %1%S1, %0");
+#line 903 "rx-decode.opc"
+ ID(fcmp); DR(rdst); SD(sd, rsrc, LSIZE); F_OSZ_;
+
}
break;
}
break;
- case 0x8d:
+ case 0x85:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x8e:
+ case 0x86:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x8f:
+ case 0x87:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x90:
+ case 0x88:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_65:
{
- /** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */
-#line 879 "rx-decode.opc"
+ /** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */
+#line 897 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 879 "rx-decode.opc"
+#line 897 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 879 "rx-decode.opc"
+#line 897 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */",
+ "/** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("fdiv %1%S1, %0");
-#line 879 "rx-decode.opc"
- ID(fdiv); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("fadd %1%S1, %0");
+#line 897 "rx-decode.opc"
+ ID(fadd); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
}
break;
}
break;
- case 0x91:
+ case 0x89:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x92:
+ case 0x8a:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x93:
+ case 0x8b:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x94:
+ case 0x8c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_66:
{
- /** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */
-#line 867 "rx-decode.opc"
+ /** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */
+#line 918 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 867 "rx-decode.opc"
+#line 918 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 867 "rx-decode.opc"
+#line 918 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */",
+ "/** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("ftoi %1%S1, %0");
-#line 867 "rx-decode.opc"
- ID(ftoi); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("fmul %1%S1, %0");
+#line 918 "rx-decode.opc"
+ ID(fmul); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
}
break;
}
break;
- case 0x95:
+ case 0x8d:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x96:
+ case 0x8e:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x97:
+ case 0x8f:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x98:
+ case 0x90:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_67:
{
- /** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */
-#line 882 "rx-decode.opc"
+ /** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */
+#line 924 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 882 "rx-decode.opc"
+#line 924 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 882 "rx-decode.opc"
+#line 924 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */",
+ "/** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */",
op[0], op[1], op[2]);
printf (" sd = 0x%x,", sd);
printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("round %1%S1, %0");
-#line 882 "rx-decode.opc"
- ID(round); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
-
+ SYNTAX("fdiv %1%S1, %0");
+#line 924 "rx-decode.opc"
+ ID(fdiv); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
}
break;
}
break;
- case 0x99:
+ case 0x91:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x9a:
+ case 0x92:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0x9b:
+ case 0x93:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0xd0:
+ case 0x94:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
op_semantics_68:
{
- /** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */
-#line 999 "rx-decode.opc"
- int sz AU = (op[1] >> 2) & 0x03;
-#line 999 "rx-decode.opc"
+ /** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */
+#line 912 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 999 "rx-decode.opc"
- int rdst AU = (op[2] >> 4) & 0x0f;
-#line 999 "rx-decode.opc"
- int cond AU = op[2] & 0x0f;
+#line 912 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 912 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */",
+ "/** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */",
op[0], op[1], op[2]);
- printf (" sz = 0x%x,", sz);
printf (" sd = 0x%x,", sd);
- printf (" rdst = 0x%x,", rdst);
- printf (" cond = 0x%x\n", cond);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("sc%1%s %0");
-#line 999 "rx-decode.opc"
- ID(sccnd); BWL(sz); DD (sd, rdst, sz); Scc(cond);
-
+ SYNTAX("ftoi %1%S1, %0");
+#line 912 "rx-decode.opc"
+ ID(ftoi); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
}
break;
}
break;
- case 0xd1:
+ case 0x95:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0xd2:
+ case 0x96:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0xd3:
+ case 0x97:
GETBYTE ();
switch (op[2] & 0x00)
{
break;
}
break;
- case 0xd4:
+ case 0x98:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ op_semantics_69:
+ {
+ /** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */
+#line 927 "rx-decode.opc"
+ int sd AU = op[1] & 0x03;
+#line 927 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 927 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" sd = 0x%x,", sd);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("round %1%S1, %0");
+#line 927 "rx-decode.opc"
+ ID(round); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
+ }
break;
}
break;
- case 0xd5:
+ case 0x99:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_69;
break;
}
break;
- case 0xd6:
+ case 0x9a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_69;
break;
}
break;
- case 0xd7:
+ case 0x9b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_69;
break;
}
break;
- case 0xd8:
+ case 0xa0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ op_semantics_70:
+ {
+ /** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */
+#line 1110 "rx-decode.opc"
+ int sd AU = op[1] & 0x03;
+#line 1110 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1110 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" sd = 0x%x,", sd);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("fsqrt %1%S1, %0");
+#line 1110 "rx-decode.opc"
+ ID(fsqrt); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
+ }
+ break;
+ }
+ break;
+ case 0xa1:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_70;
+ break;
+ }
+ break;
+ case 0xa2:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_70;
+ break;
+ }
+ break;
+ case 0xa3:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_70;
+ break;
+ }
+ break;
+ case 0xa4:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_71:
+ {
+ /** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */
+#line 1113 "rx-decode.opc"
+ int sd AU = op[1] & 0x03;
+#line 1113 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1113 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" sd = 0x%x,", sd);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("ftou %1%S1, %0");
+#line 1113 "rx-decode.opc"
+ ID(ftou); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_;
+
+ }
+ break;
+ }
+ break;
+ case 0xa5:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_71;
+ break;
+ }
+ break;
+ case 0xa6:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_71;
+ break;
+ }
+ break;
+ case 0xa7:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_71;
+ break;
+ }
+ break;
+ case 0xd0:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_72:
+ {
+ /** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */
+#line 1044 "rx-decode.opc"
+ int sz AU = (op[1] >> 2) & 0x03;
+#line 1044 "rx-decode.opc"
+ int sd AU = op[1] & 0x03;
+#line 1044 "rx-decode.opc"
+ int rdst AU = (op[2] >> 4) & 0x0f;
+#line 1044 "rx-decode.opc"
+ int cond AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */",
+ op[0], op[1], op[2]);
+ printf (" sz = 0x%x,", sz);
+ printf (" sd = 0x%x,", sd);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" cond = 0x%x\n", cond);
+ }
+ SYNTAX("sc%1%s %0");
+#line 1044 "rx-decode.opc"
+ ID(sccnd); BWL(sz); DD (sd, rdst, sz); Scc(cond);
+
+ /*----------------------------------------------------------------------*/
+ /* RXv2 enhanced */
+
+ }
+ break;
+ }
+ break;
+ case 0xd1:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd2:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd3:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd4:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd5:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd6:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd7:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
+ break;
+ }
+ break;
+ case 0xd8:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_72;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_72;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_72;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_68;
+ goto op_semantics_72;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- op_semantics_69:
+ op_semantics_73:
{
/** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */
-#line 942 "rx-decode.opc"
+#line 987 "rx-decode.opc"
int bit AU = (op[1] >> 2) & 0x07;
-#line 942 "rx-decode.opc"
+#line 987 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 942 "rx-decode.opc"
+#line 987 "rx-decode.opc"
int rdst AU = (op[2] >> 4) & 0x0f;
-#line 942 "rx-decode.opc"
+#line 987 "rx-decode.opc"
int cond AU = op[2] & 0x0f;
if (trace)
{
printf (" cond = 0x%x\n", cond);
}
SYNTAX("bm%2 #%1, %0%S0");
-#line 942 "rx-decode.opc"
+#line 987 "rx-decode.opc"
ID(bmcc); BWL(BSIZE); S2cc(cond); SC(bit); DD(sd, rdst, BSIZE);
-
+
}
break;
case 0x0f:
- op_semantics_70:
+ op_semantics_74:
{
/** 1111 1100 111bit sd rdst 1111 bnot #%1, %0%S0 */
-#line 930 "rx-decode.opc"
+#line 975 "rx-decode.opc"
int bit AU = (op[1] >> 2) & 0x07;
-#line 930 "rx-decode.opc"
+#line 975 "rx-decode.opc"
int sd AU = op[1] & 0x03;
-#line 930 "rx-decode.opc"
+#line 975 "rx-decode.opc"
int rdst AU = (op[2] >> 4) & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("bnot #%1, %0%S0");
-#line 930 "rx-decode.opc"
+#line 975 "rx-decode.opc"
ID(bnot); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE);
-
+
}
break;
}
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
case 0x0c:
case 0x0d:
case 0x0e:
- goto op_semantics_69;
+ goto op_semantics_73;
break;
case 0x0f:
- goto op_semantics_70;
+ goto op_semantics_74;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_75:
{
- /** 1111 1101 0000 0000 srca srcb mulhi %1, %2 */
-#line 807 "rx-decode.opc"
+ /** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */
+#line 852 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 852 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 807 "rx-decode.opc"
+#line 852 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0000 0000 srca srcb mulhi %1, %2 */",
+ "/** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */",
op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mulhi %1, %2");
-#line 807 "rx-decode.opc"
- ID(mulhi); SR(srca); S2R(srcb); F_____;
-
+ SYNTAX("mulhi %1, %2, %0");
+#line 852 "rx-decode.opc"
+ ID(mulhi); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_76:
{
- /** 1111 1101 0000 0001 srca srcb mullo %1, %2 */
-#line 810 "rx-decode.opc"
+ /** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */
+#line 855 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 855 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 810 "rx-decode.opc"
+#line 855 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0000 0001 srca srcb mullo %1, %2 */",
+ "/** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */",
op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mullo %1, %2");
-#line 810 "rx-decode.opc"
- ID(mullo); SR(srca); S2R(srcb); F_____;
-
+ SYNTAX("mullo %1, %2, %0");
+#line 855 "rx-decode.opc"
+ ID(mullo); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
}
break;
- case 0x04:
+ case 0x02:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_77:
{
- /** 1111 1101 0000 0100 srca srcb machi %1, %2 */
-#line 813 "rx-decode.opc"
+ /** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */
+#line 1083 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1083 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 813 "rx-decode.opc"
+#line 1083 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0000 0100 srca srcb machi %1, %2 */",
+ "/** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */",
op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("machi %1, %2");
-#line 813 "rx-decode.opc"
- ID(machi); SR(srca); S2R(srcb); F_____;
-
+ SYNTAX("mullh %1, %2, %0");
+#line 1083 "rx-decode.opc"
+ ID(mullh); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
}
break;
- case 0x05:
+ case 0x03:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_78:
{
- /** 1111 1101 0000 0101 srca srcb maclo %1, %2 */
-#line 816 "rx-decode.opc"
+ /** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */
+#line 1068 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1068 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 816 "rx-decode.opc"
+#line 1068 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0000 0101 srca srcb maclo %1, %2 */",
+ "/** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */",
op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("maclo %1, %2");
-#line 816 "rx-decode.opc"
- ID(maclo); SR(srca); S2R(srcb); F_____;
-
+ SYNTAX("emula %1, %2, %0");
+#line 1068 "rx-decode.opc"
+ ID(emula); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
}
break;
- case 0x17:
+ case 0x04:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_79:
{
- /** 1111 1101 0001 0111 0000 rsrc mvtachi %1 */
-#line 819 "rx-decode.opc"
- int rsrc AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 0111 0000 rsrc mvtachi %1 */",
- op[0], op[1], op[2]);
- printf (" rsrc = 0x%x\n", rsrc);
- }
- SYNTAX("mvtachi %1");
-#line 819 "rx-decode.opc"
- ID(mvtachi); SR(rsrc); F_____;
-
- }
- break;
- case 0x10:
- {
- /** 1111 1101 0001 0111 0001 rsrc mvtaclo %1 */
-#line 822 "rx-decode.opc"
- int rsrc AU = op[2] & 0x0f;
+ /** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */
+#line 858 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 858 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 858 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 0111 0001 rsrc mvtaclo %1 */",
+ "/** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x\n", rsrc);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mvtaclo %1");
-#line 822 "rx-decode.opc"
- ID(mvtaclo); SR(rsrc); F_____;
-
+ SYNTAX("machi %1, %2, %0");
+#line 858 "rx-decode.opc"
+ ID(machi); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
- default: UNSUPPORTED(); break;
}
break;
- case 0x18:
+ case 0x05:
GETBYTE ();
- switch (op[2] & 0xef)
+ switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_80:
{
- /** 1111 1101 0001 1000 000i 0000 racw #%1 */
-#line 834 "rx-decode.opc"
- int i AU = (op[2] >> 4) & 0x01;
+ /** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */
+#line 861 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 861 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 861 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 1000 000i 0000 racw #%1 */",
+ "/** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */",
op[0], op[1], op[2]);
- printf (" i = 0x%x\n", i);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("racw #%1");
-#line 834 "rx-decode.opc"
- ID(racw); SC(i+1); F_____;
-
- /*----------------------------------------------------------------------*/
- /* SAT */
-
+ SYNTAX("maclo %1, %2, %0");
+#line 861 "rx-decode.opc"
+ ID(maclo); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
- default: UNSUPPORTED(); break;
}
break;
- case 0x1f:
+ case 0x06:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
+ op_semantics_81:
{
- /** 1111 1101 0001 1111 0000 rdst mvfachi %0 */
-#line 825 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 1111 0000 rdst mvfachi %0 */",
- op[0], op[1], op[2]);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("mvfachi %0");
-#line 825 "rx-decode.opc"
- ID(mvfachi); DR(rdst); F_____;
-
- }
- break;
- case 0x10:
- {
- /** 1111 1101 0001 1111 0001 rdst mvfaclo %0 */
-#line 831 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 1111 0001 rdst mvfaclo %0 */",
- op[0], op[1], op[2]);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("mvfaclo %0");
-#line 831 "rx-decode.opc"
- ID(mvfaclo); DR(rdst); F_____;
-
- }
- break;
- case 0x20:
- {
- /** 1111 1101 0001 1111 0010 rdst mvfacmi %0 */
-#line 828 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */
+#line 1071 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1071 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1071 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0001 1111 0010 rdst mvfacmi %0 */",
+ "/** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */",
op[0], op[1], op[2]);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mvfacmi %0");
-#line 828 "rx-decode.opc"
- ID(mvfacmi); DR(rdst); F_____;
-
+ SYNTAX("maclh %1, %2, %0");
+#line 1071 "rx-decode.opc"
+ ID(maclh); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
- default: UNSUPPORTED(); break;
}
break;
- case 0x20:
+ case 0x07:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_71:
+ op_semantics_82:
{
- /** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */
-#line 341 "rx-decode.opc"
- int p AU = (op[1] >> 2) & 0x01;
-#line 341 "rx-decode.opc"
- int sz AU = op[1] & 0x03;
-#line 341 "rx-decode.opc"
- int rdst AU = (op[2] >> 4) & 0x0f;
-#line 341 "rx-decode.opc"
- int rsrc AU = op[2] & 0x0f;
+ /** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */
+#line 1062 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1062 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1062 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */",
+ "/** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */",
op[0], op[1], op[2]);
- printf (" p = 0x%x,", p);
- printf (" sz = 0x%x,", sz);
- printf (" rdst = 0x%x,", rdst);
- printf (" rsrc = 0x%x\n", rsrc);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mov%s %1, %0");
-#line 341 "rx-decode.opc"
- ID(mov); sBWL (sz); SR(rsrc); F_____;
- OP(0, p ? RX_Operand_Predec : RX_Operand_Postinc, rdst, 0);
-
+ SYNTAX("emaca %1, %2, %0");
+#line 1062 "rx-decode.opc"
+ ID(emaca); DR(a+32); SR(srca); S2R(srcb); F_____;
+
}
break;
}
break;
- case 0x21:
+ case 0x08:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_71;
+ goto op_semantics_75;
break;
}
break;
- case 0x22:
+ case 0x09:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_71;
+ goto op_semantics_76;
break;
}
break;
- case 0x24:
+ case 0x0a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_71;
+ goto op_semantics_77;
break;
}
break;
- case 0x25:
+ case 0x0b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_71;
+ goto op_semantics_78;
break;
}
break;
- case 0x26:
+ case 0x0c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_71;
+ goto op_semantics_79;
break;
}
break;
- case 0x28:
+ case 0x0d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_72:
- {
- /** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */
-#line 345 "rx-decode.opc"
- int p AU = (op[1] >> 2) & 0x01;
-#line 345 "rx-decode.opc"
- int sz AU = op[1] & 0x03;
-#line 345 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 345 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */",
- op[0], op[1], op[2]);
- printf (" p = 0x%x,", p);
- printf (" sz = 0x%x,", sz);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("mov%s %1, %0");
-#line 345 "rx-decode.opc"
- ID(mov); sBWL (sz); DR(rdst); F_____;
- OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0);
-
- }
- break;
- }
- break;
- case 0x29:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_72;
- break;
- }
- break;
- case 0x2a:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_72;
- break;
- }
- break;
- case 0x2c:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_72;
+ goto op_semantics_80;
break;
}
break;
- case 0x2d:
+ case 0x0e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_72;
+ goto op_semantics_81;
break;
}
break;
- case 0x2e:
+ case 0x0f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_72;
+ goto op_semantics_82;
break;
}
break;
- case 0x38:
+ case 0x17:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0x70)
{
case 0x00:
- op_semantics_73:
{
- /** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */
-#line 355 "rx-decode.opc"
- int p AU = (op[1] >> 2) & 0x01;
-#line 355 "rx-decode.opc"
- int sz AU = op[1] & 0x03;
-#line 355 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 355 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */
+#line 864 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 864 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */",
+ "/** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */",
op[0], op[1], op[2]);
- printf (" p = 0x%x,", p);
- printf (" sz = 0x%x,", sz);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("movu%s %1, %0");
-#line 355 "rx-decode.opc"
- ID(mov); uBWL (sz); DR(rdst); F_____;
- OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0);
-
- /*----------------------------------------------------------------------*/
- /* PUSH/POP */
-
+ SYNTAX("mvtachi %1, %0");
+#line 864 "rx-decode.opc"
+ ID(mvtachi); DR(a+32); SR(rsrc); F_____;
+
}
break;
- }
- break;
- case 0x39:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_73;
- break;
- }
- break;
- case 0x3a:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_73;
- break;
- }
- break;
- case 0x3c:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_73;
- break;
- }
- break;
- case 0x3d:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_73;
- break;
- }
- break;
- case 0x3e:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- goto op_semantics_73;
- break;
- }
- break;
- case 0x60:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
+ case 0x10:
{
- /** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */
-#line 688 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 688 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */
+#line 867 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 867 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */",
+ "/** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("shlr %2, %0");
-#line 688 "rx-decode.opc"
- ID(shlr); S2R(rsrc); SR(rdst); DR(rdst); F__SZC;
-
+ SYNTAX("mvtaclo %1, %0");
+#line 867 "rx-decode.opc"
+ ID(mvtaclo); DR(a+32); SR(rsrc); F_____;
+
}
break;
- }
- break;
- case 0x61:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
+ case 0x30:
{
- /** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */
-#line 678 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 678 "rx-decode.opc"
+ /** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */
+#line 1089 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 1089 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */",
+ "/** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
+ printf (" a = 0x%x,", a);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("shar %2, %0");
-#line 678 "rx-decode.opc"
- ID(shar); S2R(rsrc); SR(rdst); DR(rdst); F_0SZC;
-
+ SYNTAX("mvtacgu %0, %1");
+#line 1089 "rx-decode.opc"
+ ID(mvtacgu); DR(a+32); SR(rdst); F_____;
+
}
break;
+ default: UNSUPPORTED(); break;
}
break;
- case 0x62:
+ case 0x18:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0x6f)
{
case 0x00:
{
- /** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */
-#line 668 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 668 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */
+#line 879 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 879 "rx-decode.opc"
+ int i AU = (op[2] >> 4) & 0x01;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */",
+ "/** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" i = 0x%x\n", i);
}
- SYNTAX("shll %2, %0");
-#line 668 "rx-decode.opc"
- ID(shll); S2R(rsrc); SR(rdst); DR(rdst); F_OSZC;
-
+ SYNTAX("racw #%1, %0");
+#line 879 "rx-decode.opc"
+ ID(racw); SC(i+1); DR(a+32); F_____;
+
+ /*----------------------------------------------------------------------*/
+ /* SAT */
+
}
break;
- }
- break;
- case 0x64:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
+ case 0x40:
{
- /** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */
-#line 712 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 712 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */
+#line 1098 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 1098 "rx-decode.opc"
+ int i AU = (op[2] >> 4) & 0x01;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */",
+ "/** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" i = 0x%x\n", i);
}
- SYNTAX("rotr %1, %0");
-#line 712 "rx-decode.opc"
- ID(rotr); SR(rsrc); DR(rdst); F__SZC;
-
+ SYNTAX("rdacw #%1, %0");
+#line 1098 "rx-decode.opc"
+ ID(rdacw); SC(i+1); DR(a+32); F_____;
+
}
break;
+ default: UNSUPPORTED(); break;
}
break;
- case 0x65:
+ case 0x19:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0x6f)
{
case 0x00:
{
- /** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */
-#line 715 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 715 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */
+#line 1092 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 1092 "rx-decode.opc"
+ int i AU = (op[2] >> 4) & 0x01;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */",
+ "/** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" i = 0x%x\n", i);
}
- SYNTAX("revw %1, %0");
-#line 715 "rx-decode.opc"
- ID(revw); SR(rsrc); DR(rdst);
-
+ SYNTAX("racl #%1, %0");
+#line 1092 "rx-decode.opc"
+ ID(racl); SC(i+1); DR(a+32); F_____;
+
}
break;
- }
- break;
- case 0x66:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
+ case 0x40:
{
- /** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */
-#line 706 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 706 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */
+#line 1095 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 1095 "rx-decode.opc"
+ int i AU = (op[2] >> 4) & 0x01;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */",
+ "/** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" a = 0x%x,", a);
+ printf (" i = 0x%x\n", i);
}
- SYNTAX("rotl %1, %0");
-#line 706 "rx-decode.opc"
- ID(rotl); SR(rsrc); DR(rdst); F__SZC;
-
+ SYNTAX("rdacl #%1, %0");
+#line 1095 "rx-decode.opc"
+ ID(rdacl); SC(i+1); DR(a+32); F_____;
+
}
break;
+ default: UNSUPPORTED(); break;
}
break;
- case 0x67:
+ case 0x1e:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0x30)
{
case 0x00:
+ op_semantics_83:
{
- /** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */
-#line 718 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 718 "rx-decode.opc"
+ /** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */
+#line 870 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 870 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 870 "rx-decode.opc"
+ int m AU = (op[2] >> 6) & 0x01;
+#line 870 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */",
+ "/** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */",
op[0], op[1], op[2]);
- printf (" rsrc = 0x%x,", rsrc);
+ printf (" i = 0x%x,", i);
+ printf (" a = 0x%x,", a);
+ printf (" m = 0x%x,", m);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("revl %1, %0");
-#line 718 "rx-decode.opc"
- ID(revl); SR(rsrc); DR(rdst);
-
- /*----------------------------------------------------------------------*/
- /* BRANCH */
-
+ SYNTAX("mvfachi #%2, %1, %0");
+#line 870 "rx-decode.opc"
+ ID(mvfachi); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____;
+
}
break;
- }
- break;
- case 0x68:
- GETBYTE ();
- switch (op[2] & 0x00)
- {
- case 0x00:
- op_semantics_74:
+ case 0x10:
+ op_semantics_84:
{
- /** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */
-#line 969 "rx-decode.opc"
- int c AU = op[1] & 0x01;
-#line 969 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 969 "rx-decode.opc"
+ /** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */
+#line 876 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 876 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 876 "rx-decode.opc"
+ int m AU = (op[2] >> 6) & 0x01;
+#line 876 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */",
+ "/** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */",
op[0], op[1], op[2]);
- printf (" c = 0x%x,", c);
- printf (" rsrc = 0x%x,", rsrc);
+ printf (" i = 0x%x,", i);
+ printf (" a = 0x%x,", a);
+ printf (" m = 0x%x,", m);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("mvtc %1, %0");
-#line 969 "rx-decode.opc"
- ID(mov); SR(rsrc); DR(c*16+rdst + 16);
-
+ SYNTAX("mvfaclo #%2, %1, %0");
+#line 876 "rx-decode.opc"
+ ID(mvfaclo); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____;
+
+ }
+ break;
+ case 0x20:
+ op_semantics_85:
+ {
+ /** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */
+#line 873 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 873 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 873 "rx-decode.opc"
+ int m AU = (op[2] >> 6) & 0x01;
+#line 873 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" i = 0x%x,", i);
+ printf (" a = 0x%x,", a);
+ printf (" m = 0x%x,", m);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("mvfacmi #%2, %1, %0");
+#line 873 "rx-decode.opc"
+ ID(mvfacmi); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____;
+
+ }
+ break;
+ case 0x30:
+ op_semantics_86:
+ {
+ /** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */
+#line 1086 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 1086 "rx-decode.opc"
+ int a AU = (op[2] >> 7) & 0x01;
+#line 1086 "rx-decode.opc"
+ int m AU = (op[2] >> 6) & 0x01;
+#line 1086 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" i = 0x%x,", i);
+ printf (" a = 0x%x,", a);
+ printf (" m = 0x%x,", m);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("mvfacgu #%2, %1, %0");
+#line 1086 "rx-decode.opc"
+ ID(mvfacgu); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____;
+
}
break;
}
break;
- case 0x69:
+ case 0x1f:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0x30)
{
case 0x00:
- goto op_semantics_74;
+ goto op_semantics_83;
+ break;
+ case 0x10:
+ goto op_semantics_84;
+ break;
+ case 0x20:
+ goto op_semantics_85;
+ break;
+ case 0x30:
+ goto op_semantics_86;
break;
}
break;
- case 0x6a:
+ case 0x20:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_75:
+ op_semantics_87:
{
- /** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */
-#line 972 "rx-decode.opc"
- int s AU = op[1] & 0x01;
-#line 972 "rx-decode.opc"
- int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 972 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */
+#line 348 "rx-decode.opc"
+ int p AU = (op[1] >> 2) & 0x01;
+#line 348 "rx-decode.opc"
+ int sz AU = op[1] & 0x03;
+#line 348 "rx-decode.opc"
+ int rdst AU = (op[2] >> 4) & 0x0f;
+#line 348 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */",
+ "/** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */",
op[0], op[1], op[2]);
- printf (" s = 0x%x,", s);
- printf (" rsrc = 0x%x,", rsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" p = 0x%x,", p);
+ printf (" sz = 0x%x,", sz);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("mvfc %1, %0");
-#line 972 "rx-decode.opc"
- ID(mov); SR((s*16+rsrc) + 16); DR(rdst);
-
- /*----------------------------------------------------------------------*/
- /* INTERRUPTS */
-
+ SYNTAX("mov%s %1, %0");
+#line 348 "rx-decode.opc"
+ ID(mov); sBWL (sz); SR(rsrc); F_____;
+ OP(0, p ? RX_Operand_Predec : RX_Operand_Postinc, rdst, 0);
+
}
break;
}
break;
- case 0x6b:
+ case 0x21:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_75;
+ goto op_semantics_87;
break;
}
break;
- case 0x6c:
+ case 0x22:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_76:
- {
- /** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */
-#line 709 "rx-decode.opc"
- int i AU = op[1] & 0x01;
-#line 709 "rx-decode.opc"
- int mmmm AU = (op[2] >> 4) & 0x0f;
-#line 709 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */",
- op[0], op[1], op[2]);
- printf (" i = 0x%x,", i);
- printf (" mmmm = 0x%x,", mmmm);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("rotr #%1, %0");
-#line 709 "rx-decode.opc"
- ID(rotr); SC(i*16+mmmm); DR(rdst); F__SZC;
-
- }
+ goto op_semantics_87;
break;
}
break;
- case 0x6d:
+ case 0x24:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_76;
+ goto op_semantics_87;
break;
}
break;
- case 0x6e:
+ case 0x25:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_77:
- {
- /** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */
-#line 703 "rx-decode.opc"
- int i AU = op[1] & 0x01;
-#line 703 "rx-decode.opc"
- int mmmm AU = (op[2] >> 4) & 0x0f;
-#line 703 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */",
- op[0], op[1], op[2]);
- printf (" i = 0x%x,", i);
- printf (" mmmm = 0x%x,", mmmm);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("rotl #%1, %0");
-#line 703 "rx-decode.opc"
- ID(rotl); SC(i*16+mmmm); DR(rdst); F__SZC;
-
- }
+ goto op_semantics_87;
break;
}
break;
- case 0x6f:
+ case 0x26:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_77;
+ goto op_semantics_87;
break;
}
break;
- case 0x70:
+ case 0x27:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
- case 0x20:
- op_semantics_78:
+ case 0x00:
{
- /** 1111 1101 0111 im00 0010rdst adc #%1, %0 */
-#line 485 "rx-decode.opc"
- int im AU = (op[1] >> 2) & 0x03;
-#line 485 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */
+#line 1050 "rx-decode.opc"
+ int rdst AU = (op[2] >> 4) & 0x0f;
+#line 1050 "rx-decode.opc"
+ int rsrc AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0111 im00 0010rdst adc #%1, %0 */",
+ "/** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */",
op[0], op[1], op[2]);
- printf (" im = 0x%x,", im);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" rsrc = 0x%x\n", rsrc);
}
- SYNTAX("adc #%1, %0");
-#line 485 "rx-decode.opc"
- ID(adc); SC(IMMex(im)); DR(rdst); F_OSZC;
-
+ SYNTAX("movco %1, [%0]");
+#line 1050 "rx-decode.opc"
+ ID(movco); SR(rsrc); DR(rdst); F_____;
+
}
break;
- case 0x40:
- op_semantics_79:
+ }
+ break;
+ case 0x28:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_88:
{
- /** 1111 1101 0111 im00 0100rdst max #%1, %0 */
-#line 567 "rx-decode.opc"
- int im AU = (op[1] >> 2) & 0x03;
-#line 567 "rx-decode.opc"
+ /** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */
+#line 352 "rx-decode.opc"
+ int p AU = (op[1] >> 2) & 0x01;
+#line 352 "rx-decode.opc"
+ int sz AU = op[1] & 0x03;
+#line 352 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 352 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0111 im00 0100rdst max #%1, %0 */",
+ "/** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */",
op[0], op[1], op[2]);
- printf (" im = 0x%x,", im);
+ printf (" p = 0x%x,", p);
+ printf (" sz = 0x%x,", sz);
+ printf (" rsrc = 0x%x,", rsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("max #%1, %0");
-#line 567 "rx-decode.opc"
- ID(max); DR(rdst); SC(IMMex(im));
-
+ SYNTAX("mov%s %1, %0");
+#line 352 "rx-decode.opc"
+ ID(mov); sBWL (sz); DR(rdst); F_____;
+ OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0);
+
}
break;
- case 0x50:
- op_semantics_80:
- {
- /** 1111 1101 0111 im00 0101rdst min #%1, %0 */
-#line 587 "rx-decode.opc"
- int im AU = (op[1] >> 2) & 0x03;
-#line 587 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0111 im00 0101rdst min #%1, %0 */",
- op[0], op[1], op[2]);
- printf (" im = 0x%x,", im);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("min #%1, %0");
-#line 587 "rx-decode.opc"
- ID(min); DR(rdst); SC(IMMex(im));
-
- }
+ }
+ break;
+ case 0x29:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_88;
break;
- case 0x60:
- op_semantics_81:
- {
- /** 1111 1101 0111 im00 0110rdst emul #%1, %0 */
-#line 617 "rx-decode.opc"
- int im AU = (op[1] >> 2) & 0x03;
-#line 617 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 0111 im00 0110rdst emul #%1, %0 */",
+ }
+ break;
+ case 0x2a:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_88;
+ break;
+ }
+ break;
+ case 0x2c:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_88;
+ break;
+ }
+ break;
+ case 0x2d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_88;
+ break;
+ }
+ break;
+ case 0x2e:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_88;
+ break;
+ }
+ break;
+ case 0x2f:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */
+#line 1053 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1053 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("movli [%1], %0");
+#line 1053 "rx-decode.opc"
+ ID(movli); SR(rsrc); DR(rdst); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x38:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_89:
+ {
+ /** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */
+#line 362 "rx-decode.opc"
+ int p AU = (op[1] >> 2) & 0x01;
+#line 362 "rx-decode.opc"
+ int sz AU = op[1] & 0x03;
+#line 362 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 362 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" p = 0x%x,", p);
+ printf (" sz = 0x%x,", sz);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("movu%s %1, %0");
+#line 362 "rx-decode.opc"
+ ID(mov); uBW (sz); DR(rdst); F_____;
+ OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0);
+
+ /*----------------------------------------------------------------------*/
+ /* PUSH/POP */
+
+ }
+ break;
+ }
+ break;
+ case 0x39:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_89;
+ break;
+ }
+ break;
+ case 0x3a:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_89;
+ break;
+ }
+ break;
+ case 0x3c:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_89;
+ break;
+ }
+ break;
+ case 0x3d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_89;
+ break;
+ }
+ break;
+ case 0x3e:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_89;
+ break;
+ }
+ break;
+ case 0x44:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_90:
+ {
+ /** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */
+#line 1074 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1074 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1074 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("msbhi %1, %2, %0");
+#line 1074 "rx-decode.opc"
+ ID(msbhi); DR(a+32); SR(srca); S2R(srcb); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x45:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_91:
+ {
+ /** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */
+#line 1080 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1080 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1080 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("msblo %1, %2, %0");
+#line 1080 "rx-decode.opc"
+ ID(msblo); DR(a+32); SR(srca); S2R(srcb); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x46:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_92:
+ {
+ /** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */
+#line 1077 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1077 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1077 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("msblh %1, %2, %0");
+#line 1077 "rx-decode.opc"
+ ID(msblh); DR(a+32); SR(srca); S2R(srcb); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x47:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_93:
+ {
+ /** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */
+#line 1065 "rx-decode.opc"
+ int a AU = (op[1] >> 3) & 0x01;
+#line 1065 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 1065 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" a = 0x%x,", a);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("emsba %1, %2, %0");
+#line 1065 "rx-decode.opc"
+ ID(emsba); DR(a+32); SR(srca); S2R(srcb); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x4c:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_90;
+ break;
+ }
+ break;
+ case 0x4d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_91;
+ break;
+ }
+ break;
+ case 0x4e:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_92;
+ break;
+ }
+ break;
+ case 0x4f:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_93;
+ break;
+ }
+ break;
+ case 0x60:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */
+#line 733 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 733 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("shlr %2, %0");
+#line 733 "rx-decode.opc"
+ ID(shlr); S2R(rsrc); SR(rdst); DR(rdst); F__SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x61:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */
+#line 723 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 723 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("shar %2, %0");
+#line 723 "rx-decode.opc"
+ ID(shar); S2R(rsrc); SR(rdst); DR(rdst); F_0SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x62:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */
+#line 713 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 713 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("shll %2, %0");
+#line 713 "rx-decode.opc"
+ ID(shll); S2R(rsrc); SR(rdst); DR(rdst); F_OSZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x64:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */
+#line 757 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 757 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("rotr %1, %0");
+#line 757 "rx-decode.opc"
+ ID(rotr); SR(rsrc); DR(rdst); F__SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x65:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */
+#line 760 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 760 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("revw %1, %0");
+#line 760 "rx-decode.opc"
+ ID(revw); SR(rsrc); DR(rdst);
+
+ }
+ break;
+ }
+ break;
+ case 0x66:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */
+#line 751 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 751 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("rotl %1, %0");
+#line 751 "rx-decode.opc"
+ ID(rotl); SR(rsrc); DR(rdst); F__SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x67:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ {
+ /** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */
+#line 763 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 763 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("revl %1, %0");
+#line 763 "rx-decode.opc"
+ ID(revl); SR(rsrc); DR(rdst);
+
+ /*----------------------------------------------------------------------*/
+ /* BRANCH */
+
+ }
+ break;
+ }
+ break;
+ case 0x68:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_94:
+ {
+ /** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */
+#line 1014 "rx-decode.opc"
+ int c AU = op[1] & 0x01;
+#line 1014 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1014 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" c = 0x%x,", c);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("mvtc %1, %0");
+#line 1014 "rx-decode.opc"
+ ID(mov); SR(rsrc); DR(c*16+rdst + 16);
+
+ }
+ break;
+ }
+ break;
+ case 0x69:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_94;
+ break;
+ }
+ break;
+ case 0x6a:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_95:
+ {
+ /** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */
+#line 1017 "rx-decode.opc"
+ int s AU = op[1] & 0x01;
+#line 1017 "rx-decode.opc"
+ int rsrc AU = (op[2] >> 4) & 0x0f;
+#line 1017 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" s = 0x%x,", s);
+ printf (" rsrc = 0x%x,", rsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("mvfc %1, %0");
+#line 1017 "rx-decode.opc"
+ ID(mov); SR((s*16+rsrc) + 16); DR(rdst);
+
+ /*----------------------------------------------------------------------*/
+ /* INTERRUPTS */
+
+ }
+ break;
+ }
+ break;
+ case 0x6b:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_95;
+ break;
+ }
+ break;
+ case 0x6c:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_96:
+ {
+ /** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */
+#line 754 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 754 "rx-decode.opc"
+ int mmmm AU = (op[2] >> 4) & 0x0f;
+#line 754 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" i = 0x%x,", i);
+ printf (" mmmm = 0x%x,", mmmm);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("rotr #%1, %0");
+#line 754 "rx-decode.opc"
+ ID(rotr); SC(i*16+mmmm); DR(rdst); F__SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x6d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_96;
+ break;
+ }
+ break;
+ case 0x6e:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_97:
+ {
+ /** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */
+#line 748 "rx-decode.opc"
+ int i AU = op[1] & 0x01;
+#line 748 "rx-decode.opc"
+ int mmmm AU = (op[2] >> 4) & 0x0f;
+#line 748 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" i = 0x%x,", i);
+ printf (" mmmm = 0x%x,", mmmm);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("rotl #%1, %0");
+#line 748 "rx-decode.opc"
+ ID(rotl); SC(i*16+mmmm); DR(rdst); F__SZC;
+
+ }
+ break;
+ }
+ break;
+ case 0x6f:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_97;
+ break;
+ }
+ break;
+ case 0x70:
+ GETBYTE ();
+ switch (op[2] & 0xf0)
+ {
+ case 0x20:
+ op_semantics_98:
+ {
+ /** 1111 1101 0111 im00 0010rdst adc #%1, %0 */
+#line 492 "rx-decode.opc"
+ int im AU = (op[1] >> 2) & 0x03;
+#line 492 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0111 im00 0010rdst adc #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" im = 0x%x,", im);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("adc #%1, %0");
+#line 492 "rx-decode.opc"
+ ID(adc); SC(IMMex(im)); DR(rdst); F_OSZC;
+
+ }
+ break;
+ case 0x40:
+ op_semantics_99:
+ {
+ /** 1111 1101 0111 im00 0100rdst max #%1, %0 */
+#line 574 "rx-decode.opc"
+ int im AU = (op[1] >> 2) & 0x03;
+#line 574 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0111 im00 0100rdst max #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" im = 0x%x,", im);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("max #%1, %0");
+#line 574 "rx-decode.opc"
+ int val = IMMex (im);
+ if (im == 0 && (unsigned) val == 0x80000000 && rdst == 0)
+ {
+ ID (nop7);
+ SYNTAX("nop\t; max\t#0x80000000, r0");
+ }
+ else
+ {
+ ID(max);
+ }
+ DR(rdst); SC(val);
+
+ }
+ break;
+ case 0x50:
+ op_semantics_100:
+ {
+ /** 1111 1101 0111 im00 0101rdst min #%1, %0 */
+#line 604 "rx-decode.opc"
+ int im AU = (op[1] >> 2) & 0x03;
+#line 604 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0111 im00 0101rdst min #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" im = 0x%x,", im);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("min #%1, %0");
+#line 604 "rx-decode.opc"
+ ID(min); DR(rdst); SC(IMMex(im));
+
+ }
+ break;
+ case 0x60:
+ op_semantics_101:
+ {
+ /** 1111 1101 0111 im00 0110rdst emul #%1, %0 */
+#line 662 "rx-decode.opc"
+ int im AU = (op[1] >> 2) & 0x03;
+#line 662 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 0111 im00 0110rdst emul #%1, %0 */",
op[0], op[1], op[2]);
printf (" im = 0x%x,", im);
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emul #%1, %0");
-#line 617 "rx-decode.opc"
+#line 662 "rx-decode.opc"
ID(emul); DR(rdst); SC(IMMex(im));
-
+
}
break;
case 0x70:
- op_semantics_82:
+ op_semantics_102:
{
/** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */
-#line 629 "rx-decode.opc"
+#line 674 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 629 "rx-decode.opc"
+#line 674 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("emulu #%1, %0");
-#line 629 "rx-decode.opc"
+#line 674 "rx-decode.opc"
ID(emulu); DR(rdst); SC(IMMex(im));
-
+
}
break;
case 0x80:
- op_semantics_83:
+ op_semantics_103:
{
/** 1111 1101 0111 im00 1000rdst div #%1, %0 */
-#line 641 "rx-decode.opc"
+#line 686 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 641 "rx-decode.opc"
+#line 686 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("div #%1, %0");
-#line 641 "rx-decode.opc"
+#line 686 "rx-decode.opc"
ID(div); DR(rdst); SC(IMMex(im)); F_O___;
-
+
}
break;
case 0x90:
- op_semantics_84:
+ op_semantics_104:
{
/** 1111 1101 0111 im00 1001rdst divu #%1, %0 */
-#line 653 "rx-decode.opc"
+#line 698 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 653 "rx-decode.opc"
+#line 698 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("divu #%1, %0");
-#line 653 "rx-decode.opc"
+#line 698 "rx-decode.opc"
ID(divu); DR(rdst); SC(IMMex(im)); F_O___;
-
+
}
break;
case 0xc0:
- op_semantics_85:
+ op_semantics_105:
{
/** 1111 1101 0111 im00 1100rdst tst #%1, %2 */
-#line 464 "rx-decode.opc"
+#line 471 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 464 "rx-decode.opc"
+#line 471 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("tst #%1, %2");
-#line 464 "rx-decode.opc"
+#line 471 "rx-decode.opc"
ID(and); SC(IMMex(im)); S2R(rdst); F__SZ_;
-
+
}
break;
case 0xd0:
- op_semantics_86:
+ op_semantics_106:
{
/** 1111 1101 0111 im00 1101rdst xor #%1, %0 */
-#line 443 "rx-decode.opc"
+#line 450 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 443 "rx-decode.opc"
+#line 450 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("xor #%1, %0");
-#line 443 "rx-decode.opc"
+#line 450 "rx-decode.opc"
ID(xor); SC(IMMex(im)); DR(rdst); F__SZ_;
-
+
}
break;
case 0xe0:
- op_semantics_87:
+ op_semantics_107:
{
/** 1111 1101 0111 im00 1110rdst stz #%1, %0 */
-#line 389 "rx-decode.opc"
+#line 396 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 389 "rx-decode.opc"
+#line 396 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("stz #%1, %0");
-#line 389 "rx-decode.opc"
+#line 396 "rx-decode.opc"
ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_z);
-
+
}
break;
case 0xf0:
- op_semantics_88:
+ op_semantics_108:
{
/** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */
-#line 392 "rx-decode.opc"
+#line 399 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 392 "rx-decode.opc"
+#line 399 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("stnz #%1, %0");
-#line 392 "rx-decode.opc"
+#line 399 "rx-decode.opc"
ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_nz);
-
+
/*----------------------------------------------------------------------*/
/* RTSD */
-
+
}
break;
default: UNSUPPORTED(); break;
case 0x00:
{
/** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */
-#line 861 "rx-decode.opc"
+#line 906 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("fsub #%1, %0");
-#line 861 "rx-decode.opc"
+#line 906 "rx-decode.opc"
ID(fsub); DR(rdst); SC(IMM(0)); F__SZ_;
-
+
}
break;
case 0x10:
{
/** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */
-#line 855 "rx-decode.opc"
+#line 900 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("fcmp #%1, %0");
-#line 855 "rx-decode.opc"
+#line 900 "rx-decode.opc"
ID(fcmp); DR(rdst); SC(IMM(0)); F_OSZ_;
-
+
}
break;
case 0x20:
{
/** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */
-#line 849 "rx-decode.opc"
+#line 894 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("fadd #%1, %0");
-#line 849 "rx-decode.opc"
+#line 894 "rx-decode.opc"
ID(fadd); DR(rdst); SC(IMM(0)); F__SZ_;
-
+
}
break;
case 0x30:
{
/** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */
-#line 870 "rx-decode.opc"
+#line 915 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("fmul #%1, %0");
-#line 870 "rx-decode.opc"
+#line 915 "rx-decode.opc"
ID(fmul); DR(rdst); SC(IMM(0)); F__SZ_;
-
+
}
break;
case 0x40:
{
/** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */
-#line 876 "rx-decode.opc"
+#line 921 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("fdiv #%1, %0");
-#line 876 "rx-decode.opc"
+#line 921 "rx-decode.opc"
ID(fdiv); DR(rdst); SC(IMM(0)); F__SZ_;
-
+
}
break;
default: UNSUPPORTED(); break;
switch (op[2] & 0xe0)
{
case 0x00:
- op_semantics_89:
+ op_semantics_109:
{
/** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */
-#line 966 "rx-decode.opc"
+#line 1011 "rx-decode.opc"
int im AU = (op[1] >> 2) & 0x03;
-#line 966 "rx-decode.opc"
+#line 1011 "rx-decode.opc"
int crdst AU = op[2] & 0x1f;
if (trace)
{
printf (" crdst = 0x%x\n", crdst);
}
SYNTAX("mvtc #%1, %0");
-#line 966 "rx-decode.opc"
+#line 1011 "rx-decode.opc"
ID(mov); SC(IMMex(im)); DR(crdst + 16);
-
+
}
break;
default: UNSUPPORTED(); break;
switch (op[2] & 0xf0)
{
case 0x20:
- goto op_semantics_78;
+ goto op_semantics_98;
break;
case 0x40:
- goto op_semantics_79;
+ goto op_semantics_99;
break;
case 0x50:
- goto op_semantics_80;
+ goto op_semantics_100;
break;
case 0x60:
- goto op_semantics_81;
+ goto op_semantics_101;
break;
case 0x70:
- goto op_semantics_82;
+ goto op_semantics_102;
break;
case 0x80:
- goto op_semantics_83;
+ goto op_semantics_103;
break;
case 0x90:
- goto op_semantics_84;
+ goto op_semantics_104;
break;
case 0xc0:
- goto op_semantics_85;
+ goto op_semantics_105;
break;
case 0xd0:
- goto op_semantics_86;
+ goto op_semantics_106;
break;
case 0xe0:
- goto op_semantics_87;
+ goto op_semantics_107;
break;
case 0xf0:
- goto op_semantics_88;
+ goto op_semantics_108;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0xe0)
{
case 0x00:
- goto op_semantics_89;
+ goto op_semantics_109;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0xf0)
{
case 0x20:
- goto op_semantics_78;
+ goto op_semantics_98;
break;
case 0x40:
- goto op_semantics_79;
+ goto op_semantics_99;
break;
case 0x50:
- goto op_semantics_80;
+ goto op_semantics_100;
break;
case 0x60:
- goto op_semantics_81;
+ goto op_semantics_101;
break;
case 0x70:
- goto op_semantics_82;
+ goto op_semantics_102;
break;
case 0x80:
- goto op_semantics_83;
+ goto op_semantics_103;
break;
case 0x90:
- goto op_semantics_84;
+ goto op_semantics_104;
break;
case 0xc0:
- goto op_semantics_85;
+ goto op_semantics_105;
break;
case 0xd0:
- goto op_semantics_86;
+ goto op_semantics_106;
break;
case 0xe0:
- goto op_semantics_87;
+ goto op_semantics_107;
break;
case 0xf0:
- goto op_semantics_88;
+ goto op_semantics_108;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0xe0)
{
case 0x00:
- goto op_semantics_89;
+ goto op_semantics_109;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0xf0)
{
case 0x20:
- goto op_semantics_78;
+ goto op_semantics_98;
break;
case 0x40:
- goto op_semantics_79;
+ goto op_semantics_99;
break;
case 0x50:
- goto op_semantics_80;
+ goto op_semantics_100;
break;
case 0x60:
- goto op_semantics_81;
+ goto op_semantics_101;
break;
case 0x70:
- goto op_semantics_82;
+ goto op_semantics_102;
break;
case 0x80:
- goto op_semantics_83;
+ goto op_semantics_103;
break;
case 0x90:
- goto op_semantics_84;
+ goto op_semantics_104;
break;
case 0xc0:
- goto op_semantics_85;
+ goto op_semantics_105;
break;
case 0xd0:
- goto op_semantics_86;
+ goto op_semantics_106;
break;
case 0xe0:
- goto op_semantics_87;
+ goto op_semantics_107;
break;
case 0xf0:
- goto op_semantics_88;
+ goto op_semantics_108;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0xe0)
{
case 0x00:
- goto op_semantics_89;
+ goto op_semantics_109;
break;
default: UNSUPPORTED(); break;
}
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_90:
+ op_semantics_110:
{
/** 1111 1101 100immmm rsrc rdst shlr #%2, %1, %0 */
-#line 691 "rx-decode.opc"
+#line 736 "rx-decode.opc"
int immmm AU = op[1] & 0x1f;
-#line 691 "rx-decode.opc"
+#line 736 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 691 "rx-decode.opc"
+#line 736 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shlr #%2, %1, %0");
-#line 691 "rx-decode.opc"
+#line 736 "rx-decode.opc"
ID(shlr); S2C(immmm); SR(rsrc); DR(rdst); F__SZC;
-
+
/*----------------------------------------------------------------------*/
/* ROTATE */
-
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_90;
+ goto op_semantics_110;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_91:
+ op_semantics_111:
{
/** 1111 1101 101immmm rsrc rdst shar #%2, %1, %0 */
-#line 681 "rx-decode.opc"
+#line 726 "rx-decode.opc"
int immmm AU = op[1] & 0x1f;
-#line 681 "rx-decode.opc"
+#line 726 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 681 "rx-decode.opc"
+#line 726 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shar #%2, %1, %0");
-#line 681 "rx-decode.opc"
+#line 726 "rx-decode.opc"
ID(shar); S2C(immmm); SR(rsrc); DR(rdst); F_0SZC;
-
-
+
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_91;
+ goto op_semantics_111;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_92:
+ op_semantics_112:
{
/** 1111 1101 110immmm rsrc rdst shll #%2, %1, %0 */
-#line 671 "rx-decode.opc"
+#line 716 "rx-decode.opc"
int immmm AU = op[1] & 0x1f;
-#line 671 "rx-decode.opc"
+#line 716 "rx-decode.opc"
int rsrc AU = (op[2] >> 4) & 0x0f;
-#line 671 "rx-decode.opc"
+#line 716 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf (" rdst = 0x%x\n", rdst);
}
SYNTAX("shll #%2, %1, %0");
-#line 671 "rx-decode.opc"
+#line 716 "rx-decode.opc"
ID(shll); S2C(immmm); SR(rsrc); DR(rdst); F_OSZC;
-
-
+
+
}
break;
}
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xc6:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xc7:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xc8:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xc9:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xca:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xcb:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xcc:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xcd:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xce:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xcf:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd0:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd1:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd2:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd3:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd4:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd5:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd6:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd7:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
+ break;
+ }
+ break;
+ case 0xd8:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_112;
break;
}
break;
- case 0xc6:
+ case 0xd9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xc7:
+ case 0xda:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xc8:
+ case 0xdb:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xc9:
+ case 0xdc:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xca:
+ case 0xdd:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xcb:
+ case 0xde:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xcc:
+ case 0xdf:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_92;
+ goto op_semantics_112;
break;
}
break;
- case 0xcd:
+ case 0xe0:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ op_semantics_113:
+ {
+ /** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */
+#line 990 "rx-decode.opc"
+ int bittt AU = op[1] & 0x1f;
+#line 990 "rx-decode.opc"
+ int cond AU = (op[2] >> 4) & 0x0f;
+#line 990 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */",
+ op[0], op[1], op[2]);
+ printf (" bittt = 0x%x,", bittt);
+ printf (" cond = 0x%x,", cond);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("bm%2 #%1, %0%S0");
+#line 990 "rx-decode.opc"
+ ID(bmcc); BWL(LSIZE); S2cc(cond); SC(bittt); DR(rdst);
+
+ /*----------------------------------------------------------------------*/
+ /* CONTROL REGISTERS */
+
+ }
+ break;
+ case 0xf0:
+ op_semantics_114:
+ {
+ /** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */
+#line 983 "rx-decode.opc"
+ int bittt AU = op[1] & 0x1f;
+#line 983 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" bittt = 0x%x,", bittt);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("bnot #%1, %0");
+#line 983 "rx-decode.opc"
+ ID(bnot); BWL(LSIZE); SC(bittt); DR(rdst);
+
+
+ }
break;
}
break;
- case 0xce:
+ case 0xe1:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xcf:
+ case 0xe2:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd0:
+ case 0xe3:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd1:
+ case 0xe4:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd2:
+ case 0xe5:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd3:
+ case 0xe6:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd4:
+ case 0xe7:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd5:
+ case 0xe8:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd6:
+ case 0xe9:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd7:
+ case 0xea:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd8:
+ case 0xeb:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xd9:
+ case 0xec:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xda:
+ case 0xed:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xdb:
+ case 0xee:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xdc:
+ case 0xef:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xdd:
+ case 0xf0:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xde:
+ case 0xf1:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xdf:
+ case 0xf2:
GETBYTE ();
- switch (op[2] & 0x00)
+ switch (op[2] & 0xf0)
{
case 0x00:
- goto op_semantics_92;
+ case 0x10:
+ case 0x20:
+ case 0x30:
+ case 0x40:
+ case 0x50:
+ case 0x60:
+ case 0x70:
+ case 0x80:
+ case 0x90:
+ case 0xa0:
+ case 0xb0:
+ case 0xc0:
+ case 0xd0:
+ case 0xe0:
+ goto op_semantics_113;
+ break;
+ case 0xf0:
+ goto op_semantics_114;
break;
}
break;
- case 0xe0:
+ case 0xf3:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- op_semantics_93:
- {
- /** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */
-#line 945 "rx-decode.opc"
- int bittt AU = op[1] & 0x1f;
-#line 945 "rx-decode.opc"
- int cond AU = (op[2] >> 4) & 0x0f;
-#line 945 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */",
- op[0], op[1], op[2]);
- printf (" bittt = 0x%x,", bittt);
- printf (" cond = 0x%x,", cond);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("bm%2 #%1, %0%S0");
-#line 945 "rx-decode.opc"
- ID(bmcc); BWL(LSIZE); S2cc(cond); SC(bittt); DR(rdst);
-
- /*----------------------------------------------------------------------*/
- /* CONTROL REGISTERS */
-
- }
+ goto op_semantics_113;
break;
case 0xf0:
- op_semantics_94:
- {
- /** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */
-#line 938 "rx-decode.opc"
- int bittt AU = op[1] & 0x1f;
-#line 938 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
- if (trace)
- {
- printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */",
- op[0], op[1], op[2]);
- printf (" bittt = 0x%x,", bittt);
- printf (" rdst = 0x%x\n", rdst);
- }
- SYNTAX("bnot #%1, %0");
-#line 938 "rx-decode.opc"
- ID(bnot); BWL(LSIZE); SC(bittt); DR(rdst);
-
-
- }
+ goto op_semantics_114;
break;
}
break;
- case 0xe1:
+ case 0xf4:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe2:
+ case 0xf5:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe3:
+ case 0xf6:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe4:
+ case 0xf7:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe5:
+ case 0xf8:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe6:
+ case 0xf9:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe7:
+ case 0xfa:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe8:
+ case 0xfb:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xe9:
+ case 0xfc:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xea:
+ case 0xfd:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xeb:
+ case 0xfe:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
break;
}
break;
- case 0xec:
+ case 0xff:
GETBYTE ();
switch (op[2] & 0xf0)
{
case 0xc0:
case 0xd0:
case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_113;
break;
case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_114;
+ break;
+ }
+ break;
+ default: UNSUPPORTED(); break;
+ }
+ break;
+ case 0xfe:
+ GETBYTE ();
+ switch (op[1] & 0xff)
+ {
+ case 0x00:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ op_semantics_115:
+ {
+ /** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */
+#line 342 "rx-decode.opc"
+ int sz AU = (op[1] >> 4) & 0x03;
+#line 342 "rx-decode.opc"
+ int isrc AU = op[1] & 0x0f;
+#line 342 "rx-decode.opc"
+ int bsrc AU = (op[2] >> 4) & 0x0f;
+#line 342 "rx-decode.opc"
+ int rdst AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */",
+ op[0], op[1], op[2]);
+ printf (" sz = 0x%x,", sz);
+ printf (" isrc = 0x%x,", isrc);
+ printf (" bsrc = 0x%x,", bsrc);
+ printf (" rdst = 0x%x\n", rdst);
+ }
+ SYNTAX("mov%s %0, [%1, %2]");
+#line 342 "rx-decode.opc"
+ ID(movbir); sBWL(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
+
+ }
+ break;
+ }
+ break;
+ case 0x01:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x02:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x03:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x04:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x05:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x06:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x07:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x08:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x09:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0a:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0b:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0c:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0e:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x0f:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x10:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x11:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x12:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x13:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x14:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x15:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x16:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
+ break;
+ }
+ break;
+ case 0x17:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- case 0xed:
+ case 0x18:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xee:
+ case 0x19:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xef:
+ case 0x1a:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf0:
+ case 0x1b:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf1:
+ case 0x1c:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf2:
+ case 0x1d:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf3:
+ case 0x1e:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf4:
+ case 0x1f:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf5:
+ case 0x20:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_115;
break;
- case 0xf0:
- goto op_semantics_94;
+ }
+ break;
+ case 0x21:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- case 0xf6:
+ case 0x22:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_115;
break;
- case 0xf0:
- goto op_semantics_94;
+ }
+ break;
+ case 0x23:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- case 0xf7:
+ case 0x24:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_115;
break;
- case 0xf0:
- goto op_semantics_94;
+ }
+ break;
+ case 0x25:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- case 0xf8:
+ case 0x26:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xf9:
+ case 0x27:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xfa:
+ case 0x28:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xfb:
+ case 0x29:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xfc:
+ case 0x2a:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xfd:
+ case 0x2b:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
- break;
- case 0xf0:
- goto op_semantics_94;
+ goto op_semantics_115;
break;
}
break;
- case 0xfe:
+ case 0x2c:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_115;
break;
- case 0xf0:
- goto op_semantics_94;
+ }
+ break;
+ case 0x2d:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- case 0xff:
+ case 0x2e:
GETBYTE ();
- switch (op[2] & 0xf0)
+ switch (op[2] & 0x00)
{
case 0x00:
- case 0x10:
- case 0x20:
- case 0x30:
- case 0x40:
- case 0x50:
- case 0x60:
- case 0x70:
- case 0x80:
- case 0x90:
- case 0xa0:
- case 0xb0:
- case 0xc0:
- case 0xd0:
- case 0xe0:
- goto op_semantics_93;
+ goto op_semantics_115;
break;
- case 0xf0:
- goto op_semantics_94;
+ }
+ break;
+ case 0x2f:
+ GETBYTE ();
+ switch (op[2] & 0x00)
+ {
+ case 0x00:
+ goto op_semantics_115;
break;
}
break;
- default: UNSUPPORTED(); break;
- }
- break;
- case 0xfe:
- GETBYTE ();
- switch (op[1] & 0xff)
- {
- case 0x00:
+ case 0x40:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_95:
+ op_semantics_116:
{
- /** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */
-#line 335 "rx-decode.opc"
+ /** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */
+#line 339 "rx-decode.opc"
int sz AU = (op[1] >> 4) & 0x03;
-#line 335 "rx-decode.opc"
+#line 339 "rx-decode.opc"
int isrc AU = op[1] & 0x0f;
-#line 335 "rx-decode.opc"
+#line 339 "rx-decode.opc"
int bsrc AU = (op[2] >> 4) & 0x0f;
-#line 335 "rx-decode.opc"
+#line 339 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */",
+ "/** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */",
op[0], op[1], op[2]);
printf (" sz = 0x%x,", sz);
printf (" isrc = 0x%x,", isrc);
printf (" bsrc = 0x%x,", bsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("mov%s %0, [%1, %2]");
-#line 335 "rx-decode.opc"
- ID(movbir); sBWL(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
-
+ SYNTAX("mov%s [%1, %2], %0");
+#line 339 "rx-decode.opc"
+ ID(movbi); sBWL(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
+
}
break;
}
break;
- case 0x01:
+ case 0x41:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x02:
+ case 0x42:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x03:
+ case 0x43:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x04:
+ case 0x44:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x05:
+ case 0x45:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x06:
+ case 0x46:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x07:
+ case 0x47:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x08:
+ case 0x48:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x09:
+ case 0x49:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0a:
+ case 0x4a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0b:
+ case 0x4b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0c:
+ case 0x4c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0d:
+ case 0x4d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0e:
+ case 0x4e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x0f:
+ case 0x4f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x10:
+ case 0x50:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x11:
+ case 0x51:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x12:
+ case 0x52:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x13:
+ case 0x53:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x14:
+ case 0x54:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x15:
+ case 0x55:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x16:
+ case 0x56:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x17:
+ case 0x57:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x18:
+ case 0x58:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x19:
+ case 0x59:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1a:
+ case 0x5a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1b:
+ case 0x5b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1c:
+ case 0x5c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1d:
+ case 0x5d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1e:
+ case 0x5e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x1f:
+ case 0x5f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x20:
+ case 0x60:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x21:
+ case 0x61:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x22:
+ case 0x62:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x23:
+ case 0x63:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x24:
+ case 0x64:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x25:
+ case 0x65:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x26:
+ case 0x66:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x27:
+ case 0x67:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x28:
+ case 0x68:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x29:
+ case 0x69:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2a:
+ case 0x6a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2b:
+ case 0x6b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2c:
+ case 0x6c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2d:
+ case 0x6d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2e:
+ case 0x6e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x2f:
+ case 0x6f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_95;
+ goto op_semantics_116;
break;
}
break;
- case 0x40:
+ case 0xc0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_96:
+ op_semantics_117:
{
- /** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */
-#line 332 "rx-decode.opc"
+ /** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */
+#line 345 "rx-decode.opc"
int sz AU = (op[1] >> 4) & 0x03;
-#line 332 "rx-decode.opc"
+#line 345 "rx-decode.opc"
int isrc AU = op[1] & 0x0f;
-#line 332 "rx-decode.opc"
+#line 345 "rx-decode.opc"
int bsrc AU = (op[2] >> 4) & 0x0f;
-#line 332 "rx-decode.opc"
+#line 345 "rx-decode.opc"
int rdst AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */",
+ "/** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */",
op[0], op[1], op[2]);
printf (" sz = 0x%x,", sz);
printf (" isrc = 0x%x,", isrc);
printf (" bsrc = 0x%x,", bsrc);
printf (" rdst = 0x%x\n", rdst);
}
- SYNTAX("mov%s [%1, %2], %0");
-#line 332 "rx-decode.opc"
- ID(movbi); sBWL(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
-
+ SYNTAX("movu%s [%1, %2], %0");
+#line 345 "rx-decode.opc"
+ ID(movbi); uBW(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
+
}
break;
}
break;
- case 0x41:
+ case 0xc1:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x42:
+ case 0xc2:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x43:
+ case 0xc3:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x44:
+ case 0xc4:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x45:
+ case 0xc5:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x46:
+ case 0xc6:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x47:
+ case 0xc7:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x48:
+ case 0xc8:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x49:
+ case 0xc9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4a:
+ case 0xca:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4b:
+ case 0xcb:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4c:
+ case 0xcc:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4d:
+ case 0xcd:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4e:
+ case 0xce:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x4f:
+ case 0xcf:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x50:
+ case 0xd0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x51:
+ case 0xd1:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x52:
+ case 0xd2:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x53:
+ case 0xd3:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x54:
+ case 0xd4:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x55:
+ case 0xd5:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x56:
+ case 0xd6:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x57:
+ case 0xd7:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x58:
+ case 0xd8:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x59:
+ case 0xd9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5a:
+ case 0xda:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5b:
+ case 0xdb:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5c:
+ case 0xdc:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5d:
+ case 0xdd:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5e:
+ case 0xde:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x5f:
+ case 0xdf:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x60:
+ case 0xe0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x61:
+ case 0xe1:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x62:
+ case 0xe2:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x63:
+ case 0xe3:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x64:
+ case 0xe4:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x65:
+ case 0xe5:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x66:
+ case 0xe6:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x67:
+ case 0xe7:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x68:
+ case 0xe8:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x69:
+ case 0xe9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6a:
+ case 0xea:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6b:
+ case 0xeb:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6c:
+ case 0xec:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6d:
+ case 0xed:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6e:
+ case 0xee:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0x6f:
+ case 0xef:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_96;
+ goto op_semantics_117;
break;
}
break;
- case 0xc0:
+ default: UNSUPPORTED(); break;
+ }
+ break;
+ case 0xff:
+ GETBYTE ();
+ switch (op[1] & 0xff)
+ {
+ case 0x00:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_97:
+ op_semantics_118:
{
- /** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */
-#line 338 "rx-decode.opc"
- int sz AU = (op[1] >> 4) & 0x03;
-#line 338 "rx-decode.opc"
- int isrc AU = op[1] & 0x0f;
-#line 338 "rx-decode.opc"
- int bsrc AU = (op[2] >> 4) & 0x0f;
-#line 338 "rx-decode.opc"
- int rdst AU = op[2] & 0x0f;
+ /** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */
+#line 549 "rx-decode.opc"
+ int rdst AU = op[1] & 0x0f;
+#line 549 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 549 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */",
+ "/** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */",
op[0], op[1], op[2]);
- printf (" sz = 0x%x,", sz);
- printf (" isrc = 0x%x,", isrc);
- printf (" bsrc = 0x%x,", bsrc);
- printf (" rdst = 0x%x\n", rdst);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("movu%s [%1, %2], %0");
-#line 338 "rx-decode.opc"
- ID(movbi); uBWL(sz); DR(rdst); SRR(isrc); S2R(bsrc); F_____;
-
+ SYNTAX("sub %2, %1, %0");
+#line 549 "rx-decode.opc"
+ ID(sub); DR(rdst); SR(srcb); S2R(srca); F_OSZC;
+
+ /*----------------------------------------------------------------------*/
+ /* SBB */
+
}
break;
}
break;
- case 0xc1:
+ case 0x01:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc2:
+ case 0x02:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc3:
+ case 0x03:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc4:
+ case 0x04:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc5:
+ case 0x05:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc6:
+ case 0x06:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc7:
+ case 0x07:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc8:
+ case 0x08:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xc9:
+ case 0x09:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xca:
+ case 0x0a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xcb:
+ case 0x0b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xcc:
+ case 0x0c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xcd:
+ case 0x0d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xce:
+ case 0x0e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xcf:
+ case 0x0f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_118;
break;
}
break;
- case 0xd0:
+ case 0x20:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ op_semantics_119:
+ {
+ /** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */
+#line 516 "rx-decode.opc"
+ int rdst AU = op[1] & 0x0f;
+#line 516 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 516 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("add %2, %1, %0");
+#line 516 "rx-decode.opc"
+ ID(add); DR(rdst); SR(srcb); S2R(srca); F_OSZC;
+
+ /*----------------------------------------------------------------------*/
+ /* CMP */
+
+ }
break;
}
break;
- case 0xd1:
+ case 0x21:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd2:
+ case 0x22:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd3:
+ case 0x23:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd4:
+ case 0x24:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd5:
+ case 0x25:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd6:
+ case 0x26:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd7:
+ case 0x27:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd8:
+ case 0x28:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xd9:
+ case 0x29:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xda:
+ case 0x2a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xdb:
+ case 0x2b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xdc:
+ case 0x2c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xdd:
+ case 0x2d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xde:
+ case 0x2e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xdf:
+ case 0x2f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_119;
break;
}
break;
- case 0xe0:
+ case 0x30:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ op_semantics_120:
+ {
+ /** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */
+#line 656 "rx-decode.opc"
+ int rdst AU = op[1] & 0x0f;
+#line 656 "rx-decode.opc"
+ int srca AU = (op[2] >> 4) & 0x0f;
+#line 656 "rx-decode.opc"
+ int srcb AU = op[2] & 0x0f;
+ if (trace)
+ {
+ printf ("\033[33m%s\033[0m %02x %02x %02x\n",
+ "/** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */",
+ op[0], op[1], op[2]);
+ printf (" rdst = 0x%x,", rdst);
+ printf (" srca = 0x%x,", srca);
+ printf (" srcb = 0x%x\n", srcb);
+ }
+ SYNTAX("mul %2, %1, %0");
+#line 656 "rx-decode.opc"
+ ID(mul); DR(rdst); SR(srcb); S2R(srca); F_____;
+
+ /*----------------------------------------------------------------------*/
+ /* EMUL */
+
+ }
break;
}
break;
- case 0xe1:
+ case 0x31:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe2:
+ case 0x32:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe3:
+ case 0x33:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe4:
+ case 0x34:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe5:
+ case 0x35:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe6:
+ case 0x36:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe7:
+ case 0x37:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe8:
+ case 0x38:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xe9:
+ case 0x39:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xea:
+ case 0x3a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xeb:
+ case 0x3b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xec:
+ case 0x3c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xed:
+ case 0x3d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xee:
+ case 0x3e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- case 0xef:
+ case 0x3f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_97;
+ goto op_semantics_120;
break;
}
break;
- default: UNSUPPORTED(); break;
- }
- break;
- case 0xff:
- GETBYTE ();
- switch (op[1] & 0xff)
- {
- case 0x00:
+ case 0x40:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_98:
+ op_semantics_121:
{
- /** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */
-#line 542 "rx-decode.opc"
+ /** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */
+#line 426 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
-#line 542 "rx-decode.opc"
+#line 426 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 542 "rx-decode.opc"
+#line 426 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */",
+ "/** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */",
op[0], op[1], op[2]);
printf (" rdst = 0x%x,", rdst);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("sub %2, %1, %0");
-#line 542 "rx-decode.opc"
- ID(sub); DR(rdst); SR(srcb); S2R(srca); F_OSZC;
-
+ SYNTAX("and %2, %1, %0");
+#line 426 "rx-decode.opc"
+ ID(and); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
+
/*----------------------------------------------------------------------*/
- /* SBB */
-
+ /* OR */
+
}
break;
}
break;
- case 0x01:
+ case 0x41:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x02:
+ case 0x42:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x03:
+ case 0x43:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x04:
+ case 0x44:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x05:
+ case 0x45:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x06:
+ case 0x46:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x07:
+ case 0x47:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x08:
+ case 0x48:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x09:
+ case 0x49:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0a:
+ case 0x4a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0b:
+ case 0x4b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0c:
+ case 0x4c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0d:
+ case 0x4d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0e:
+ case 0x4e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x0f:
+ case 0x4f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_98;
+ goto op_semantics_121;
break;
}
break;
- case 0x20:
+ case 0x50:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_99:
+ op_semantics_122:
{
- /** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */
-#line 509 "rx-decode.opc"
+ /** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */
+#line 444 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
-#line 509 "rx-decode.opc"
+#line 444 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 509 "rx-decode.opc"
+#line 444 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */",
+ "/** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */",
op[0], op[1], op[2]);
printf (" rdst = 0x%x,", rdst);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("add %2, %1, %0");
-#line 509 "rx-decode.opc"
- ID(add); DR(rdst); SR(srcb); S2R(srca); F_OSZC;
-
+ SYNTAX("or %2, %1, %0");
+#line 444 "rx-decode.opc"
+ ID(or); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
+
/*----------------------------------------------------------------------*/
- /* CMP */
-
+ /* XOR */
+
}
break;
}
break;
- case 0x21:
+ case 0x51:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x22:
+ case 0x52:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x23:
+ case 0x53:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x24:
+ case 0x54:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x25:
+ case 0x55:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x26:
+ case 0x56:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x27:
+ case 0x57:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x28:
+ case 0x58:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x29:
+ case 0x59:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2a:
+ case 0x5a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2b:
+ case 0x5b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2c:
+ case 0x5c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2d:
+ case 0x5d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2e:
+ case 0x5e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x2f:
+ case 0x5f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_99;
+ goto op_semantics_122;
break;
}
break;
- case 0x30:
+ case 0x80:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_100:
+ op_semantics_123:
{
- /** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */
-#line 611 "rx-decode.opc"
+ /** 1111 1111 1000 rdst srca srcb fsub %2, %1, %0 */
+#line 1104 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
-#line 611 "rx-decode.opc"
+#line 1104 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 611 "rx-decode.opc"
+#line 1104 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */",
+ "/** 1111 1111 1000 rdst srca srcb fsub %2, %1, %0 */",
op[0], op[1], op[2]);
printf (" rdst = 0x%x,", rdst);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("mul %2, %1, %0");
-#line 611 "rx-decode.opc"
- ID(mul); DR(rdst); SR(srcb); S2R(srca); F_____;
-
- /*----------------------------------------------------------------------*/
- /* EMUL */
-
+ SYNTAX("fsub %2, %1, %0");
+#line 1104 "rx-decode.opc"
+ ID(fsub); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
+
}
break;
}
break;
- case 0x31:
+ case 0x81:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x32:
+ case 0x82:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x33:
+ case 0x83:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x34:
+ case 0x84:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x35:
+ case 0x85:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x36:
+ case 0x86:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x37:
+ case 0x87:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x38:
+ case 0x88:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x39:
+ case 0x89:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3a:
+ case 0x8a:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3b:
+ case 0x8b:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3c:
+ case 0x8c:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3d:
+ case 0x8d:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3e:
+ case 0x8e:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x3f:
+ case 0x8f:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_100;
+ goto op_semantics_123;
break;
}
break;
- case 0x40:
+ case 0xa0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_101:
+ op_semantics_124:
{
- /** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */
-#line 419 "rx-decode.opc"
+ /** 1111 1111 1010 rdst srca srcb fadd %2, %1, %0 */
+#line 1101 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
-#line 419 "rx-decode.opc"
+#line 1101 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 419 "rx-decode.opc"
+#line 1101 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */",
+ "/** 1111 1111 1010 rdst srca srcb fadd %2, %1, %0 */",
op[0], op[1], op[2]);
printf (" rdst = 0x%x,", rdst);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("and %2, %1, %0");
-#line 419 "rx-decode.opc"
- ID(and); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
-
- /*----------------------------------------------------------------------*/
- /* OR */
-
+ SYNTAX("fadd %2, %1, %0");
+#line 1101 "rx-decode.opc"
+ ID(fadd); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
+
}
break;
}
break;
- case 0x41:
+ case 0xa1:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x42:
+ case 0xa2:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x43:
+ case 0xa3:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x44:
+ case 0xa4:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x45:
+ case 0xa5:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x46:
+ case 0xa6:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x47:
+ case 0xa7:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x48:
+ case 0xa8:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x49:
+ case 0xa9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4a:
+ case 0xaa:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4b:
+ case 0xab:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4c:
+ case 0xac:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4d:
+ case 0xad:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4e:
+ case 0xae:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x4f:
+ case 0xaf:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_101;
+ goto op_semantics_124;
break;
}
break;
- case 0x50:
+ case 0xb0:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- op_semantics_102:
+ op_semantics_125:
{
- /** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */
-#line 437 "rx-decode.opc"
+ /** 1111 1111 1011 rdst srca srcb fmul %2, %1, %0 */
+#line 1107 "rx-decode.opc"
int rdst AU = op[1] & 0x0f;
-#line 437 "rx-decode.opc"
+#line 1107 "rx-decode.opc"
int srca AU = (op[2] >> 4) & 0x0f;
-#line 437 "rx-decode.opc"
+#line 1107 "rx-decode.opc"
int srcb AU = op[2] & 0x0f;
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x %02x\n",
- "/** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */",
+ "/** 1111 1111 1011 rdst srca srcb fmul %2, %1, %0 */",
op[0], op[1], op[2]);
printf (" rdst = 0x%x,", rdst);
printf (" srca = 0x%x,", srca);
printf (" srcb = 0x%x\n", srcb);
}
- SYNTAX("or %2, %1, %0");
-#line 437 "rx-decode.opc"
- ID(or); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
-
- /*----------------------------------------------------------------------*/
- /* XOR */
-
+ SYNTAX("fmul %2, %1, %0");
+#line 1107 "rx-decode.opc"
+ ID(fmul); DR(rdst); SR(srcb); S2R(srca); F__SZ_;
+
}
break;
}
break;
- case 0x51:
+ case 0xb1:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x52:
+ case 0xb2:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x53:
+ case 0xb3:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x54:
+ case 0xb4:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x55:
+ case 0xb5:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x56:
+ case 0xb6:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x57:
+ case 0xb7:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x58:
+ case 0xb8:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x59:
+ case 0xb9:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5a:
+ case 0xba:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5b:
+ case 0xbb:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5c:
+ case 0xbc:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5d:
+ case 0xbd:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5e:
+ case 0xbe:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
- case 0x5f:
+ case 0xbf:
GETBYTE ();
switch (op[2] & 0x00)
{
case 0x00:
- goto op_semantics_102;
+ goto op_semantics_125;
break;
}
break;
break;
default: UNSUPPORTED(); break;
}
-#line 1002 "rx-decode.opc"
+#line 1122 "rx-decode.opc"
return rx->n_bytes;
}