1 /* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
2 #line 1 "rx-decode.opc"
4 /* Copyright (C) 2012-2019 Free Software Foundation, Inc.
5 Contributed by Red Hat.
8 This file is part of the GNU opcodes library.
10 This library is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3, or (at your option)
15 It is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
23 MA 02110-1301, USA. */
30 #include "opcode/rx.h"
31 #include "libiberty.h"
33 #define RX_OPCODE_BIG_ENDIAN 0
37 RX_Opcode_Decoded
* rx
;
38 int (* getbyte
)(void *);
50 /* These are for when the upper bits are "don't care" or "undefined". */
56 RX_Bad_Size
/* Bogus instructions can have a size field set to 3. */
64 RX_Bad_Size
/* Bogus instructions can have a size field set to 3. */
71 RX_Bad_Size
,/* Bogus instructions can have a size field set to 2. */
72 RX_Bad_Size
/* Bogus instructions can have a size field set to 3. */
89 #define ID(x) rx->id = RXO_##x
90 #define OP(n,t,r,a) (rx->op[n].type = t, \
92 rx->op[n].addend = a )
93 #define OPs(n,t,r,a,s) (OP (n,t,r,a), \
96 /* This is for the BWL and BW bitfields. */
97 static int SCALE
[] = { 1, 2, 4, 0 };
98 /* This is for the prefix size enum. */
99 static int PSCALE
[] = { 4, 1, 1, 1, 2, 2, 2, 3, 4, 8 };
101 #define GET_SCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (SCALE) ? SCALE[(_indx)] : 0)
102 #define GET_PSCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (PSCALE) ? PSCALE[(_indx)] : 0)
104 static int flagmap
[] = {0, 1, 2, 3, 0, 0, 0, 0,
105 16, 17, 0, 0, 0, 0, 0, 0 };
107 static int dsp3map
[] = { 8, 9, 10, 3, 4, 5, 6, 7 };
110 *C a constant (immediate) c
112 *I Register indirect, no offset
113 *Is Register indirect, with offset
114 *D standard displacement: type (r,[r],dsp8,dsp16 code), register, BWL code
115 *P standard displacement: type (r,[r]), reg, assumes UByte
116 *Pm memex displacement: type (r,[r]), reg, memex code
117 *cc condition code. */
119 #define DC(c) OP (0, RX_Operand_Immediate, 0, c)
120 #define DR(r) OP (0, RX_Operand_Register, r, 0)
121 #define DI(r,a) OP (0, RX_Operand_Indirect, r, a)
122 #define DIs(r,a,s) OP (0, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
123 #define DD(t,r,s) rx_disp (0, t, r, bwl[s], ld);
124 #define DF(r) OP (0, RX_Operand_Flag, flagmap[r], 0)
125 #define DCR(r) OP (0, RX_Operand_DoubleCReg, r, 0)
126 #define DDR(r) OP (0, RX_Operand_DoubleReg, r, 0)
127 #define DDRH(r) OP (0, RX_Operand_DoubleRegH, r, 0)
128 #define DDRL(r) OP (0, RX_Operand_DoubleRegL, r, 0)
129 #define DCND(r) OP (0, RX_Operand_DoubleCond, r, 0)
131 #define SC(i) OP (1, RX_Operand_Immediate, 0, i)
132 #define SR(r) OP (1, RX_Operand_Register, r, 0)
133 #define SRR(r) OP (1, RX_Operand_TwoReg, r, 0)
134 #define SI(r,a) OP (1, RX_Operand_Indirect, r, a)
135 #define SIs(r,a,s) OP (1, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
136 #define SD(t,r,s) rx_disp (1, t, r, bwl[s], ld);
137 #define SP(t,r) rx_disp (1, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 1);
138 #define SPm(t,r,m) rx_disp (1, t, r, memex[m], ld); rx->op[1].size = memex[m];
139 #define Scc(cc) OP (1, RX_Operand_Condition, cc, 0)
140 #define SCR(r) OP (1, RX_Operand_DoubleCReg, r, 0)
141 #define SDR(r) OP (1, RX_Operand_DoubleReg, r, 0)
142 #define SDRH(r) OP (1, RX_Operand_DoubleRegH, r, 0)
143 #define SDRL(r) OP (1, RX_Operand_DoubleRegL, r, 0)
145 #define S2C(i) OP (2, RX_Operand_Immediate, 0, i)
146 #define S2R(r) OP (2, RX_Operand_Register, r, 0)
147 #define S2I(r,a) OP (2, RX_Operand_Indirect, r, a)
148 #define S2Is(r,a,s) OP (2, RX_Operand_Indirect, r, (a) * GET_SCALE (s))
149 #define S2D(t,r,s) rx_disp (2, t, r, bwl[s], ld);
150 #define S2P(t,r) rx_disp (2, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 2);
151 #define S2Pm(t,r,m) rx_disp (2, t, r, memex[m], ld); rx->op[2].size = memex[m];
152 #define S2cc(cc) OP (2, RX_Operand_Condition, cc, 0)
153 #define S2DR(r) OP (2, RX_Operand_DoubleReg, r, 0)
154 #define S2CR(r) OP (2, RX_Operand_DoubleCReg, r, 0)
156 #define SDD(t,r,s) rx_disp (1, t, r, bwl, ld);
158 #define BWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = bwl[sz]
159 #define sBWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = sbwl[sz]
160 #define uBW(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = ubw[sz]
161 #define P(t, n) rx->op[n].size = (t!=3) ? RX_UByte : RX_Long;
162 #define DL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = _ld[sz]
164 #define F(f) store_flags(rx, f)
166 #define AU ATTRIBUTE_UNUSED
167 #define GETBYTE() (ld->op [ld->rx->n_bytes++] = ld->getbyte (ld->ptr))
169 #define SYNTAX(x) rx->syntax = x
171 #define UNSUPPORTED() \
172 rx->syntax = "*unknown*"
174 #define IMM(sf) immediate (sf, 0, ld)
175 #define IMMex(sf) immediate (sf, 1, ld)
178 immediate (int sfield
, int ex
, LocalData
* ld
)
180 unsigned long i
= 0, j
;
184 #define B ((unsigned long) GETBYTE())
186 #if RX_OPCODE_BIG_ENDIAN
188 if (ex
&& (i
& 0x80))
199 if (ex
&& (j
& 0x80))
205 #if RX_OPCODE_BIG_ENDIAN
214 if (ex
&& (i
& 0x800000))
218 #if RX_OPCODE_BIG_ENDIAN
225 if (ex
&& (i
& 0x8000))
230 if (ex
&& (i
& 0x80))
240 rx_disp (int n
, int type
, int reg
, unsigned int size
, LocalData
* ld
)
244 ld
->rx
->op
[n
].reg
= reg
;
248 ld
->rx
->op
[n
].type
= RX_Operand_Register
;
251 ld
->rx
->op
[n
].type
= RX_Operand_Zero_Indirect
;
252 ld
->rx
->op
[n
].addend
= 0;
255 ld
->rx
->op
[n
].type
= RX_Operand_Indirect
;
257 ld
->rx
->op
[n
].addend
= disp
* GET_PSCALE (size
);
260 ld
->rx
->op
[n
].type
= RX_Operand_Indirect
;
262 #if RX_OPCODE_BIG_ENDIAN
263 disp
= disp
* 256 + GETBYTE ();
265 disp
= disp
+ GETBYTE () * 256;
267 ld
->rx
->op
[n
].addend
= disp
* GET_PSCALE (size
);
280 #define F___ZC rx->flags_0 = rx->flags_s = xZ|xC;
281 #define F__SZ_ rx->flags_0 = rx->flags_s = xS|xZ;
282 #define F__SZC rx->flags_0 = rx->flags_s = xS|xZ|xC;
283 #define F_0SZC rx->flags_0 = xO|xS|xZ|xC; rx->flags_s = xS|xZ|xC;
284 #define F_O___ rx->flags_0 = rx->flags_s = xO;
285 #define F_OS__ rx->flags_0 = rx->flags_s = xO|xS;
286 #define F_OSZ_ rx->flags_0 = rx->flags_s = xO|xS|xZ;
287 #define F_OSZC rx->flags_0 = rx->flags_s = xO|xS|xZ|xC;
290 rx_decode_opcode (unsigned long pc AU
,
291 RX_Opcode_Decoded
* rx
,
292 int (* getbyte
)(void *),
295 LocalData lds
, * ld
= &lds
;
296 unsigned char op
[20] = {0};
299 lds
.getbyte
= getbyte
;
303 memset (rx
, 0, sizeof (*rx
));
307 /*----------------------------------------------------------------------*/
311 switch (op
[0] & 0xff)
318 printf ("\033[33m%s\033[0m %02x\n",
319 "/** 0000 0000 brk */",
323 #line 1050 "rx-decode.opc"
333 printf ("\033[33m%s\033[0m %02x\n",
334 "/** 0000 0001 dbt */",
338 #line 1053 "rx-decode.opc"
348 printf ("\033[33m%s\033[0m %02x\n",
349 "/** 0000 0010 rts */",
353 #line 831 "rx-decode.opc"
356 /*----------------------------------------------------------------------*/
366 printf ("\033[33m%s\033[0m %02x\n",
367 "/** 0000 0011 nop */",
371 #line 837 "rx-decode.opc"
374 /*----------------------------------------------------------------------*/
375 /* STRING FUNCTIONS */
381 /** 0000 0100 bra.a %a0 */
384 printf ("\033[33m%s\033[0m %02x\n",
385 "/** 0000 0100 bra.a %a0 */",
389 #line 809 "rx-decode.opc"
390 ID(branch
); DC(pc
+ IMMex(3));
396 /** 0000 0101 bsr.a %a0 */
399 printf ("\033[33m%s\033[0m %02x\n",
400 "/** 0000 0101 bsr.a %a0 */",
404 #line 825 "rx-decode.opc"
405 ID(jsr
); DC(pc
+ IMMex(3));
411 switch (op
[1] & 0xff)
415 switch (op
[2] & 0x00)
420 /** 0000 0110 mx00 00ss rsrc rdst sub %2%S2, %1 */
421 #line 567 "rx-decode.opc"
422 int mx AU
= (op
[1] >> 6) & 0x03;
423 #line 567 "rx-decode.opc"
424 int ss AU
= op
[1] & 0x03;
425 #line 567 "rx-decode.opc"
426 int rsrc AU
= (op
[2] >> 4) & 0x0f;
427 #line 567 "rx-decode.opc"
428 int rdst AU
= op
[2] & 0x0f;
431 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
432 "/** 0000 0110 mx00 00ss rsrc rdst sub %2%S2, %1 */",
433 op
[0], op
[1], op
[2]);
434 printf (" mx = 0x%x,", mx
);
435 printf (" ss = 0x%x,", ss
);
436 printf (" rsrc = 0x%x,", rsrc
);
437 printf (" rdst = 0x%x\n", rdst
);
439 SYNTAX("sub %2%S2, %1");
440 #line 567 "rx-decode.opc"
441 ID(sub
); S2Pm(ss
, rsrc
, mx
); SR(rdst
); DR(rdst
); F_OSZC
;
449 switch (op
[2] & 0x00)
458 switch (op
[2] & 0x00)
467 switch (op
[2] & 0x00)
476 switch (op
[2] & 0x00)
481 /** 0000 0110 mx00 01ss rsrc rdst cmp %2%S2, %1 */
482 #line 555 "rx-decode.opc"
483 int mx AU
= (op
[1] >> 6) & 0x03;
484 #line 555 "rx-decode.opc"
485 int ss AU
= op
[1] & 0x03;
486 #line 555 "rx-decode.opc"
487 int rsrc AU
= (op
[2] >> 4) & 0x0f;
488 #line 555 "rx-decode.opc"
489 int rdst AU
= op
[2] & 0x0f;
492 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
493 "/** 0000 0110 mx00 01ss rsrc rdst cmp %2%S2, %1 */",
494 op
[0], op
[1], op
[2]);
495 printf (" mx = 0x%x,", mx
);
496 printf (" ss = 0x%x,", ss
);
497 printf (" rsrc = 0x%x,", rsrc
);
498 printf (" rdst = 0x%x\n", rdst
);
500 SYNTAX("cmp %2%S2, %1");
501 #line 555 "rx-decode.opc"
502 ID(sub
); S2Pm(ss
, rsrc
, mx
); SR(rdst
); F_OSZC
;
504 /*----------------------------------------------------------------------*/
513 switch (op
[2] & 0x00)
522 switch (op
[2] & 0x00)
531 switch (op
[2] & 0x00)
540 switch (op
[2] & 0x00)
545 /** 0000 0110 mx00 10ss rsrc rdst add %1%S1, %0 */
546 #line 531 "rx-decode.opc"
547 int mx AU
= (op
[1] >> 6) & 0x03;
548 #line 531 "rx-decode.opc"
549 int ss AU
= op
[1] & 0x03;
550 #line 531 "rx-decode.opc"
551 int rsrc AU
= (op
[2] >> 4) & 0x0f;
552 #line 531 "rx-decode.opc"
553 int rdst AU
= op
[2] & 0x0f;
556 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
557 "/** 0000 0110 mx00 10ss rsrc rdst add %1%S1, %0 */",
558 op
[0], op
[1], op
[2]);
559 printf (" mx = 0x%x,", mx
);
560 printf (" ss = 0x%x,", ss
);
561 printf (" rsrc = 0x%x,", rsrc
);
562 printf (" rdst = 0x%x\n", rdst
);
564 SYNTAX("add %1%S1, %0");
565 #line 531 "rx-decode.opc"
566 ID(add
); SPm(ss
, rsrc
, mx
); DR(rdst
); F_OSZC
;
574 switch (op
[2] & 0x00)
583 switch (op
[2] & 0x00)
592 switch (op
[2] & 0x00)
601 switch (op
[2] & 0x00)
606 /** 0000 0110 mx00 11ss rsrc rdst mul %1%S1, %0 */
607 #line 674 "rx-decode.opc"
608 int mx AU
= (op
[1] >> 6) & 0x03;
609 #line 674 "rx-decode.opc"
610 int ss AU
= op
[1] & 0x03;
611 #line 674 "rx-decode.opc"
612 int rsrc AU
= (op
[2] >> 4) & 0x0f;
613 #line 674 "rx-decode.opc"
614 int rdst AU
= op
[2] & 0x0f;
617 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
618 "/** 0000 0110 mx00 11ss rsrc rdst mul %1%S1, %0 */",
619 op
[0], op
[1], op
[2]);
620 printf (" mx = 0x%x,", mx
);
621 printf (" ss = 0x%x,", ss
);
622 printf (" rsrc = 0x%x,", rsrc
);
623 printf (" rdst = 0x%x\n", rdst
);
625 SYNTAX("mul %1%S1, %0");
626 #line 674 "rx-decode.opc"
627 ID(mul
); SPm(ss
, rsrc
, mx
); DR(rdst
); F_____
;
635 switch (op
[2] & 0x00)
644 switch (op
[2] & 0x00)
653 switch (op
[2] & 0x00)
662 switch (op
[2] & 0x00)
667 /** 0000 0110 mx01 00ss rsrc rdst and %1%S1, %0 */
668 #line 444 "rx-decode.opc"
669 int mx AU
= (op
[1] >> 6) & 0x03;
670 #line 444 "rx-decode.opc"
671 int ss AU
= op
[1] & 0x03;
672 #line 444 "rx-decode.opc"
673 int rsrc AU
= (op
[2] >> 4) & 0x0f;
674 #line 444 "rx-decode.opc"
675 int rdst AU
= op
[2] & 0x0f;
678 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
679 "/** 0000 0110 mx01 00ss rsrc rdst and %1%S1, %0 */",
680 op
[0], op
[1], op
[2]);
681 printf (" mx = 0x%x,", mx
);
682 printf (" ss = 0x%x,", ss
);
683 printf (" rsrc = 0x%x,", rsrc
);
684 printf (" rdst = 0x%x\n", rdst
);
686 SYNTAX("and %1%S1, %0");
687 #line 444 "rx-decode.opc"
688 ID(and); SPm(ss
, rsrc
, mx
); DR(rdst
); F__SZ_
;
696 switch (op
[2] & 0x00)
705 switch (op
[2] & 0x00)
714 switch (op
[2] & 0x00)
723 switch (op
[2] & 0x00)
728 /** 0000 0110 mx01 01ss rsrc rdst or %1%S1, %0 */
729 #line 462 "rx-decode.opc"
730 int mx AU
= (op
[1] >> 6) & 0x03;
731 #line 462 "rx-decode.opc"
732 int ss AU
= op
[1] & 0x03;
733 #line 462 "rx-decode.opc"
734 int rsrc AU
= (op
[2] >> 4) & 0x0f;
735 #line 462 "rx-decode.opc"
736 int rdst AU
= op
[2] & 0x0f;
739 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
740 "/** 0000 0110 mx01 01ss rsrc rdst or %1%S1, %0 */",
741 op
[0], op
[1], op
[2]);
742 printf (" mx = 0x%x,", mx
);
743 printf (" ss = 0x%x,", ss
);
744 printf (" rsrc = 0x%x,", rsrc
);
745 printf (" rdst = 0x%x\n", rdst
);
747 SYNTAX("or %1%S1, %0");
748 #line 462 "rx-decode.opc"
749 ID(or); SPm(ss
, rsrc
, mx
); DR(rdst
); F__SZ_
;
757 switch (op
[2] & 0x00)
766 switch (op
[2] & 0x00)
775 switch (op
[2] & 0x00)
784 switch (op
[2] & 0xff)
788 switch (op
[3] & 0x00)
793 /** 0000 0110 mx10 00sp 0000 0000 rsrc rdst sbb %1%S1, %0 */
794 #line 580 "rx-decode.opc"
795 int mx AU
= (op
[1] >> 6) & 0x03;
796 #line 580 "rx-decode.opc"
797 int sp AU
= op
[1] & 0x03;
798 #line 580 "rx-decode.opc"
799 int rsrc AU
= (op
[3] >> 4) & 0x0f;
800 #line 580 "rx-decode.opc"
801 int rdst AU
= op
[3] & 0x0f;
804 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
805 "/** 0000 0110 mx10 00sp 0000 0000 rsrc rdst sbb %1%S1, %0 */",
806 op
[0], op
[1], op
[2], op
[3]);
807 printf (" mx = 0x%x,", mx
);
808 printf (" sp = 0x%x,", sp
);
809 printf (" rsrc = 0x%x,", rsrc
);
810 printf (" rdst = 0x%x\n", rdst
);
812 SYNTAX("sbb %1%S1, %0");
813 #line 580 "rx-decode.opc"
814 ID(sbb
); SPm(sp
, rsrc
, mx
); DR(rdst
); F_OSZC
;
816 /*----------------------------------------------------------------------*/
825 switch (op
[3] & 0x00)
830 /** 0000 0110 mx10 00ss 0000 0100 rsrc rdst max %1%S1, %0 */
831 #line 619 "rx-decode.opc"
832 int mx AU
= (op
[1] >> 6) & 0x03;
833 #line 619 "rx-decode.opc"
834 int ss AU
= op
[1] & 0x03;
835 #line 619 "rx-decode.opc"
836 int rsrc AU
= (op
[3] >> 4) & 0x0f;
837 #line 619 "rx-decode.opc"
838 int rdst AU
= op
[3] & 0x0f;
841 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
842 "/** 0000 0110 mx10 00ss 0000 0100 rsrc rdst max %1%S1, %0 */",
843 op
[0], op
[1], op
[2], op
[3]);
844 printf (" mx = 0x%x,", mx
);
845 printf (" ss = 0x%x,", ss
);
846 printf (" rsrc = 0x%x,", rsrc
);
847 printf (" rdst = 0x%x\n", rdst
);
849 SYNTAX("max %1%S1, %0");
850 #line 619 "rx-decode.opc"
851 ID(max
); SPm(ss
, rsrc
, mx
); DR(rdst
);
853 /*----------------------------------------------------------------------*/
862 switch (op
[3] & 0x00)
867 /** 0000 0110 mx10 00ss 0000 0101 rsrc rdst min %1%S1, %0 */
868 #line 631 "rx-decode.opc"
869 int mx AU
= (op
[1] >> 6) & 0x03;
870 #line 631 "rx-decode.opc"
871 int ss AU
= op
[1] & 0x03;
872 #line 631 "rx-decode.opc"
873 int rsrc AU
= (op
[3] >> 4) & 0x0f;
874 #line 631 "rx-decode.opc"
875 int rdst AU
= op
[3] & 0x0f;
878 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
879 "/** 0000 0110 mx10 00ss 0000 0101 rsrc rdst min %1%S1, %0 */",
880 op
[0], op
[1], op
[2], op
[3]);
881 printf (" mx = 0x%x,", mx
);
882 printf (" ss = 0x%x,", ss
);
883 printf (" rsrc = 0x%x,", rsrc
);
884 printf (" rdst = 0x%x\n", rdst
);
886 SYNTAX("min %1%S1, %0");
887 #line 631 "rx-decode.opc"
888 ID(min
); SPm(ss
, rsrc
, mx
); DR(rdst
);
890 /*----------------------------------------------------------------------*/
899 switch (op
[3] & 0x00)
904 /** 0000 0110 mx10 00ss 0000 0110 rsrc rdst emul %1%S1, %0 */
905 #line 689 "rx-decode.opc"
906 int mx AU
= (op
[1] >> 6) & 0x03;
907 #line 689 "rx-decode.opc"
908 int ss AU
= op
[1] & 0x03;
909 #line 689 "rx-decode.opc"
910 int rsrc AU
= (op
[3] >> 4) & 0x0f;
911 #line 689 "rx-decode.opc"
912 int rdst AU
= op
[3] & 0x0f;
915 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
916 "/** 0000 0110 mx10 00ss 0000 0110 rsrc rdst emul %1%S1, %0 */",
917 op
[0], op
[1], op
[2], op
[3]);
918 printf (" mx = 0x%x,", mx
);
919 printf (" ss = 0x%x,", ss
);
920 printf (" rsrc = 0x%x,", rsrc
);
921 printf (" rdst = 0x%x\n", rdst
);
923 SYNTAX("emul %1%S1, %0");
924 #line 689 "rx-decode.opc"
925 ID(emul
); SPm(ss
, rsrc
, mx
); DR(rdst
);
927 /*----------------------------------------------------------------------*/
936 switch (op
[3] & 0x00)
941 /** 0000 0110 mx10 00ss 0000 0111 rsrc rdst emulu %1%S1, %0 */
942 #line 701 "rx-decode.opc"
943 int mx AU
= (op
[1] >> 6) & 0x03;
944 #line 701 "rx-decode.opc"
945 int ss AU
= op
[1] & 0x03;
946 #line 701 "rx-decode.opc"
947 int rsrc AU
= (op
[3] >> 4) & 0x0f;
948 #line 701 "rx-decode.opc"
949 int rdst AU
= op
[3] & 0x0f;
952 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
953 "/** 0000 0110 mx10 00ss 0000 0111 rsrc rdst emulu %1%S1, %0 */",
954 op
[0], op
[1], op
[2], op
[3]);
955 printf (" mx = 0x%x,", mx
);
956 printf (" ss = 0x%x,", ss
);
957 printf (" rsrc = 0x%x,", rsrc
);
958 printf (" rdst = 0x%x\n", rdst
);
960 SYNTAX("emulu %1%S1, %0");
961 #line 701 "rx-decode.opc"
962 ID(emulu
); SPm(ss
, rsrc
, mx
); DR(rdst
);
964 /*----------------------------------------------------------------------*/
973 switch (op
[3] & 0x00)
978 /** 0000 0110 mx10 00ss 0000 1000 rsrc rdst div %1%S1, %0 */
979 #line 713 "rx-decode.opc"
980 int mx AU
= (op
[1] >> 6) & 0x03;
981 #line 713 "rx-decode.opc"
982 int ss AU
= op
[1] & 0x03;
983 #line 713 "rx-decode.opc"
984 int rsrc AU
= (op
[3] >> 4) & 0x0f;
985 #line 713 "rx-decode.opc"
986 int rdst AU
= op
[3] & 0x0f;
989 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
990 "/** 0000 0110 mx10 00ss 0000 1000 rsrc rdst div %1%S1, %0 */",
991 op
[0], op
[1], op
[2], op
[3]);
992 printf (" mx = 0x%x,", mx
);
993 printf (" ss = 0x%x,", ss
);
994 printf (" rsrc = 0x%x,", rsrc
);
995 printf (" rdst = 0x%x\n", rdst
);
997 SYNTAX("div %1%S1, %0");
998 #line 713 "rx-decode.opc"
999 ID(div
); SPm(ss
, rsrc
, mx
); DR(rdst
); F_O___
;
1001 /*----------------------------------------------------------------------*/
1010 switch (op
[3] & 0x00)
1015 /** 0000 0110 mx10 00ss 0000 1001 rsrc rdst divu %1%S1, %0 */
1016 #line 725 "rx-decode.opc"
1017 int mx AU
= (op
[1] >> 6) & 0x03;
1018 #line 725 "rx-decode.opc"
1019 int ss AU
= op
[1] & 0x03;
1020 #line 725 "rx-decode.opc"
1021 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1022 #line 725 "rx-decode.opc"
1023 int rdst AU
= op
[3] & 0x0f;
1026 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1027 "/** 0000 0110 mx10 00ss 0000 1001 rsrc rdst divu %1%S1, %0 */",
1028 op
[0], op
[1], op
[2], op
[3]);
1029 printf (" mx = 0x%x,", mx
);
1030 printf (" ss = 0x%x,", ss
);
1031 printf (" rsrc = 0x%x,", rsrc
);
1032 printf (" rdst = 0x%x\n", rdst
);
1034 SYNTAX("divu %1%S1, %0");
1035 #line 725 "rx-decode.opc"
1036 ID(divu
); SPm(ss
, rsrc
, mx
); DR(rdst
); F_O___
;
1038 /*----------------------------------------------------------------------*/
1047 switch (op
[3] & 0x00)
1052 /** 0000 0110 mx10 00ss 0000 1100 rsrc rdst tst %1%S1, %2 */
1053 #line 498 "rx-decode.opc"
1054 int mx AU
= (op
[1] >> 6) & 0x03;
1055 #line 498 "rx-decode.opc"
1056 int ss AU
= op
[1] & 0x03;
1057 #line 498 "rx-decode.opc"
1058 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1059 #line 498 "rx-decode.opc"
1060 int rdst AU
= op
[3] & 0x0f;
1063 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1064 "/** 0000 0110 mx10 00ss 0000 1100 rsrc rdst tst %1%S1, %2 */",
1065 op
[0], op
[1], op
[2], op
[3]);
1066 printf (" mx = 0x%x,", mx
);
1067 printf (" ss = 0x%x,", ss
);
1068 printf (" rsrc = 0x%x,", rsrc
);
1069 printf (" rdst = 0x%x\n", rdst
);
1071 SYNTAX("tst %1%S1, %2");
1072 #line 498 "rx-decode.opc"
1073 ID(and); SPm(ss
, rsrc
, mx
); S2R(rdst
); F__SZ_
;
1075 /*----------------------------------------------------------------------*/
1084 switch (op
[3] & 0x00)
1089 /** 0000 0110 mx10 00ss 0000 1101 rsrc rdst xor %1%S1, %0 */
1090 #line 477 "rx-decode.opc"
1091 int mx AU
= (op
[1] >> 6) & 0x03;
1092 #line 477 "rx-decode.opc"
1093 int ss AU
= op
[1] & 0x03;
1094 #line 477 "rx-decode.opc"
1095 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1096 #line 477 "rx-decode.opc"
1097 int rdst AU
= op
[3] & 0x0f;
1100 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1101 "/** 0000 0110 mx10 00ss 0000 1101 rsrc rdst xor %1%S1, %0 */",
1102 op
[0], op
[1], op
[2], op
[3]);
1103 printf (" mx = 0x%x,", mx
);
1104 printf (" ss = 0x%x,", ss
);
1105 printf (" rsrc = 0x%x,", rsrc
);
1106 printf (" rdst = 0x%x\n", rdst
);
1108 SYNTAX("xor %1%S1, %0");
1109 #line 477 "rx-decode.opc"
1110 ID(xor); SPm(ss
, rsrc
, mx
); DR(rdst
); F__SZ_
;
1112 /*----------------------------------------------------------------------*/
1121 switch (op
[3] & 0x00)
1126 /** 0000 0110 mx10 00ss 0001 0000 rsrc rdst xchg %1%S1, %0 */
1127 #line 411 "rx-decode.opc"
1128 int mx AU
= (op
[1] >> 6) & 0x03;
1129 #line 411 "rx-decode.opc"
1130 int ss AU
= op
[1] & 0x03;
1131 #line 411 "rx-decode.opc"
1132 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1133 #line 411 "rx-decode.opc"
1134 int rdst AU
= op
[3] & 0x0f;
1137 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1138 "/** 0000 0110 mx10 00ss 0001 0000 rsrc rdst xchg %1%S1, %0 */",
1139 op
[0], op
[1], op
[2], op
[3]);
1140 printf (" mx = 0x%x,", mx
);
1141 printf (" ss = 0x%x,", ss
);
1142 printf (" rsrc = 0x%x,", rsrc
);
1143 printf (" rdst = 0x%x\n", rdst
);
1145 SYNTAX("xchg %1%S1, %0");
1146 #line 411 "rx-decode.opc"
1147 ID(xchg
); DR(rdst
); SPm(ss
, rsrc
, mx
);
1149 /*----------------------------------------------------------------------*/
1158 switch (op
[3] & 0x00)
1163 /** 0000 0110 mx10 00sd 0001 0001 rsrc rdst itof %1%S1, %0 */
1164 #line 954 "rx-decode.opc"
1165 int mx AU
= (op
[1] >> 6) & 0x03;
1166 #line 954 "rx-decode.opc"
1167 int sd AU
= op
[1] & 0x03;
1168 #line 954 "rx-decode.opc"
1169 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1170 #line 954 "rx-decode.opc"
1171 int rdst AU
= op
[3] & 0x0f;
1174 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1175 "/** 0000 0110 mx10 00sd 0001 0001 rsrc rdst itof %1%S1, %0 */",
1176 op
[0], op
[1], op
[2], op
[3]);
1177 printf (" mx = 0x%x,", mx
);
1178 printf (" sd = 0x%x,", sd
);
1179 printf (" rsrc = 0x%x,", rsrc
);
1180 printf (" rdst = 0x%x\n", rdst
);
1182 SYNTAX("itof %1%S1, %0");
1183 #line 954 "rx-decode.opc"
1184 ID(itof
); DR (rdst
); SPm(sd
, rsrc
, mx
); F__SZ_
;
1186 /*----------------------------------------------------------------------*/
1195 switch (op
[3] & 0x00)
1200 /** 0000 0110 mx10 00sd 0001 0101 rsrc rdst utof %1%S1, %0 */
1201 #line 1140 "rx-decode.opc"
1202 int mx AU
= (op
[1] >> 6) & 0x03;
1203 #line 1140 "rx-decode.opc"
1204 int sd AU
= op
[1] & 0x03;
1205 #line 1140 "rx-decode.opc"
1206 int rsrc AU
= (op
[3] >> 4) & 0x0f;
1207 #line 1140 "rx-decode.opc"
1208 int rdst AU
= op
[3] & 0x0f;
1211 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
1212 "/** 0000 0110 mx10 00sd 0001 0101 rsrc rdst utof %1%S1, %0 */",
1213 op
[0], op
[1], op
[2], op
[3]);
1214 printf (" mx = 0x%x,", mx
);
1215 printf (" sd = 0x%x,", sd
);
1216 printf (" rsrc = 0x%x,", rsrc
);
1217 printf (" rdst = 0x%x\n", rdst
);
1219 SYNTAX("utof %1%S1, %0");
1220 #line 1140 "rx-decode.opc"
1221 ID(utof
); DR (rdst
); SPm(sd
, rsrc
, mx
); F__SZ_
;
1223 /*----------------------------------------------------------------------*/
1230 default: UNSUPPORTED(); break;
1235 switch (op
[2] & 0xff)
1239 switch (op
[3] & 0x00)
1242 goto op_semantics_7
;
1248 switch (op
[3] & 0x00)
1251 goto op_semantics_8
;
1257 switch (op
[3] & 0x00)
1260 goto op_semantics_9
;
1266 switch (op
[3] & 0x00)
1269 goto op_semantics_10
;
1275 switch (op
[3] & 0x00)
1278 goto op_semantics_11
;
1284 switch (op
[3] & 0x00)
1287 goto op_semantics_12
;
1293 switch (op
[3] & 0x00)
1296 goto op_semantics_13
;
1302 switch (op
[3] & 0x00)
1305 goto op_semantics_14
;
1311 switch (op
[3] & 0x00)
1314 goto op_semantics_15
;
1320 switch (op
[3] & 0x00)
1323 goto op_semantics_16
;
1329 switch (op
[3] & 0x00)
1332 goto op_semantics_17
;
1338 switch (op
[3] & 0x00)
1341 goto op_semantics_18
;
1345 default: UNSUPPORTED(); break;
1350 switch (op
[2] & 0xff)
1354 switch (op
[3] & 0x00)
1357 goto op_semantics_7
;
1363 switch (op
[3] & 0x00)
1366 goto op_semantics_8
;
1372 switch (op
[3] & 0x00)
1375 goto op_semantics_9
;
1381 switch (op
[3] & 0x00)
1384 goto op_semantics_10
;
1390 switch (op
[3] & 0x00)
1393 goto op_semantics_11
;
1399 switch (op
[3] & 0x00)
1402 goto op_semantics_12
;
1408 switch (op
[3] & 0x00)
1411 goto op_semantics_13
;
1417 switch (op
[3] & 0x00)
1420 goto op_semantics_14
;
1426 switch (op
[3] & 0x00)
1429 goto op_semantics_15
;
1435 switch (op
[3] & 0x00)
1438 goto op_semantics_16
;
1444 switch (op
[3] & 0x00)
1447 goto op_semantics_17
;
1453 switch (op
[3] & 0x00)
1456 goto op_semantics_18
;
1460 default: UNSUPPORTED(); break;
1465 switch (op
[2] & 0xff)
1469 switch (op
[3] & 0x00)
1472 goto op_semantics_7
;
1478 switch (op
[3] & 0x00)
1481 goto op_semantics_8
;
1487 switch (op
[3] & 0x00)
1490 goto op_semantics_9
;
1496 switch (op
[3] & 0x00)
1499 goto op_semantics_10
;
1505 switch (op
[3] & 0x00)
1508 goto op_semantics_11
;
1514 switch (op
[3] & 0x00)
1517 goto op_semantics_12
;
1523 switch (op
[3] & 0x00)
1526 goto op_semantics_13
;
1532 switch (op
[3] & 0x00)
1535 goto op_semantics_14
;
1541 switch (op
[3] & 0x00)
1544 goto op_semantics_15
;
1550 switch (op
[3] & 0x00)
1553 goto op_semantics_16
;
1559 switch (op
[3] & 0x00)
1562 goto op_semantics_17
;
1568 switch (op
[3] & 0x00)
1571 goto op_semantics_18
;
1575 default: UNSUPPORTED(); break;
1580 switch (op
[2] & 0x00)
1583 goto op_semantics_1
;
1589 switch (op
[2] & 0x00)
1592 goto op_semantics_1
;
1598 switch (op
[2] & 0x00)
1601 goto op_semantics_1
;
1607 switch (op
[2] & 0x00)
1610 goto op_semantics_1
;
1616 switch (op
[2] & 0x00)
1619 goto op_semantics_2
;
1625 switch (op
[2] & 0x00)
1628 goto op_semantics_2
;
1634 switch (op
[2] & 0x00)
1637 goto op_semantics_2
;
1643 switch (op
[2] & 0x00)
1646 goto op_semantics_2
;
1652 switch (op
[2] & 0x00)
1655 goto op_semantics_3
;
1661 switch (op
[2] & 0x00)
1664 goto op_semantics_3
;
1670 switch (op
[2] & 0x00)
1673 goto op_semantics_3
;
1679 switch (op
[2] & 0x00)
1682 goto op_semantics_3
;
1688 switch (op
[2] & 0x00)
1691 goto op_semantics_4
;
1697 switch (op
[2] & 0x00)
1700 goto op_semantics_4
;
1706 switch (op
[2] & 0x00)
1709 goto op_semantics_4
;
1715 switch (op
[2] & 0x00)
1718 goto op_semantics_4
;
1724 switch (op
[2] & 0x00)
1727 goto op_semantics_5
;
1733 switch (op
[2] & 0x00)
1736 goto op_semantics_5
;
1742 switch (op
[2] & 0x00)
1745 goto op_semantics_5
;
1751 switch (op
[2] & 0x00)
1754 goto op_semantics_5
;
1760 switch (op
[2] & 0x00)
1763 goto op_semantics_6
;
1769 switch (op
[2] & 0x00)
1772 goto op_semantics_6
;
1778 switch (op
[2] & 0x00)
1781 goto op_semantics_6
;
1787 switch (op
[2] & 0x00)
1790 goto op_semantics_6
;
1796 switch (op
[2] & 0xff)
1800 switch (op
[3] & 0x00)
1803 goto op_semantics_7
;
1809 switch (op
[3] & 0x00)
1812 goto op_semantics_8
;
1818 switch (op
[3] & 0x00)
1821 goto op_semantics_9
;
1827 switch (op
[3] & 0x00)
1830 goto op_semantics_10
;
1836 switch (op
[3] & 0x00)
1839 goto op_semantics_11
;
1845 switch (op
[3] & 0x00)
1848 goto op_semantics_12
;
1854 switch (op
[3] & 0x00)
1857 goto op_semantics_13
;
1863 switch (op
[3] & 0x00)
1866 goto op_semantics_14
;
1872 switch (op
[3] & 0x00)
1875 goto op_semantics_15
;
1881 switch (op
[3] & 0x00)
1884 goto op_semantics_16
;
1890 switch (op
[3] & 0x00)
1893 goto op_semantics_17
;
1899 switch (op
[3] & 0x00)
1902 goto op_semantics_18
;
1906 default: UNSUPPORTED(); break;
1911 switch (op
[2] & 0xff)
1915 switch (op
[3] & 0x00)
1918 goto op_semantics_7
;
1924 switch (op
[3] & 0x00)
1927 goto op_semantics_8
;
1933 switch (op
[3] & 0x00)
1936 goto op_semantics_9
;
1942 switch (op
[3] & 0x00)
1945 goto op_semantics_10
;
1951 switch (op
[3] & 0x00)
1954 goto op_semantics_11
;
1960 switch (op
[3] & 0x00)
1963 goto op_semantics_12
;
1969 switch (op
[3] & 0x00)
1972 goto op_semantics_13
;
1978 switch (op
[3] & 0x00)
1981 goto op_semantics_14
;
1987 switch (op
[3] & 0x00)
1990 goto op_semantics_15
;
1996 switch (op
[3] & 0x00)
1999 goto op_semantics_16
;
2005 switch (op
[3] & 0x00)
2008 goto op_semantics_17
;
2014 switch (op
[3] & 0x00)
2017 goto op_semantics_18
;
2021 default: UNSUPPORTED(); break;
2026 switch (op
[2] & 0xff)
2030 switch (op
[3] & 0x00)
2033 goto op_semantics_7
;
2039 switch (op
[3] & 0x00)
2042 goto op_semantics_8
;
2048 switch (op
[3] & 0x00)
2051 goto op_semantics_9
;
2057 switch (op
[3] & 0x00)
2060 goto op_semantics_10
;
2066 switch (op
[3] & 0x00)
2069 goto op_semantics_11
;
2075 switch (op
[3] & 0x00)
2078 goto op_semantics_12
;
2084 switch (op
[3] & 0x00)
2087 goto op_semantics_13
;
2093 switch (op
[3] & 0x00)
2096 goto op_semantics_14
;
2102 switch (op
[3] & 0x00)
2105 goto op_semantics_15
;
2111 switch (op
[3] & 0x00)
2114 goto op_semantics_16
;
2120 switch (op
[3] & 0x00)
2123 goto op_semantics_17
;
2129 switch (op
[3] & 0x00)
2132 goto op_semantics_18
;
2136 default: UNSUPPORTED(); break;
2141 switch (op
[2] & 0xff)
2145 switch (op
[3] & 0x00)
2148 goto op_semantics_7
;
2154 switch (op
[3] & 0x00)
2157 goto op_semantics_8
;
2163 switch (op
[3] & 0x00)
2166 goto op_semantics_9
;
2172 switch (op
[3] & 0x00)
2175 goto op_semantics_10
;
2181 switch (op
[3] & 0x00)
2184 goto op_semantics_11
;
2190 switch (op
[3] & 0x00)
2193 goto op_semantics_12
;
2199 switch (op
[3] & 0x00)
2202 goto op_semantics_13
;
2208 switch (op
[3] & 0x00)
2211 goto op_semantics_14
;
2217 switch (op
[3] & 0x00)
2220 goto op_semantics_15
;
2226 switch (op
[3] & 0x00)
2229 goto op_semantics_16
;
2235 switch (op
[3] & 0x00)
2238 goto op_semantics_17
;
2244 switch (op
[3] & 0x00)
2247 goto op_semantics_18
;
2251 default: UNSUPPORTED(); break;
2256 switch (op
[2] & 0x00)
2259 goto op_semantics_1
;
2265 switch (op
[2] & 0x00)
2268 goto op_semantics_1
;
2274 switch (op
[2] & 0x00)
2277 goto op_semantics_1
;
2283 switch (op
[2] & 0x00)
2286 goto op_semantics_1
;
2292 switch (op
[2] & 0x00)
2295 goto op_semantics_2
;
2301 switch (op
[2] & 0x00)
2304 goto op_semantics_2
;
2310 switch (op
[2] & 0x00)
2313 goto op_semantics_2
;
2319 switch (op
[2] & 0x00)
2322 goto op_semantics_2
;
2328 switch (op
[2] & 0x00)
2331 goto op_semantics_3
;
2337 switch (op
[2] & 0x00)
2340 goto op_semantics_3
;
2346 switch (op
[2] & 0x00)
2349 goto op_semantics_3
;
2355 switch (op
[2] & 0x00)
2358 goto op_semantics_3
;
2364 switch (op
[2] & 0x00)
2367 goto op_semantics_4
;
2373 switch (op
[2] & 0x00)
2376 goto op_semantics_4
;
2382 switch (op
[2] & 0x00)
2385 goto op_semantics_4
;
2391 switch (op
[2] & 0x00)
2394 goto op_semantics_4
;
2400 switch (op
[2] & 0x00)
2403 goto op_semantics_5
;
2409 switch (op
[2] & 0x00)
2412 goto op_semantics_5
;
2418 switch (op
[2] & 0x00)
2421 goto op_semantics_5
;
2427 switch (op
[2] & 0x00)
2430 goto op_semantics_5
;
2436 switch (op
[2] & 0x00)
2439 goto op_semantics_6
;
2445 switch (op
[2] & 0x00)
2448 goto op_semantics_6
;
2454 switch (op
[2] & 0x00)
2457 goto op_semantics_6
;
2463 switch (op
[2] & 0x00)
2466 goto op_semantics_6
;
2472 switch (op
[2] & 0xff)
2476 switch (op
[3] & 0x00)
2479 goto op_semantics_7
;
2485 switch (op
[3] & 0x00)
2490 /** 0000 0110 1010 00ss 0000 0010 rsrc rdst adc %1%S1, %0 */
2491 #line 519 "rx-decode.opc"
2492 int ss AU
= op
[1] & 0x03;
2493 #line 519 "rx-decode.opc"
2494 int rsrc AU
= (op
[3] >> 4) & 0x0f;
2495 #line 519 "rx-decode.opc"
2496 int rdst AU
= op
[3] & 0x0f;
2499 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
2500 "/** 0000 0110 1010 00ss 0000 0010 rsrc rdst adc %1%S1, %0 */",
2501 op
[0], op
[1], op
[2], op
[3]);
2502 printf (" ss = 0x%x,", ss
);
2503 printf (" rsrc = 0x%x,", rsrc
);
2504 printf (" rdst = 0x%x\n", rdst
);
2506 SYNTAX("adc %1%S1, %0");
2507 #line 519 "rx-decode.opc"
2508 ID(adc
); SPm(ss
, rsrc
, 2); DR(rdst
); F_OSZC
;
2510 /*----------------------------------------------------------------------*/
2519 switch (op
[3] & 0x00)
2522 goto op_semantics_8
;
2528 switch (op
[3] & 0x00)
2531 goto op_semantics_9
;
2537 switch (op
[3] & 0x00)
2540 goto op_semantics_10
;
2546 switch (op
[3] & 0x00)
2549 goto op_semantics_11
;
2555 switch (op
[3] & 0x00)
2558 goto op_semantics_12
;
2564 switch (op
[3] & 0x00)
2567 goto op_semantics_13
;
2573 switch (op
[3] & 0x00)
2576 goto op_semantics_14
;
2582 switch (op
[3] & 0x00)
2585 goto op_semantics_15
;
2591 switch (op
[3] & 0x00)
2594 goto op_semantics_16
;
2600 switch (op
[3] & 0x00)
2603 goto op_semantics_17
;
2609 switch (op
[3] & 0x00)
2612 goto op_semantics_18
;
2616 default: UNSUPPORTED(); break;
2621 switch (op
[2] & 0xff)
2625 switch (op
[3] & 0x00)
2628 goto op_semantics_7
;
2634 switch (op
[3] & 0x00)
2637 goto op_semantics_19
;
2643 switch (op
[3] & 0x00)
2646 goto op_semantics_8
;
2652 switch (op
[3] & 0x00)
2655 goto op_semantics_9
;
2661 switch (op
[3] & 0x00)
2664 goto op_semantics_10
;
2670 switch (op
[3] & 0x00)
2673 goto op_semantics_11
;
2679 switch (op
[3] & 0x00)
2682 goto op_semantics_12
;
2688 switch (op
[3] & 0x00)
2691 goto op_semantics_13
;
2697 switch (op
[3] & 0x00)
2700 goto op_semantics_14
;
2706 switch (op
[3] & 0x00)
2709 goto op_semantics_15
;
2715 switch (op
[3] & 0x00)
2718 goto op_semantics_16
;
2724 switch (op
[3] & 0x00)
2727 goto op_semantics_17
;
2733 switch (op
[3] & 0x00)
2736 goto op_semantics_18
;
2740 default: UNSUPPORTED(); break;
2745 switch (op
[2] & 0xff)
2749 switch (op
[3] & 0x00)
2752 goto op_semantics_7
;
2758 switch (op
[3] & 0x00)
2761 goto op_semantics_19
;
2767 switch (op
[3] & 0x00)
2770 goto op_semantics_8
;
2776 switch (op
[3] & 0x00)
2779 goto op_semantics_9
;
2785 switch (op
[3] & 0x00)
2788 goto op_semantics_10
;
2794 switch (op
[3] & 0x00)
2797 goto op_semantics_11
;
2803 switch (op
[3] & 0x00)
2806 goto op_semantics_12
;
2812 switch (op
[3] & 0x00)
2815 goto op_semantics_13
;
2821 switch (op
[3] & 0x00)
2824 goto op_semantics_14
;
2830 switch (op
[3] & 0x00)
2833 goto op_semantics_15
;
2839 switch (op
[3] & 0x00)
2842 goto op_semantics_16
;
2848 switch (op
[3] & 0x00)
2851 goto op_semantics_17
;
2857 switch (op
[3] & 0x00)
2860 goto op_semantics_18
;
2864 default: UNSUPPORTED(); break;
2869 switch (op
[2] & 0xff)
2873 switch (op
[3] & 0x00)
2876 goto op_semantics_7
;
2882 switch (op
[3] & 0x00)
2885 goto op_semantics_19
;
2891 switch (op
[3] & 0x00)
2894 goto op_semantics_8
;
2900 switch (op
[3] & 0x00)
2903 goto op_semantics_9
;
2909 switch (op
[3] & 0x00)
2912 goto op_semantics_10
;
2918 switch (op
[3] & 0x00)
2921 goto op_semantics_11
;
2927 switch (op
[3] & 0x00)
2930 goto op_semantics_12
;
2936 switch (op
[3] & 0x00)
2939 goto op_semantics_13
;
2945 switch (op
[3] & 0x00)
2948 goto op_semantics_14
;
2954 switch (op
[3] & 0x00)
2957 goto op_semantics_15
;
2963 switch (op
[3] & 0x00)
2966 goto op_semantics_16
;
2972 switch (op
[3] & 0x00)
2975 goto op_semantics_17
;
2981 switch (op
[3] & 0x00)
2984 goto op_semantics_18
;
2988 default: UNSUPPORTED(); break;
2993 switch (op
[2] & 0x00)
2996 goto op_semantics_1
;
3002 switch (op
[2] & 0x00)
3005 goto op_semantics_1
;
3011 switch (op
[2] & 0x00)
3014 goto op_semantics_1
;
3020 switch (op
[2] & 0x00)
3023 goto op_semantics_1
;
3029 switch (op
[2] & 0x00)
3032 goto op_semantics_2
;
3038 switch (op
[2] & 0x00)
3041 goto op_semantics_2
;
3047 switch (op
[2] & 0x00)
3050 goto op_semantics_2
;
3056 switch (op
[2] & 0x00)
3059 goto op_semantics_2
;
3065 switch (op
[2] & 0x00)
3068 goto op_semantics_3
;
3074 switch (op
[2] & 0x00)
3077 goto op_semantics_3
;
3083 switch (op
[2] & 0x00)
3086 goto op_semantics_3
;
3092 switch (op
[2] & 0x00)
3095 goto op_semantics_3
;
3101 switch (op
[2] & 0x00)
3104 goto op_semantics_4
;
3110 switch (op
[2] & 0x00)
3113 goto op_semantics_4
;
3119 switch (op
[2] & 0x00)
3122 goto op_semantics_4
;
3128 switch (op
[2] & 0x00)
3131 goto op_semantics_4
;
3137 switch (op
[2] & 0x00)
3140 goto op_semantics_5
;
3146 switch (op
[2] & 0x00)
3149 goto op_semantics_5
;
3155 switch (op
[2] & 0x00)
3158 goto op_semantics_5
;
3164 switch (op
[2] & 0x00)
3167 goto op_semantics_5
;
3173 switch (op
[2] & 0x00)
3176 goto op_semantics_6
;
3182 switch (op
[2] & 0x00)
3185 goto op_semantics_6
;
3191 switch (op
[2] & 0x00)
3194 goto op_semantics_6
;
3200 switch (op
[2] & 0x00)
3203 goto op_semantics_6
;
3209 switch (op
[2] & 0xff)
3213 switch (op
[3] & 0x00)
3216 goto op_semantics_7
;
3222 switch (op
[3] & 0x00)
3225 goto op_semantics_8
;
3231 switch (op
[3] & 0x00)
3234 goto op_semantics_9
;
3240 switch (op
[3] & 0x00)
3243 goto op_semantics_10
;
3249 switch (op
[3] & 0x00)
3252 goto op_semantics_11
;
3258 switch (op
[3] & 0x00)
3261 goto op_semantics_12
;
3267 switch (op
[3] & 0x00)
3270 goto op_semantics_13
;
3276 switch (op
[3] & 0x00)
3279 goto op_semantics_14
;
3285 switch (op
[3] & 0x00)
3288 goto op_semantics_15
;
3294 switch (op
[3] & 0x00)
3297 goto op_semantics_16
;
3303 switch (op
[3] & 0x00)
3306 goto op_semantics_17
;
3312 switch (op
[3] & 0x00)
3315 goto op_semantics_18
;
3319 default: UNSUPPORTED(); break;
3324 switch (op
[2] & 0xff)
3328 switch (op
[3] & 0x00)
3331 goto op_semantics_7
;
3337 switch (op
[3] & 0x00)
3340 goto op_semantics_8
;
3346 switch (op
[3] & 0x00)
3349 goto op_semantics_9
;
3355 switch (op
[3] & 0x00)
3358 goto op_semantics_10
;
3364 switch (op
[3] & 0x00)
3367 goto op_semantics_11
;
3373 switch (op
[3] & 0x00)
3376 goto op_semantics_12
;
3382 switch (op
[3] & 0x00)
3385 goto op_semantics_13
;
3391 switch (op
[3] & 0x00)
3394 goto op_semantics_14
;
3400 switch (op
[3] & 0x00)
3403 goto op_semantics_15
;
3409 switch (op
[3] & 0x00)
3412 goto op_semantics_16
;
3418 switch (op
[3] & 0x00)
3421 goto op_semantics_17
;
3427 switch (op
[3] & 0x00)
3430 goto op_semantics_18
;
3434 default: UNSUPPORTED(); break;
3439 switch (op
[2] & 0xff)
3443 switch (op
[3] & 0x00)
3446 goto op_semantics_7
;
3452 switch (op
[3] & 0x00)
3455 goto op_semantics_8
;
3461 switch (op
[3] & 0x00)
3464 goto op_semantics_9
;
3470 switch (op
[3] & 0x00)
3473 goto op_semantics_10
;
3479 switch (op
[3] & 0x00)
3482 goto op_semantics_11
;
3488 switch (op
[3] & 0x00)
3491 goto op_semantics_12
;
3497 switch (op
[3] & 0x00)
3500 goto op_semantics_13
;
3506 switch (op
[3] & 0x00)
3509 goto op_semantics_14
;
3515 switch (op
[3] & 0x00)
3518 goto op_semantics_15
;
3524 switch (op
[3] & 0x00)
3527 goto op_semantics_16
;
3533 switch (op
[3] & 0x00)
3536 goto op_semantics_17
;
3542 switch (op
[3] & 0x00)
3545 goto op_semantics_18
;
3549 default: UNSUPPORTED(); break;
3554 switch (op
[2] & 0xff)
3558 switch (op
[3] & 0x00)
3561 goto op_semantics_7
;
3567 switch (op
[3] & 0x00)
3570 goto op_semantics_8
;
3576 switch (op
[3] & 0x00)
3579 goto op_semantics_9
;
3585 switch (op
[3] & 0x00)
3588 goto op_semantics_10
;
3594 switch (op
[3] & 0x00)
3597 goto op_semantics_11
;
3603 switch (op
[3] & 0x00)
3606 goto op_semantics_12
;
3612 switch (op
[3] & 0x00)
3615 goto op_semantics_13
;
3621 switch (op
[3] & 0x00)
3624 goto op_semantics_14
;
3630 switch (op
[3] & 0x00)
3633 goto op_semantics_15
;
3639 switch (op
[3] & 0x00)
3642 goto op_semantics_16
;
3648 switch (op
[3] & 0x00)
3651 goto op_semantics_17
;
3657 switch (op
[3] & 0x00)
3660 goto op_semantics_18
;
3664 default: UNSUPPORTED(); break;
3667 default: UNSUPPORTED(); break;
3679 /** 0000 1dsp bra.s %a0 */
3680 #line 800 "rx-decode.opc"
3681 int dsp AU
= op
[0] & 0x07;
3684 printf ("\033[33m%s\033[0m %02x\n",
3685 "/** 0000 1dsp bra.s %a0 */",
3687 printf (" dsp = 0x%x\n", dsp
);
3689 SYNTAX("bra.s %a0");
3690 #line 800 "rx-decode.opc"
3691 ID(branch
); DC(pc
+ dsp3map
[dsp
]);
3712 /** 0001 n dsp b%1.s %a0 */
3713 #line 790 "rx-decode.opc"
3714 int n AU
= (op
[0] >> 3) & 0x01;
3715 #line 790 "rx-decode.opc"
3716 int dsp AU
= op
[0] & 0x07;
3719 printf ("\033[33m%s\033[0m %02x\n",
3720 "/** 0001 n dsp b%1.s %a0 */",
3722 printf (" n = 0x%x,", n
);
3723 printf (" dsp = 0x%x\n", dsp
);
3725 SYNTAX("b%1.s %a0");
3726 #line 790 "rx-decode.opc"
3727 ID(branch
); Scc(n
); DC(pc
+ dsp3map
[dsp
]);
3747 /** 0010 cond b%1.b %a0 */
3748 #line 793 "rx-decode.opc"
3749 int cond AU
= op
[0] & 0x0f;
3752 printf ("\033[33m%s\033[0m %02x\n",
3753 "/** 0010 cond b%1.b %a0 */",
3755 printf (" cond = 0x%x\n", cond
);
3757 SYNTAX("b%1.b %a0");
3758 #line 793 "rx-decode.opc"
3759 ID(branch
); Scc(cond
); DC(pc
+ IMMex (1));
3765 /** 0010 1110 bra.b %a0 */
3768 printf ("\033[33m%s\033[0m %02x\n",
3769 "/** 0010 1110 bra.b %a0 */",
3772 SYNTAX("bra.b %a0");
3773 #line 803 "rx-decode.opc"
3774 ID(branch
); DC(pc
+ IMMex(1));
3780 /** 0011 1000 bra.w %a0 */
3783 printf ("\033[33m%s\033[0m %02x\n",
3784 "/** 0011 1000 bra.w %a0 */",
3787 SYNTAX("bra.w %a0");
3788 #line 806 "rx-decode.opc"
3789 ID(branch
); DC(pc
+ IMMex(2));
3795 /** 0011 1001 bsr.w %a0 */
3798 printf ("\033[33m%s\033[0m %02x\n",
3799 "/** 0011 1001 bsr.w %a0 */",
3802 SYNTAX("bsr.w %a0");
3803 #line 822 "rx-decode.opc"
3804 ID(jsr
); DC(pc
+ IMMex(2));
3811 /** 0011 101c b%1.w %a0 */
3812 #line 796 "rx-decode.opc"
3813 int c AU
= op
[0] & 0x01;
3816 printf ("\033[33m%s\033[0m %02x\n",
3817 "/** 0011 101c b%1.w %a0 */",
3819 printf (" c = 0x%x\n", c
);
3821 SYNTAX("b%1.w %a0");
3822 #line 796 "rx-decode.opc"
3823 ID(branch
); Scc(c
); DC(pc
+ IMMex (2));
3830 switch (op
[1] & 0x00)
3835 /** 0011 11sz d dst sppp mov%s #%1, %0 */
3836 #line 332 "rx-decode.opc"
3837 int sz AU
= op
[0] & 0x03;
3838 #line 332 "rx-decode.opc"
3839 int d AU
= (op
[1] >> 7) & 0x01;
3840 #line 332 "rx-decode.opc"
3841 int dst AU
= (op
[1] >> 4) & 0x07;
3842 #line 332 "rx-decode.opc"
3843 int sppp AU
= op
[1] & 0x0f;
3846 printf ("\033[33m%s\033[0m %02x %02x\n",
3847 "/** 0011 11sz d dst sppp mov%s #%1, %0 */",
3849 printf (" sz = 0x%x,", sz
);
3850 printf (" d = 0x%x,", d
);
3851 printf (" dst = 0x%x,", dst
);
3852 printf (" sppp = 0x%x\n", sppp
);
3854 SYNTAX("mov%s #%1, %0");
3855 #line 332 "rx-decode.opc"
3856 ID(mov
); sBWL (sz
); DIs(dst
, d
*16+sppp
, sz
); SC(IMM(1)); F_____
;
3864 switch (op
[1] & 0x00)
3867 goto op_semantics_20
;
3873 switch (op
[1] & 0x00)
3876 goto op_semantics_20
;
3882 switch (op
[1] & 0x00)
3886 /** 0011 1111 rega regb rtsd #%1, %2-%0 */
3887 #line 429 "rx-decode.opc"
3888 int rega AU
= (op
[1] >> 4) & 0x0f;
3889 #line 429 "rx-decode.opc"
3890 int regb AU
= op
[1] & 0x0f;
3893 printf ("\033[33m%s\033[0m %02x %02x\n",
3894 "/** 0011 1111 rega regb rtsd #%1, %2-%0 */",
3896 printf (" rega = 0x%x,", rega
);
3897 printf (" regb = 0x%x\n", regb
);
3899 SYNTAX("rtsd #%1, %2-%0");
3900 #line 429 "rx-decode.opc"
3901 ID(rtsd
); SC(IMM(1) * 4); S2R(rega
); DR(regb
);
3903 /*----------------------------------------------------------------------*/
3912 switch (op
[1] & 0x00)
3917 /** 0100 00ss rsrc rdst sub %2%S2, %1 */
3918 #line 564 "rx-decode.opc"
3919 int ss AU
= op
[0] & 0x03;
3920 #line 564 "rx-decode.opc"
3921 int rsrc AU
= (op
[1] >> 4) & 0x0f;
3922 #line 564 "rx-decode.opc"
3923 int rdst AU
= op
[1] & 0x0f;
3926 printf ("\033[33m%s\033[0m %02x %02x\n",
3927 "/** 0100 00ss rsrc rdst sub %2%S2, %1 */",
3929 printf (" ss = 0x%x,", ss
);
3930 printf (" rsrc = 0x%x,", rsrc
);
3931 printf (" rdst = 0x%x\n", rdst
);
3933 SYNTAX("sub %2%S2, %1");
3934 #line 564 "rx-decode.opc"
3935 ID(sub
); S2P(ss
, rsrc
); SR(rdst
); DR(rdst
); F_OSZC
;
3943 switch (op
[1] & 0x00)
3946 goto op_semantics_21
;
3952 switch (op
[1] & 0x00)
3955 goto op_semantics_21
;
3961 switch (op
[1] & 0x00)
3964 goto op_semantics_21
;
3970 switch (op
[1] & 0x00)
3975 /** 0100 01ss rsrc rdst cmp %2%S2, %1 */
3976 #line 552 "rx-decode.opc"
3977 int ss AU
= op
[0] & 0x03;
3978 #line 552 "rx-decode.opc"
3979 int rsrc AU
= (op
[1] >> 4) & 0x0f;
3980 #line 552 "rx-decode.opc"
3981 int rdst AU
= op
[1] & 0x0f;
3984 printf ("\033[33m%s\033[0m %02x %02x\n",
3985 "/** 0100 01ss rsrc rdst cmp %2%S2, %1 */",
3987 printf (" ss = 0x%x,", ss
);
3988 printf (" rsrc = 0x%x,", rsrc
);
3989 printf (" rdst = 0x%x\n", rdst
);
3991 SYNTAX("cmp %2%S2, %1");
3992 #line 552 "rx-decode.opc"
3993 ID(sub
); S2P(ss
, rsrc
); SR(rdst
); F_OSZC
;
4001 switch (op
[1] & 0x00)
4004 goto op_semantics_22
;
4010 switch (op
[1] & 0x00)
4013 goto op_semantics_22
;
4019 switch (op
[1] & 0x00)
4022 goto op_semantics_22
;
4028 switch (op
[1] & 0x00)
4033 /** 0100 10ss rsrc rdst add %1%S1, %0 */
4034 #line 528 "rx-decode.opc"
4035 int ss AU
= op
[0] & 0x03;
4036 #line 528 "rx-decode.opc"
4037 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4038 #line 528 "rx-decode.opc"
4039 int rdst AU
= op
[1] & 0x0f;
4042 printf ("\033[33m%s\033[0m %02x %02x\n",
4043 "/** 0100 10ss rsrc rdst add %1%S1, %0 */",
4045 printf (" ss = 0x%x,", ss
);
4046 printf (" rsrc = 0x%x,", rsrc
);
4047 printf (" rdst = 0x%x\n", rdst
);
4049 SYNTAX("add %1%S1, %0");
4050 #line 528 "rx-decode.opc"
4051 ID(add
); SP(ss
, rsrc
); DR(rdst
); F_OSZC
;
4059 switch (op
[1] & 0x00)
4062 goto op_semantics_23
;
4068 switch (op
[1] & 0x00)
4071 goto op_semantics_23
;
4077 switch (op
[1] & 0x00)
4080 goto op_semantics_23
;
4086 switch (op
[1] & 0x00)
4091 /** 0100 11ss rsrc rdst mul %1%S1, %0 */
4092 #line 671 "rx-decode.opc"
4093 int ss AU
= op
[0] & 0x03;
4094 #line 671 "rx-decode.opc"
4095 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4096 #line 671 "rx-decode.opc"
4097 int rdst AU
= op
[1] & 0x0f;
4100 printf ("\033[33m%s\033[0m %02x %02x\n",
4101 "/** 0100 11ss rsrc rdst mul %1%S1, %0 */",
4103 printf (" ss = 0x%x,", ss
);
4104 printf (" rsrc = 0x%x,", rsrc
);
4105 printf (" rdst = 0x%x\n", rdst
);
4107 SYNTAX("mul %1%S1, %0");
4108 #line 671 "rx-decode.opc"
4109 ID(mul
); SP(ss
, rsrc
); DR(rdst
); F_____
;
4117 switch (op
[1] & 0x00)
4120 goto op_semantics_24
;
4126 switch (op
[1] & 0x00)
4129 goto op_semantics_24
;
4135 switch (op
[1] & 0x00)
4138 goto op_semantics_24
;
4144 switch (op
[1] & 0x00)
4149 /** 0101 00ss rsrc rdst and %1%S1, %0 */
4150 #line 441 "rx-decode.opc"
4151 int ss AU
= op
[0] & 0x03;
4152 #line 441 "rx-decode.opc"
4153 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4154 #line 441 "rx-decode.opc"
4155 int rdst AU
= op
[1] & 0x0f;
4158 printf ("\033[33m%s\033[0m %02x %02x\n",
4159 "/** 0101 00ss rsrc rdst and %1%S1, %0 */",
4161 printf (" ss = 0x%x,", ss
);
4162 printf (" rsrc = 0x%x,", rsrc
);
4163 printf (" rdst = 0x%x\n", rdst
);
4165 SYNTAX("and %1%S1, %0");
4166 #line 441 "rx-decode.opc"
4167 ID(and); SP(ss
, rsrc
); DR(rdst
); F__SZ_
;
4175 switch (op
[1] & 0x00)
4178 goto op_semantics_25
;
4184 switch (op
[1] & 0x00)
4187 goto op_semantics_25
;
4193 switch (op
[1] & 0x00)
4196 goto op_semantics_25
;
4202 switch (op
[1] & 0x00)
4207 /** 0101 01ss rsrc rdst or %1%S1, %0 */
4208 #line 459 "rx-decode.opc"
4209 int ss AU
= op
[0] & 0x03;
4210 #line 459 "rx-decode.opc"
4211 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4212 #line 459 "rx-decode.opc"
4213 int rdst AU
= op
[1] & 0x0f;
4216 printf ("\033[33m%s\033[0m %02x %02x\n",
4217 "/** 0101 01ss rsrc rdst or %1%S1, %0 */",
4219 printf (" ss = 0x%x,", ss
);
4220 printf (" rsrc = 0x%x,", rsrc
);
4221 printf (" rdst = 0x%x\n", rdst
);
4223 SYNTAX("or %1%S1, %0");
4224 #line 459 "rx-decode.opc"
4225 ID(or); SP(ss
, rsrc
); DR(rdst
); F__SZ_
;
4233 switch (op
[1] & 0x00)
4236 goto op_semantics_26
;
4242 switch (op
[1] & 0x00)
4245 goto op_semantics_26
;
4251 switch (op
[1] & 0x00)
4254 goto op_semantics_26
;
4260 switch (op
[1] & 0x00)
4265 /** 0101 1 s ss rsrc rdst movu%s %1, %0 */
4266 #line 380 "rx-decode.opc"
4267 int s AU
= (op
[0] >> 2) & 0x01;
4268 #line 380 "rx-decode.opc"
4269 int ss AU
= op
[0] & 0x03;
4270 #line 380 "rx-decode.opc"
4271 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4272 #line 380 "rx-decode.opc"
4273 int rdst AU
= op
[1] & 0x0f;
4276 printf ("\033[33m%s\033[0m %02x %02x\n",
4277 "/** 0101 1 s ss rsrc rdst movu%s %1, %0 */",
4279 printf (" s = 0x%x,", s
);
4280 printf (" ss = 0x%x,", ss
);
4281 printf (" rsrc = 0x%x,", rsrc
);
4282 printf (" rdst = 0x%x\n", rdst
);
4284 SYNTAX("movu%s %1, %0");
4285 #line 380 "rx-decode.opc"
4286 ID(mov
); uBW(s
); SD(ss
, rsrc
, s
); DR(rdst
); F_____
;
4294 switch (op
[1] & 0x00)
4297 goto op_semantics_27
;
4303 switch (op
[1] & 0x00)
4306 goto op_semantics_27
;
4312 switch (op
[1] & 0x00)
4315 goto op_semantics_27
;
4321 switch (op
[1] & 0x00)
4324 goto op_semantics_27
;
4330 switch (op
[1] & 0x00)
4333 goto op_semantics_27
;
4339 switch (op
[1] & 0x00)
4342 goto op_semantics_27
;
4348 switch (op
[1] & 0x00)
4351 goto op_semantics_27
;
4357 switch (op
[1] & 0x00)
4361 /** 0110 0000 immm rdst sub #%2, %0 */
4362 #line 561 "rx-decode.opc"
4363 int immm AU
= (op
[1] >> 4) & 0x0f;
4364 #line 561 "rx-decode.opc"
4365 int rdst AU
= op
[1] & 0x0f;
4368 printf ("\033[33m%s\033[0m %02x %02x\n",
4369 "/** 0110 0000 immm rdst sub #%2, %0 */",
4371 printf (" immm = 0x%x,", immm
);
4372 printf (" rdst = 0x%x\n", rdst
);
4374 SYNTAX("sub #%2, %0");
4375 #line 561 "rx-decode.opc"
4376 ID(sub
); S2C(immm
); SR(rdst
); DR(rdst
); F_OSZC
;
4384 switch (op
[1] & 0x00)
4388 /** 0110 0001 immm rdst cmp #%2, %1 */
4389 #line 543 "rx-decode.opc"
4390 int immm AU
= (op
[1] >> 4) & 0x0f;
4391 #line 543 "rx-decode.opc"
4392 int rdst AU
= op
[1] & 0x0f;
4395 printf ("\033[33m%s\033[0m %02x %02x\n",
4396 "/** 0110 0001 immm rdst cmp #%2, %1 */",
4398 printf (" immm = 0x%x,", immm
);
4399 printf (" rdst = 0x%x\n", rdst
);
4401 SYNTAX("cmp #%2, %1");
4402 #line 543 "rx-decode.opc"
4403 ID(sub
); S2C(immm
); SR(rdst
); F_OSZC
;
4411 switch (op
[1] & 0x00)
4415 /** 0110 0010 immm rdst add #%1, %0 */
4416 #line 525 "rx-decode.opc"
4417 int immm AU
= (op
[1] >> 4) & 0x0f;
4418 #line 525 "rx-decode.opc"
4419 int rdst AU
= op
[1] & 0x0f;
4422 printf ("\033[33m%s\033[0m %02x %02x\n",
4423 "/** 0110 0010 immm rdst add #%1, %0 */",
4425 printf (" immm = 0x%x,", immm
);
4426 printf (" rdst = 0x%x\n", rdst
);
4428 SYNTAX("add #%1, %0");
4429 #line 525 "rx-decode.opc"
4430 ID(add
); SC(immm
); DR(rdst
); F_OSZC
;
4438 switch (op
[1] & 0x00)
4442 /** 0110 0011 immm rdst mul #%1, %0 */
4443 #line 637 "rx-decode.opc"
4444 int immm AU
= (op
[1] >> 4) & 0x0f;
4445 #line 637 "rx-decode.opc"
4446 int rdst AU
= op
[1] & 0x0f;
4449 printf ("\033[33m%s\033[0m %02x %02x\n",
4450 "/** 0110 0011 immm rdst mul #%1, %0 */",
4452 printf (" immm = 0x%x,", immm
);
4453 printf (" rdst = 0x%x\n", rdst
);
4455 SYNTAX("mul #%1, %0");
4456 #line 637 "rx-decode.opc"
4457 if (immm
== 1 && rdst
== 0)
4460 SYNTAX ("nop\t; mul\t#1, r0");
4466 DR(rdst
); SC(immm
); F_____
;
4474 switch (op
[1] & 0x00)
4478 /** 0110 0100 immm rdst and #%1, %0 */
4479 #line 435 "rx-decode.opc"
4480 int immm AU
= (op
[1] >> 4) & 0x0f;
4481 #line 435 "rx-decode.opc"
4482 int rdst AU
= op
[1] & 0x0f;
4485 printf ("\033[33m%s\033[0m %02x %02x\n",
4486 "/** 0110 0100 immm rdst and #%1, %0 */",
4488 printf (" immm = 0x%x,", immm
);
4489 printf (" rdst = 0x%x\n", rdst
);
4491 SYNTAX("and #%1, %0");
4492 #line 435 "rx-decode.opc"
4493 ID(and); SC(immm
); DR(rdst
); F__SZ_
;
4501 switch (op
[1] & 0x00)
4505 /** 0110 0101 immm rdst or #%1, %0 */
4506 #line 453 "rx-decode.opc"
4507 int immm AU
= (op
[1] >> 4) & 0x0f;
4508 #line 453 "rx-decode.opc"
4509 int rdst AU
= op
[1] & 0x0f;
4512 printf ("\033[33m%s\033[0m %02x %02x\n",
4513 "/** 0110 0101 immm rdst or #%1, %0 */",
4515 printf (" immm = 0x%x,", immm
);
4516 printf (" rdst = 0x%x\n", rdst
);
4518 SYNTAX("or #%1, %0");
4519 #line 453 "rx-decode.opc"
4520 ID(or); SC(immm
); DR(rdst
); F__SZ_
;
4528 switch (op
[1] & 0x00)
4532 /** 0110 0110 immm rdst mov%s #%1, %0 */
4533 #line 329 "rx-decode.opc"
4534 int immm AU
= (op
[1] >> 4) & 0x0f;
4535 #line 329 "rx-decode.opc"
4536 int rdst AU
= op
[1] & 0x0f;
4539 printf ("\033[33m%s\033[0m %02x %02x\n",
4540 "/** 0110 0110 immm rdst mov%s #%1, %0 */",
4542 printf (" immm = 0x%x,", immm
);
4543 printf (" rdst = 0x%x\n", rdst
);
4545 SYNTAX("mov%s #%1, %0");
4546 #line 329 "rx-decode.opc"
4547 ID(mov
); DR(rdst
); SC(immm
); F_____
;
4555 /** 0110 0111 rtsd #%1 */
4558 printf ("\033[33m%s\033[0m %02x\n",
4559 "/** 0110 0111 rtsd #%1 */",
4563 #line 426 "rx-decode.opc"
4564 ID(rtsd
); SC(IMM(1) * 4);
4570 switch (op
[1] & 0x00)
4575 /** 0110 100i mmmm rdst shlr #%2, %0 */
4576 #line 751 "rx-decode.opc"
4577 int i AU
= op
[0] & 0x01;
4578 #line 751 "rx-decode.opc"
4579 int mmmm AU
= (op
[1] >> 4) & 0x0f;
4580 #line 751 "rx-decode.opc"
4581 int rdst AU
= op
[1] & 0x0f;
4584 printf ("\033[33m%s\033[0m %02x %02x\n",
4585 "/** 0110 100i mmmm rdst shlr #%2, %0 */",
4587 printf (" i = 0x%x,", i
);
4588 printf (" mmmm = 0x%x,", mmmm
);
4589 printf (" rdst = 0x%x\n", rdst
);
4591 SYNTAX("shlr #%2, %0");
4592 #line 751 "rx-decode.opc"
4593 ID(shlr
); S2C(i
*16+mmmm
); SR(rdst
); DR(rdst
); F__SZC
;
4601 switch (op
[1] & 0x00)
4604 goto op_semantics_28
;
4610 switch (op
[1] & 0x00)
4615 /** 0110 101i mmmm rdst shar #%2, %0 */
4616 #line 741 "rx-decode.opc"
4617 int i AU
= op
[0] & 0x01;
4618 #line 741 "rx-decode.opc"
4619 int mmmm AU
= (op
[1] >> 4) & 0x0f;
4620 #line 741 "rx-decode.opc"
4621 int rdst AU
= op
[1] & 0x0f;
4624 printf ("\033[33m%s\033[0m %02x %02x\n",
4625 "/** 0110 101i mmmm rdst shar #%2, %0 */",
4627 printf (" i = 0x%x,", i
);
4628 printf (" mmmm = 0x%x,", mmmm
);
4629 printf (" rdst = 0x%x\n", rdst
);
4631 SYNTAX("shar #%2, %0");
4632 #line 741 "rx-decode.opc"
4633 ID(shar
); S2C(i
*16+mmmm
); SR(rdst
); DR(rdst
); F_0SZC
;
4641 switch (op
[1] & 0x00)
4644 goto op_semantics_29
;
4650 switch (op
[1] & 0x00)
4655 /** 0110 110i mmmm rdst shll #%2, %0 */
4656 #line 731 "rx-decode.opc"
4657 int i AU
= op
[0] & 0x01;
4658 #line 731 "rx-decode.opc"
4659 int mmmm AU
= (op
[1] >> 4) & 0x0f;
4660 #line 731 "rx-decode.opc"
4661 int rdst AU
= op
[1] & 0x0f;
4664 printf ("\033[33m%s\033[0m %02x %02x\n",
4665 "/** 0110 110i mmmm rdst shll #%2, %0 */",
4667 printf (" i = 0x%x,", i
);
4668 printf (" mmmm = 0x%x,", mmmm
);
4669 printf (" rdst = 0x%x\n", rdst
);
4671 SYNTAX("shll #%2, %0");
4672 #line 731 "rx-decode.opc"
4673 ID(shll
); S2C(i
*16+mmmm
); SR(rdst
); DR(rdst
); F_OSZC
;
4681 switch (op
[1] & 0x00)
4684 goto op_semantics_30
;
4690 switch (op
[1] & 0x00)
4694 /** 0110 1110 dsta dstb pushm %1-%2 */
4695 #line 393 "rx-decode.opc"
4696 int dsta AU
= (op
[1] >> 4) & 0x0f;
4697 #line 393 "rx-decode.opc"
4698 int dstb AU
= op
[1] & 0x0f;
4701 printf ("\033[33m%s\033[0m %02x %02x\n",
4702 "/** 0110 1110 dsta dstb pushm %1-%2 */",
4704 printf (" dsta = 0x%x,", dsta
);
4705 printf (" dstb = 0x%x\n", dstb
);
4707 SYNTAX("pushm %1-%2");
4708 #line 393 "rx-decode.opc"
4709 ID(pushm
); SR(dsta
); S2R(dstb
); F_____
;
4717 switch (op
[1] & 0x00)
4721 /** 0110 1111 dsta dstb popm %1-%2 */
4722 #line 390 "rx-decode.opc"
4723 int dsta AU
= (op
[1] >> 4) & 0x0f;
4724 #line 390 "rx-decode.opc"
4725 int dstb AU
= op
[1] & 0x0f;
4728 printf ("\033[33m%s\033[0m %02x %02x\n",
4729 "/** 0110 1111 dsta dstb popm %1-%2 */",
4731 printf (" dsta = 0x%x,", dsta
);
4732 printf (" dstb = 0x%x\n", dstb
);
4734 SYNTAX("popm %1-%2");
4735 #line 390 "rx-decode.opc"
4736 ID(popm
); SR(dsta
); S2R(dstb
); F_____
;
4744 switch (op
[1] & 0x00)
4749 /** 0111 00im rsrc rdst add #%1, %2, %0 */
4750 #line 534 "rx-decode.opc"
4751 int im AU
= op
[0] & 0x03;
4752 #line 534 "rx-decode.opc"
4753 int rsrc AU
= (op
[1] >> 4) & 0x0f;
4754 #line 534 "rx-decode.opc"
4755 int rdst AU
= op
[1] & 0x0f;
4758 printf ("\033[33m%s\033[0m %02x %02x\n",
4759 "/** 0111 00im rsrc rdst add #%1, %2, %0 */",
4761 printf (" im = 0x%x,", im
);
4762 printf (" rsrc = 0x%x,", rsrc
);
4763 printf (" rdst = 0x%x\n", rdst
);
4765 SYNTAX("add #%1, %2, %0");
4766 #line 534 "rx-decode.opc"
4767 ID(add
); SC(IMMex(im
)); S2R(rsrc
); DR(rdst
); F_OSZC
;
4775 switch (op
[1] & 0x00)
4778 goto op_semantics_31
;
4784 switch (op
[1] & 0x00)
4787 goto op_semantics_31
;
4793 switch (op
[1] & 0x00)
4796 goto op_semantics_31
;
4802 switch (op
[1] & 0xf0)
4807 /** 0111 01im 0000 rsrc cmp #%2, %1%S1 */
4808 #line 546 "rx-decode.opc"
4809 int im AU
= op
[0] & 0x03;
4810 #line 546 "rx-decode.opc"
4811 int rsrc AU
= op
[1] & 0x0f;
4814 printf ("\033[33m%s\033[0m %02x %02x\n",
4815 "/** 0111 01im 0000 rsrc cmp #%2, %1%S1 */",
4817 printf (" im = 0x%x,", im
);
4818 printf (" rsrc = 0x%x\n", rsrc
);
4820 SYNTAX("cmp #%2, %1%S1");
4821 #line 546 "rx-decode.opc"
4822 ID(sub
); SR(rsrc
); S2C(IMMex(im
)); F_OSZC
;
4829 /** 0111 01im 0001rdst mul #%1, %0 */
4830 #line 649 "rx-decode.opc"
4831 int im AU
= op
[0] & 0x03;
4832 #line 649 "rx-decode.opc"
4833 int rdst AU
= op
[1] & 0x0f;
4836 printf ("\033[33m%s\033[0m %02x %02x\n",
4837 "/** 0111 01im 0001rdst mul #%1, %0 */",
4839 printf (" im = 0x%x,", im
);
4840 printf (" rdst = 0x%x\n", rdst
);
4842 SYNTAX("mul #%1, %0");
4843 #line 649 "rx-decode.opc"
4844 int val
= IMMex(im
);
4845 if (val
== 1 && rdst
== 0)
4847 SYNTAX("nop\t; mul\t#1, r0");
4850 case 2: ID(nop4
); break;
4851 case 3: ID(nop5
); break;
4852 case 0: ID(nop6
); break;
4855 SYNTAX("mul #%1, %0");
4863 DR(rdst
); SC(val
); F_____
;
4870 /** 0111 01im 0010 rdst and #%1, %0 */
4871 #line 438 "rx-decode.opc"
4872 int im AU
= op
[0] & 0x03;
4873 #line 438 "rx-decode.opc"
4874 int rdst AU
= op
[1] & 0x0f;
4877 printf ("\033[33m%s\033[0m %02x %02x\n",
4878 "/** 0111 01im 0010 rdst and #%1, %0 */",
4880 printf (" im = 0x%x,", im
);
4881 printf (" rdst = 0x%x\n", rdst
);
4883 SYNTAX("and #%1, %0");
4884 #line 438 "rx-decode.opc"
4885 ID(and); SC(IMMex(im
)); DR(rdst
); F__SZ_
;
4892 /** 0111 01im 0011 rdst or #%1, %0 */
4893 #line 456 "rx-decode.opc"
4894 int im AU
= op
[0] & 0x03;
4895 #line 456 "rx-decode.opc"
4896 int rdst AU
= op
[1] & 0x0f;
4899 printf ("\033[33m%s\033[0m %02x %02x\n",
4900 "/** 0111 01im 0011 rdst or #%1, %0 */",
4902 printf (" im = 0x%x,", im
);
4903 printf (" rdst = 0x%x\n", rdst
);
4905 SYNTAX("or #%1, %0");
4906 #line 456 "rx-decode.opc"
4907 ID(or); SC(IMMex(im
)); DR(rdst
); F__SZ_
;
4911 default: UNSUPPORTED(); break;
4916 switch (op
[1] & 0xff)
4934 goto op_semantics_32
;
4952 goto op_semantics_33
;
4970 goto op_semantics_34
;
4988 goto op_semantics_35
;
5007 /** 0111 0101 0100 rdst mov%s #%1, %0 */
5008 #line 310 "rx-decode.opc"
5009 int rdst AU
= op
[1] & 0x0f;
5012 printf ("\033[33m%s\033[0m %02x %02x\n",
5013 "/** 0111 0101 0100 rdst mov%s #%1, %0 */",
5015 printf (" rdst = 0x%x\n", rdst
);
5017 SYNTAX("mov%s #%1, %0");
5018 #line 310 "rx-decode.opc"
5019 ID(mov
); DR(rdst
); SC(IMM (1)); F_____
;
5040 /** 0111 0101 0101 rsrc cmp #%2, %1 */
5041 #line 549 "rx-decode.opc"
5042 int rsrc AU
= op
[1] & 0x0f;
5045 printf ("\033[33m%s\033[0m %02x %02x\n",
5046 "/** 0111 0101 0101 rsrc cmp #%2, %1 */",
5048 printf (" rsrc = 0x%x\n", rsrc
);
5050 SYNTAX("cmp #%2, %1");
5051 #line 549 "rx-decode.opc"
5052 ID(sub
); SR(rsrc
); S2C(IMM(1)); F_OSZC
;
5058 /** 0111 0101 0110 0000 int #%1 */
5061 printf ("\033[33m%s\033[0m %02x %02x\n",
5062 "/** 0111 0101 0110 0000 int #%1 */",
5066 #line 1056 "rx-decode.opc"
5067 ID(int); SC(IMM(1));
5073 switch (op
[2] & 0xf0)
5077 /** 0111 0101 0111 0000 0000 immm mvtipl #%1 */
5078 #line 1023 "rx-decode.opc"
5079 int immm AU
= op
[2] & 0x0f;
5082 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5083 "/** 0111 0101 0111 0000 0000 immm mvtipl #%1 */",
5084 op
[0], op
[1], op
[2]);
5085 printf (" immm = 0x%x\n", immm
);
5087 SYNTAX("mvtipl #%1");
5088 #line 1023 "rx-decode.opc"
5089 ID(mvtipl
); SC(immm
);
5093 default: UNSUPPORTED(); break;
5098 switch (op
[2] & 0xff)
5102 /** 0111 0101 1001 0000 0001 1011 mvfdr */
5105 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5106 "/** 0111 0101 1001 0000 0001 1011 mvfdr */",
5107 op
[0], op
[1], op
[2]);
5110 #line 1229 "rx-decode.opc"
5115 default: UNSUPPORTED(); break;
5120 switch (op
[2] & 0x00)
5124 /** 0111 0101 1010 0000 rdst rnum dpushm.l %1-%2 */
5125 #line 1223 "rx-decode.opc"
5126 int rdst AU
= (op
[2] >> 4) & 0x0f;
5127 #line 1223 "rx-decode.opc"
5128 int rnum AU
= op
[2] & 0x0f;
5131 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5132 "/** 0111 0101 1010 0000 rdst rnum dpushm.l %1-%2 */",
5133 op
[0], op
[1], op
[2]);
5134 printf (" rdst = 0x%x,", rdst
);
5135 printf (" rnum = 0x%x\n", rnum
);
5137 SYNTAX("dpushm.l %1-%2");
5138 #line 1223 "rx-decode.opc"
5139 ID(dpushm
); SCR(rdst
); S2CR(rdst
+ rnum
); F_____
;
5147 switch (op
[2] & 0x00)
5151 /** 0111 0101 1010 1000 rdst rnum dpopm.l %1-%2 */
5152 #line 1217 "rx-decode.opc"
5153 int rdst AU
= (op
[2] >> 4) & 0x0f;
5154 #line 1217 "rx-decode.opc"
5155 int rnum AU
= op
[2] & 0x0f;
5158 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5159 "/** 0111 0101 1010 1000 rdst rnum dpopm.l %1-%2 */",
5160 op
[0], op
[1], op
[2]);
5161 printf (" rdst = 0x%x,", rdst
);
5162 printf (" rnum = 0x%x\n", rnum
);
5164 SYNTAX("dpopm.l %1-%2");
5165 #line 1217 "rx-decode.opc"
5166 ID(dpopm
); SCR(rdst
); S2CR(rdst
+ rnum
); F_____
;
5174 switch (op
[2] & 0x00)
5178 /** 0111 0101 1011 0000 rdst rnum dpushm.d %1-%2 */
5179 #line 1220 "rx-decode.opc"
5180 int rdst AU
= (op
[2] >> 4) & 0x0f;
5181 #line 1220 "rx-decode.opc"
5182 int rnum AU
= op
[2] & 0x0f;
5185 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5186 "/** 0111 0101 1011 0000 rdst rnum dpushm.d %1-%2 */",
5187 op
[0], op
[1], op
[2]);
5188 printf (" rdst = 0x%x,", rdst
);
5189 printf (" rnum = 0x%x\n", rnum
);
5191 SYNTAX("dpushm.d %1-%2");
5192 #line 1220 "rx-decode.opc"
5193 ID(dpushm
); SDR(rdst
); S2DR(rdst
+ rnum
); F_____
;
5201 switch (op
[2] & 0x00)
5205 /** 0111 0101 1011 1000 rdst rnum dpopm.d %1-%2 */
5206 #line 1214 "rx-decode.opc"
5207 int rdst AU
= (op
[2] >> 4) & 0x0f;
5208 #line 1214 "rx-decode.opc"
5209 int rnum AU
= op
[2] & 0x0f;
5212 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
5213 "/** 0111 0101 1011 1000 rdst rnum dpopm.d %1-%2 */",
5214 op
[0], op
[1], op
[2]);
5215 printf (" rdst = 0x%x,", rdst
);
5216 printf (" rnum = 0x%x\n", rnum
);
5218 SYNTAX("dpopm.d %1-%2");
5219 #line 1214 "rx-decode.opc"
5220 ID(dpopm
); SDR(rdst
); S2DR(rdst
+ rnum
); F_____
;
5226 default: UNSUPPORTED(); break;
5231 switch (op
[1] & 0xff)
5249 goto op_semantics_32
;
5267 goto op_semantics_33
;
5285 goto op_semantics_34
;
5303 goto op_semantics_35
;
5307 switch (op
[2] & 0xff)
5311 switch (op
[3] & 0x00)
5316 /** 0111 0110 1001 0000 srcb 0000 rdst srca dadd %1, %2, %0 */
5317 #line 1238 "rx-decode.opc"
5318 int srcb AU
= (op
[2] >> 4) & 0x0f;
5319 #line 1238 "rx-decode.opc"
5320 int rdst AU
= (op
[3] >> 4) & 0x0f;
5321 #line 1238 "rx-decode.opc"
5322 int srca AU
= op
[3] & 0x0f;
5325 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5326 "/** 0111 0110 1001 0000 srcb 0000 rdst srca dadd %1, %2, %0 */",
5327 op
[0], op
[1], op
[2], op
[3]);
5328 printf (" srcb = 0x%x,", srcb
);
5329 printf (" rdst = 0x%x,", rdst
);
5330 printf (" srca = 0x%x\n", srca
);
5332 SYNTAX("dadd %1, %2, %0");
5333 #line 1238 "rx-decode.opc"
5334 ID(dadd
); DDR(rdst
); SDR(srca
); S2DR(srcb
); F_____
;
5342 switch (op
[3] & 0x00)
5347 /** 0111 0110 1001 0000 srcb 0001 rdst srca dsub %1, %2, %0 */
5348 #line 1259 "rx-decode.opc"
5349 int srcb AU
= (op
[2] >> 4) & 0x0f;
5350 #line 1259 "rx-decode.opc"
5351 int rdst AU
= (op
[3] >> 4) & 0x0f;
5352 #line 1259 "rx-decode.opc"
5353 int srca AU
= op
[3] & 0x0f;
5356 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5357 "/** 0111 0110 1001 0000 srcb 0001 rdst srca dsub %1, %2, %0 */",
5358 op
[0], op
[1], op
[2], op
[3]);
5359 printf (" srcb = 0x%x,", srcb
);
5360 printf (" rdst = 0x%x,", rdst
);
5361 printf (" srca = 0x%x\n", srca
);
5363 SYNTAX("dsub %1, %2, %0");
5364 #line 1259 "rx-decode.opc"
5365 ID(dsub
); DDR(rdst
); SDR(srca
); S2DR(srcb
); F_____
;
5373 switch (op
[3] & 0x00)
5378 /** 0111 0110 1001 0000 srcb 0010 rdst srca dmul %1, %2, %0 */
5379 #line 1247 "rx-decode.opc"
5380 int srcb AU
= (op
[2] >> 4) & 0x0f;
5381 #line 1247 "rx-decode.opc"
5382 int rdst AU
= (op
[3] >> 4) & 0x0f;
5383 #line 1247 "rx-decode.opc"
5384 int srca AU
= op
[3] & 0x0f;
5387 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5388 "/** 0111 0110 1001 0000 srcb 0010 rdst srca dmul %1, %2, %0 */",
5389 op
[0], op
[1], op
[2], op
[3]);
5390 printf (" srcb = 0x%x,", srcb
);
5391 printf (" rdst = 0x%x,", rdst
);
5392 printf (" srca = 0x%x\n", srca
);
5394 SYNTAX("dmul %1, %2, %0");
5395 #line 1247 "rx-decode.opc"
5396 ID(dmul
); DDR(rdst
); SDR(srca
); S2DR(srcb
); F_____
;
5404 switch (op
[3] & 0x00)
5409 /** 0111 0110 1001 0000 srcb 0101 rdst srca ddiv %1, %2, %0 */
5410 #line 1244 "rx-decode.opc"
5411 int srcb AU
= (op
[2] >> 4) & 0x0f;
5412 #line 1244 "rx-decode.opc"
5413 int rdst AU
= (op
[3] >> 4) & 0x0f;
5414 #line 1244 "rx-decode.opc"
5415 int srca AU
= op
[3] & 0x0f;
5418 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5419 "/** 0111 0110 1001 0000 srcb 0101 rdst srca ddiv %1, %2, %0 */",
5420 op
[0], op
[1], op
[2], op
[3]);
5421 printf (" srcb = 0x%x,", srcb
);
5422 printf (" rdst = 0x%x,", rdst
);
5423 printf (" srca = 0x%x\n", srca
);
5425 SYNTAX("ddiv %1, %2, %0");
5426 #line 1244 "rx-decode.opc"
5427 ID(ddiv
); DDR(rdst
); SDR(srca
); S2DR(srcb
); F_____
;
5435 switch (op
[3] & 0x00)
5440 /** 0111 0110 1001 0000 srcb 1000 cond srca dcmp%0 %1, %2 */
5441 #line 1241 "rx-decode.opc"
5442 int srcb AU
= (op
[2] >> 4) & 0x0f;
5443 #line 1241 "rx-decode.opc"
5444 int cond AU
= (op
[3] >> 4) & 0x0f;
5445 #line 1241 "rx-decode.opc"
5446 int srca AU
= op
[3] & 0x0f;
5449 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5450 "/** 0111 0110 1001 0000 srcb 1000 cond srca dcmp%0 %1, %2 */",
5451 op
[0], op
[1], op
[2], op
[3]);
5452 printf (" srcb = 0x%x,", srcb
);
5453 printf (" cond = 0x%x,", cond
);
5454 printf (" srca = 0x%x\n", srca
);
5456 SYNTAX("dcmp%0 %1, %2");
5457 #line 1241 "rx-decode.opc"
5458 ID(dcmp
); DCND(cond
); SDR(srca
); S2DR(srcb
); F_____
;
5466 switch (op
[3] & 0x0f)
5471 /** 0111 0110 1001 0000 rsrc 1100 rdst 0000 dmov.d %1, %0 */
5472 #line 1179 "rx-decode.opc"
5473 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5474 #line 1179 "rx-decode.opc"
5475 int rdst AU
= (op
[3] >> 4) & 0x0f;
5478 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5479 "/** 0111 0110 1001 0000 rsrc 1100 rdst 0000 dmov.d %1, %0 */",
5480 op
[0], op
[1], op
[2], op
[3]);
5481 printf (" rsrc = 0x%x,", rsrc
);
5482 printf (" rdst = 0x%x\n", rdst
);
5484 SYNTAX("dmov.d %1, %0");
5485 #line 1179 "rx-decode.opc"
5486 ID(dmov
); DDR(rdst
); SDR(rsrc
); F_____
;
5493 /** 0111 0110 1001 0000 rsrc 1100 rdst 0001 dabs %1, %0 */
5494 #line 1235 "rx-decode.opc"
5495 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5496 #line 1235 "rx-decode.opc"
5497 int rdst AU
= (op
[3] >> 4) & 0x0f;
5500 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5501 "/** 0111 0110 1001 0000 rsrc 1100 rdst 0001 dabs %1, %0 */",
5502 op
[0], op
[1], op
[2], op
[3]);
5503 printf (" rsrc = 0x%x,", rsrc
);
5504 printf (" rdst = 0x%x\n", rdst
);
5506 SYNTAX("dabs %1, %0");
5507 #line 1235 "rx-decode.opc"
5508 ID(dabs
); DDR(rdst
); SDR(rsrc
); F_____
;
5515 /** 0111 0110 1001 0000 rsrc 1100 rdst 0010 dneg %1, %0 */
5516 #line 1250 "rx-decode.opc"
5517 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5518 #line 1250 "rx-decode.opc"
5519 int rdst AU
= (op
[3] >> 4) & 0x0f;
5522 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5523 "/** 0111 0110 1001 0000 rsrc 1100 rdst 0010 dneg %1, %0 */",
5524 op
[0], op
[1], op
[2], op
[3]);
5525 printf (" rsrc = 0x%x,", rsrc
);
5526 printf (" rdst = 0x%x\n", rdst
);
5528 SYNTAX("dneg %1, %0");
5529 #line 1250 "rx-decode.opc"
5530 ID(dneg
); DDR(rdst
); SDR(rsrc
); F_____
;
5534 default: UNSUPPORTED(); break;
5539 switch (op
[3] & 0x0f)
5544 /** 0111 0110 1001 0000 rsrc 1101 rdst 0000 dsqrt %1, %0 */
5545 #line 1256 "rx-decode.opc"
5546 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5547 #line 1256 "rx-decode.opc"
5548 int rdst AU
= (op
[3] >> 4) & 0x0f;
5551 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5552 "/** 0111 0110 1001 0000 rsrc 1101 rdst 0000 dsqrt %1, %0 */",
5553 op
[0], op
[1], op
[2], op
[3]);
5554 printf (" rsrc = 0x%x,", rsrc
);
5555 printf (" rdst = 0x%x\n", rdst
);
5557 SYNTAX("dsqrt %1, %0");
5558 #line 1256 "rx-decode.opc"
5559 ID(dsqrt
); DDR(rdst
); SDR(rsrc
); F_____
;
5566 /** 0111 0110 1001 0000 rsrc 1101 rdst 1000 dtoi %1, %0 */
5567 #line 1265 "rx-decode.opc"
5568 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5569 #line 1265 "rx-decode.opc"
5570 int rdst AU
= (op
[3] >> 4) & 0x0f;
5573 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5574 "/** 0111 0110 1001 0000 rsrc 1101 rdst 1000 dtoi %1, %0 */",
5575 op
[0], op
[1], op
[2], op
[3]);
5576 printf (" rsrc = 0x%x,", rsrc
);
5577 printf (" rdst = 0x%x\n", rdst
);
5579 SYNTAX("dtoi %1, %0");
5580 #line 1265 "rx-decode.opc"
5581 ID(dtoi
); DDR(rdst
); SDR(rsrc
); F_____
;
5588 /** 0111 0110 1001 0000 rsrc 1101 rdst 1001 dtou %1, %0 */
5589 #line 1268 "rx-decode.opc"
5590 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5591 #line 1268 "rx-decode.opc"
5592 int rdst AU
= (op
[3] >> 4) & 0x0f;
5595 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5596 "/** 0111 0110 1001 0000 rsrc 1101 rdst 1001 dtou %1, %0 */",
5597 op
[0], op
[1], op
[2], op
[3]);
5598 printf (" rsrc = 0x%x,", rsrc
);
5599 printf (" rdst = 0x%x\n", rdst
);
5601 SYNTAX("dtou %1, %0");
5602 #line 1268 "rx-decode.opc"
5603 ID(dtou
); DDR(rdst
); SDR(rsrc
); F_____
;
5610 /** 0111 0110 1001 0000 rsrc 1101 rdst 1100 dtof %1, %0 */
5611 #line 1262 "rx-decode.opc"
5612 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5613 #line 1262 "rx-decode.opc"
5614 int rdst AU
= (op
[3] >> 4) & 0x0f;
5617 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5618 "/** 0111 0110 1001 0000 rsrc 1101 rdst 1100 dtof %1, %0 */",
5619 op
[0], op
[1], op
[2], op
[3]);
5620 printf (" rsrc = 0x%x,", rsrc
);
5621 printf (" rdst = 0x%x\n", rdst
);
5623 SYNTAX("dtof %1, %0");
5624 #line 1262 "rx-decode.opc"
5625 ID(dtof
); DDR(rdst
); SDR(rsrc
); F_____
;
5632 /** 0111 0110 1001 0000 rsrc 1101 rdst 1101 dround %1, %0 */
5633 #line 1253 "rx-decode.opc"
5634 int rsrc AU
= (op
[2] >> 4) & 0x0f;
5635 #line 1253 "rx-decode.opc"
5636 int rdst AU
= (op
[3] >> 4) & 0x0f;
5639 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
5640 "/** 0111 0110 1001 0000 rsrc 1101 rdst 1101 dround %1, %0 */",
5641 op
[0], op
[1], op
[2], op
[3]);
5642 printf (" rsrc = 0x%x,", rsrc
);
5643 printf (" rdst = 0x%x\n", rdst
);
5645 SYNTAX("dround %1, %0");
5646 #line 1253 "rx-decode.opc"
5647 ID(dround
); DDR(rdst
); SDR(rsrc
); F_____
;
5651 default: UNSUPPORTED(); break;
5656 switch (op
[3] & 0x00)
5659 goto op_semantics_36
;
5665 switch (op
[3] & 0x00)
5668 goto op_semantics_37
;
5674 switch (op
[3] & 0x00)
5677 goto op_semantics_38
;
5683 switch (op
[3] & 0x00)
5686 goto op_semantics_39
;
5692 switch (op
[3] & 0x00)
5695 goto op_semantics_40
;
5701 switch (op
[3] & 0x0f)
5704 goto op_semantics_41
;
5707 goto op_semantics_42
;
5710 goto op_semantics_43
;
5712 default: UNSUPPORTED(); break;
5717 switch (op
[3] & 0x0f)
5720 goto op_semantics_44
;
5723 goto op_semantics_45
;
5726 goto op_semantics_46
;
5729 goto op_semantics_47
;
5732 goto op_semantics_48
;
5734 default: UNSUPPORTED(); break;
5739 switch (op
[3] & 0x00)
5742 goto op_semantics_36
;
5748 switch (op
[3] & 0x00)
5751 goto op_semantics_37
;
5757 switch (op
[3] & 0x00)
5760 goto op_semantics_38
;
5766 switch (op
[3] & 0x00)
5769 goto op_semantics_39
;
5775 switch (op
[3] & 0x00)
5778 goto op_semantics_40
;
5784 switch (op
[3] & 0x0f)
5787 goto op_semantics_41
;
5790 goto op_semantics_42
;
5793 goto op_semantics_43
;
5795 default: UNSUPPORTED(); break;
5800 switch (op
[3] & 0x0f)
5803 goto op_semantics_44
;
5806 goto op_semantics_45
;
5809 goto op_semantics_46
;
5812 goto op_semantics_47
;
5815 goto op_semantics_48
;
5817 default: UNSUPPORTED(); break;
5822 switch (op
[3] & 0x00)
5825 goto op_semantics_36
;
5831 switch (op
[3] & 0x00)
5834 goto op_semantics_37
;
5840 switch (op
[3] & 0x00)
5843 goto op_semantics_38
;
5849 switch (op
[3] & 0x00)
5852 goto op_semantics_39
;
5858 switch (op
[3] & 0x00)
5861 goto op_semantics_40
;
5867 switch (op
[3] & 0x0f)
5870 goto op_semantics_41
;
5873 goto op_semantics_42
;
5876 goto op_semantics_43
;
5878 default: UNSUPPORTED(); break;
5883 switch (op
[3] & 0x0f)
5886 goto op_semantics_44
;
5889 goto op_semantics_45
;
5892 goto op_semantics_46
;
5895 goto op_semantics_47
;
5898 goto op_semantics_48
;
5900 default: UNSUPPORTED(); break;
5905 switch (op
[3] & 0x00)
5908 goto op_semantics_36
;
5914 switch (op
[3] & 0x00)
5917 goto op_semantics_37
;
5923 switch (op
[3] & 0x00)
5926 goto op_semantics_38
;
5932 switch (op
[3] & 0x00)
5935 goto op_semantics_39
;
5941 switch (op
[3] & 0x00)
5944 goto op_semantics_40
;
5950 switch (op
[3] & 0x0f)
5953 goto op_semantics_41
;
5956 goto op_semantics_42
;
5959 goto op_semantics_43
;
5961 default: UNSUPPORTED(); break;
5966 switch (op
[3] & 0x0f)
5969 goto op_semantics_44
;
5972 goto op_semantics_45
;
5975 goto op_semantics_46
;
5978 goto op_semantics_47
;
5981 goto op_semantics_48
;
5983 default: UNSUPPORTED(); break;
5988 switch (op
[3] & 0x00)
5991 goto op_semantics_36
;
5997 switch (op
[3] & 0x00)
6000 goto op_semantics_37
;
6006 switch (op
[3] & 0x00)
6009 goto op_semantics_38
;
6015 switch (op
[3] & 0x00)
6018 goto op_semantics_39
;
6024 switch (op
[3] & 0x00)
6027 goto op_semantics_40
;
6033 switch (op
[3] & 0x0f)
6036 goto op_semantics_41
;
6039 goto op_semantics_42
;
6042 goto op_semantics_43
;
6044 default: UNSUPPORTED(); break;
6049 switch (op
[3] & 0x0f)
6052 goto op_semantics_44
;
6055 goto op_semantics_45
;
6058 goto op_semantics_46
;
6061 goto op_semantics_47
;
6064 goto op_semantics_48
;
6066 default: UNSUPPORTED(); break;
6071 switch (op
[3] & 0x00)
6074 goto op_semantics_36
;
6080 switch (op
[3] & 0x00)
6083 goto op_semantics_37
;
6089 switch (op
[3] & 0x00)
6092 goto op_semantics_38
;
6098 switch (op
[3] & 0x00)
6101 goto op_semantics_39
;
6107 switch (op
[3] & 0x00)
6110 goto op_semantics_40
;
6116 switch (op
[3] & 0x0f)
6119 goto op_semantics_41
;
6122 goto op_semantics_42
;
6125 goto op_semantics_43
;
6127 default: UNSUPPORTED(); break;
6132 switch (op
[3] & 0x0f)
6135 goto op_semantics_44
;
6138 goto op_semantics_45
;
6141 goto op_semantics_46
;
6144 goto op_semantics_47
;
6147 goto op_semantics_48
;
6149 default: UNSUPPORTED(); break;
6154 switch (op
[3] & 0x00)
6157 goto op_semantics_36
;
6163 switch (op
[3] & 0x00)
6166 goto op_semantics_37
;
6172 switch (op
[3] & 0x00)
6175 goto op_semantics_38
;
6181 switch (op
[3] & 0x00)
6184 goto op_semantics_39
;
6190 switch (op
[3] & 0x00)
6193 goto op_semantics_40
;
6199 switch (op
[3] & 0x0f)
6202 goto op_semantics_41
;
6205 goto op_semantics_42
;
6208 goto op_semantics_43
;
6210 default: UNSUPPORTED(); break;
6215 switch (op
[3] & 0x0f)
6218 goto op_semantics_44
;
6221 goto op_semantics_45
;
6224 goto op_semantics_46
;
6227 goto op_semantics_47
;
6230 goto op_semantics_48
;
6232 default: UNSUPPORTED(); break;
6237 switch (op
[3] & 0x00)
6240 goto op_semantics_36
;
6246 switch (op
[3] & 0x00)
6249 goto op_semantics_37
;
6255 switch (op
[3] & 0x00)
6258 goto op_semantics_38
;
6264 switch (op
[3] & 0x00)
6267 goto op_semantics_39
;
6273 switch (op
[3] & 0x00)
6276 goto op_semantics_40
;
6282 switch (op
[3] & 0x0f)
6285 goto op_semantics_41
;
6288 goto op_semantics_42
;
6291 goto op_semantics_43
;
6293 default: UNSUPPORTED(); break;
6298 switch (op
[3] & 0x0f)
6301 goto op_semantics_44
;
6304 goto op_semantics_45
;
6307 goto op_semantics_46
;
6310 goto op_semantics_47
;
6313 goto op_semantics_48
;
6315 default: UNSUPPORTED(); break;
6320 switch (op
[3] & 0x00)
6323 goto op_semantics_36
;
6329 switch (op
[3] & 0x00)
6332 goto op_semantics_37
;
6338 switch (op
[3] & 0x00)
6341 goto op_semantics_38
;
6347 switch (op
[3] & 0x00)
6350 goto op_semantics_39
;
6356 switch (op
[3] & 0x00)
6359 goto op_semantics_40
;
6365 switch (op
[3] & 0x0f)
6368 goto op_semantics_41
;
6371 goto op_semantics_42
;
6374 goto op_semantics_43
;
6376 default: UNSUPPORTED(); break;
6381 switch (op
[3] & 0x0f)
6384 goto op_semantics_44
;
6387 goto op_semantics_45
;
6390 goto op_semantics_46
;
6393 goto op_semantics_47
;
6396 goto op_semantics_48
;
6398 default: UNSUPPORTED(); break;
6403 switch (op
[3] & 0x00)
6406 goto op_semantics_36
;
6412 switch (op
[3] & 0x00)
6415 goto op_semantics_37
;
6421 switch (op
[3] & 0x00)
6424 goto op_semantics_38
;
6430 switch (op
[3] & 0x00)
6433 goto op_semantics_39
;
6439 switch (op
[3] & 0x00)
6442 goto op_semantics_40
;
6448 switch (op
[3] & 0x0f)
6451 goto op_semantics_41
;
6454 goto op_semantics_42
;
6457 goto op_semantics_43
;
6459 default: UNSUPPORTED(); break;
6464 switch (op
[3] & 0x0f)
6467 goto op_semantics_44
;
6470 goto op_semantics_45
;
6473 goto op_semantics_46
;
6476 goto op_semantics_47
;
6479 goto op_semantics_48
;
6481 default: UNSUPPORTED(); break;
6486 switch (op
[3] & 0x00)
6489 goto op_semantics_36
;
6495 switch (op
[3] & 0x00)
6498 goto op_semantics_37
;
6504 switch (op
[3] & 0x00)
6507 goto op_semantics_38
;
6513 switch (op
[3] & 0x00)
6516 goto op_semantics_39
;
6522 switch (op
[3] & 0x00)
6525 goto op_semantics_40
;
6531 switch (op
[3] & 0x0f)
6534 goto op_semantics_41
;
6537 goto op_semantics_42
;
6540 goto op_semantics_43
;
6542 default: UNSUPPORTED(); break;
6547 switch (op
[3] & 0x0f)
6550 goto op_semantics_44
;
6553 goto op_semantics_45
;
6556 goto op_semantics_46
;
6559 goto op_semantics_47
;
6562 goto op_semantics_48
;
6564 default: UNSUPPORTED(); break;
6569 switch (op
[3] & 0x00)
6572 goto op_semantics_36
;
6578 switch (op
[3] & 0x00)
6581 goto op_semantics_37
;
6587 switch (op
[3] & 0x00)
6590 goto op_semantics_38
;
6596 switch (op
[3] & 0x00)
6599 goto op_semantics_39
;
6605 switch (op
[3] & 0x00)
6608 goto op_semantics_40
;
6614 switch (op
[3] & 0x0f)
6617 goto op_semantics_41
;
6620 goto op_semantics_42
;
6623 goto op_semantics_43
;
6625 default: UNSUPPORTED(); break;
6630 switch (op
[3] & 0x0f)
6633 goto op_semantics_44
;
6636 goto op_semantics_45
;
6639 goto op_semantics_46
;
6642 goto op_semantics_47
;
6645 goto op_semantics_48
;
6647 default: UNSUPPORTED(); break;
6652 switch (op
[3] & 0x00)
6655 goto op_semantics_36
;
6661 switch (op
[3] & 0x00)
6664 goto op_semantics_37
;
6670 switch (op
[3] & 0x00)
6673 goto op_semantics_38
;
6679 switch (op
[3] & 0x00)
6682 goto op_semantics_39
;
6688 switch (op
[3] & 0x00)
6691 goto op_semantics_40
;
6697 switch (op
[3] & 0x0f)
6700 goto op_semantics_41
;
6703 goto op_semantics_42
;
6706 goto op_semantics_43
;
6708 default: UNSUPPORTED(); break;
6713 switch (op
[3] & 0x0f)
6716 goto op_semantics_44
;
6719 goto op_semantics_45
;
6722 goto op_semantics_46
;
6725 goto op_semantics_47
;
6728 goto op_semantics_48
;
6730 default: UNSUPPORTED(); break;
6735 switch (op
[3] & 0x00)
6738 goto op_semantics_36
;
6744 switch (op
[3] & 0x00)
6747 goto op_semantics_37
;
6753 switch (op
[3] & 0x00)
6756 goto op_semantics_38
;
6762 switch (op
[3] & 0x00)
6765 goto op_semantics_39
;
6771 switch (op
[3] & 0x00)
6774 goto op_semantics_40
;
6780 switch (op
[3] & 0x0f)
6783 goto op_semantics_41
;
6786 goto op_semantics_42
;
6789 goto op_semantics_43
;
6791 default: UNSUPPORTED(); break;
6796 switch (op
[3] & 0x0f)
6799 goto op_semantics_44
;
6802 goto op_semantics_45
;
6805 goto op_semantics_46
;
6808 goto op_semantics_47
;
6811 goto op_semantics_48
;
6813 default: UNSUPPORTED(); break;
6818 switch (op
[3] & 0x00)
6821 goto op_semantics_36
;
6827 switch (op
[3] & 0x00)
6830 goto op_semantics_37
;
6836 switch (op
[3] & 0x00)
6839 goto op_semantics_38
;
6845 switch (op
[3] & 0x00)
6848 goto op_semantics_39
;
6854 switch (op
[3] & 0x00)
6857 goto op_semantics_40
;
6863 switch (op
[3] & 0x0f)
6866 goto op_semantics_41
;
6869 goto op_semantics_42
;
6872 goto op_semantics_43
;
6874 default: UNSUPPORTED(); break;
6879 switch (op
[3] & 0x0f)
6882 goto op_semantics_44
;
6885 goto op_semantics_45
;
6888 goto op_semantics_46
;
6891 goto op_semantics_47
;
6894 goto op_semantics_48
;
6896 default: UNSUPPORTED(); break;
6899 default: UNSUPPORTED(); break;
6902 default: UNSUPPORTED(); break;
6907 switch (op
[1] & 0xf0)
6910 goto op_semantics_32
;
6913 goto op_semantics_33
;
6916 goto op_semantics_34
;
6919 goto op_semantics_35
;
6921 default: UNSUPPORTED(); break;
6926 switch (op
[1] & 0x00)
6931 /** 0111 100b ittt rdst bset #%1, %0 */
6932 #line 968 "rx-decode.opc"
6933 int b AU
= op
[0] & 0x01;
6934 #line 968 "rx-decode.opc"
6935 int ittt AU
= (op
[1] >> 4) & 0x0f;
6936 #line 968 "rx-decode.opc"
6937 int rdst AU
= op
[1] & 0x0f;
6940 printf ("\033[33m%s\033[0m %02x %02x\n",
6941 "/** 0111 100b ittt rdst bset #%1, %0 */",
6943 printf (" b = 0x%x,", b
);
6944 printf (" ittt = 0x%x,", ittt
);
6945 printf (" rdst = 0x%x\n", rdst
);
6947 SYNTAX("bset #%1, %0");
6948 #line 968 "rx-decode.opc"
6949 ID(bset
); BWL(LSIZE
); SC(b
*16+ittt
); DR(rdst
); F_____
;
6958 switch (op
[1] & 0x00)
6961 goto op_semantics_49
;
6967 switch (op
[1] & 0x00)
6972 /** 0111 101b ittt rdst bclr #%1, %0 */
6973 #line 980 "rx-decode.opc"
6974 int b AU
= op
[0] & 0x01;
6975 #line 980 "rx-decode.opc"
6976 int ittt AU
= (op
[1] >> 4) & 0x0f;
6977 #line 980 "rx-decode.opc"
6978 int rdst AU
= op
[1] & 0x0f;
6981 printf ("\033[33m%s\033[0m %02x %02x\n",
6982 "/** 0111 101b ittt rdst bclr #%1, %0 */",
6984 printf (" b = 0x%x,", b
);
6985 printf (" ittt = 0x%x,", ittt
);
6986 printf (" rdst = 0x%x\n", rdst
);
6988 SYNTAX("bclr #%1, %0");
6989 #line 980 "rx-decode.opc"
6990 ID(bclr
); BWL(LSIZE
); SC(b
*16+ittt
); DR(rdst
); F_____
;
6999 switch (op
[1] & 0x00)
7002 goto op_semantics_50
;
7008 switch (op
[1] & 0x00)
7013 /** 0111 110b ittt rdst btst #%2, %1 */
7014 #line 992 "rx-decode.opc"
7015 int b AU
= op
[0] & 0x01;
7016 #line 992 "rx-decode.opc"
7017 int ittt AU
= (op
[1] >> 4) & 0x0f;
7018 #line 992 "rx-decode.opc"
7019 int rdst AU
= op
[1] & 0x0f;
7022 printf ("\033[33m%s\033[0m %02x %02x\n",
7023 "/** 0111 110b ittt rdst btst #%2, %1 */",
7025 printf (" b = 0x%x,", b
);
7026 printf (" ittt = 0x%x,", ittt
);
7027 printf (" rdst = 0x%x\n", rdst
);
7029 SYNTAX("btst #%2, %1");
7030 #line 992 "rx-decode.opc"
7031 ID(btst
); BWL(LSIZE
); S2C(b
*16+ittt
); SR(rdst
); F___ZC
;
7040 switch (op
[1] & 0x00)
7043 goto op_semantics_51
;
7049 switch (op
[1] & 0xf0)
7053 /** 0111 1110 0000 rdst not %0 */
7054 #line 483 "rx-decode.opc"
7055 int rdst AU
= op
[1] & 0x0f;
7058 printf ("\033[33m%s\033[0m %02x %02x\n",
7059 "/** 0111 1110 0000 rdst not %0 */",
7061 printf (" rdst = 0x%x\n", rdst
);
7064 #line 483 "rx-decode.opc"
7065 ID(xor); DR(rdst
); SR(rdst
); S2C(~0); F__SZ_
;
7071 /** 0111 1110 0001 rdst neg %0 */
7072 #line 504 "rx-decode.opc"
7073 int rdst AU
= op
[1] & 0x0f;
7076 printf ("\033[33m%s\033[0m %02x %02x\n",
7077 "/** 0111 1110 0001 rdst neg %0 */",
7079 printf (" rdst = 0x%x\n", rdst
);
7082 #line 504 "rx-decode.opc"
7083 ID(sub
); DR(rdst
); SC(0); S2R(rdst
); F_OSZC
;
7089 /** 0111 1110 0010 rdst abs %0 */
7090 #line 586 "rx-decode.opc"
7091 int rdst AU
= op
[1] & 0x0f;
7094 printf ("\033[33m%s\033[0m %02x %02x\n",
7095 "/** 0111 1110 0010 rdst abs %0 */",
7097 printf (" rdst = 0x%x\n", rdst
);
7100 #line 586 "rx-decode.opc"
7101 ID(abs
); DR(rdst
); SR(rdst
); F_OSZ_
;
7107 /** 0111 1110 0011 rdst sat %0 */
7108 #line 906 "rx-decode.opc"
7109 int rdst AU
= op
[1] & 0x0f;
7112 printf ("\033[33m%s\033[0m %02x %02x\n",
7113 "/** 0111 1110 0011 rdst sat %0 */",
7115 printf (" rdst = 0x%x\n", rdst
);
7118 #line 906 "rx-decode.opc"
7125 /** 0111 1110 0100 rdst rorc %0 */
7126 #line 766 "rx-decode.opc"
7127 int rdst AU
= op
[1] & 0x0f;
7130 printf ("\033[33m%s\033[0m %02x %02x\n",
7131 "/** 0111 1110 0100 rdst rorc %0 */",
7133 printf (" rdst = 0x%x\n", rdst
);
7136 #line 766 "rx-decode.opc"
7137 ID(rorc
); DR(rdst
); F__SZC
;
7143 /** 0111 1110 0101 rdst rolc %0 */
7144 #line 763 "rx-decode.opc"
7145 int rdst AU
= op
[1] & 0x0f;
7148 printf ("\033[33m%s\033[0m %02x %02x\n",
7149 "/** 0111 1110 0101 rdst rolc %0 */",
7151 printf (" rdst = 0x%x\n", rdst
);
7154 #line 763 "rx-decode.opc"
7155 ID(rolc
); DR(rdst
); F__SZC
;
7163 /** 0111 1110 10sz rsrc push%s %1 */
7164 #line 399 "rx-decode.opc"
7165 int sz AU
= (op
[1] >> 4) & 0x03;
7166 #line 399 "rx-decode.opc"
7167 int rsrc AU
= op
[1] & 0x0f;
7170 printf ("\033[33m%s\033[0m %02x %02x\n",
7171 "/** 0111 1110 10sz rsrc push%s %1 */",
7173 printf (" sz = 0x%x,", sz
);
7174 printf (" rsrc = 0x%x\n", rsrc
);
7176 SYNTAX("push%s %1");
7177 #line 399 "rx-decode.opc"
7178 ID(mov
); BWL(sz
); OP(0, RX_Operand_Predec
, 0, 0); SR(rsrc
); F_____
;
7184 /** 0111 1110 1011 rdst pop %0 */
7185 #line 396 "rx-decode.opc"
7186 int rdst AU
= op
[1] & 0x0f;
7189 printf ("\033[33m%s\033[0m %02x %02x\n",
7190 "/** 0111 1110 1011 rdst pop %0 */",
7192 printf (" rdst = 0x%x\n", rdst
);
7195 #line 396 "rx-decode.opc"
7196 ID(mov
); OP(1, RX_Operand_Postinc
, 0, 0); DR(rdst
); F_____
;
7203 /** 0111 1110 110 crsrc pushc %1 */
7204 #line 1029 "rx-decode.opc"
7205 int crsrc AU
= op
[1] & 0x1f;
7208 printf ("\033[33m%s\033[0m %02x %02x\n",
7209 "/** 0111 1110 110 crsrc pushc %1 */",
7211 printf (" crsrc = 0x%x\n", crsrc
);
7214 #line 1029 "rx-decode.opc"
7215 ID(mov
); OP(0, RX_Operand_Predec
, 0, 0); SR(crsrc
+ 16);
7222 /** 0111 1110 111 crdst popc %0 */
7223 #line 1026 "rx-decode.opc"
7224 int crdst AU
= op
[1] & 0x1f;
7227 printf ("\033[33m%s\033[0m %02x %02x\n",
7228 "/** 0111 1110 111 crdst popc %0 */",
7230 printf (" crdst = 0x%x\n", crdst
);
7233 #line 1026 "rx-decode.opc"
7234 ID(mov
); OP(1, RX_Operand_Postinc
, 0, 0); DR(crdst
+ 16);
7238 default: UNSUPPORTED(); break;
7243 switch (op
[1] & 0xff)
7262 /** 0111 1111 0000 rsrc jmp %0 */
7263 #line 816 "rx-decode.opc"
7264 int rsrc AU
= op
[1] & 0x0f;
7267 printf ("\033[33m%s\033[0m %02x %02x\n",
7268 "/** 0111 1111 0000 rsrc jmp %0 */",
7270 printf (" rsrc = 0x%x\n", rsrc
);
7273 #line 816 "rx-decode.opc"
7274 ID(branch
); DR(rsrc
);
7295 /** 0111 1111 0001 rsrc jsr %0 */
7296 #line 819 "rx-decode.opc"
7297 int rsrc AU
= op
[1] & 0x0f;
7300 printf ("\033[33m%s\033[0m %02x %02x\n",
7301 "/** 0111 1111 0001 rsrc jsr %0 */",
7303 printf (" rsrc = 0x%x\n", rsrc
);
7306 #line 819 "rx-decode.opc"
7328 /** 0111 1111 0100 rsrc bra.l %0 */
7329 #line 812 "rx-decode.opc"
7330 int rsrc AU
= op
[1] & 0x0f;
7333 printf ("\033[33m%s\033[0m %02x %02x\n",
7334 "/** 0111 1111 0100 rsrc bra.l %0 */",
7336 printf (" rsrc = 0x%x\n", rsrc
);
7339 #line 812 "rx-decode.opc"
7340 ID(branchrel
); DR(rsrc
);
7362 /** 0111 1111 0101 rsrc bsr.l %0 */
7363 #line 828 "rx-decode.opc"
7364 int rsrc AU
= op
[1] & 0x0f;
7367 printf ("\033[33m%s\033[0m %02x %02x\n",
7368 "/** 0111 1111 0101 rsrc bsr.l %0 */",
7370 printf (" rsrc = 0x%x\n", rsrc
);
7373 #line 828 "rx-decode.opc"
7374 ID(jsrrel
); DR(rsrc
);
7382 /** 0111 1111 1000 00sz suntil%s */
7383 #line 852 "rx-decode.opc"
7384 int sz AU
= op
[1] & 0x03;
7387 printf ("\033[33m%s\033[0m %02x %02x\n",
7388 "/** 0111 1111 1000 00sz suntil%s */",
7390 printf (" sz = 0x%x\n", sz
);
7393 #line 852 "rx-decode.opc"
7394 ID(suntil
); BWL(sz
); F___ZC
;
7400 /** 0111 1111 1000 0011 scmpu */
7403 printf ("\033[33m%s\033[0m %02x %02x\n",
7404 "/** 0111 1111 1000 0011 scmpu */",
7408 #line 843 "rx-decode.opc"
7417 /** 0111 1111 1000 01sz swhile%s */
7418 #line 855 "rx-decode.opc"
7419 int sz AU
= op
[1] & 0x03;
7422 printf ("\033[33m%s\033[0m %02x %02x\n",
7423 "/** 0111 1111 1000 01sz swhile%s */",
7425 printf (" sz = 0x%x\n", sz
);
7428 #line 855 "rx-decode.opc"
7429 ID(swhile
); BWL(sz
); F___ZC
;
7435 /** 0111 1111 1000 0111 smovu */
7438 printf ("\033[33m%s\033[0m %02x %02x\n",
7439 "/** 0111 1111 1000 0111 smovu */",
7443 #line 846 "rx-decode.opc"
7452 /** 0111 1111 1000 10sz sstr%s */
7453 #line 861 "rx-decode.opc"
7454 int sz AU
= op
[1] & 0x03;
7457 printf ("\033[33m%s\033[0m %02x %02x\n",
7458 "/** 0111 1111 1000 10sz sstr%s */",
7460 printf (" sz = 0x%x\n", sz
);
7463 #line 861 "rx-decode.opc"
7466 /*----------------------------------------------------------------------*/
7473 /** 0111 1111 1000 1011 smovb */
7476 printf ("\033[33m%s\033[0m %02x %02x\n",
7477 "/** 0111 1111 1000 1011 smovb */",
7481 #line 849 "rx-decode.opc"
7490 /** 0111 1111 1000 11sz rmpa%s */
7491 #line 867 "rx-decode.opc"
7492 int sz AU
= op
[1] & 0x03;
7495 printf ("\033[33m%s\033[0m %02x %02x\n",
7496 "/** 0111 1111 1000 11sz rmpa%s */",
7498 printf (" sz = 0x%x\n", sz
);
7501 #line 867 "rx-decode.opc"
7502 ID(rmpa
); BWL(sz
); F_OS__
;
7504 /*----------------------------------------------------------------------*/
7511 /** 0111 1111 1000 1111 smovf */
7514 printf ("\033[33m%s\033[0m %02x %02x\n",
7515 "/** 0111 1111 1000 1111 smovf */",
7519 #line 858 "rx-decode.opc"
7526 /** 0111 1111 1001 0011 satr */
7529 printf ("\033[33m%s\033[0m %02x %02x\n",
7530 "/** 0111 1111 1001 0011 satr */",
7534 #line 909 "rx-decode.opc"
7537 /*----------------------------------------------------------------------*/
7544 /** 0111 1111 1001 0100 rtfi */
7547 printf ("\033[33m%s\033[0m %02x %02x\n",
7548 "/** 0111 1111 1001 0100 rtfi */",
7552 #line 1044 "rx-decode.opc"
7559 /** 0111 1111 1001 0101 rte */
7562 printf ("\033[33m%s\033[0m %02x %02x\n",
7563 "/** 0111 1111 1001 0101 rte */",
7567 #line 1047 "rx-decode.opc"
7574 /** 0111 1111 1001 0110 wait */
7577 printf ("\033[33m%s\033[0m %02x %02x\n",
7578 "/** 0111 1111 1001 0110 wait */",
7582 #line 1059 "rx-decode.opc"
7585 /*----------------------------------------------------------------------*/
7607 /** 0111 1111 1010 rdst setpsw %0 */
7608 #line 1020 "rx-decode.opc"
7609 int rdst AU
= op
[1] & 0x0f;
7612 printf ("\033[33m%s\033[0m %02x %02x\n",
7613 "/** 0111 1111 1010 rdst setpsw %0 */",
7615 printf (" rdst = 0x%x\n", rdst
);
7617 SYNTAX("setpsw %0");
7618 #line 1020 "rx-decode.opc"
7619 ID(setpsw
); DF(rdst
);
7640 /** 0111 1111 1011 rdst clrpsw %0 */
7641 #line 1017 "rx-decode.opc"
7642 int rdst AU
= op
[1] & 0x0f;
7645 printf ("\033[33m%s\033[0m %02x %02x\n",
7646 "/** 0111 1111 1011 rdst clrpsw %0 */",
7648 printf (" rdst = 0x%x\n", rdst
);
7650 SYNTAX("clrpsw %0");
7651 #line 1017 "rx-decode.opc"
7652 ID(clrpsw
); DF(rdst
);
7656 default: UNSUPPORTED(); break;
7661 switch (op
[1] & 0x00)
7666 /** 10sz 0dsp a dst b src mov%s %1, %0 */
7667 #line 357 "rx-decode.opc"
7668 int sz AU
= (op
[0] >> 4) & 0x03;
7669 #line 357 "rx-decode.opc"
7670 int dsp AU
= op
[0] & 0x07;
7671 #line 357 "rx-decode.opc"
7672 int a AU
= (op
[1] >> 7) & 0x01;
7673 #line 357 "rx-decode.opc"
7674 int dst AU
= (op
[1] >> 4) & 0x07;
7675 #line 357 "rx-decode.opc"
7676 int b AU
= (op
[1] >> 3) & 0x01;
7677 #line 357 "rx-decode.opc"
7678 int src AU
= op
[1] & 0x07;
7681 printf ("\033[33m%s\033[0m %02x %02x\n",
7682 "/** 10sz 0dsp a dst b src mov%s %1, %0 */",
7684 printf (" sz = 0x%x,", sz
);
7685 printf (" dsp = 0x%x,", dsp
);
7686 printf (" a = 0x%x,", a
);
7687 printf (" dst = 0x%x,", dst
);
7688 printf (" b = 0x%x,", b
);
7689 printf (" src = 0x%x\n", src
);
7691 SYNTAX("mov%s %1, %0");
7692 #line 357 "rx-decode.opc"
7693 ID(mov
); sBWL(sz
); DIs(dst
, dsp
*4+a
*2+b
, sz
); SR(src
); F_____
;
7701 switch (op
[1] & 0x00)
7704 goto op_semantics_52
;
7710 switch (op
[1] & 0x00)
7713 goto op_semantics_52
;
7719 switch (op
[1] & 0x00)
7722 goto op_semantics_52
;
7728 switch (op
[1] & 0x00)
7731 goto op_semantics_52
;
7737 switch (op
[1] & 0x00)
7740 goto op_semantics_52
;
7746 switch (op
[1] & 0x00)
7749 goto op_semantics_52
;
7755 switch (op
[1] & 0x00)
7758 goto op_semantics_52
;
7764 switch (op
[1] & 0x00)
7769 /** 10sz 1dsp a src b dst mov%s %1, %0 */
7770 #line 354 "rx-decode.opc"
7771 int sz AU
= (op
[0] >> 4) & 0x03;
7772 #line 354 "rx-decode.opc"
7773 int dsp AU
= op
[0] & 0x07;
7774 #line 354 "rx-decode.opc"
7775 int a AU
= (op
[1] >> 7) & 0x01;
7776 #line 354 "rx-decode.opc"
7777 int src AU
= (op
[1] >> 4) & 0x07;
7778 #line 354 "rx-decode.opc"
7779 int b AU
= (op
[1] >> 3) & 0x01;
7780 #line 354 "rx-decode.opc"
7781 int dst AU
= op
[1] & 0x07;
7784 printf ("\033[33m%s\033[0m %02x %02x\n",
7785 "/** 10sz 1dsp a src b dst mov%s %1, %0 */",
7787 printf (" sz = 0x%x,", sz
);
7788 printf (" dsp = 0x%x,", dsp
);
7789 printf (" a = 0x%x,", a
);
7790 printf (" src = 0x%x,", src
);
7791 printf (" b = 0x%x,", b
);
7792 printf (" dst = 0x%x\n", dst
);
7794 SYNTAX("mov%s %1, %0");
7795 #line 354 "rx-decode.opc"
7796 ID(mov
); sBWL(sz
); DR(dst
); SIs(src
, dsp
*4+a
*2+b
, sz
); F_____
;
7804 switch (op
[1] & 0x00)
7807 goto op_semantics_53
;
7813 switch (op
[1] & 0x00)
7816 goto op_semantics_53
;
7822 switch (op
[1] & 0x00)
7825 goto op_semantics_53
;
7831 switch (op
[1] & 0x00)
7834 goto op_semantics_53
;
7840 switch (op
[1] & 0x00)
7843 goto op_semantics_53
;
7849 switch (op
[1] & 0x00)
7852 goto op_semantics_53
;
7858 switch (op
[1] & 0x00)
7861 goto op_semantics_53
;
7867 switch (op
[1] & 0x00)
7870 goto op_semantics_52
;
7876 switch (op
[1] & 0x00)
7879 goto op_semantics_52
;
7885 switch (op
[1] & 0x00)
7888 goto op_semantics_52
;
7894 switch (op
[1] & 0x00)
7897 goto op_semantics_52
;
7903 switch (op
[1] & 0x00)
7906 goto op_semantics_52
;
7912 switch (op
[1] & 0x00)
7915 goto op_semantics_52
;
7921 switch (op
[1] & 0x00)
7924 goto op_semantics_52
;
7930 switch (op
[1] & 0x00)
7933 goto op_semantics_52
;
7939 switch (op
[1] & 0x00)
7942 goto op_semantics_53
;
7948 switch (op
[1] & 0x00)
7951 goto op_semantics_53
;
7957 switch (op
[1] & 0x00)
7960 goto op_semantics_53
;
7966 switch (op
[1] & 0x00)
7969 goto op_semantics_53
;
7975 switch (op
[1] & 0x00)
7978 goto op_semantics_53
;
7984 switch (op
[1] & 0x00)
7987 goto op_semantics_53
;
7993 switch (op
[1] & 0x00)
7996 goto op_semantics_53
;
8002 switch (op
[1] & 0x00)
8005 goto op_semantics_53
;
8011 switch (op
[1] & 0x00)
8014 goto op_semantics_52
;
8020 switch (op
[1] & 0x00)
8023 goto op_semantics_52
;
8029 switch (op
[1] & 0x00)
8032 goto op_semantics_52
;
8038 switch (op
[1] & 0x00)
8041 goto op_semantics_52
;
8047 switch (op
[1] & 0x00)
8050 goto op_semantics_52
;
8056 switch (op
[1] & 0x00)
8059 goto op_semantics_52
;
8065 switch (op
[1] & 0x00)
8068 goto op_semantics_52
;
8074 switch (op
[1] & 0x00)
8077 goto op_semantics_52
;
8083 switch (op
[1] & 0x00)
8086 goto op_semantics_53
;
8092 switch (op
[1] & 0x00)
8095 goto op_semantics_53
;
8101 switch (op
[1] & 0x00)
8104 goto op_semantics_53
;
8110 switch (op
[1] & 0x00)
8113 goto op_semantics_53
;
8119 switch (op
[1] & 0x00)
8122 goto op_semantics_53
;
8128 switch (op
[1] & 0x00)
8131 goto op_semantics_53
;
8137 switch (op
[1] & 0x00)
8140 goto op_semantics_53
;
8146 switch (op
[1] & 0x00)
8149 goto op_semantics_53
;
8155 switch (op
[1] & 0x00)
8160 /** 1011 w dsp a src b dst movu%s %1, %0 */
8161 #line 377 "rx-decode.opc"
8162 int w AU
= (op
[0] >> 3) & 0x01;
8163 #line 377 "rx-decode.opc"
8164 int dsp AU
= op
[0] & 0x07;
8165 #line 377 "rx-decode.opc"
8166 int a AU
= (op
[1] >> 7) & 0x01;
8167 #line 377 "rx-decode.opc"
8168 int src AU
= (op
[1] >> 4) & 0x07;
8169 #line 377 "rx-decode.opc"
8170 int b AU
= (op
[1] >> 3) & 0x01;
8171 #line 377 "rx-decode.opc"
8172 int dst AU
= op
[1] & 0x07;
8175 printf ("\033[33m%s\033[0m %02x %02x\n",
8176 "/** 1011 w dsp a src b dst movu%s %1, %0 */",
8178 printf (" w = 0x%x,", w
);
8179 printf (" dsp = 0x%x,", dsp
);
8180 printf (" a = 0x%x,", a
);
8181 printf (" src = 0x%x,", src
);
8182 printf (" b = 0x%x,", b
);
8183 printf (" dst = 0x%x\n", dst
);
8185 SYNTAX("movu%s %1, %0");
8186 #line 377 "rx-decode.opc"
8187 ID(mov
); uBW(w
); DR(dst
); SIs(src
, dsp
*4+a
*2+b
, w
); F_____
;
8195 switch (op
[1] & 0x00)
8198 goto op_semantics_54
;
8204 switch (op
[1] & 0x00)
8207 goto op_semantics_54
;
8213 switch (op
[1] & 0x00)
8216 goto op_semantics_54
;
8222 switch (op
[1] & 0x00)
8225 goto op_semantics_54
;
8231 switch (op
[1] & 0x00)
8234 goto op_semantics_54
;
8240 switch (op
[1] & 0x00)
8243 goto op_semantics_54
;
8249 switch (op
[1] & 0x00)
8252 goto op_semantics_54
;
8258 switch (op
[1] & 0x00)
8261 goto op_semantics_54
;
8267 switch (op
[1] & 0x00)
8270 goto op_semantics_54
;
8276 switch (op
[1] & 0x00)
8279 goto op_semantics_54
;
8285 switch (op
[1] & 0x00)
8288 goto op_semantics_54
;
8294 switch (op
[1] & 0x00)
8297 goto op_semantics_54
;
8303 switch (op
[1] & 0x00)
8306 goto op_semantics_54
;
8312 switch (op
[1] & 0x00)
8315 goto op_semantics_54
;
8321 switch (op
[1] & 0x00)
8324 goto op_semantics_54
;
8330 switch (op
[1] & 0x00)
8335 /** 11sz sd ss rsrc rdst mov%s %1, %0 */
8336 #line 335 "rx-decode.opc"
8337 int sz AU
= (op
[0] >> 4) & 0x03;
8338 #line 335 "rx-decode.opc"
8339 int sd AU
= (op
[0] >> 2) & 0x03;
8340 #line 335 "rx-decode.opc"
8341 int ss AU
= op
[0] & 0x03;
8342 #line 335 "rx-decode.opc"
8343 int rsrc AU
= (op
[1] >> 4) & 0x0f;
8344 #line 335 "rx-decode.opc"
8345 int rdst AU
= op
[1] & 0x0f;
8348 printf ("\033[33m%s\033[0m %02x %02x\n",
8349 "/** 11sz sd ss rsrc rdst mov%s %1, %0 */",
8351 printf (" sz = 0x%x,", sz
);
8352 printf (" sd = 0x%x,", sd
);
8353 printf (" ss = 0x%x,", ss
);
8354 printf (" rsrc = 0x%x,", rsrc
);
8355 printf (" rdst = 0x%x\n", rdst
);
8357 SYNTAX("mov%s %1, %0");
8358 #line 335 "rx-decode.opc"
8359 if (sd
== 3 && ss
== 3 && sz
== 2 && rsrc
== 0 && rdst
== 0)
8362 SYNTAX ("nop\t; mov.l\tr0, r0");
8366 ID(mov
); sBWL(sz
); F_____
;
8367 if ((ss
== 3) && (sd
!= 3))
8369 SD(ss
, rdst
, sz
); DD(sd
, rsrc
, sz
);
8373 SD(ss
, rsrc
, sz
); DD(sd
, rdst
, sz
);
8383 switch (op
[1] & 0x00)
8386 goto op_semantics_55
;
8392 switch (op
[1] & 0x00)
8395 goto op_semantics_55
;
8401 switch (op
[1] & 0x00)
8404 goto op_semantics_55
;
8410 switch (op
[1] & 0x00)
8413 goto op_semantics_55
;
8419 switch (op
[1] & 0x00)
8422 goto op_semantics_55
;
8428 switch (op
[1] & 0x00)
8431 goto op_semantics_55
;
8437 switch (op
[1] & 0x00)
8440 goto op_semantics_55
;
8446 switch (op
[1] & 0x00)
8449 goto op_semantics_55
;
8455 switch (op
[1] & 0x00)
8458 goto op_semantics_55
;
8464 switch (op
[1] & 0x00)
8467 goto op_semantics_55
;
8473 switch (op
[1] & 0x00)
8476 goto op_semantics_55
;
8482 switch (op
[1] & 0x00)
8485 goto op_semantics_55
;
8491 switch (op
[1] & 0x00)
8494 goto op_semantics_55
;
8500 switch (op
[1] & 0x00)
8503 goto op_semantics_55
;
8509 switch (op
[1] & 0x00)
8512 goto op_semantics_55
;
8518 switch (op
[1] & 0x00)
8521 goto op_semantics_55
;
8527 switch (op
[1] & 0x00)
8530 goto op_semantics_55
;
8536 switch (op
[1] & 0x00)
8539 goto op_semantics_55
;
8545 switch (op
[1] & 0x00)
8548 goto op_semantics_55
;
8554 switch (op
[1] & 0x00)
8557 goto op_semantics_55
;
8563 switch (op
[1] & 0x00)
8566 goto op_semantics_55
;
8572 switch (op
[1] & 0x00)
8575 goto op_semantics_55
;
8581 switch (op
[1] & 0x00)
8584 goto op_semantics_55
;
8590 switch (op
[1] & 0x00)
8593 goto op_semantics_55
;
8599 switch (op
[1] & 0x00)
8602 goto op_semantics_55
;
8608 switch (op
[1] & 0x00)
8611 goto op_semantics_55
;
8617 switch (op
[1] & 0x00)
8620 goto op_semantics_55
;
8626 switch (op
[1] & 0x00)
8629 goto op_semantics_55
;
8635 switch (op
[1] & 0x00)
8638 goto op_semantics_55
;
8644 switch (op
[1] & 0x00)
8647 goto op_semantics_55
;
8653 switch (op
[1] & 0x00)
8656 goto op_semantics_55
;
8662 switch (op
[1] & 0x00)
8665 goto op_semantics_55
;
8671 switch (op
[1] & 0x00)
8674 goto op_semantics_55
;
8680 switch (op
[1] & 0x00)
8683 goto op_semantics_55
;
8689 switch (op
[1] & 0x00)
8692 goto op_semantics_55
;
8698 switch (op
[1] & 0x00)
8701 goto op_semantics_55
;
8707 switch (op
[1] & 0x00)
8710 goto op_semantics_55
;
8716 switch (op
[1] & 0x00)
8719 goto op_semantics_55
;
8725 switch (op
[1] & 0x00)
8728 goto op_semantics_55
;
8734 switch (op
[1] & 0x00)
8737 goto op_semantics_55
;
8743 switch (op
[1] & 0x00)
8746 goto op_semantics_55
;
8752 switch (op
[1] & 0x00)
8755 goto op_semantics_55
;
8761 switch (op
[1] & 0x00)
8764 goto op_semantics_55
;
8770 switch (op
[1] & 0x00)
8773 goto op_semantics_55
;
8779 switch (op
[1] & 0x00)
8782 goto op_semantics_55
;
8788 switch (op
[1] & 0x00)
8791 goto op_semantics_55
;
8797 switch (op
[1] & 0x00)
8800 goto op_semantics_55
;
8806 switch (op
[1] & 0x08)
8811 /** 1111 00sd rdst 0bit bset #%1, %0%S0 */
8812 #line 960 "rx-decode.opc"
8813 int sd AU
= op
[0] & 0x03;
8814 #line 960 "rx-decode.opc"
8815 int rdst AU
= (op
[1] >> 4) & 0x0f;
8816 #line 960 "rx-decode.opc"
8817 int bit AU
= op
[1] & 0x07;
8820 printf ("\033[33m%s\033[0m %02x %02x\n",
8821 "/** 1111 00sd rdst 0bit bset #%1, %0%S0 */",
8823 printf (" sd = 0x%x,", sd
);
8824 printf (" rdst = 0x%x,", rdst
);
8825 printf (" bit = 0x%x\n", bit
);
8827 SYNTAX("bset #%1, %0%S0");
8828 #line 960 "rx-decode.opc"
8829 ID(bset
); BWL(BSIZE
); SC(bit
); DD(sd
, rdst
, BSIZE
); F_____
;
8836 /** 1111 00sd rdst 1bit bclr #%1, %0%S0 */
8837 #line 972 "rx-decode.opc"
8838 int sd AU
= op
[0] & 0x03;
8839 #line 972 "rx-decode.opc"
8840 int rdst AU
= (op
[1] >> 4) & 0x0f;
8841 #line 972 "rx-decode.opc"
8842 int bit AU
= op
[1] & 0x07;
8845 printf ("\033[33m%s\033[0m %02x %02x\n",
8846 "/** 1111 00sd rdst 1bit bclr #%1, %0%S0 */",
8848 printf (" sd = 0x%x,", sd
);
8849 printf (" rdst = 0x%x,", rdst
);
8850 printf (" bit = 0x%x\n", bit
);
8852 SYNTAX("bclr #%1, %0%S0");
8853 #line 972 "rx-decode.opc"
8854 ID(bclr
); BWL(BSIZE
); SC(bit
); DD(sd
, rdst
, BSIZE
); F_____
;
8862 switch (op
[1] & 0x08)
8865 goto op_semantics_56
;
8868 goto op_semantics_57
;
8874 switch (op
[1] & 0x08)
8877 goto op_semantics_56
;
8880 goto op_semantics_57
;
8886 switch (op
[1] & 0x08)
8889 goto op_semantics_56
;
8892 goto op_semantics_57
;
8898 switch (op
[1] & 0x0c)
8904 /** 1111 01sd rdst 0bit btst #%2, %1%S1 */
8905 #line 984 "rx-decode.opc"
8906 int sd AU
= op
[0] & 0x03;
8907 #line 984 "rx-decode.opc"
8908 int rdst AU
= (op
[1] >> 4) & 0x0f;
8909 #line 984 "rx-decode.opc"
8910 int bit AU
= op
[1] & 0x07;
8913 printf ("\033[33m%s\033[0m %02x %02x\n",
8914 "/** 1111 01sd rdst 0bit btst #%2, %1%S1 */",
8916 printf (" sd = 0x%x,", sd
);
8917 printf (" rdst = 0x%x,", rdst
);
8918 printf (" bit = 0x%x\n", bit
);
8920 SYNTAX("btst #%2, %1%S1");
8921 #line 984 "rx-decode.opc"
8922 ID(btst
); BWL(BSIZE
); S2C(bit
); SD(sd
, rdst
, BSIZE
); F___ZC
;
8929 /** 1111 01ss rsrc 10sz push%s %1 */
8930 #line 402 "rx-decode.opc"
8931 int ss AU
= op
[0] & 0x03;
8932 #line 402 "rx-decode.opc"
8933 int rsrc AU
= (op
[1] >> 4) & 0x0f;
8934 #line 402 "rx-decode.opc"
8935 int sz AU
= op
[1] & 0x03;
8938 printf ("\033[33m%s\033[0m %02x %02x\n",
8939 "/** 1111 01ss rsrc 10sz push%s %1 */",
8941 printf (" ss = 0x%x,", ss
);
8942 printf (" rsrc = 0x%x,", rsrc
);
8943 printf (" sz = 0x%x\n", sz
);
8945 SYNTAX("push%s %1");
8946 #line 402 "rx-decode.opc"
8947 ID(mov
); BWL(sz
); OP(0, RX_Operand_Predec
, 0, 0); SD(ss
, rsrc
, sz
); F_____
;
8949 /*----------------------------------------------------------------------*/
8954 default: UNSUPPORTED(); break;
8959 switch (op
[1] & 0x0c)
8963 goto op_semantics_58
;
8966 goto op_semantics_59
;
8968 default: UNSUPPORTED(); break;
8973 switch (op
[1] & 0x0c)
8977 goto op_semantics_58
;
8980 goto op_semantics_59
;
8982 default: UNSUPPORTED(); break;
8987 switch (op
[1] & 0x0c)
8991 goto op_semantics_58
;
8994 goto op_semantics_59
;
8996 default: UNSUPPORTED(); break;
9001 switch (op
[1] & 0x00)
9006 /** 1111 10sd rdst im sz mov%s #%1, %0 */
9007 #line 313 "rx-decode.opc"
9008 int sd AU
= op
[0] & 0x03;
9009 #line 313 "rx-decode.opc"
9010 int rdst AU
= (op
[1] >> 4) & 0x0f;
9011 #line 313 "rx-decode.opc"
9012 int im AU
= (op
[1] >> 2) & 0x03;
9013 #line 313 "rx-decode.opc"
9014 int sz AU
= op
[1] & 0x03;
9017 printf ("\033[33m%s\033[0m %02x %02x\n",
9018 "/** 1111 10sd rdst im sz mov%s #%1, %0 */",
9020 printf (" sd = 0x%x,", sd
);
9021 printf (" rdst = 0x%x,", rdst
);
9022 printf (" im = 0x%x,", im
);
9023 printf (" sz = 0x%x\n", sz
);
9025 SYNTAX("mov%s #%1, %0");
9026 #line 313 "rx-decode.opc"
9027 ID(mov
); DD(sd
, rdst
, sz
);
9028 if ((im
== 1 && sz
== 0)
9029 || (im
== 2 && sz
== 1)
9030 || (im
== 0 && sz
== 2))
9048 switch (op
[1] & 0xff)
9242 goto op_semantics_60
;
9246 switch (op
[2] & 0x0f)
9250 /** 1111 1001 0000 0011 rdst 0000 dmov.l #%1, %0 */
9251 #line 1211 "rx-decode.opc"
9252 int rdst AU
= (op
[2] >> 4) & 0x0f;
9255 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9256 "/** 1111 1001 0000 0011 rdst 0000 dmov.l #%1, %0 */",
9257 op
[0], op
[1], op
[2]);
9258 printf (" rdst = 0x%x\n", rdst
);
9260 SYNTAX("dmov.l #%1, %0");
9261 #line 1211 "rx-decode.opc"
9262 ID(dmov
); DDRL(rdst
); SC(IMMex(0)); F_____
;
9269 /** 1111 1001 0000 0011 rdst 001s dmov%s #%1, %0 */
9270 #line 1208 "rx-decode.opc"
9271 int rdst AU
= (op
[2] >> 4) & 0x0f;
9272 #line 1208 "rx-decode.opc"
9273 int s AU
= op
[2] & 0x01;
9276 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9277 "/** 1111 1001 0000 0011 rdst 001s dmov%s #%1, %0 */",
9278 op
[0], op
[1], op
[2]);
9279 printf (" rdst = 0x%x,", rdst
);
9280 printf (" s = 0x%x\n", s
);
9282 SYNTAX("dmov%s #%1, %0");
9283 #line 1208 "rx-decode.opc"
9284 ID(dmov
); DDRH(rdst
); DL(s
); SC(IMMex(0)); F_____
;
9288 default: UNSUPPORTED(); break;
9291 default: UNSUPPORTED(); break;
9296 switch (op
[1] & 0x00)
9299 goto op_semantics_60
;
9305 switch (op
[1] & 0x00)
9308 goto op_semantics_60
;
9314 switch (op
[1] & 0xff)
9318 switch (op
[2] & 0x00)
9322 /** 1111 1100 0000 0011 rsrc rdst sbb %1, %0 */
9323 #line 576 "rx-decode.opc"
9324 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9325 #line 576 "rx-decode.opc"
9326 int rdst AU
= op
[2] & 0x0f;
9329 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9330 "/** 1111 1100 0000 0011 rsrc rdst sbb %1, %0 */",
9331 op
[0], op
[1], op
[2]);
9332 printf (" rsrc = 0x%x,", rsrc
);
9333 printf (" rdst = 0x%x\n", rdst
);
9335 SYNTAX("sbb %1, %0");
9336 #line 576 "rx-decode.opc"
9337 ID(sbb
); SR (rsrc
); DR(rdst
); F_OSZC
;
9339 /* FIXME: only supports .L */
9346 switch (op
[2] & 0x00)
9350 /** 1111 1100 0000 0111 rsrc rdst neg %2, %0 */
9351 #line 507 "rx-decode.opc"
9352 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9353 #line 507 "rx-decode.opc"
9354 int rdst AU
= op
[2] & 0x0f;
9357 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9358 "/** 1111 1100 0000 0111 rsrc rdst neg %2, %0 */",
9359 op
[0], op
[1], op
[2]);
9360 printf (" rsrc = 0x%x,", rsrc
);
9361 printf (" rdst = 0x%x\n", rdst
);
9363 SYNTAX("neg %2, %0");
9364 #line 507 "rx-decode.opc"
9365 ID(sub
); DR(rdst
); SC(0); S2R(rsrc
); F_OSZC
;
9367 /*----------------------------------------------------------------------*/
9376 switch (op
[2] & 0x00)
9380 /** 1111 1100 0000 1011 rsrc rdst adc %1, %0 */
9381 #line 516 "rx-decode.opc"
9382 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9383 #line 516 "rx-decode.opc"
9384 int rdst AU
= op
[2] & 0x0f;
9387 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9388 "/** 1111 1100 0000 1011 rsrc rdst adc %1, %0 */",
9389 op
[0], op
[1], op
[2]);
9390 printf (" rsrc = 0x%x,", rsrc
);
9391 printf (" rdst = 0x%x\n", rdst
);
9393 SYNTAX("adc %1, %0");
9394 #line 516 "rx-decode.opc"
9395 ID(adc
); SR(rsrc
); DR(rdst
); F_OSZC
;
9403 switch (op
[2] & 0x00)
9407 /** 1111 1100 0000 1111 rsrc rdst abs %1, %0 */
9408 #line 589 "rx-decode.opc"
9409 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9410 #line 589 "rx-decode.opc"
9411 int rdst AU
= op
[2] & 0x0f;
9414 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9415 "/** 1111 1100 0000 1111 rsrc rdst abs %1, %0 */",
9416 op
[0], op
[1], op
[2]);
9417 printf (" rsrc = 0x%x,", rsrc
);
9418 printf (" rdst = 0x%x\n", rdst
);
9420 SYNTAX("abs %1, %0");
9421 #line 589 "rx-decode.opc"
9422 ID(abs
); DR(rdst
); SR(rsrc
); F_OSZ_
;
9424 /*----------------------------------------------------------------------*/
9433 switch (op
[2] & 0x00)
9438 /** 1111 1100 0001 00ss rsrc rdst max %1%S1, %0 */
9439 #line 608 "rx-decode.opc"
9440 int ss AU
= op
[1] & 0x03;
9441 #line 608 "rx-decode.opc"
9442 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9443 #line 608 "rx-decode.opc"
9444 int rdst AU
= op
[2] & 0x0f;
9447 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9448 "/** 1111 1100 0001 00ss rsrc rdst max %1%S1, %0 */",
9449 op
[0], op
[1], op
[2]);
9450 printf (" ss = 0x%x,", ss
);
9451 printf (" rsrc = 0x%x,", rsrc
);
9452 printf (" rdst = 0x%x\n", rdst
);
9454 SYNTAX("max %1%S1, %0");
9455 #line 608 "rx-decode.opc"
9456 if (ss
== 3 && rsrc
== 0 && rdst
== 0)
9459 SYNTAX("nop\t; max\tr0, r0");
9463 ID(max
); SP(ss
, rsrc
); DR(rdst
);
9472 switch (op
[2] & 0x00)
9475 goto op_semantics_61
;
9481 switch (op
[2] & 0x00)
9484 goto op_semantics_61
;
9490 switch (op
[2] & 0x00)
9493 goto op_semantics_61
;
9499 switch (op
[2] & 0x00)
9504 /** 1111 1100 0001 01ss rsrc rdst min %1%S1, %0 */
9505 #line 628 "rx-decode.opc"
9506 int ss AU
= op
[1] & 0x03;
9507 #line 628 "rx-decode.opc"
9508 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9509 #line 628 "rx-decode.opc"
9510 int rdst AU
= op
[2] & 0x0f;
9513 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9514 "/** 1111 1100 0001 01ss rsrc rdst min %1%S1, %0 */",
9515 op
[0], op
[1], op
[2]);
9516 printf (" ss = 0x%x,", ss
);
9517 printf (" rsrc = 0x%x,", rsrc
);
9518 printf (" rdst = 0x%x\n", rdst
);
9520 SYNTAX("min %1%S1, %0");
9521 #line 628 "rx-decode.opc"
9522 ID(min
); SP(ss
, rsrc
); DR(rdst
);
9530 switch (op
[2] & 0x00)
9533 goto op_semantics_62
;
9539 switch (op
[2] & 0x00)
9542 goto op_semantics_62
;
9548 switch (op
[2] & 0x00)
9551 goto op_semantics_62
;
9557 switch (op
[2] & 0x00)
9562 /** 1111 1100 0001 10ss rsrc rdst emul %1%S1, %0 */
9563 #line 686 "rx-decode.opc"
9564 int ss AU
= op
[1] & 0x03;
9565 #line 686 "rx-decode.opc"
9566 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9567 #line 686 "rx-decode.opc"
9568 int rdst AU
= op
[2] & 0x0f;
9571 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9572 "/** 1111 1100 0001 10ss rsrc rdst emul %1%S1, %0 */",
9573 op
[0], op
[1], op
[2]);
9574 printf (" ss = 0x%x,", ss
);
9575 printf (" rsrc = 0x%x,", rsrc
);
9576 printf (" rdst = 0x%x\n", rdst
);
9578 SYNTAX("emul %1%S1, %0");
9579 #line 686 "rx-decode.opc"
9580 ID(emul
); SP(ss
, rsrc
); DR(rdst
);
9588 switch (op
[2] & 0x00)
9591 goto op_semantics_63
;
9597 switch (op
[2] & 0x00)
9600 goto op_semantics_63
;
9606 switch (op
[2] & 0x00)
9609 goto op_semantics_63
;
9615 switch (op
[2] & 0x00)
9620 /** 1111 1100 0001 11ss rsrc rdst emulu %1%S1, %0 */
9621 #line 698 "rx-decode.opc"
9622 int ss AU
= op
[1] & 0x03;
9623 #line 698 "rx-decode.opc"
9624 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9625 #line 698 "rx-decode.opc"
9626 int rdst AU
= op
[2] & 0x0f;
9629 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9630 "/** 1111 1100 0001 11ss rsrc rdst emulu %1%S1, %0 */",
9631 op
[0], op
[1], op
[2]);
9632 printf (" ss = 0x%x,", ss
);
9633 printf (" rsrc = 0x%x,", rsrc
);
9634 printf (" rdst = 0x%x\n", rdst
);
9636 SYNTAX("emulu %1%S1, %0");
9637 #line 698 "rx-decode.opc"
9638 ID(emulu
); SP(ss
, rsrc
); DR(rdst
);
9646 switch (op
[2] & 0x00)
9649 goto op_semantics_64
;
9655 switch (op
[2] & 0x00)
9658 goto op_semantics_64
;
9664 switch (op
[2] & 0x00)
9667 goto op_semantics_64
;
9673 switch (op
[2] & 0x00)
9678 /** 1111 1100 0010 00ss rsrc rdst div %1%S1, %0 */
9679 #line 710 "rx-decode.opc"
9680 int ss AU
= op
[1] & 0x03;
9681 #line 710 "rx-decode.opc"
9682 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9683 #line 710 "rx-decode.opc"
9684 int rdst AU
= op
[2] & 0x0f;
9687 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9688 "/** 1111 1100 0010 00ss rsrc rdst div %1%S1, %0 */",
9689 op
[0], op
[1], op
[2]);
9690 printf (" ss = 0x%x,", ss
);
9691 printf (" rsrc = 0x%x,", rsrc
);
9692 printf (" rdst = 0x%x\n", rdst
);
9694 SYNTAX("div %1%S1, %0");
9695 #line 710 "rx-decode.opc"
9696 ID(div
); SP(ss
, rsrc
); DR(rdst
); F_O___
;
9704 switch (op
[2] & 0x00)
9707 goto op_semantics_65
;
9713 switch (op
[2] & 0x00)
9716 goto op_semantics_65
;
9722 switch (op
[2] & 0x00)
9725 goto op_semantics_65
;
9731 switch (op
[2] & 0x00)
9736 /** 1111 1100 0010 01ss rsrc rdst divu %1%S1, %0 */
9737 #line 722 "rx-decode.opc"
9738 int ss AU
= op
[1] & 0x03;
9739 #line 722 "rx-decode.opc"
9740 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9741 #line 722 "rx-decode.opc"
9742 int rdst AU
= op
[2] & 0x0f;
9745 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9746 "/** 1111 1100 0010 01ss rsrc rdst divu %1%S1, %0 */",
9747 op
[0], op
[1], op
[2]);
9748 printf (" ss = 0x%x,", ss
);
9749 printf (" rsrc = 0x%x,", rsrc
);
9750 printf (" rdst = 0x%x\n", rdst
);
9752 SYNTAX("divu %1%S1, %0");
9753 #line 722 "rx-decode.opc"
9754 ID(divu
); SP(ss
, rsrc
); DR(rdst
); F_O___
;
9762 switch (op
[2] & 0x00)
9765 goto op_semantics_66
;
9771 switch (op
[2] & 0x00)
9774 goto op_semantics_66
;
9780 switch (op
[2] & 0x00)
9783 goto op_semantics_66
;
9789 switch (op
[2] & 0x00)
9794 /** 1111 1100 0011 00ss rsrc rdst tst %1%S1, %2 */
9795 #line 495 "rx-decode.opc"
9796 int ss AU
= op
[1] & 0x03;
9797 #line 495 "rx-decode.opc"
9798 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9799 #line 495 "rx-decode.opc"
9800 int rdst AU
= op
[2] & 0x0f;
9803 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9804 "/** 1111 1100 0011 00ss rsrc rdst tst %1%S1, %2 */",
9805 op
[0], op
[1], op
[2]);
9806 printf (" ss = 0x%x,", ss
);
9807 printf (" rsrc = 0x%x,", rsrc
);
9808 printf (" rdst = 0x%x\n", rdst
);
9810 SYNTAX("tst %1%S1, %2");
9811 #line 495 "rx-decode.opc"
9812 ID(and); SP(ss
, rsrc
); S2R(rdst
); F__SZ_
;
9820 switch (op
[2] & 0x00)
9823 goto op_semantics_67
;
9829 switch (op
[2] & 0x00)
9832 goto op_semantics_67
;
9838 switch (op
[2] & 0x00)
9841 goto op_semantics_67
;
9847 switch (op
[2] & 0x00)
9852 /** 1111 1100 0011 01ss rsrc rdst xor %1%S1, %0 */
9853 #line 474 "rx-decode.opc"
9854 int ss AU
= op
[1] & 0x03;
9855 #line 474 "rx-decode.opc"
9856 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9857 #line 474 "rx-decode.opc"
9858 int rdst AU
= op
[2] & 0x0f;
9861 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9862 "/** 1111 1100 0011 01ss rsrc rdst xor %1%S1, %0 */",
9863 op
[0], op
[1], op
[2]);
9864 printf (" ss = 0x%x,", ss
);
9865 printf (" rsrc = 0x%x,", rsrc
);
9866 printf (" rdst = 0x%x\n", rdst
);
9868 SYNTAX("xor %1%S1, %0");
9869 #line 474 "rx-decode.opc"
9870 ID(xor); SP(ss
, rsrc
); DR(rdst
); F__SZ_
;
9878 switch (op
[2] & 0x00)
9881 goto op_semantics_68
;
9887 switch (op
[2] & 0x00)
9890 goto op_semantics_68
;
9896 switch (op
[2] & 0x00)
9899 goto op_semantics_68
;
9905 switch (op
[2] & 0x00)
9909 /** 1111 1100 0011 1011 rsrc rdst not %1, %0 */
9910 #line 486 "rx-decode.opc"
9911 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9912 #line 486 "rx-decode.opc"
9913 int rdst AU
= op
[2] & 0x0f;
9916 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9917 "/** 1111 1100 0011 1011 rsrc rdst not %1, %0 */",
9918 op
[0], op
[1], op
[2]);
9919 printf (" rsrc = 0x%x,", rsrc
);
9920 printf (" rdst = 0x%x\n", rdst
);
9922 SYNTAX("not %1, %0");
9923 #line 486 "rx-decode.opc"
9924 ID(xor); DR(rdst
); SR(rsrc
); S2C(~0); F__SZ_
;
9926 /*----------------------------------------------------------------------*/
9935 switch (op
[2] & 0x00)
9940 /** 1111 1100 0100 00ss rsrc rdst xchg %1%S1, %0 */
9941 #line 408 "rx-decode.opc"
9942 int ss AU
= op
[1] & 0x03;
9943 #line 408 "rx-decode.opc"
9944 int rsrc AU
= (op
[2] >> 4) & 0x0f;
9945 #line 408 "rx-decode.opc"
9946 int rdst AU
= op
[2] & 0x0f;
9949 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
9950 "/** 1111 1100 0100 00ss rsrc rdst xchg %1%S1, %0 */",
9951 op
[0], op
[1], op
[2]);
9952 printf (" ss = 0x%x,", ss
);
9953 printf (" rsrc = 0x%x,", rsrc
);
9954 printf (" rdst = 0x%x\n", rdst
);
9956 SYNTAX("xchg %1%S1, %0");
9957 #line 408 "rx-decode.opc"
9958 ID(xchg
); DR(rdst
); SP(ss
, rsrc
);
9966 switch (op
[2] & 0x00)
9969 goto op_semantics_69
;
9975 switch (op
[2] & 0x00)
9978 goto op_semantics_69
;
9984 switch (op
[2] & 0x00)
9987 goto op_semantics_69
;
9993 switch (op
[2] & 0x00)
9998 /** 1111 1100 0100 01sd rsrc rdst itof %1%S1, %0 */
9999 #line 951 "rx-decode.opc"
10000 int sd AU
= op
[1] & 0x03;
10001 #line 951 "rx-decode.opc"
10002 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10003 #line 951 "rx-decode.opc"
10004 int rdst AU
= op
[2] & 0x0f;
10007 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10008 "/** 1111 1100 0100 01sd rsrc rdst itof %1%S1, %0 */",
10009 op
[0], op
[1], op
[2]);
10010 printf (" sd = 0x%x,", sd
);
10011 printf (" rsrc = 0x%x,", rsrc
);
10012 printf (" rdst = 0x%x\n", rdst
);
10014 SYNTAX("itof %1%S1, %0");
10015 #line 951 "rx-decode.opc"
10016 ID(itof
); DR (rdst
); SP(sd
, rsrc
); F__SZ_
;
10024 switch (op
[2] & 0x00)
10027 goto op_semantics_70
;
10033 switch (op
[2] & 0x00)
10036 goto op_semantics_70
;
10042 switch (op
[2] & 0x00)
10045 goto op_semantics_70
;
10051 switch (op
[2] & 0x00)
10055 /** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */
10056 #line 1077 "rx-decode.opc"
10057 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10058 #line 1077 "rx-decode.opc"
10059 int rdst AU
= op
[2] & 0x0f;
10062 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10063 "/** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */",
10064 op
[0], op
[1], op
[2]);
10065 printf (" rsrc = 0x%x,", rsrc
);
10066 printf (" rdst = 0x%x\n", rdst
);
10068 SYNTAX("stz %1, %0");
10069 #line 1077 "rx-decode.opc"
10070 ID(stcc
); SR(rsrc
); DR(rdst
); S2cc(RXC_z
);
10078 switch (op
[2] & 0x00)
10082 /** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */
10083 #line 1080 "rx-decode.opc"
10084 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10085 #line 1080 "rx-decode.opc"
10086 int rdst AU
= op
[2] & 0x0f;
10089 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10090 "/** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */",
10091 op
[0], op
[1], op
[2]);
10092 printf (" rsrc = 0x%x,", rsrc
);
10093 printf (" rdst = 0x%x\n", rdst
);
10095 SYNTAX("stnz %1, %0");
10096 #line 1080 "rx-decode.opc"
10097 ID(stcc
); SR(rsrc
); DR(rdst
); S2cc(RXC_nz
);
10105 switch (op
[2] & 0x00)
10110 /** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */
10111 #line 1137 "rx-decode.opc"
10112 int sd AU
= op
[1] & 0x03;
10113 #line 1137 "rx-decode.opc"
10114 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10115 #line 1137 "rx-decode.opc"
10116 int rdst AU
= op
[2] & 0x0f;
10119 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10120 "/** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */",
10121 op
[0], op
[1], op
[2]);
10122 printf (" sd = 0x%x,", sd
);
10123 printf (" rsrc = 0x%x,", rsrc
);
10124 printf (" rdst = 0x%x\n", rdst
);
10126 SYNTAX("utof %1%S1, %0");
10127 #line 1137 "rx-decode.opc"
10128 ID(utof
); DR (rdst
); SP(sd
, rsrc
); F__SZ_
;
10136 switch (op
[2] & 0x00)
10139 goto op_semantics_71
;
10145 switch (op
[2] & 0x00)
10148 goto op_semantics_71
;
10154 switch (op
[2] & 0x00)
10157 goto op_semantics_71
;
10163 switch (op
[2] & 0x00)
10167 /** 1111 1100 0101 1010 rsrc rdst bfmovz %bf */
10168 #line 1152 "rx-decode.opc"
10169 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10170 #line 1152 "rx-decode.opc"
10171 int rdst AU
= op
[2] & 0x0f;
10174 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10175 "/** 1111 1100 0101 1010 rsrc rdst bfmovz %bf */",
10176 op
[0], op
[1], op
[2]);
10177 printf (" rsrc = 0x%x,", rsrc
);
10178 printf (" rdst = 0x%x\n", rdst
);
10180 SYNTAX("bfmovz %bf");
10181 #line 1152 "rx-decode.opc"
10182 ID(bfmovz
); DR(rdst
); SR(rsrc
); S2C(IMM(2)); F_____
;
10190 switch (op
[2] & 0x00)
10194 /** 1111 1100 0101 1110 rsrc rdst bfmov %bf */
10195 #line 1149 "rx-decode.opc"
10196 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10197 #line 1149 "rx-decode.opc"
10198 int rdst AU
= op
[2] & 0x0f;
10201 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10202 "/** 1111 1100 0101 1110 rsrc rdst bfmov %bf */",
10203 op
[0], op
[1], op
[2]);
10204 printf (" rsrc = 0x%x,", rsrc
);
10205 printf (" rdst = 0x%x\n", rdst
);
10207 SYNTAX("bfmov %bf");
10208 #line 1149 "rx-decode.opc"
10209 ID(bfmov
); DR(rdst
); SR(rsrc
); S2C(IMM(2)); F_____
;
10217 switch (op
[2] & 0x00)
10222 /** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */
10223 #line 963 "rx-decode.opc"
10224 int sd AU
= op
[1] & 0x03;
10225 #line 963 "rx-decode.opc"
10226 int rdst AU
= (op
[2] >> 4) & 0x0f;
10227 #line 963 "rx-decode.opc"
10228 int rsrc AU
= op
[2] & 0x0f;
10231 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10232 "/** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */",
10233 op
[0], op
[1], op
[2]);
10234 printf (" sd = 0x%x,", sd
);
10235 printf (" rdst = 0x%x,", rdst
);
10236 printf (" rsrc = 0x%x\n", rsrc
);
10238 SYNTAX("bset %1, %0%S0");
10239 #line 963 "rx-decode.opc"
10240 ID(bset
); BWL(BSIZE
); SR(rsrc
); DD(sd
, rdst
, BSIZE
); F_____
;
10241 if (sd
== 3) /* bset reg,reg */
10250 switch (op
[2] & 0x00)
10253 goto op_semantics_72
;
10259 switch (op
[2] & 0x00)
10262 goto op_semantics_72
;
10268 switch (op
[2] & 0x00)
10271 goto op_semantics_72
;
10277 switch (op
[2] & 0x00)
10282 /** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */
10283 #line 975 "rx-decode.opc"
10284 int sd AU
= op
[1] & 0x03;
10285 #line 975 "rx-decode.opc"
10286 int rdst AU
= (op
[2] >> 4) & 0x0f;
10287 #line 975 "rx-decode.opc"
10288 int rsrc AU
= op
[2] & 0x0f;
10291 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10292 "/** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */",
10293 op
[0], op
[1], op
[2]);
10294 printf (" sd = 0x%x,", sd
);
10295 printf (" rdst = 0x%x,", rdst
);
10296 printf (" rsrc = 0x%x\n", rsrc
);
10298 SYNTAX("bclr %1, %0%S0");
10299 #line 975 "rx-decode.opc"
10300 ID(bclr
); BWL(BSIZE
); SR(rsrc
); DD(sd
, rdst
, BSIZE
); F_____
;
10301 if (sd
== 3) /* bset reg,reg */
10310 switch (op
[2] & 0x00)
10313 goto op_semantics_73
;
10319 switch (op
[2] & 0x00)
10322 goto op_semantics_73
;
10328 switch (op
[2] & 0x00)
10331 goto op_semantics_73
;
10337 switch (op
[2] & 0x00)
10342 /** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */
10343 #line 987 "rx-decode.opc"
10344 int sd AU
= op
[1] & 0x03;
10345 #line 987 "rx-decode.opc"
10346 int rdst AU
= (op
[2] >> 4) & 0x0f;
10347 #line 987 "rx-decode.opc"
10348 int rsrc AU
= op
[2] & 0x0f;
10351 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10352 "/** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */",
10353 op
[0], op
[1], op
[2]);
10354 printf (" sd = 0x%x,", sd
);
10355 printf (" rdst = 0x%x,", rdst
);
10356 printf (" rsrc = 0x%x\n", rsrc
);
10358 SYNTAX("btst %2, %1%S1");
10359 #line 987 "rx-decode.opc"
10360 ID(btst
); BWL(BSIZE
); S2R(rsrc
); SD(sd
, rdst
, BSIZE
); F___ZC
;
10361 if (sd
== 3) /* bset reg,reg */
10370 switch (op
[2] & 0x00)
10373 goto op_semantics_74
;
10379 switch (op
[2] & 0x00)
10382 goto op_semantics_74
;
10388 switch (op
[2] & 0x00)
10391 goto op_semantics_74
;
10397 switch (op
[2] & 0x00)
10402 /** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */
10403 #line 999 "rx-decode.opc"
10404 int sd AU
= op
[1] & 0x03;
10405 #line 999 "rx-decode.opc"
10406 int rdst AU
= (op
[2] >> 4) & 0x0f;
10407 #line 999 "rx-decode.opc"
10408 int rsrc AU
= op
[2] & 0x0f;
10411 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10412 "/** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */",
10413 op
[0], op
[1], op
[2]);
10414 printf (" sd = 0x%x,", sd
);
10415 printf (" rdst = 0x%x,", rdst
);
10416 printf (" rsrc = 0x%x\n", rsrc
);
10418 SYNTAX("bnot %1, %0%S0");
10419 #line 999 "rx-decode.opc"
10420 ID(bnot
); BWL(BSIZE
); SR(rsrc
); DD(sd
, rdst
, BSIZE
);
10421 if (sd
== 3) /* bset reg,reg */
10430 switch (op
[2] & 0x00)
10433 goto op_semantics_75
;
10439 switch (op
[2] & 0x00)
10442 goto op_semantics_75
;
10448 switch (op
[2] & 0x00)
10451 goto op_semantics_75
;
10457 switch (op
[2] & 0x0f)
10462 /** 1111 1100 0111 10sz rdst 1000 dmov.d %1, %0 */
10463 #line 1185 "rx-decode.opc"
10464 int sz AU
= op
[1] & 0x03;
10465 #line 1185 "rx-decode.opc"
10466 int rdst AU
= (op
[2] >> 4) & 0x0f;
10469 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10470 "/** 1111 1100 0111 10sz rdst 1000 dmov.d %1, %0 */",
10471 op
[0], op
[1], op
[2]);
10472 printf (" sz = 0x%x,", sz
);
10473 printf (" rdst = 0x%x\n", rdst
);
10475 SYNTAX("dmov.d %1, %0");
10476 #line 1185 "rx-decode.opc"
10478 rx_disp(0, sz
, rdst
, RX_Double
, ld
);
10483 ID(dmov
); SDR(rsrc
>> 4); F_____
;
10488 default: UNSUPPORTED(); break;
10493 switch (op
[2] & 0x0f)
10496 goto op_semantics_76
;
10498 default: UNSUPPORTED(); break;
10503 switch (op
[2] & 0x0f)
10506 goto op_semantics_76
;
10508 default: UNSUPPORTED(); break;
10513 switch (op
[2] & 0x00)
10518 /** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */
10519 #line 930 "rx-decode.opc"
10520 int sd AU
= op
[1] & 0x03;
10521 #line 930 "rx-decode.opc"
10522 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10523 #line 930 "rx-decode.opc"
10524 int rdst AU
= op
[2] & 0x0f;
10527 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10528 "/** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */",
10529 op
[0], op
[1], op
[2]);
10530 printf (" sd = 0x%x,", sd
);
10531 printf (" rsrc = 0x%x,", rsrc
);
10532 printf (" rdst = 0x%x\n", rdst
);
10534 SYNTAX("fsub %1%S1, %0");
10535 #line 930 "rx-decode.opc"
10536 ID(fsub
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10544 switch (op
[2] & 0x00)
10547 goto op_semantics_77
;
10553 switch (op
[2] & 0x00)
10556 goto op_semantics_77
;
10562 switch (op
[2] & 0x00)
10565 goto op_semantics_77
;
10571 switch (op
[2] & 0x00)
10576 /** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */
10577 #line 924 "rx-decode.opc"
10578 int sd AU
= op
[1] & 0x03;
10579 #line 924 "rx-decode.opc"
10580 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10581 #line 924 "rx-decode.opc"
10582 int rdst AU
= op
[2] & 0x0f;
10585 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10586 "/** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */",
10587 op
[0], op
[1], op
[2]);
10588 printf (" sd = 0x%x,", sd
);
10589 printf (" rsrc = 0x%x,", rsrc
);
10590 printf (" rdst = 0x%x\n", rdst
);
10592 SYNTAX("fcmp %1%S1, %0");
10593 #line 924 "rx-decode.opc"
10594 ID(fcmp
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F_OSZ_
;
10602 switch (op
[2] & 0x00)
10605 goto op_semantics_78
;
10611 switch (op
[2] & 0x00)
10614 goto op_semantics_78
;
10620 switch (op
[2] & 0x00)
10623 goto op_semantics_78
;
10629 switch (op
[2] & 0x00)
10634 /** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */
10635 #line 918 "rx-decode.opc"
10636 int sd AU
= op
[1] & 0x03;
10637 #line 918 "rx-decode.opc"
10638 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10639 #line 918 "rx-decode.opc"
10640 int rdst AU
= op
[2] & 0x0f;
10643 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10644 "/** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */",
10645 op
[0], op
[1], op
[2]);
10646 printf (" sd = 0x%x,", sd
);
10647 printf (" rsrc = 0x%x,", rsrc
);
10648 printf (" rdst = 0x%x\n", rdst
);
10650 SYNTAX("fadd %1%S1, %0");
10651 #line 918 "rx-decode.opc"
10652 ID(fadd
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10660 switch (op
[2] & 0x00)
10663 goto op_semantics_79
;
10669 switch (op
[2] & 0x00)
10672 goto op_semantics_79
;
10678 switch (op
[2] & 0x00)
10681 goto op_semantics_79
;
10687 switch (op
[2] & 0x00)
10692 /** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */
10693 #line 939 "rx-decode.opc"
10694 int sd AU
= op
[1] & 0x03;
10695 #line 939 "rx-decode.opc"
10696 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10697 #line 939 "rx-decode.opc"
10698 int rdst AU
= op
[2] & 0x0f;
10701 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10702 "/** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */",
10703 op
[0], op
[1], op
[2]);
10704 printf (" sd = 0x%x,", sd
);
10705 printf (" rsrc = 0x%x,", rsrc
);
10706 printf (" rdst = 0x%x\n", rdst
);
10708 SYNTAX("fmul %1%S1, %0");
10709 #line 939 "rx-decode.opc"
10710 ID(fmul
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10718 switch (op
[2] & 0x00)
10721 goto op_semantics_80
;
10727 switch (op
[2] & 0x00)
10730 goto op_semantics_80
;
10736 switch (op
[2] & 0x00)
10739 goto op_semantics_80
;
10745 switch (op
[2] & 0x00)
10750 /** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */
10751 #line 945 "rx-decode.opc"
10752 int sd AU
= op
[1] & 0x03;
10753 #line 945 "rx-decode.opc"
10754 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10755 #line 945 "rx-decode.opc"
10756 int rdst AU
= op
[2] & 0x0f;
10759 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10760 "/** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */",
10761 op
[0], op
[1], op
[2]);
10762 printf (" sd = 0x%x,", sd
);
10763 printf (" rsrc = 0x%x,", rsrc
);
10764 printf (" rdst = 0x%x\n", rdst
);
10766 SYNTAX("fdiv %1%S1, %0");
10767 #line 945 "rx-decode.opc"
10768 ID(fdiv
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10776 switch (op
[2] & 0x00)
10779 goto op_semantics_81
;
10785 switch (op
[2] & 0x00)
10788 goto op_semantics_81
;
10794 switch (op
[2] & 0x00)
10797 goto op_semantics_81
;
10803 switch (op
[2] & 0x00)
10808 /** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */
10809 #line 933 "rx-decode.opc"
10810 int sd AU
= op
[1] & 0x03;
10811 #line 933 "rx-decode.opc"
10812 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10813 #line 933 "rx-decode.opc"
10814 int rdst AU
= op
[2] & 0x0f;
10817 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10818 "/** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */",
10819 op
[0], op
[1], op
[2]);
10820 printf (" sd = 0x%x,", sd
);
10821 printf (" rsrc = 0x%x,", rsrc
);
10822 printf (" rdst = 0x%x\n", rdst
);
10824 SYNTAX("ftoi %1%S1, %0");
10825 #line 933 "rx-decode.opc"
10826 ID(ftoi
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10834 switch (op
[2] & 0x00)
10837 goto op_semantics_82
;
10843 switch (op
[2] & 0x00)
10846 goto op_semantics_82
;
10852 switch (op
[2] & 0x00)
10855 goto op_semantics_82
;
10861 switch (op
[2] & 0x00)
10866 /** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */
10867 #line 948 "rx-decode.opc"
10868 int sd AU
= op
[1] & 0x03;
10869 #line 948 "rx-decode.opc"
10870 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10871 #line 948 "rx-decode.opc"
10872 int rdst AU
= op
[2] & 0x0f;
10875 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10876 "/** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */",
10877 op
[0], op
[1], op
[2]);
10878 printf (" sd = 0x%x,", sd
);
10879 printf (" rsrc = 0x%x,", rsrc
);
10880 printf (" rdst = 0x%x\n", rdst
);
10882 SYNTAX("round %1%S1, %0");
10883 #line 948 "rx-decode.opc"
10884 ID(round
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10892 switch (op
[2] & 0x00)
10895 goto op_semantics_83
;
10901 switch (op
[2] & 0x00)
10904 goto op_semantics_83
;
10910 switch (op
[2] & 0x00)
10913 goto op_semantics_83
;
10919 switch (op
[2] & 0x00)
10924 /** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */
10925 #line 1131 "rx-decode.opc"
10926 int sd AU
= op
[1] & 0x03;
10927 #line 1131 "rx-decode.opc"
10928 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10929 #line 1131 "rx-decode.opc"
10930 int rdst AU
= op
[2] & 0x0f;
10933 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10934 "/** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */",
10935 op
[0], op
[1], op
[2]);
10936 printf (" sd = 0x%x,", sd
);
10937 printf (" rsrc = 0x%x,", rsrc
);
10938 printf (" rdst = 0x%x\n", rdst
);
10940 SYNTAX("fsqrt %1%S1, %0");
10941 #line 1131 "rx-decode.opc"
10942 ID(fsqrt
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
10950 switch (op
[2] & 0x00)
10953 goto op_semantics_84
;
10959 switch (op
[2] & 0x00)
10962 goto op_semantics_84
;
10968 switch (op
[2] & 0x00)
10971 goto op_semantics_84
;
10977 switch (op
[2] & 0x00)
10982 /** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */
10983 #line 1134 "rx-decode.opc"
10984 int sd AU
= op
[1] & 0x03;
10985 #line 1134 "rx-decode.opc"
10986 int rsrc AU
= (op
[2] >> 4) & 0x0f;
10987 #line 1134 "rx-decode.opc"
10988 int rdst AU
= op
[2] & 0x0f;
10991 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
10992 "/** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */",
10993 op
[0], op
[1], op
[2]);
10994 printf (" sd = 0x%x,", sd
);
10995 printf (" rsrc = 0x%x,", rsrc
);
10996 printf (" rdst = 0x%x\n", rdst
);
10998 SYNTAX("ftou %1%S1, %0");
10999 #line 1134 "rx-decode.opc"
11000 ID(ftou
); DR(rdst
); SD(sd
, rsrc
, LSIZE
); F__SZ_
;
11008 switch (op
[2] & 0x00)
11011 goto op_semantics_85
;
11017 switch (op
[2] & 0x00)
11020 goto op_semantics_85
;
11026 switch (op
[2] & 0x00)
11029 goto op_semantics_85
;
11035 switch (op
[2] & 0x0f)
11040 /** 1111 1100 1100 10sz rsrc 1000 dmov.d %1, %0 */
11041 #line 1198 "rx-decode.opc"
11042 int sz AU
= op
[1] & 0x03;
11043 #line 1198 "rx-decode.opc"
11044 int rsrc AU
= (op
[2] >> 4) & 0x0f;
11047 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
11048 "/** 1111 1100 1100 10sz rsrc 1000 dmov.d %1, %0 */",
11049 op
[0], op
[1], op
[2]);
11050 printf (" sz = 0x%x,", sz
);
11051 printf (" rsrc = 0x%x\n", rsrc
);
11053 SYNTAX("dmov.d %1, %0");
11054 #line 1198 "rx-decode.opc"
11056 rx_disp(1, sz
, rsrc
, RX_Double
, ld
);
11061 ID(dmov
); DDR(rdst
>> 4); F_____
;
11066 default: UNSUPPORTED(); break;
11071 switch (op
[2] & 0x0f)
11074 goto op_semantics_86
;
11076 default: UNSUPPORTED(); break;
11081 switch (op
[2] & 0x0f)
11084 goto op_semantics_86
;
11086 default: UNSUPPORTED(); break;
11091 switch (op
[2] & 0x00)
11096 /** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */
11097 #line 1065 "rx-decode.opc"
11098 int sz AU
= (op
[1] >> 2) & 0x03;
11099 #line 1065 "rx-decode.opc"
11100 int sd AU
= op
[1] & 0x03;
11101 #line 1065 "rx-decode.opc"
11102 int rdst AU
= (op
[2] >> 4) & 0x0f;
11103 #line 1065 "rx-decode.opc"
11104 int cond AU
= op
[2] & 0x0f;
11107 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
11108 "/** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */",
11109 op
[0], op
[1], op
[2]);
11110 printf (" sz = 0x%x,", sz
);
11111 printf (" sd = 0x%x,", sd
);
11112 printf (" rdst = 0x%x,", rdst
);
11113 printf (" cond = 0x%x\n", cond
);
11115 SYNTAX("sc%1%s %0");
11116 #line 1065 "rx-decode.opc"
11117 ID(sccnd
); BWL(sz
); DD (sd
, rdst
, sz
); Scc(cond
);
11119 /*----------------------------------------------------------------------*/
11120 /* RXv2 enhanced */
11128 switch (op
[2] & 0x00)
11131 goto op_semantics_87
;
11137 switch (op
[2] & 0x00)
11140 goto op_semantics_87
;
11146 switch (op
[2] & 0x00)
11149 goto op_semantics_87
;
11155 switch (op
[2] & 0x00)
11158 goto op_semantics_87
;
11164 switch (op
[2] & 0x00)
11167 goto op_semantics_87
;
11173 switch (op
[2] & 0x00)
11176 goto op_semantics_87
;
11182 switch (op
[2] & 0x00)
11185 goto op_semantics_87
;
11191 switch (op
[2] & 0x00)
11194 goto op_semantics_87
;
11200 switch (op
[2] & 0x00)
11203 goto op_semantics_87
;
11209 switch (op
[2] & 0x00)
11212 goto op_semantics_87
;
11218 switch (op
[2] & 0x00)
11221 goto op_semantics_87
;
11227 switch (op
[2] & 0x0f)
11246 /** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */
11247 #line 1008 "rx-decode.opc"
11248 int bit AU
= (op
[1] >> 2) & 0x07;
11249 #line 1008 "rx-decode.opc"
11250 int sd AU
= op
[1] & 0x03;
11251 #line 1008 "rx-decode.opc"
11252 int rdst AU
= (op
[2] >> 4) & 0x0f;
11253 #line 1008 "rx-decode.opc"
11254 int cond AU
= op
[2] & 0x0f;
11257 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
11258 "/** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */",
11259 op
[0], op
[1], op
[2]);
11260 printf (" bit = 0x%x,", bit
);
11261 printf (" sd = 0x%x,", sd
);
11262 printf (" rdst = 0x%x,", rdst
);
11263 printf (" cond = 0x%x\n", cond
);
11265 SYNTAX("bm%2 #%1, %0%S0");
11266 #line 1008 "rx-decode.opc"
11267 ID(bmcc
); BWL(BSIZE
); S2cc(cond
); SC(bit
); DD(sd
, rdst
, BSIZE
);
11274 /** 1111 1100 111bit sd rdst 1111 bnot #%1, %0%S0 */
11275 #line 996 "rx-decode.opc"
11276 int bit AU
= (op
[1] >> 2) & 0x07;
11277 #line 996 "rx-decode.opc"
11278 int sd AU
= op
[1] & 0x03;
11279 #line 996 "rx-decode.opc"
11280 int rdst AU
= (op
[2] >> 4) & 0x0f;
11283 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
11284 "/** 1111 1100 111bit sd rdst 1111 bnot #%1, %0%S0 */",
11285 op
[0], op
[1], op
[2]);
11286 printf (" bit = 0x%x,", bit
);
11287 printf (" sd = 0x%x,", sd
);
11288 printf (" rdst = 0x%x\n", rdst
);
11290 SYNTAX("bnot #%1, %0%S0");
11291 #line 996 "rx-decode.opc"
11292 ID(bnot
); BWL(BSIZE
); SC(bit
); DD(sd
, rdst
, BSIZE
);
11300 switch (op
[2] & 0x0f)
11317 goto op_semantics_88
;
11320 goto op_semantics_89
;
11326 switch (op
[2] & 0x0f)
11343 goto op_semantics_88
;
11346 goto op_semantics_89
;
11352 switch (op
[2] & 0x0f)
11369 goto op_semantics_88
;
11372 goto op_semantics_89
;
11378 switch (op
[2] & 0x0f)
11395 goto op_semantics_88
;
11398 goto op_semantics_89
;
11404 switch (op
[2] & 0x0f)
11421 goto op_semantics_88
;
11424 goto op_semantics_89
;
11430 switch (op
[2] & 0x0f)
11447 goto op_semantics_88
;
11450 goto op_semantics_89
;
11456 switch (op
[2] & 0x0f)
11473 goto op_semantics_88
;
11476 goto op_semantics_89
;
11482 switch (op
[2] & 0x0f)
11499 goto op_semantics_88
;
11502 goto op_semantics_89
;
11508 switch (op
[2] & 0x0f)
11525 goto op_semantics_88
;
11528 goto op_semantics_89
;
11534 switch (op
[2] & 0x0f)
11551 goto op_semantics_88
;
11554 goto op_semantics_89
;
11560 switch (op
[2] & 0x0f)
11577 goto op_semantics_88
;
11580 goto op_semantics_89
;
11586 switch (op
[2] & 0x0f)
11603 goto op_semantics_88
;
11606 goto op_semantics_89
;
11612 switch (op
[2] & 0x0f)
11629 goto op_semantics_88
;
11632 goto op_semantics_89
;
11638 switch (op
[2] & 0x0f)
11655 goto op_semantics_88
;
11658 goto op_semantics_89
;
11664 switch (op
[2] & 0x0f)
11681 goto op_semantics_88
;
11684 goto op_semantics_89
;
11690 switch (op
[2] & 0x0f)
11707 goto op_semantics_88
;
11710 goto op_semantics_89
;
11716 switch (op
[2] & 0x0f)
11733 goto op_semantics_88
;
11736 goto op_semantics_89
;
11742 switch (op
[2] & 0x0f)
11759 goto op_semantics_88
;
11762 goto op_semantics_89
;
11768 switch (op
[2] & 0x0f)
11785 goto op_semantics_88
;
11788 goto op_semantics_89
;
11794 switch (op
[2] & 0x0f)
11811 goto op_semantics_88
;
11814 goto op_semantics_89
;
11820 switch (op
[2] & 0x0f)
11837 goto op_semantics_88
;
11840 goto op_semantics_89
;
11846 switch (op
[2] & 0x0f)
11863 goto op_semantics_88
;
11866 goto op_semantics_89
;
11872 switch (op
[2] & 0x0f)
11889 goto op_semantics_88
;
11892 goto op_semantics_89
;
11898 switch (op
[2] & 0x0f)
11915 goto op_semantics_88
;
11918 goto op_semantics_89
;
11924 switch (op
[2] & 0x0f)
11941 goto op_semantics_88
;
11944 goto op_semantics_89
;
11950 switch (op
[2] & 0x0f)
11967 goto op_semantics_88
;
11970 goto op_semantics_89
;
11976 switch (op
[2] & 0x0f)
11993 goto op_semantics_88
;
11996 goto op_semantics_89
;
12002 switch (op
[2] & 0x0f)
12019 goto op_semantics_88
;
12022 goto op_semantics_89
;
12028 switch (op
[2] & 0x0f)
12045 goto op_semantics_88
;
12048 goto op_semantics_89
;
12054 switch (op
[2] & 0x0f)
12071 goto op_semantics_88
;
12074 goto op_semantics_89
;
12080 switch (op
[2] & 0x0f)
12097 goto op_semantics_88
;
12100 goto op_semantics_89
;
12104 default: UNSUPPORTED(); break;
12109 switch (op
[1] & 0xff)
12113 switch (op
[2] & 0x00)
12118 /** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */
12119 #line 873 "rx-decode.opc"
12120 int a AU
= (op
[1] >> 3) & 0x01;
12121 #line 873 "rx-decode.opc"
12122 int srca AU
= (op
[2] >> 4) & 0x0f;
12123 #line 873 "rx-decode.opc"
12124 int srcb AU
= op
[2] & 0x0f;
12127 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12128 "/** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */",
12129 op
[0], op
[1], op
[2]);
12130 printf (" a = 0x%x,", a
);
12131 printf (" srca = 0x%x,", srca
);
12132 printf (" srcb = 0x%x\n", srcb
);
12134 SYNTAX("mulhi %1, %2, %0");
12135 #line 873 "rx-decode.opc"
12136 ID(mulhi
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12144 switch (op
[2] & 0x00)
12149 /** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */
12150 #line 876 "rx-decode.opc"
12151 int a AU
= (op
[1] >> 3) & 0x01;
12152 #line 876 "rx-decode.opc"
12153 int srca AU
= (op
[2] >> 4) & 0x0f;
12154 #line 876 "rx-decode.opc"
12155 int srcb AU
= op
[2] & 0x0f;
12158 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12159 "/** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */",
12160 op
[0], op
[1], op
[2]);
12161 printf (" a = 0x%x,", a
);
12162 printf (" srca = 0x%x,", srca
);
12163 printf (" srcb = 0x%x\n", srcb
);
12165 SYNTAX("mullo %1, %2, %0");
12166 #line 876 "rx-decode.opc"
12167 ID(mullo
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12175 switch (op
[2] & 0x00)
12180 /** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */
12181 #line 1104 "rx-decode.opc"
12182 int a AU
= (op
[1] >> 3) & 0x01;
12183 #line 1104 "rx-decode.opc"
12184 int srca AU
= (op
[2] >> 4) & 0x0f;
12185 #line 1104 "rx-decode.opc"
12186 int srcb AU
= op
[2] & 0x0f;
12189 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12190 "/** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */",
12191 op
[0], op
[1], op
[2]);
12192 printf (" a = 0x%x,", a
);
12193 printf (" srca = 0x%x,", srca
);
12194 printf (" srcb = 0x%x\n", srcb
);
12196 SYNTAX("mullh %1, %2, %0");
12197 #line 1104 "rx-decode.opc"
12198 ID(mullh
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12206 switch (op
[2] & 0x00)
12211 /** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */
12212 #line 1089 "rx-decode.opc"
12213 int a AU
= (op
[1] >> 3) & 0x01;
12214 #line 1089 "rx-decode.opc"
12215 int srca AU
= (op
[2] >> 4) & 0x0f;
12216 #line 1089 "rx-decode.opc"
12217 int srcb AU
= op
[2] & 0x0f;
12220 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12221 "/** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */",
12222 op
[0], op
[1], op
[2]);
12223 printf (" a = 0x%x,", a
);
12224 printf (" srca = 0x%x,", srca
);
12225 printf (" srcb = 0x%x\n", srcb
);
12227 SYNTAX("emula %1, %2, %0");
12228 #line 1089 "rx-decode.opc"
12229 ID(emula
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12237 switch (op
[2] & 0x00)
12242 /** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */
12243 #line 879 "rx-decode.opc"
12244 int a AU
= (op
[1] >> 3) & 0x01;
12245 #line 879 "rx-decode.opc"
12246 int srca AU
= (op
[2] >> 4) & 0x0f;
12247 #line 879 "rx-decode.opc"
12248 int srcb AU
= op
[2] & 0x0f;
12251 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12252 "/** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */",
12253 op
[0], op
[1], op
[2]);
12254 printf (" a = 0x%x,", a
);
12255 printf (" srca = 0x%x,", srca
);
12256 printf (" srcb = 0x%x\n", srcb
);
12258 SYNTAX("machi %1, %2, %0");
12259 #line 879 "rx-decode.opc"
12260 ID(machi
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12268 switch (op
[2] & 0x00)
12273 /** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */
12274 #line 882 "rx-decode.opc"
12275 int a AU
= (op
[1] >> 3) & 0x01;
12276 #line 882 "rx-decode.opc"
12277 int srca AU
= (op
[2] >> 4) & 0x0f;
12278 #line 882 "rx-decode.opc"
12279 int srcb AU
= op
[2] & 0x0f;
12282 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12283 "/** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */",
12284 op
[0], op
[1], op
[2]);
12285 printf (" a = 0x%x,", a
);
12286 printf (" srca = 0x%x,", srca
);
12287 printf (" srcb = 0x%x\n", srcb
);
12289 SYNTAX("maclo %1, %2, %0");
12290 #line 882 "rx-decode.opc"
12291 ID(maclo
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12299 switch (op
[2] & 0x00)
12304 /** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */
12305 #line 1092 "rx-decode.opc"
12306 int a AU
= (op
[1] >> 3) & 0x01;
12307 #line 1092 "rx-decode.opc"
12308 int srca AU
= (op
[2] >> 4) & 0x0f;
12309 #line 1092 "rx-decode.opc"
12310 int srcb AU
= op
[2] & 0x0f;
12313 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12314 "/** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */",
12315 op
[0], op
[1], op
[2]);
12316 printf (" a = 0x%x,", a
);
12317 printf (" srca = 0x%x,", srca
);
12318 printf (" srcb = 0x%x\n", srcb
);
12320 SYNTAX("maclh %1, %2, %0");
12321 #line 1092 "rx-decode.opc"
12322 ID(maclh
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12330 switch (op
[2] & 0x00)
12335 /** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */
12336 #line 1083 "rx-decode.opc"
12337 int a AU
= (op
[1] >> 3) & 0x01;
12338 #line 1083 "rx-decode.opc"
12339 int srca AU
= (op
[2] >> 4) & 0x0f;
12340 #line 1083 "rx-decode.opc"
12341 int srcb AU
= op
[2] & 0x0f;
12344 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12345 "/** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */",
12346 op
[0], op
[1], op
[2]);
12347 printf (" a = 0x%x,", a
);
12348 printf (" srca = 0x%x,", srca
);
12349 printf (" srcb = 0x%x\n", srcb
);
12351 SYNTAX("emaca %1, %2, %0");
12352 #line 1083 "rx-decode.opc"
12353 ID(emaca
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
12361 switch (op
[2] & 0x00)
12364 goto op_semantics_90
;
12370 switch (op
[2] & 0x00)
12373 goto op_semantics_91
;
12379 switch (op
[2] & 0x00)
12382 goto op_semantics_92
;
12388 switch (op
[2] & 0x00)
12391 goto op_semantics_93
;
12397 switch (op
[2] & 0x00)
12400 goto op_semantics_94
;
12406 switch (op
[2] & 0x00)
12409 goto op_semantics_95
;
12415 switch (op
[2] & 0x00)
12418 goto op_semantics_96
;
12424 switch (op
[2] & 0x00)
12427 goto op_semantics_97
;
12433 switch (op
[2] & 0x70)
12437 /** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */
12438 #line 885 "rx-decode.opc"
12439 int a AU
= (op
[2] >> 7) & 0x01;
12440 #line 885 "rx-decode.opc"
12441 int rsrc AU
= op
[2] & 0x0f;
12444 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12445 "/** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */",
12446 op
[0], op
[1], op
[2]);
12447 printf (" a = 0x%x,", a
);
12448 printf (" rsrc = 0x%x\n", rsrc
);
12450 SYNTAX("mvtachi %1, %0");
12451 #line 885 "rx-decode.opc"
12452 ID(mvtachi
); DR(a
+32); SR(rsrc
); F_____
;
12458 /** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */
12459 #line 888 "rx-decode.opc"
12460 int a AU
= (op
[2] >> 7) & 0x01;
12461 #line 888 "rx-decode.opc"
12462 int rsrc AU
= op
[2] & 0x0f;
12465 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12466 "/** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */",
12467 op
[0], op
[1], op
[2]);
12468 printf (" a = 0x%x,", a
);
12469 printf (" rsrc = 0x%x\n", rsrc
);
12471 SYNTAX("mvtaclo %1, %0");
12472 #line 888 "rx-decode.opc"
12473 ID(mvtaclo
); DR(a
+32); SR(rsrc
); F_____
;
12479 /** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */
12480 #line 1110 "rx-decode.opc"
12481 int a AU
= (op
[2] >> 7) & 0x01;
12482 #line 1110 "rx-decode.opc"
12483 int rdst AU
= op
[2] & 0x0f;
12486 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12487 "/** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */",
12488 op
[0], op
[1], op
[2]);
12489 printf (" a = 0x%x,", a
);
12490 printf (" rdst = 0x%x\n", rdst
);
12492 SYNTAX("mvtacgu %0, %1");
12493 #line 1110 "rx-decode.opc"
12494 ID(mvtacgu
); DR(a
+32); SR(rdst
); F_____
;
12498 default: UNSUPPORTED(); break;
12503 switch (op
[2] & 0x6f)
12507 /** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */
12508 #line 900 "rx-decode.opc"
12509 int a AU
= (op
[2] >> 7) & 0x01;
12510 #line 900 "rx-decode.opc"
12511 int i AU
= (op
[2] >> 4) & 0x01;
12514 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12515 "/** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */",
12516 op
[0], op
[1], op
[2]);
12517 printf (" a = 0x%x,", a
);
12518 printf (" i = 0x%x\n", i
);
12520 SYNTAX("racw #%1, %0");
12521 #line 900 "rx-decode.opc"
12522 ID(racw
); SC(i
+1); DR(a
+32); F_____
;
12524 /*----------------------------------------------------------------------*/
12531 /** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */
12532 #line 1119 "rx-decode.opc"
12533 int a AU
= (op
[2] >> 7) & 0x01;
12534 #line 1119 "rx-decode.opc"
12535 int i AU
= (op
[2] >> 4) & 0x01;
12538 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12539 "/** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */",
12540 op
[0], op
[1], op
[2]);
12541 printf (" a = 0x%x,", a
);
12542 printf (" i = 0x%x\n", i
);
12544 SYNTAX("rdacw #%1, %0");
12545 #line 1119 "rx-decode.opc"
12546 ID(rdacw
); SC(i
+1); DR(a
+32); F_____
;
12550 default: UNSUPPORTED(); break;
12555 switch (op
[2] & 0x6f)
12559 /** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */
12560 #line 1113 "rx-decode.opc"
12561 int a AU
= (op
[2] >> 7) & 0x01;
12562 #line 1113 "rx-decode.opc"
12563 int i AU
= (op
[2] >> 4) & 0x01;
12566 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12567 "/** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */",
12568 op
[0], op
[1], op
[2]);
12569 printf (" a = 0x%x,", a
);
12570 printf (" i = 0x%x\n", i
);
12572 SYNTAX("racl #%1, %0");
12573 #line 1113 "rx-decode.opc"
12574 ID(racl
); SC(i
+1); DR(a
+32); F_____
;
12580 /** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */
12581 #line 1116 "rx-decode.opc"
12582 int a AU
= (op
[2] >> 7) & 0x01;
12583 #line 1116 "rx-decode.opc"
12584 int i AU
= (op
[2] >> 4) & 0x01;
12587 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12588 "/** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */",
12589 op
[0], op
[1], op
[2]);
12590 printf (" a = 0x%x,", a
);
12591 printf (" i = 0x%x\n", i
);
12593 SYNTAX("rdacl #%1, %0");
12594 #line 1116 "rx-decode.opc"
12595 ID(rdacl
); SC(i
+1); DR(a
+32); F_____
;
12599 default: UNSUPPORTED(); break;
12604 switch (op
[2] & 0x30)
12609 /** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */
12610 #line 891 "rx-decode.opc"
12611 int i AU
= op
[1] & 0x01;
12612 #line 891 "rx-decode.opc"
12613 int a AU
= (op
[2] >> 7) & 0x01;
12614 #line 891 "rx-decode.opc"
12615 int m AU
= (op
[2] >> 6) & 0x01;
12616 #line 891 "rx-decode.opc"
12617 int rdst AU
= op
[2] & 0x0f;
12620 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12621 "/** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */",
12622 op
[0], op
[1], op
[2]);
12623 printf (" i = 0x%x,", i
);
12624 printf (" a = 0x%x,", a
);
12625 printf (" m = 0x%x,", m
);
12626 printf (" rdst = 0x%x\n", rdst
);
12628 SYNTAX("mvfachi #%2, %1, %0");
12629 #line 891 "rx-decode.opc"
12630 ID(mvfachi
); S2C(((i
^1)<<1)|m
); SR(a
+32); DR(rdst
); F_____
;
12637 /** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */
12638 #line 897 "rx-decode.opc"
12639 int i AU
= op
[1] & 0x01;
12640 #line 897 "rx-decode.opc"
12641 int a AU
= (op
[2] >> 7) & 0x01;
12642 #line 897 "rx-decode.opc"
12643 int m AU
= (op
[2] >> 6) & 0x01;
12644 #line 897 "rx-decode.opc"
12645 int rdst AU
= op
[2] & 0x0f;
12648 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12649 "/** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */",
12650 op
[0], op
[1], op
[2]);
12651 printf (" i = 0x%x,", i
);
12652 printf (" a = 0x%x,", a
);
12653 printf (" m = 0x%x,", m
);
12654 printf (" rdst = 0x%x\n", rdst
);
12656 SYNTAX("mvfaclo #%2, %1, %0");
12657 #line 897 "rx-decode.opc"
12658 ID(mvfaclo
); S2C(((i
^1)<<1)|m
); SR(a
+32); DR(rdst
); F_____
;
12665 /** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */
12666 #line 894 "rx-decode.opc"
12667 int i AU
= op
[1] & 0x01;
12668 #line 894 "rx-decode.opc"
12669 int a AU
= (op
[2] >> 7) & 0x01;
12670 #line 894 "rx-decode.opc"
12671 int m AU
= (op
[2] >> 6) & 0x01;
12672 #line 894 "rx-decode.opc"
12673 int rdst AU
= op
[2] & 0x0f;
12676 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12677 "/** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */",
12678 op
[0], op
[1], op
[2]);
12679 printf (" i = 0x%x,", i
);
12680 printf (" a = 0x%x,", a
);
12681 printf (" m = 0x%x,", m
);
12682 printf (" rdst = 0x%x\n", rdst
);
12684 SYNTAX("mvfacmi #%2, %1, %0");
12685 #line 894 "rx-decode.opc"
12686 ID(mvfacmi
); S2C(((i
^1)<<1)|m
); SR(a
+32); DR(rdst
); F_____
;
12693 /** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */
12694 #line 1107 "rx-decode.opc"
12695 int i AU
= op
[1] & 0x01;
12696 #line 1107 "rx-decode.opc"
12697 int a AU
= (op
[2] >> 7) & 0x01;
12698 #line 1107 "rx-decode.opc"
12699 int m AU
= (op
[2] >> 6) & 0x01;
12700 #line 1107 "rx-decode.opc"
12701 int rdst AU
= op
[2] & 0x0f;
12704 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12705 "/** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */",
12706 op
[0], op
[1], op
[2]);
12707 printf (" i = 0x%x,", i
);
12708 printf (" a = 0x%x,", a
);
12709 printf (" m = 0x%x,", m
);
12710 printf (" rdst = 0x%x\n", rdst
);
12712 SYNTAX("mvfacgu #%2, %1, %0");
12713 #line 1107 "rx-decode.opc"
12714 ID(mvfacgu
); S2C(((i
^1)<<1)|m
); SR(a
+32); DR(rdst
); F_____
;
12722 switch (op
[2] & 0x30)
12725 goto op_semantics_98
;
12728 goto op_semantics_99
;
12731 goto op_semantics_100
;
12734 goto op_semantics_101
;
12740 switch (op
[2] & 0x00)
12745 /** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */
12746 #line 369 "rx-decode.opc"
12747 int p AU
= (op
[1] >> 2) & 0x01;
12748 #line 369 "rx-decode.opc"
12749 int sz AU
= op
[1] & 0x03;
12750 #line 369 "rx-decode.opc"
12751 int rdst AU
= (op
[2] >> 4) & 0x0f;
12752 #line 369 "rx-decode.opc"
12753 int rsrc AU
= op
[2] & 0x0f;
12756 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12757 "/** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */",
12758 op
[0], op
[1], op
[2]);
12759 printf (" p = 0x%x,", p
);
12760 printf (" sz = 0x%x,", sz
);
12761 printf (" rdst = 0x%x,", rdst
);
12762 printf (" rsrc = 0x%x\n", rsrc
);
12764 SYNTAX("mov%s %1, %0");
12765 #line 369 "rx-decode.opc"
12766 ID(mov
); sBWL (sz
); SR(rsrc
); F_____
;
12767 OP(0, p
? RX_Operand_Predec
: RX_Operand_Postinc
, rdst
, 0);
12775 switch (op
[2] & 0x00)
12778 goto op_semantics_102
;
12784 switch (op
[2] & 0x00)
12787 goto op_semantics_102
;
12793 switch (op
[2] & 0x00)
12796 goto op_semantics_102
;
12802 switch (op
[2] & 0x00)
12805 goto op_semantics_102
;
12811 switch (op
[2] & 0x00)
12814 goto op_semantics_102
;
12820 switch (op
[2] & 0x00)
12824 /** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */
12825 #line 1071 "rx-decode.opc"
12826 int rdst AU
= (op
[2] >> 4) & 0x0f;
12827 #line 1071 "rx-decode.opc"
12828 int rsrc AU
= op
[2] & 0x0f;
12831 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12832 "/** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */",
12833 op
[0], op
[1], op
[2]);
12834 printf (" rdst = 0x%x,", rdst
);
12835 printf (" rsrc = 0x%x\n", rsrc
);
12837 SYNTAX("movco %1, [%0]");
12838 #line 1071 "rx-decode.opc"
12839 ID(movco
); SR(rsrc
); DR(rdst
); F_____
;
12847 switch (op
[2] & 0x00)
12852 /** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */
12853 #line 373 "rx-decode.opc"
12854 int p AU
= (op
[1] >> 2) & 0x01;
12855 #line 373 "rx-decode.opc"
12856 int sz AU
= op
[1] & 0x03;
12857 #line 373 "rx-decode.opc"
12858 int rsrc AU
= (op
[2] >> 4) & 0x0f;
12859 #line 373 "rx-decode.opc"
12860 int rdst AU
= op
[2] & 0x0f;
12863 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12864 "/** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */",
12865 op
[0], op
[1], op
[2]);
12866 printf (" p = 0x%x,", p
);
12867 printf (" sz = 0x%x,", sz
);
12868 printf (" rsrc = 0x%x,", rsrc
);
12869 printf (" rdst = 0x%x\n", rdst
);
12871 SYNTAX("mov%s %1, %0");
12872 #line 373 "rx-decode.opc"
12873 ID(mov
); sBWL (sz
); DR(rdst
); F_____
;
12874 OP(1, p
? RX_Operand_Predec
: RX_Operand_Postinc
, rsrc
, 0);
12882 switch (op
[2] & 0x00)
12885 goto op_semantics_103
;
12891 switch (op
[2] & 0x00)
12894 goto op_semantics_103
;
12900 switch (op
[2] & 0x00)
12903 goto op_semantics_103
;
12909 switch (op
[2] & 0x00)
12912 goto op_semantics_103
;
12918 switch (op
[2] & 0x00)
12921 goto op_semantics_103
;
12927 switch (op
[2] & 0x00)
12931 /** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */
12932 #line 1074 "rx-decode.opc"
12933 int rsrc AU
= (op
[2] >> 4) & 0x0f;
12934 #line 1074 "rx-decode.opc"
12935 int rdst AU
= op
[2] & 0x0f;
12938 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12939 "/** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */",
12940 op
[0], op
[1], op
[2]);
12941 printf (" rsrc = 0x%x,", rsrc
);
12942 printf (" rdst = 0x%x\n", rdst
);
12944 SYNTAX("movli [%1], %0");
12945 #line 1074 "rx-decode.opc"
12946 ID(movli
); SR(rsrc
); DR(rdst
); F_____
;
12954 switch (op
[2] & 0x00)
12959 /** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */
12960 #line 383 "rx-decode.opc"
12961 int p AU
= (op
[1] >> 2) & 0x01;
12962 #line 383 "rx-decode.opc"
12963 int sz AU
= op
[1] & 0x03;
12964 #line 383 "rx-decode.opc"
12965 int rsrc AU
= (op
[2] >> 4) & 0x0f;
12966 #line 383 "rx-decode.opc"
12967 int rdst AU
= op
[2] & 0x0f;
12970 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
12971 "/** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */",
12972 op
[0], op
[1], op
[2]);
12973 printf (" p = 0x%x,", p
);
12974 printf (" sz = 0x%x,", sz
);
12975 printf (" rsrc = 0x%x,", rsrc
);
12976 printf (" rdst = 0x%x\n", rdst
);
12978 SYNTAX("movu%s %1, %0");
12979 #line 383 "rx-decode.opc"
12980 ID(mov
); uBW (sz
); DR(rdst
); F_____
;
12981 OP(1, p
? RX_Operand_Predec
: RX_Operand_Postinc
, rsrc
, 0);
12983 /*----------------------------------------------------------------------*/
12992 switch (op
[2] & 0x00)
12995 goto op_semantics_104
;
13001 switch (op
[2] & 0x00)
13004 goto op_semantics_104
;
13010 switch (op
[2] & 0x00)
13013 goto op_semantics_104
;
13019 switch (op
[2] & 0x00)
13022 goto op_semantics_104
;
13028 switch (op
[2] & 0x00)
13031 goto op_semantics_104
;
13037 switch (op
[2] & 0x00)
13042 /** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */
13043 #line 1095 "rx-decode.opc"
13044 int a AU
= (op
[1] >> 3) & 0x01;
13045 #line 1095 "rx-decode.opc"
13046 int srca AU
= (op
[2] >> 4) & 0x0f;
13047 #line 1095 "rx-decode.opc"
13048 int srcb AU
= op
[2] & 0x0f;
13051 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13052 "/** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */",
13053 op
[0], op
[1], op
[2]);
13054 printf (" a = 0x%x,", a
);
13055 printf (" srca = 0x%x,", srca
);
13056 printf (" srcb = 0x%x\n", srcb
);
13058 SYNTAX("msbhi %1, %2, %0");
13059 #line 1095 "rx-decode.opc"
13060 ID(msbhi
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
13068 switch (op
[2] & 0x00)
13073 /** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */
13074 #line 1101 "rx-decode.opc"
13075 int a AU
= (op
[1] >> 3) & 0x01;
13076 #line 1101 "rx-decode.opc"
13077 int srca AU
= (op
[2] >> 4) & 0x0f;
13078 #line 1101 "rx-decode.opc"
13079 int srcb AU
= op
[2] & 0x0f;
13082 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13083 "/** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */",
13084 op
[0], op
[1], op
[2]);
13085 printf (" a = 0x%x,", a
);
13086 printf (" srca = 0x%x,", srca
);
13087 printf (" srcb = 0x%x\n", srcb
);
13089 SYNTAX("msblo %1, %2, %0");
13090 #line 1101 "rx-decode.opc"
13091 ID(msblo
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
13099 switch (op
[2] & 0x00)
13104 /** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */
13105 #line 1098 "rx-decode.opc"
13106 int a AU
= (op
[1] >> 3) & 0x01;
13107 #line 1098 "rx-decode.opc"
13108 int srca AU
= (op
[2] >> 4) & 0x0f;
13109 #line 1098 "rx-decode.opc"
13110 int srcb AU
= op
[2] & 0x0f;
13113 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13114 "/** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */",
13115 op
[0], op
[1], op
[2]);
13116 printf (" a = 0x%x,", a
);
13117 printf (" srca = 0x%x,", srca
);
13118 printf (" srcb = 0x%x\n", srcb
);
13120 SYNTAX("msblh %1, %2, %0");
13121 #line 1098 "rx-decode.opc"
13122 ID(msblh
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
13130 switch (op
[2] & 0x00)
13135 /** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */
13136 #line 1086 "rx-decode.opc"
13137 int a AU
= (op
[1] >> 3) & 0x01;
13138 #line 1086 "rx-decode.opc"
13139 int srca AU
= (op
[2] >> 4) & 0x0f;
13140 #line 1086 "rx-decode.opc"
13141 int srcb AU
= op
[2] & 0x0f;
13144 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13145 "/** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */",
13146 op
[0], op
[1], op
[2]);
13147 printf (" a = 0x%x,", a
);
13148 printf (" srca = 0x%x,", srca
);
13149 printf (" srcb = 0x%x\n", srcb
);
13151 SYNTAX("emsba %1, %2, %0");
13152 #line 1086 "rx-decode.opc"
13153 ID(emsba
); DR(a
+32); SR(srca
); S2R(srcb
); F_____
;
13161 switch (op
[2] & 0x00)
13164 goto op_semantics_105
;
13170 switch (op
[2] & 0x00)
13173 goto op_semantics_106
;
13179 switch (op
[2] & 0x00)
13182 goto op_semantics_107
;
13188 switch (op
[2] & 0x00)
13191 goto op_semantics_108
;
13197 switch (op
[2] & 0x00)
13201 /** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */
13202 #line 754 "rx-decode.opc"
13203 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13204 #line 754 "rx-decode.opc"
13205 int rdst AU
= op
[2] & 0x0f;
13208 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13209 "/** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */",
13210 op
[0], op
[1], op
[2]);
13211 printf (" rsrc = 0x%x,", rsrc
);
13212 printf (" rdst = 0x%x\n", rdst
);
13214 SYNTAX("shlr %2, %0");
13215 #line 754 "rx-decode.opc"
13216 ID(shlr
); S2R(rsrc
); SR(rdst
); DR(rdst
); F__SZC
;
13224 switch (op
[2] & 0x00)
13228 /** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */
13229 #line 744 "rx-decode.opc"
13230 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13231 #line 744 "rx-decode.opc"
13232 int rdst AU
= op
[2] & 0x0f;
13235 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13236 "/** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */",
13237 op
[0], op
[1], op
[2]);
13238 printf (" rsrc = 0x%x,", rsrc
);
13239 printf (" rdst = 0x%x\n", rdst
);
13241 SYNTAX("shar %2, %0");
13242 #line 744 "rx-decode.opc"
13243 ID(shar
); S2R(rsrc
); SR(rdst
); DR(rdst
); F_0SZC
;
13251 switch (op
[2] & 0x00)
13255 /** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */
13256 #line 734 "rx-decode.opc"
13257 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13258 #line 734 "rx-decode.opc"
13259 int rdst AU
= op
[2] & 0x0f;
13262 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13263 "/** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */",
13264 op
[0], op
[1], op
[2]);
13265 printf (" rsrc = 0x%x,", rsrc
);
13266 printf (" rdst = 0x%x\n", rdst
);
13268 SYNTAX("shll %2, %0");
13269 #line 734 "rx-decode.opc"
13270 ID(shll
); S2R(rsrc
); SR(rdst
); DR(rdst
); F_OSZC
;
13278 switch (op
[2] & 0x00)
13282 /** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */
13283 #line 778 "rx-decode.opc"
13284 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13285 #line 778 "rx-decode.opc"
13286 int rdst AU
= op
[2] & 0x0f;
13289 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13290 "/** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */",
13291 op
[0], op
[1], op
[2]);
13292 printf (" rsrc = 0x%x,", rsrc
);
13293 printf (" rdst = 0x%x\n", rdst
);
13295 SYNTAX("rotr %1, %0");
13296 #line 778 "rx-decode.opc"
13297 ID(rotr
); SR(rsrc
); DR(rdst
); F__SZC
;
13305 switch (op
[2] & 0x00)
13309 /** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */
13310 #line 781 "rx-decode.opc"
13311 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13312 #line 781 "rx-decode.opc"
13313 int rdst AU
= op
[2] & 0x0f;
13316 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13317 "/** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */",
13318 op
[0], op
[1], op
[2]);
13319 printf (" rsrc = 0x%x,", rsrc
);
13320 printf (" rdst = 0x%x\n", rdst
);
13322 SYNTAX("revw %1, %0");
13323 #line 781 "rx-decode.opc"
13324 ID(revw
); SR(rsrc
); DR(rdst
);
13332 switch (op
[2] & 0x00)
13336 /** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */
13337 #line 772 "rx-decode.opc"
13338 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13339 #line 772 "rx-decode.opc"
13340 int rdst AU
= op
[2] & 0x0f;
13343 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13344 "/** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */",
13345 op
[0], op
[1], op
[2]);
13346 printf (" rsrc = 0x%x,", rsrc
);
13347 printf (" rdst = 0x%x\n", rdst
);
13349 SYNTAX("rotl %1, %0");
13350 #line 772 "rx-decode.opc"
13351 ID(rotl
); SR(rsrc
); DR(rdst
); F__SZC
;
13359 switch (op
[2] & 0x00)
13363 /** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */
13364 #line 784 "rx-decode.opc"
13365 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13366 #line 784 "rx-decode.opc"
13367 int rdst AU
= op
[2] & 0x0f;
13370 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13371 "/** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */",
13372 op
[0], op
[1], op
[2]);
13373 printf (" rsrc = 0x%x,", rsrc
);
13374 printf (" rdst = 0x%x\n", rdst
);
13376 SYNTAX("revl %1, %0");
13377 #line 784 "rx-decode.opc"
13378 ID(revl
); SR(rsrc
); DR(rdst
);
13380 /*----------------------------------------------------------------------*/
13389 switch (op
[2] & 0x00)
13394 /** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */
13395 #line 1035 "rx-decode.opc"
13396 int c AU
= op
[1] & 0x01;
13397 #line 1035 "rx-decode.opc"
13398 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13399 #line 1035 "rx-decode.opc"
13400 int rdst AU
= op
[2] & 0x0f;
13403 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13404 "/** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */",
13405 op
[0], op
[1], op
[2]);
13406 printf (" c = 0x%x,", c
);
13407 printf (" rsrc = 0x%x,", rsrc
);
13408 printf (" rdst = 0x%x\n", rdst
);
13410 SYNTAX("mvtc %1, %0");
13411 #line 1035 "rx-decode.opc"
13412 ID(mov
); SR(rsrc
); DR(c
*16+rdst
+ 16);
13420 switch (op
[2] & 0x00)
13423 goto op_semantics_109
;
13429 switch (op
[2] & 0x00)
13434 /** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */
13435 #line 1038 "rx-decode.opc"
13436 int s AU
= op
[1] & 0x01;
13437 #line 1038 "rx-decode.opc"
13438 int rsrc AU
= (op
[2] >> 4) & 0x0f;
13439 #line 1038 "rx-decode.opc"
13440 int rdst AU
= op
[2] & 0x0f;
13443 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13444 "/** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */",
13445 op
[0], op
[1], op
[2]);
13446 printf (" s = 0x%x,", s
);
13447 printf (" rsrc = 0x%x,", rsrc
);
13448 printf (" rdst = 0x%x\n", rdst
);
13450 SYNTAX("mvfc %1, %0");
13451 #line 1038 "rx-decode.opc"
13452 ID(mov
); SR((s
*16+rsrc
) + 16); DR(rdst
);
13454 /*----------------------------------------------------------------------*/
13463 switch (op
[2] & 0x00)
13466 goto op_semantics_110
;
13472 switch (op
[2] & 0x00)
13477 /** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */
13478 #line 775 "rx-decode.opc"
13479 int i AU
= op
[1] & 0x01;
13480 #line 775 "rx-decode.opc"
13481 int mmmm AU
= (op
[2] >> 4) & 0x0f;
13482 #line 775 "rx-decode.opc"
13483 int rdst AU
= op
[2] & 0x0f;
13486 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13487 "/** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */",
13488 op
[0], op
[1], op
[2]);
13489 printf (" i = 0x%x,", i
);
13490 printf (" mmmm = 0x%x,", mmmm
);
13491 printf (" rdst = 0x%x\n", rdst
);
13493 SYNTAX("rotr #%1, %0");
13494 #line 775 "rx-decode.opc"
13495 ID(rotr
); SC(i
*16+mmmm
); DR(rdst
); F__SZC
;
13503 switch (op
[2] & 0x00)
13506 goto op_semantics_111
;
13512 switch (op
[2] & 0x00)
13517 /** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */
13518 #line 769 "rx-decode.opc"
13519 int i AU
= op
[1] & 0x01;
13520 #line 769 "rx-decode.opc"
13521 int mmmm AU
= (op
[2] >> 4) & 0x0f;
13522 #line 769 "rx-decode.opc"
13523 int rdst AU
= op
[2] & 0x0f;
13526 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13527 "/** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */",
13528 op
[0], op
[1], op
[2]);
13529 printf (" i = 0x%x,", i
);
13530 printf (" mmmm = 0x%x,", mmmm
);
13531 printf (" rdst = 0x%x\n", rdst
);
13533 SYNTAX("rotl #%1, %0");
13534 #line 769 "rx-decode.opc"
13535 ID(rotl
); SC(i
*16+mmmm
); DR(rdst
); F__SZC
;
13543 switch (op
[2] & 0x00)
13546 goto op_semantics_112
;
13552 switch (op
[2] & 0xf0)
13557 /** 1111 1101 0111 im00 0010rdst adc #%1, %0 */
13558 #line 513 "rx-decode.opc"
13559 int im AU
= (op
[1] >> 2) & 0x03;
13560 #line 513 "rx-decode.opc"
13561 int rdst AU
= op
[2] & 0x0f;
13564 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13565 "/** 1111 1101 0111 im00 0010rdst adc #%1, %0 */",
13566 op
[0], op
[1], op
[2]);
13567 printf (" im = 0x%x,", im
);
13568 printf (" rdst = 0x%x\n", rdst
);
13570 SYNTAX("adc #%1, %0");
13571 #line 513 "rx-decode.opc"
13572 ID(adc
); SC(IMMex(im
)); DR(rdst
); F_OSZC
;
13579 /** 1111 1101 0111 im00 0100rdst max #%1, %0 */
13580 #line 595 "rx-decode.opc"
13581 int im AU
= (op
[1] >> 2) & 0x03;
13582 #line 595 "rx-decode.opc"
13583 int rdst AU
= op
[2] & 0x0f;
13586 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13587 "/** 1111 1101 0111 im00 0100rdst max #%1, %0 */",
13588 op
[0], op
[1], op
[2]);
13589 printf (" im = 0x%x,", im
);
13590 printf (" rdst = 0x%x\n", rdst
);
13592 SYNTAX("max #%1, %0");
13593 #line 595 "rx-decode.opc"
13594 int val
= IMMex (im
);
13595 if (im
== 0 && (unsigned) val
== 0x80000000 && rdst
== 0)
13598 SYNTAX("nop\t; max\t#0x80000000, r0");
13611 /** 1111 1101 0111 im00 0101rdst min #%1, %0 */
13612 #line 625 "rx-decode.opc"
13613 int im AU
= (op
[1] >> 2) & 0x03;
13614 #line 625 "rx-decode.opc"
13615 int rdst AU
= op
[2] & 0x0f;
13618 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13619 "/** 1111 1101 0111 im00 0101rdst min #%1, %0 */",
13620 op
[0], op
[1], op
[2]);
13621 printf (" im = 0x%x,", im
);
13622 printf (" rdst = 0x%x\n", rdst
);
13624 SYNTAX("min #%1, %0");
13625 #line 625 "rx-decode.opc"
13626 ID(min
); DR(rdst
); SC(IMMex(im
));
13633 /** 1111 1101 0111 im00 0110rdst emul #%1, %0 */
13634 #line 683 "rx-decode.opc"
13635 int im AU
= (op
[1] >> 2) & 0x03;
13636 #line 683 "rx-decode.opc"
13637 int rdst AU
= op
[2] & 0x0f;
13640 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13641 "/** 1111 1101 0111 im00 0110rdst emul #%1, %0 */",
13642 op
[0], op
[1], op
[2]);
13643 printf (" im = 0x%x,", im
);
13644 printf (" rdst = 0x%x\n", rdst
);
13646 SYNTAX("emul #%1, %0");
13647 #line 683 "rx-decode.opc"
13648 ID(emul
); DR(rdst
); SC(IMMex(im
));
13655 /** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */
13656 #line 695 "rx-decode.opc"
13657 int im AU
= (op
[1] >> 2) & 0x03;
13658 #line 695 "rx-decode.opc"
13659 int rdst AU
= op
[2] & 0x0f;
13662 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13663 "/** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */",
13664 op
[0], op
[1], op
[2]);
13665 printf (" im = 0x%x,", im
);
13666 printf (" rdst = 0x%x\n", rdst
);
13668 SYNTAX("emulu #%1, %0");
13669 #line 695 "rx-decode.opc"
13670 ID(emulu
); DR(rdst
); SC(IMMex(im
));
13677 /** 1111 1101 0111 im00 1000rdst div #%1, %0 */
13678 #line 707 "rx-decode.opc"
13679 int im AU
= (op
[1] >> 2) & 0x03;
13680 #line 707 "rx-decode.opc"
13681 int rdst AU
= op
[2] & 0x0f;
13684 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13685 "/** 1111 1101 0111 im00 1000rdst div #%1, %0 */",
13686 op
[0], op
[1], op
[2]);
13687 printf (" im = 0x%x,", im
);
13688 printf (" rdst = 0x%x\n", rdst
);
13690 SYNTAX("div #%1, %0");
13691 #line 707 "rx-decode.opc"
13692 ID(div
); DR(rdst
); SC(IMMex(im
)); F_O___
;
13699 /** 1111 1101 0111 im00 1001rdst divu #%1, %0 */
13700 #line 719 "rx-decode.opc"
13701 int im AU
= (op
[1] >> 2) & 0x03;
13702 #line 719 "rx-decode.opc"
13703 int rdst AU
= op
[2] & 0x0f;
13706 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13707 "/** 1111 1101 0111 im00 1001rdst divu #%1, %0 */",
13708 op
[0], op
[1], op
[2]);
13709 printf (" im = 0x%x,", im
);
13710 printf (" rdst = 0x%x\n", rdst
);
13712 SYNTAX("divu #%1, %0");
13713 #line 719 "rx-decode.opc"
13714 ID(divu
); DR(rdst
); SC(IMMex(im
)); F_O___
;
13721 /** 1111 1101 0111 im00 1100rdst tst #%1, %2 */
13722 #line 492 "rx-decode.opc"
13723 int im AU
= (op
[1] >> 2) & 0x03;
13724 #line 492 "rx-decode.opc"
13725 int rdst AU
= op
[2] & 0x0f;
13728 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13729 "/** 1111 1101 0111 im00 1100rdst tst #%1, %2 */",
13730 op
[0], op
[1], op
[2]);
13731 printf (" im = 0x%x,", im
);
13732 printf (" rdst = 0x%x\n", rdst
);
13734 SYNTAX("tst #%1, %2");
13735 #line 492 "rx-decode.opc"
13736 ID(and); SC(IMMex(im
)); S2R(rdst
); F__SZ_
;
13743 /** 1111 1101 0111 im00 1101rdst xor #%1, %0 */
13744 #line 471 "rx-decode.opc"
13745 int im AU
= (op
[1] >> 2) & 0x03;
13746 #line 471 "rx-decode.opc"
13747 int rdst AU
= op
[2] & 0x0f;
13750 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13751 "/** 1111 1101 0111 im00 1101rdst xor #%1, %0 */",
13752 op
[0], op
[1], op
[2]);
13753 printf (" im = 0x%x,", im
);
13754 printf (" rdst = 0x%x\n", rdst
);
13756 SYNTAX("xor #%1, %0");
13757 #line 471 "rx-decode.opc"
13758 ID(xor); SC(IMMex(im
)); DR(rdst
); F__SZ_
;
13765 /** 1111 1101 0111 im00 1110rdst stz #%1, %0 */
13766 #line 417 "rx-decode.opc"
13767 int im AU
= (op
[1] >> 2) & 0x03;
13768 #line 417 "rx-decode.opc"
13769 int rdst AU
= op
[2] & 0x0f;
13772 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13773 "/** 1111 1101 0111 im00 1110rdst stz #%1, %0 */",
13774 op
[0], op
[1], op
[2]);
13775 printf (" im = 0x%x,", im
);
13776 printf (" rdst = 0x%x\n", rdst
);
13778 SYNTAX("stz #%1, %0");
13779 #line 417 "rx-decode.opc"
13780 ID(stcc
); SC(IMMex(im
)); DR(rdst
); S2cc(RXC_z
);
13787 /** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */
13788 #line 420 "rx-decode.opc"
13789 int im AU
= (op
[1] >> 2) & 0x03;
13790 #line 420 "rx-decode.opc"
13791 int rdst AU
= op
[2] & 0x0f;
13794 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13795 "/** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */",
13796 op
[0], op
[1], op
[2]);
13797 printf (" im = 0x%x,", im
);
13798 printf (" rdst = 0x%x\n", rdst
);
13800 SYNTAX("stnz #%1, %0");
13801 #line 420 "rx-decode.opc"
13802 ID(stcc
); SC(IMMex(im
)); DR(rdst
); S2cc(RXC_nz
);
13804 /*----------------------------------------------------------------------*/
13809 default: UNSUPPORTED(); break;
13814 switch (op
[2] & 0xf0)
13818 /** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */
13819 #line 927 "rx-decode.opc"
13820 int rdst AU
= op
[2] & 0x0f;
13823 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13824 "/** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */",
13825 op
[0], op
[1], op
[2]);
13826 printf (" rdst = 0x%x\n", rdst
);
13828 SYNTAX("fsub #%1, %0");
13829 #line 927 "rx-decode.opc"
13830 ID(fsub
); DR(rdst
); SC(IMM(0)); F__SZ_
;
13836 /** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */
13837 #line 921 "rx-decode.opc"
13838 int rdst AU
= op
[2] & 0x0f;
13841 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13842 "/** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */",
13843 op
[0], op
[1], op
[2]);
13844 printf (" rdst = 0x%x\n", rdst
);
13846 SYNTAX("fcmp #%1, %0");
13847 #line 921 "rx-decode.opc"
13848 ID(fcmp
); DR(rdst
); SC(IMM(0)); F_OSZ_
;
13854 /** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */
13855 #line 915 "rx-decode.opc"
13856 int rdst AU
= op
[2] & 0x0f;
13859 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13860 "/** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */",
13861 op
[0], op
[1], op
[2]);
13862 printf (" rdst = 0x%x\n", rdst
);
13864 SYNTAX("fadd #%1, %0");
13865 #line 915 "rx-decode.opc"
13866 ID(fadd
); DR(rdst
); SC(IMM(0)); F__SZ_
;
13872 /** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */
13873 #line 936 "rx-decode.opc"
13874 int rdst AU
= op
[2] & 0x0f;
13877 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13878 "/** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */",
13879 op
[0], op
[1], op
[2]);
13880 printf (" rdst = 0x%x\n", rdst
);
13882 SYNTAX("fmul #%1, %0");
13883 #line 936 "rx-decode.opc"
13884 ID(fmul
); DR(rdst
); SC(IMM(0)); F__SZ_
;
13890 /** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */
13891 #line 942 "rx-decode.opc"
13892 int rdst AU
= op
[2] & 0x0f;
13895 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13896 "/** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */",
13897 op
[0], op
[1], op
[2]);
13898 printf (" rdst = 0x%x\n", rdst
);
13900 SYNTAX("fdiv #%1, %0");
13901 #line 942 "rx-decode.opc"
13902 ID(fdiv
); DR(rdst
); SC(IMM(0)); F__SZ_
;
13906 default: UNSUPPORTED(); break;
13911 switch (op
[2] & 0xe0)
13916 /** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */
13917 #line 1032 "rx-decode.opc"
13918 int im AU
= (op
[1] >> 2) & 0x03;
13919 #line 1032 "rx-decode.opc"
13920 int crdst AU
= op
[2] & 0x1f;
13923 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
13924 "/** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */",
13925 op
[0], op
[1], op
[2]);
13926 printf (" im = 0x%x,", im
);
13927 printf (" crdst = 0x%x\n", crdst
);
13929 SYNTAX("mvtc #%1, %0");
13930 #line 1032 "rx-decode.opc"
13931 ID(mov
); SC(IMMex(im
)); DR(crdst
+ 16);
13935 default: UNSUPPORTED(); break;
13940 switch (op
[2] & 0xf0)
13943 goto op_semantics_113
;
13946 goto op_semantics_114
;
13949 goto op_semantics_115
;
13952 goto op_semantics_116
;
13955 goto op_semantics_117
;
13958 goto op_semantics_118
;
13961 goto op_semantics_119
;
13964 goto op_semantics_120
;
13967 goto op_semantics_121
;
13970 goto op_semantics_122
;
13973 goto op_semantics_123
;
13975 default: UNSUPPORTED(); break;
13980 switch (op
[2] & 0xff)
13984 switch (op
[3] & 0x0f)
13989 /** 1111 1101 0111 0101 1000 rdst rsrc 0000 dmov.l %1, %0 */
13990 #line 1176 "rx-decode.opc"
13991 int rdst AU
= op
[2] & 0x0f;
13992 #line 1176 "rx-decode.opc"
13993 int rsrc AU
= (op
[3] >> 4) & 0x0f;
13996 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
13997 "/** 1111 1101 0111 0101 1000 rdst rsrc 0000 dmov.l %1, %0 */",
13998 op
[0], op
[1], op
[2], op
[3]);
13999 printf (" rdst = 0x%x,", rdst
);
14000 printf (" rsrc = 0x%x\n", rsrc
);
14002 SYNTAX("dmov.l %1, %0");
14003 #line 1176 "rx-decode.opc"
14004 ID(dmov
); DR(rdst
); SDRL(rsrc
); F_____
;
14011 /** 1111 1101 0111 0101 1000 rdst rsrc 0010 dmov.l %1, %0 */
14012 #line 1173 "rx-decode.opc"
14013 int rdst AU
= op
[2] & 0x0f;
14014 #line 1173 "rx-decode.opc"
14015 int rsrc AU
= (op
[3] >> 4) & 0x0f;
14018 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14019 "/** 1111 1101 0111 0101 1000 rdst rsrc 0010 dmov.l %1, %0 */",
14020 op
[0], op
[1], op
[2], op
[3]);
14021 printf (" rdst = 0x%x,", rdst
);
14022 printf (" rsrc = 0x%x\n", rsrc
);
14024 SYNTAX("dmov.l %1, %0");
14025 #line 1173 "rx-decode.opc"
14026 ID(dmov
); DR(rdst
); SDRH(rsrc
); F_____
;
14033 /** 1111 1101 0111 0101 1000 rdst rsrc 0100 mvfdc %1, %0 */
14034 #line 1226 "rx-decode.opc"
14035 int rdst AU
= op
[2] & 0x0f;
14036 #line 1226 "rx-decode.opc"
14037 int rsrc AU
= (op
[3] >> 4) & 0x0f;
14040 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14041 "/** 1111 1101 0111 0101 1000 rdst rsrc 0100 mvfdc %1, %0 */",
14042 op
[0], op
[1], op
[2], op
[3]);
14043 printf (" rdst = 0x%x,", rdst
);
14044 printf (" rsrc = 0x%x\n", rsrc
);
14046 SYNTAX("mvfdc %1, %0");
14047 #line 1226 "rx-decode.opc"
14048 ID(mvfdc
); DR(rdst
); SCR(rsrc
); F_____
;
14052 default: UNSUPPORTED(); break;
14057 switch (op
[3] & 0x0f)
14060 goto op_semantics_125
;
14063 goto op_semantics_126
;
14066 goto op_semantics_127
;
14068 default: UNSUPPORTED(); break;
14073 switch (op
[3] & 0x0f)
14076 goto op_semantics_125
;
14079 goto op_semantics_126
;
14082 goto op_semantics_127
;
14084 default: UNSUPPORTED(); break;
14089 switch (op
[3] & 0x0f)
14092 goto op_semantics_125
;
14095 goto op_semantics_126
;
14098 goto op_semantics_127
;
14100 default: UNSUPPORTED(); break;
14105 switch (op
[3] & 0x0f)
14108 goto op_semantics_125
;
14111 goto op_semantics_126
;
14114 goto op_semantics_127
;
14116 default: UNSUPPORTED(); break;
14121 switch (op
[3] & 0x0f)
14124 goto op_semantics_125
;
14127 goto op_semantics_126
;
14130 goto op_semantics_127
;
14132 default: UNSUPPORTED(); break;
14137 switch (op
[3] & 0x0f)
14140 goto op_semantics_125
;
14143 goto op_semantics_126
;
14146 goto op_semantics_127
;
14148 default: UNSUPPORTED(); break;
14153 switch (op
[3] & 0x0f)
14156 goto op_semantics_125
;
14159 goto op_semantics_126
;
14162 goto op_semantics_127
;
14164 default: UNSUPPORTED(); break;
14169 switch (op
[3] & 0x0f)
14172 goto op_semantics_125
;
14175 goto op_semantics_126
;
14178 goto op_semantics_127
;
14180 default: UNSUPPORTED(); break;
14185 switch (op
[3] & 0x0f)
14188 goto op_semantics_125
;
14191 goto op_semantics_126
;
14194 goto op_semantics_127
;
14196 default: UNSUPPORTED(); break;
14201 switch (op
[3] & 0x0f)
14204 goto op_semantics_125
;
14207 goto op_semantics_126
;
14210 goto op_semantics_127
;
14212 default: UNSUPPORTED(); break;
14217 switch (op
[3] & 0x0f)
14220 goto op_semantics_125
;
14223 goto op_semantics_126
;
14226 goto op_semantics_127
;
14228 default: UNSUPPORTED(); break;
14233 switch (op
[3] & 0x0f)
14236 goto op_semantics_125
;
14239 goto op_semantics_126
;
14242 goto op_semantics_127
;
14244 default: UNSUPPORTED(); break;
14249 switch (op
[3] & 0x0f)
14252 goto op_semantics_125
;
14255 goto op_semantics_126
;
14258 goto op_semantics_127
;
14260 default: UNSUPPORTED(); break;
14265 switch (op
[3] & 0x0f)
14268 goto op_semantics_125
;
14271 goto op_semantics_126
;
14274 goto op_semantics_127
;
14276 default: UNSUPPORTED(); break;
14281 switch (op
[3] & 0x0f)
14284 goto op_semantics_125
;
14287 goto op_semantics_126
;
14290 goto op_semantics_127
;
14292 default: UNSUPPORTED(); break;
14295 default: UNSUPPORTED(); break;
14300 switch (op
[2] & 0xff)
14304 switch (op
[3] & 0xff)
14309 /** 1111 1101 0111 0110 1100 rsrc 0000 0000 save %1 */
14310 #line 1161 "rx-decode.opc"
14311 int rsrc AU
= op
[2] & 0x0f;
14314 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14315 "/** 1111 1101 0111 0110 1100 rsrc 0000 0000 save %1 */",
14316 op
[0], op
[1], op
[2], op
[3]);
14317 printf (" rsrc = 0x%x\n", rsrc
);
14320 #line 1161 "rx-decode.opc"
14321 ID(save
); SR(rsrc
); F_____
;
14325 default: UNSUPPORTED(); break;
14330 switch (op
[3] & 0xff)
14333 goto op_semantics_128
;
14335 default: UNSUPPORTED(); break;
14340 switch (op
[3] & 0xff)
14343 goto op_semantics_128
;
14345 default: UNSUPPORTED(); break;
14350 switch (op
[3] & 0xff)
14353 goto op_semantics_128
;
14355 default: UNSUPPORTED(); break;
14360 switch (op
[3] & 0xff)
14363 goto op_semantics_128
;
14365 default: UNSUPPORTED(); break;
14370 switch (op
[3] & 0xff)
14373 goto op_semantics_128
;
14375 default: UNSUPPORTED(); break;
14380 switch (op
[3] & 0xff)
14383 goto op_semantics_128
;
14385 default: UNSUPPORTED(); break;
14390 switch (op
[3] & 0xff)
14393 goto op_semantics_128
;
14395 default: UNSUPPORTED(); break;
14400 switch (op
[3] & 0xff)
14403 goto op_semantics_128
;
14405 default: UNSUPPORTED(); break;
14410 switch (op
[3] & 0xff)
14413 goto op_semantics_128
;
14415 default: UNSUPPORTED(); break;
14420 switch (op
[3] & 0xff)
14423 goto op_semantics_128
;
14425 default: UNSUPPORTED(); break;
14430 switch (op
[3] & 0xff)
14433 goto op_semantics_128
;
14435 default: UNSUPPORTED(); break;
14440 switch (op
[3] & 0xff)
14443 goto op_semantics_128
;
14445 default: UNSUPPORTED(); break;
14450 switch (op
[3] & 0xff)
14453 goto op_semantics_128
;
14455 default: UNSUPPORTED(); break;
14460 switch (op
[3] & 0xff)
14463 goto op_semantics_128
;
14465 default: UNSUPPORTED(); break;
14470 switch (op
[3] & 0xff)
14473 goto op_semantics_128
;
14475 default: UNSUPPORTED(); break;
14480 switch (op
[3] & 0xff)
14485 /** 1111 1101 0111 0110 1101 rsrc 0000 0000 rstr %1 */
14486 #line 1155 "rx-decode.opc"
14487 int rsrc AU
= op
[2] & 0x0f;
14490 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14491 "/** 1111 1101 0111 0110 1101 rsrc 0000 0000 rstr %1 */",
14492 op
[0], op
[1], op
[2], op
[3]);
14493 printf (" rsrc = 0x%x\n", rsrc
);
14496 #line 1155 "rx-decode.opc"
14497 ID(rstr
); SR(rsrc
); F_____
;
14501 default: UNSUPPORTED(); break;
14506 switch (op
[3] & 0xff)
14509 goto op_semantics_129
;
14511 default: UNSUPPORTED(); break;
14516 switch (op
[3] & 0xff)
14519 goto op_semantics_129
;
14521 default: UNSUPPORTED(); break;
14526 switch (op
[3] & 0xff)
14529 goto op_semantics_129
;
14531 default: UNSUPPORTED(); break;
14536 switch (op
[3] & 0xff)
14539 goto op_semantics_129
;
14541 default: UNSUPPORTED(); break;
14546 switch (op
[3] & 0xff)
14549 goto op_semantics_129
;
14551 default: UNSUPPORTED(); break;
14556 switch (op
[3] & 0xff)
14559 goto op_semantics_129
;
14561 default: UNSUPPORTED(); break;
14566 switch (op
[3] & 0xff)
14569 goto op_semantics_129
;
14571 default: UNSUPPORTED(); break;
14576 switch (op
[3] & 0xff)
14579 goto op_semantics_129
;
14581 default: UNSUPPORTED(); break;
14586 switch (op
[3] & 0xff)
14589 goto op_semantics_129
;
14591 default: UNSUPPORTED(); break;
14596 switch (op
[3] & 0xff)
14599 goto op_semantics_129
;
14601 default: UNSUPPORTED(); break;
14606 switch (op
[3] & 0xff)
14609 goto op_semantics_129
;
14611 default: UNSUPPORTED(); break;
14616 switch (op
[3] & 0xff)
14619 goto op_semantics_129
;
14621 default: UNSUPPORTED(); break;
14626 switch (op
[3] & 0xff)
14629 goto op_semantics_129
;
14631 default: UNSUPPORTED(); break;
14636 switch (op
[3] & 0xff)
14639 goto op_semantics_129
;
14641 default: UNSUPPORTED(); break;
14646 switch (op
[3] & 0xff)
14649 goto op_semantics_129
;
14651 default: UNSUPPORTED(); break;
14656 /** 1111 1101 0111 0110 1110 0000 save #%1 */
14659 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
14660 "/** 1111 1101 0111 0110 1110 0000 save #%1 */",
14661 op
[0], op
[1], op
[2]);
14663 SYNTAX("save #%1");
14664 #line 1164 "rx-decode.opc"
14665 ID(save
); SC(IMM(1)); F_____
;
14671 /** 1111 1101 0111 0110 1111 0000 rstr #%1 */
14674 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
14675 "/** 1111 1101 0111 0110 1111 0000 rstr #%1 */",
14676 op
[0], op
[1], op
[2]);
14678 SYNTAX("rstr #%1");
14679 #line 1158 "rx-decode.opc"
14680 ID(rstr
); SC(IMM(1)); F_____
;
14684 default: UNSUPPORTED(); break;
14689 switch (op
[2] & 0xff)
14723 goto op_semantics_124
;
14727 switch (op
[3] & 0x0f)
14732 /** 1111 1101 0111 0111 1000 rsrc rdst 0000 dmov.l %1, %0 */
14733 #line 1170 "rx-decode.opc"
14734 int rsrc AU
= op
[2] & 0x0f;
14735 #line 1170 "rx-decode.opc"
14736 int rdst AU
= (op
[3] >> 4) & 0x0f;
14739 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14740 "/** 1111 1101 0111 0111 1000 rsrc rdst 0000 dmov.l %1, %0 */",
14741 op
[0], op
[1], op
[2], op
[3]);
14742 printf (" rsrc = 0x%x,", rsrc
);
14743 printf (" rdst = 0x%x\n", rdst
);
14745 SYNTAX("dmov.l %1, %0");
14746 #line 1170 "rx-decode.opc"
14747 ID(dmov
); DDRL(rdst
); SR(rsrc
); F_____
;
14755 /** 1111 1101 0111 0111 1000 rsrc rdst 001s dmov%s %1, %0 */
14756 #line 1167 "rx-decode.opc"
14757 int rsrc AU
= op
[2] & 0x0f;
14758 #line 1167 "rx-decode.opc"
14759 int rdst AU
= (op
[3] >> 4) & 0x0f;
14760 #line 1167 "rx-decode.opc"
14761 int s AU
= op
[3] & 0x01;
14764 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14765 "/** 1111 1101 0111 0111 1000 rsrc rdst 001s dmov%s %1, %0 */",
14766 op
[0], op
[1], op
[2], op
[3]);
14767 printf (" rsrc = 0x%x,", rsrc
);
14768 printf (" rdst = 0x%x,", rdst
);
14769 printf (" s = 0x%x\n", s
);
14771 SYNTAX("dmov%s %1, %0");
14772 #line 1167 "rx-decode.opc"
14773 ID(dmov
); DDRH(rdst
); SR(rsrc
); DL(s
); F_____
;
14780 /** 1111 1101 0111 0111 1000 rdst rsrc 0100 mvtdc %1, %0 */
14781 #line 1232 "rx-decode.opc"
14782 int rdst AU
= op
[2] & 0x0f;
14783 #line 1232 "rx-decode.opc"
14784 int rsrc AU
= (op
[3] >> 4) & 0x0f;
14787 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14788 "/** 1111 1101 0111 0111 1000 rdst rsrc 0100 mvtdc %1, %0 */",
14789 op
[0], op
[1], op
[2], op
[3]);
14790 printf (" rdst = 0x%x,", rdst
);
14791 printf (" rsrc = 0x%x\n", rsrc
);
14793 SYNTAX("mvtdc %1, %0");
14794 #line 1232 "rx-decode.opc"
14795 ID(mvtdc
); DCR(rdst
); SR(rsrc
); F_____
;
14802 /** 1111 1101 0111 0111 1000 rsrc rdst 1001 itod %1, %0 */
14803 #line 1274 "rx-decode.opc"
14804 int rsrc AU
= op
[2] & 0x0f;
14805 #line 1274 "rx-decode.opc"
14806 int rdst AU
= (op
[3] >> 4) & 0x0f;
14809 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14810 "/** 1111 1101 0111 0111 1000 rsrc rdst 1001 itod %1, %0 */",
14811 op
[0], op
[1], op
[2], op
[3]);
14812 printf (" rsrc = 0x%x,", rsrc
);
14813 printf (" rdst = 0x%x\n", rdst
);
14815 SYNTAX("itod %1, %0");
14816 #line 1274 "rx-decode.opc"
14817 ID(itod
); DDR(rdst
); SR(rsrc
); F_____
;
14824 /** 1111 1101 0111 0111 1000 rsrc rdst 1010 ftod %1, %0 */
14825 #line 1271 "rx-decode.opc"
14826 int rsrc AU
= op
[2] & 0x0f;
14827 #line 1271 "rx-decode.opc"
14828 int rdst AU
= (op
[3] >> 4) & 0x0f;
14831 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14832 "/** 1111 1101 0111 0111 1000 rsrc rdst 1010 ftod %1, %0 */",
14833 op
[0], op
[1], op
[2], op
[3]);
14834 printf (" rsrc = 0x%x,", rsrc
);
14835 printf (" rdst = 0x%x\n", rdst
);
14837 SYNTAX("ftod %1, %0");
14838 #line 1271 "rx-decode.opc"
14839 ID(ftod
); DDR(rdst
); SR(rsrc
); F_____
;
14846 /** 1111 1101 0111 0111 1000 rsrc rdst 1101 utod %1, %0 */
14847 #line 1277 "rx-decode.opc"
14848 int rsrc AU
= op
[2] & 0x0f;
14849 #line 1277 "rx-decode.opc"
14850 int rdst AU
= (op
[3] >> 4) & 0x0f;
14853 printf ("\033[33m%s\033[0m %02x %02x %02x %02x\n",
14854 "/** 1111 1101 0111 0111 1000 rsrc rdst 1101 utod %1, %0 */",
14855 op
[0], op
[1], op
[2], op
[3]);
14856 printf (" rsrc = 0x%x,", rsrc
);
14857 printf (" rdst = 0x%x\n", rdst
);
14859 SYNTAX("utod %1, %0");
14860 #line 1277 "rx-decode.opc"
14861 ID(dsqrt
); DDR(rdst
); SR(rsrc
); F_____
;
14865 default: UNSUPPORTED(); break;
14870 switch (op
[3] & 0x0f)
14873 goto op_semantics_130
;
14877 goto op_semantics_131
;
14880 goto op_semantics_132
;
14883 goto op_semantics_133
;
14886 goto op_semantics_134
;
14889 goto op_semantics_135
;
14891 default: UNSUPPORTED(); break;
14896 switch (op
[3] & 0x0f)
14899 goto op_semantics_130
;
14903 goto op_semantics_131
;
14906 goto op_semantics_132
;
14909 goto op_semantics_133
;
14912 goto op_semantics_134
;
14915 goto op_semantics_135
;
14917 default: UNSUPPORTED(); break;
14922 switch (op
[3] & 0x0f)
14925 goto op_semantics_130
;
14929 goto op_semantics_131
;
14932 goto op_semantics_132
;
14935 goto op_semantics_133
;
14938 goto op_semantics_134
;
14941 goto op_semantics_135
;
14943 default: UNSUPPORTED(); break;
14948 switch (op
[3] & 0x0f)
14951 goto op_semantics_130
;
14955 goto op_semantics_131
;
14958 goto op_semantics_132
;
14961 goto op_semantics_133
;
14964 goto op_semantics_134
;
14967 goto op_semantics_135
;
14969 default: UNSUPPORTED(); break;
14974 switch (op
[3] & 0x0f)
14977 goto op_semantics_130
;
14981 goto op_semantics_131
;
14984 goto op_semantics_132
;
14987 goto op_semantics_133
;
14990 goto op_semantics_134
;
14993 goto op_semantics_135
;
14995 default: UNSUPPORTED(); break;
15000 switch (op
[3] & 0x0f)
15003 goto op_semantics_130
;
15007 goto op_semantics_131
;
15010 goto op_semantics_132
;
15013 goto op_semantics_133
;
15016 goto op_semantics_134
;
15019 goto op_semantics_135
;
15021 default: UNSUPPORTED(); break;
15026 switch (op
[3] & 0x0f)
15029 goto op_semantics_130
;
15033 goto op_semantics_131
;
15036 goto op_semantics_132
;
15039 goto op_semantics_133
;
15042 goto op_semantics_134
;
15045 goto op_semantics_135
;
15047 default: UNSUPPORTED(); break;
15052 switch (op
[3] & 0x0f)
15055 goto op_semantics_130
;
15059 goto op_semantics_131
;
15062 goto op_semantics_132
;
15065 goto op_semantics_133
;
15068 goto op_semantics_134
;
15071 goto op_semantics_135
;
15073 default: UNSUPPORTED(); break;
15078 switch (op
[3] & 0x0f)
15081 goto op_semantics_130
;
15085 goto op_semantics_131
;
15088 goto op_semantics_132
;
15091 goto op_semantics_133
;
15094 goto op_semantics_134
;
15097 goto op_semantics_135
;
15099 default: UNSUPPORTED(); break;
15104 switch (op
[3] & 0x0f)
15107 goto op_semantics_130
;
15111 goto op_semantics_131
;
15114 goto op_semantics_132
;
15117 goto op_semantics_133
;
15120 goto op_semantics_134
;
15123 goto op_semantics_135
;
15125 default: UNSUPPORTED(); break;
15130 switch (op
[3] & 0x0f)
15133 goto op_semantics_130
;
15137 goto op_semantics_131
;
15140 goto op_semantics_132
;
15143 goto op_semantics_133
;
15146 goto op_semantics_134
;
15149 goto op_semantics_135
;
15151 default: UNSUPPORTED(); break;
15156 switch (op
[3] & 0x0f)
15159 goto op_semantics_130
;
15163 goto op_semantics_131
;
15166 goto op_semantics_132
;
15169 goto op_semantics_133
;
15172 goto op_semantics_134
;
15175 goto op_semantics_135
;
15177 default: UNSUPPORTED(); break;
15182 switch (op
[3] & 0x0f)
15185 goto op_semantics_130
;
15189 goto op_semantics_131
;
15192 goto op_semantics_132
;
15195 goto op_semantics_133
;
15198 goto op_semantics_134
;
15201 goto op_semantics_135
;
15203 default: UNSUPPORTED(); break;
15208 switch (op
[3] & 0x0f)
15211 goto op_semantics_130
;
15215 goto op_semantics_131
;
15218 goto op_semantics_132
;
15221 goto op_semantics_133
;
15224 goto op_semantics_134
;
15227 goto op_semantics_135
;
15229 default: UNSUPPORTED(); break;
15234 switch (op
[3] & 0x0f)
15237 goto op_semantics_130
;
15241 goto op_semantics_131
;
15244 goto op_semantics_132
;
15247 goto op_semantics_133
;
15250 goto op_semantics_134
;
15253 goto op_semantics_135
;
15255 default: UNSUPPORTED(); break;
15258 default: UNSUPPORTED(); break;
15263 switch (op
[2] & 0xf0)
15266 goto op_semantics_113
;
15269 goto op_semantics_114
;
15272 goto op_semantics_115
;
15275 goto op_semantics_116
;
15278 goto op_semantics_117
;
15281 goto op_semantics_118
;
15284 goto op_semantics_119
;
15287 goto op_semantics_120
;
15290 goto op_semantics_121
;
15293 goto op_semantics_122
;
15296 goto op_semantics_123
;
15298 default: UNSUPPORTED(); break;
15303 switch (op
[2] & 0xe0)
15306 goto op_semantics_124
;
15308 default: UNSUPPORTED(); break;
15313 switch (op
[2] & 0xf0)
15316 goto op_semantics_113
;
15319 goto op_semantics_114
;
15322 goto op_semantics_115
;
15325 goto op_semantics_116
;
15328 goto op_semantics_117
;
15331 goto op_semantics_118
;
15334 goto op_semantics_119
;
15337 goto op_semantics_120
;
15340 goto op_semantics_121
;
15343 goto op_semantics_122
;
15346 goto op_semantics_123
;
15348 default: UNSUPPORTED(); break;
15353 switch (op
[2] & 0xe0)
15356 goto op_semantics_124
;
15358 default: UNSUPPORTED(); break;
15363 switch (op
[2] & 0x00)
15368 /** 1111 1101 100immmm rsrc rdst shlr #%2, %1, %0 */
15369 #line 757 "rx-decode.opc"
15370 int immmm AU
= op
[1] & 0x1f;
15371 #line 757 "rx-decode.opc"
15372 int rsrc AU
= (op
[2] >> 4) & 0x0f;
15373 #line 757 "rx-decode.opc"
15374 int rdst AU
= op
[2] & 0x0f;
15377 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
15378 "/** 1111 1101 100immmm rsrc rdst shlr #%2, %1, %0 */",
15379 op
[0], op
[1], op
[2]);
15380 printf (" immmm = 0x%x,", immmm
);
15381 printf (" rsrc = 0x%x,", rsrc
);
15382 printf (" rdst = 0x%x\n", rdst
);
15384 SYNTAX("shlr #%2, %1, %0");
15385 #line 757 "rx-decode.opc"
15386 ID(shlr
); S2C(immmm
); SR(rsrc
); DR(rdst
); F__SZC
;
15388 /*----------------------------------------------------------------------*/
15397 switch (op
[2] & 0x00)
15400 goto op_semantics_136
;
15406 switch (op
[2] & 0x00)
15409 goto op_semantics_136
;
15415 switch (op
[2] & 0x00)
15418 goto op_semantics_136
;
15424 switch (op
[2] & 0x00)
15427 goto op_semantics_136
;
15433 switch (op
[2] & 0x00)
15436 goto op_semantics_136
;
15442 switch (op
[2] & 0x00)
15445 goto op_semantics_136
;
15451 switch (op
[2] & 0x00)
15454 goto op_semantics_136
;
15460 switch (op
[2] & 0x00)
15463 goto op_semantics_136
;
15469 switch (op
[2] & 0x00)
15472 goto op_semantics_136
;
15478 switch (op
[2] & 0x00)
15481 goto op_semantics_136
;
15487 switch (op
[2] & 0x00)
15490 goto op_semantics_136
;
15496 switch (op
[2] & 0x00)
15499 goto op_semantics_136
;
15505 switch (op
[2] & 0x00)
15508 goto op_semantics_136
;
15514 switch (op
[2] & 0x00)
15517 goto op_semantics_136
;
15523 switch (op
[2] & 0x00)
15526 goto op_semantics_136
;
15532 switch (op
[2] & 0x00)
15535 goto op_semantics_136
;
15541 switch (op
[2] & 0x00)
15544 goto op_semantics_136
;
15550 switch (op
[2] & 0x00)
15553 goto op_semantics_136
;
15559 switch (op
[2] & 0x00)
15562 goto op_semantics_136
;
15568 switch (op
[2] & 0x00)
15571 goto op_semantics_136
;
15577 switch (op
[2] & 0x00)
15580 goto op_semantics_136
;
15586 switch (op
[2] & 0x00)
15589 goto op_semantics_136
;
15595 switch (op
[2] & 0x00)
15598 goto op_semantics_136
;
15604 switch (op
[2] & 0x00)
15607 goto op_semantics_136
;
15613 switch (op
[2] & 0x00)
15616 goto op_semantics_136
;
15622 switch (op
[2] & 0x00)
15625 goto op_semantics_136
;
15631 switch (op
[2] & 0x00)
15634 goto op_semantics_136
;
15640 switch (op
[2] & 0x00)
15643 goto op_semantics_136
;
15649 switch (op
[2] & 0x00)
15652 goto op_semantics_136
;
15658 switch (op
[2] & 0x00)
15661 goto op_semantics_136
;
15667 switch (op
[2] & 0x00)
15670 goto op_semantics_136
;
15676 switch (op
[2] & 0x00)
15681 /** 1111 1101 101immmm rsrc rdst shar #%2, %1, %0 */
15682 #line 747 "rx-decode.opc"
15683 int immmm AU
= op
[1] & 0x1f;
15684 #line 747 "rx-decode.opc"
15685 int rsrc AU
= (op
[2] >> 4) & 0x0f;
15686 #line 747 "rx-decode.opc"
15687 int rdst AU
= op
[2] & 0x0f;
15690 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
15691 "/** 1111 1101 101immmm rsrc rdst shar #%2, %1, %0 */",
15692 op
[0], op
[1], op
[2]);
15693 printf (" immmm = 0x%x,", immmm
);
15694 printf (" rsrc = 0x%x,", rsrc
);
15695 printf (" rdst = 0x%x\n", rdst
);
15697 SYNTAX("shar #%2, %1, %0");
15698 #line 747 "rx-decode.opc"
15699 ID(shar
); S2C(immmm
); SR(rsrc
); DR(rdst
); F_0SZC
;
15708 switch (op
[2] & 0x00)
15711 goto op_semantics_137
;
15717 switch (op
[2] & 0x00)
15720 goto op_semantics_137
;
15726 switch (op
[2] & 0x00)
15729 goto op_semantics_137
;
15735 switch (op
[2] & 0x00)
15738 goto op_semantics_137
;
15744 switch (op
[2] & 0x00)
15747 goto op_semantics_137
;
15753 switch (op
[2] & 0x00)
15756 goto op_semantics_137
;
15762 switch (op
[2] & 0x00)
15765 goto op_semantics_137
;
15771 switch (op
[2] & 0x00)
15774 goto op_semantics_137
;
15780 switch (op
[2] & 0x00)
15783 goto op_semantics_137
;
15789 switch (op
[2] & 0x00)
15792 goto op_semantics_137
;
15798 switch (op
[2] & 0x00)
15801 goto op_semantics_137
;
15807 switch (op
[2] & 0x00)
15810 goto op_semantics_137
;
15816 switch (op
[2] & 0x00)
15819 goto op_semantics_137
;
15825 switch (op
[2] & 0x00)
15828 goto op_semantics_137
;
15834 switch (op
[2] & 0x00)
15837 goto op_semantics_137
;
15843 switch (op
[2] & 0x00)
15846 goto op_semantics_137
;
15852 switch (op
[2] & 0x00)
15855 goto op_semantics_137
;
15861 switch (op
[2] & 0x00)
15864 goto op_semantics_137
;
15870 switch (op
[2] & 0x00)
15873 goto op_semantics_137
;
15879 switch (op
[2] & 0x00)
15882 goto op_semantics_137
;
15888 switch (op
[2] & 0x00)
15891 goto op_semantics_137
;
15897 switch (op
[2] & 0x00)
15900 goto op_semantics_137
;
15906 switch (op
[2] & 0x00)
15909 goto op_semantics_137
;
15915 switch (op
[2] & 0x00)
15918 goto op_semantics_137
;
15924 switch (op
[2] & 0x00)
15927 goto op_semantics_137
;
15933 switch (op
[2] & 0x00)
15936 goto op_semantics_137
;
15942 switch (op
[2] & 0x00)
15945 goto op_semantics_137
;
15951 switch (op
[2] & 0x00)
15954 goto op_semantics_137
;
15960 switch (op
[2] & 0x00)
15963 goto op_semantics_137
;
15969 switch (op
[2] & 0x00)
15972 goto op_semantics_137
;
15978 switch (op
[2] & 0x00)
15981 goto op_semantics_137
;
15987 switch (op
[2] & 0x00)
15992 /** 1111 1101 110immmm rsrc rdst shll #%2, %1, %0 */
15993 #line 737 "rx-decode.opc"
15994 int immmm AU
= op
[1] & 0x1f;
15995 #line 737 "rx-decode.opc"
15996 int rsrc AU
= (op
[2] >> 4) & 0x0f;
15997 #line 737 "rx-decode.opc"
15998 int rdst AU
= op
[2] & 0x0f;
16001 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
16002 "/** 1111 1101 110immmm rsrc rdst shll #%2, %1, %0 */",
16003 op
[0], op
[1], op
[2]);
16004 printf (" immmm = 0x%x,", immmm
);
16005 printf (" rsrc = 0x%x,", rsrc
);
16006 printf (" rdst = 0x%x\n", rdst
);
16008 SYNTAX("shll #%2, %1, %0");
16009 #line 737 "rx-decode.opc"
16010 ID(shll
); S2C(immmm
); SR(rsrc
); DR(rdst
); F_OSZC
;
16019 switch (op
[2] & 0x00)
16022 goto op_semantics_138
;
16028 switch (op
[2] & 0x00)
16031 goto op_semantics_138
;
16037 switch (op
[2] & 0x00)
16040 goto op_semantics_138
;
16046 switch (op
[2] & 0x00)
16049 goto op_semantics_138
;
16055 switch (op
[2] & 0x00)
16058 goto op_semantics_138
;
16064 switch (op
[2] & 0x00)
16067 goto op_semantics_138
;
16073 switch (op
[2] & 0x00)
16076 goto op_semantics_138
;
16082 switch (op
[2] & 0x00)
16085 goto op_semantics_138
;
16091 switch (op
[2] & 0x00)
16094 goto op_semantics_138
;
16100 switch (op
[2] & 0x00)
16103 goto op_semantics_138
;
16109 switch (op
[2] & 0x00)
16112 goto op_semantics_138
;
16118 switch (op
[2] & 0x00)
16121 goto op_semantics_138
;
16127 switch (op
[2] & 0x00)
16130 goto op_semantics_138
;
16136 switch (op
[2] & 0x00)
16139 goto op_semantics_138
;
16145 switch (op
[2] & 0x00)
16148 goto op_semantics_138
;
16154 switch (op
[2] & 0x00)
16157 goto op_semantics_138
;
16163 switch (op
[2] & 0x00)
16166 goto op_semantics_138
;
16172 switch (op
[2] & 0x00)
16175 goto op_semantics_138
;
16181 switch (op
[2] & 0x00)
16184 goto op_semantics_138
;
16190 switch (op
[2] & 0x00)
16193 goto op_semantics_138
;
16199 switch (op
[2] & 0x00)
16202 goto op_semantics_138
;
16208 switch (op
[2] & 0x00)
16211 goto op_semantics_138
;
16217 switch (op
[2] & 0x00)
16220 goto op_semantics_138
;
16226 switch (op
[2] & 0x00)
16229 goto op_semantics_138
;
16235 switch (op
[2] & 0x00)
16238 goto op_semantics_138
;
16244 switch (op
[2] & 0x00)
16247 goto op_semantics_138
;
16253 switch (op
[2] & 0x00)
16256 goto op_semantics_138
;
16262 switch (op
[2] & 0x00)
16265 goto op_semantics_138
;
16271 switch (op
[2] & 0x00)
16274 goto op_semantics_138
;
16280 switch (op
[2] & 0x00)
16283 goto op_semantics_138
;
16289 switch (op
[2] & 0x00)
16292 goto op_semantics_138
;
16298 switch (op
[2] & 0xf0)
16317 /** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */
16318 #line 1011 "rx-decode.opc"
16319 int bittt AU
= op
[1] & 0x1f;
16320 #line 1011 "rx-decode.opc"
16321 int cond AU
= (op
[2] >> 4) & 0x0f;
16322 #line 1011 "rx-decode.opc"
16323 int rdst AU
= op
[2] & 0x0f;
16326 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
16327 "/** 1111 1101 111 bittt cond rdst bm%2 #%1, %0%S0 */",
16328 op
[0], op
[1], op
[2]);
16329 printf (" bittt = 0x%x,", bittt
);
16330 printf (" cond = 0x%x,", cond
);
16331 printf (" rdst = 0x%x\n", rdst
);
16333 SYNTAX("bm%2 #%1, %0%S0");
16334 #line 1011 "rx-decode.opc"
16335 ID(bmcc
); BWL(LSIZE
); S2cc(cond
); SC(bittt
); DR(rdst
);
16337 /*----------------------------------------------------------------------*/
16338 /* CONTROL REGISTERS */
16345 /** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */
16346 #line 1004 "rx-decode.opc"
16347 int bittt AU
= op
[1] & 0x1f;
16348 #line 1004 "rx-decode.opc"
16349 int rdst AU
= op
[2] & 0x0f;
16352 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
16353 "/** 1111 1101 111bittt 1111 rdst bnot #%1, %0 */",
16354 op
[0], op
[1], op
[2]);
16355 printf (" bittt = 0x%x,", bittt
);
16356 printf (" rdst = 0x%x\n", rdst
);
16358 SYNTAX("bnot #%1, %0");
16359 #line 1004 "rx-decode.opc"
16360 ID(bnot
); BWL(LSIZE
); SC(bittt
); DR(rdst
);
16369 switch (op
[2] & 0xf0)
16386 goto op_semantics_139
;
16389 goto op_semantics_140
;
16395 switch (op
[2] & 0xf0)
16412 goto op_semantics_139
;
16415 goto op_semantics_140
;
16421 switch (op
[2] & 0xf0)
16438 goto op_semantics_139
;
16441 goto op_semantics_140
;
16447 switch (op
[2] & 0xf0)
16464 goto op_semantics_139
;
16467 goto op_semantics_140
;
16473 switch (op
[2] & 0xf0)
16490 goto op_semantics_139
;
16493 goto op_semantics_140
;
16499 switch (op
[2] & 0xf0)
16516 goto op_semantics_139
;
16519 goto op_semantics_140
;
16525 switch (op
[2] & 0xf0)
16542 goto op_semantics_139
;
16545 goto op_semantics_140
;
16551 switch (op
[2] & 0xf0)
16568 goto op_semantics_139
;
16571 goto op_semantics_140
;
16577 switch (op
[2] & 0xf0)
16594 goto op_semantics_139
;
16597 goto op_semantics_140
;
16603 switch (op
[2] & 0xf0)
16620 goto op_semantics_139
;
16623 goto op_semantics_140
;
16629 switch (op
[2] & 0xf0)
16646 goto op_semantics_139
;
16649 goto op_semantics_140
;
16655 switch (op
[2] & 0xf0)
16672 goto op_semantics_139
;
16675 goto op_semantics_140
;
16681 switch (op
[2] & 0xf0)
16698 goto op_semantics_139
;
16701 goto op_semantics_140
;
16707 switch (op
[2] & 0xf0)
16724 goto op_semantics_139
;
16727 goto op_semantics_140
;
16733 switch (op
[2] & 0xf0)
16750 goto op_semantics_139
;
16753 goto op_semantics_140
;
16759 switch (op
[2] & 0xf0)
16776 goto op_semantics_139
;
16779 goto op_semantics_140
;
16785 switch (op
[2] & 0xf0)
16802 goto op_semantics_139
;
16805 goto op_semantics_140
;
16811 switch (op
[2] & 0xf0)
16828 goto op_semantics_139
;
16831 goto op_semantics_140
;
16837 switch (op
[2] & 0xf0)
16854 goto op_semantics_139
;
16857 goto op_semantics_140
;
16863 switch (op
[2] & 0xf0)
16880 goto op_semantics_139
;
16883 goto op_semantics_140
;
16889 switch (op
[2] & 0xf0)
16906 goto op_semantics_139
;
16909 goto op_semantics_140
;
16915 switch (op
[2] & 0xf0)
16932 goto op_semantics_139
;
16935 goto op_semantics_140
;
16941 switch (op
[2] & 0xf0)
16958 goto op_semantics_139
;
16961 goto op_semantics_140
;
16967 switch (op
[2] & 0xf0)
16984 goto op_semantics_139
;
16987 goto op_semantics_140
;
16993 switch (op
[2] & 0xf0)
17010 goto op_semantics_139
;
17013 goto op_semantics_140
;
17019 switch (op
[2] & 0xf0)
17036 goto op_semantics_139
;
17039 goto op_semantics_140
;
17045 switch (op
[2] & 0xf0)
17062 goto op_semantics_139
;
17065 goto op_semantics_140
;
17071 switch (op
[2] & 0xf0)
17088 goto op_semantics_139
;
17091 goto op_semantics_140
;
17097 switch (op
[2] & 0xf0)
17114 goto op_semantics_139
;
17117 goto op_semantics_140
;
17123 switch (op
[2] & 0xf0)
17140 goto op_semantics_139
;
17143 goto op_semantics_140
;
17149 switch (op
[2] & 0xf0)
17166 goto op_semantics_139
;
17169 goto op_semantics_140
;
17173 default: UNSUPPORTED(); break;
17178 switch (op
[1] & 0xff)
17182 switch (op
[2] & 0x00)
17187 /** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */
17188 #line 363 "rx-decode.opc"
17189 int sz AU
= (op
[1] >> 4) & 0x03;
17190 #line 363 "rx-decode.opc"
17191 int isrc AU
= op
[1] & 0x0f;
17192 #line 363 "rx-decode.opc"
17193 int bsrc AU
= (op
[2] >> 4) & 0x0f;
17194 #line 363 "rx-decode.opc"
17195 int rdst AU
= op
[2] & 0x0f;
17198 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
17199 "/** 1111 1110 00sz isrc bsrc rdst mov%s %0, [%1, %2] */",
17200 op
[0], op
[1], op
[2]);
17201 printf (" sz = 0x%x,", sz
);
17202 printf (" isrc = 0x%x,", isrc
);
17203 printf (" bsrc = 0x%x,", bsrc
);
17204 printf (" rdst = 0x%x\n", rdst
);
17206 SYNTAX("mov%s %0, [%1, %2]");
17207 #line 363 "rx-decode.opc"
17208 ID(movbir
); sBWL(sz
); DR(rdst
); SRR(isrc
); S2R(bsrc
); F_____
;
17216 switch (op
[2] & 0x00)
17219 goto op_semantics_141
;
17225 switch (op
[2] & 0x00)
17228 goto op_semantics_141
;
17234 switch (op
[2] & 0x00)
17237 goto op_semantics_141
;
17243 switch (op
[2] & 0x00)
17246 goto op_semantics_141
;
17252 switch (op
[2] & 0x00)
17255 goto op_semantics_141
;
17261 switch (op
[2] & 0x00)
17264 goto op_semantics_141
;
17270 switch (op
[2] & 0x00)
17273 goto op_semantics_141
;
17279 switch (op
[2] & 0x00)
17282 goto op_semantics_141
;
17288 switch (op
[2] & 0x00)
17291 goto op_semantics_141
;
17297 switch (op
[2] & 0x00)
17300 goto op_semantics_141
;
17306 switch (op
[2] & 0x00)
17309 goto op_semantics_141
;
17315 switch (op
[2] & 0x00)
17318 goto op_semantics_141
;
17324 switch (op
[2] & 0x00)
17327 goto op_semantics_141
;
17333 switch (op
[2] & 0x00)
17336 goto op_semantics_141
;
17342 switch (op
[2] & 0x00)
17345 goto op_semantics_141
;
17351 switch (op
[2] & 0x00)
17354 goto op_semantics_141
;
17360 switch (op
[2] & 0x00)
17363 goto op_semantics_141
;
17369 switch (op
[2] & 0x00)
17372 goto op_semantics_141
;
17378 switch (op
[2] & 0x00)
17381 goto op_semantics_141
;
17387 switch (op
[2] & 0x00)
17390 goto op_semantics_141
;
17396 switch (op
[2] & 0x00)
17399 goto op_semantics_141
;
17405 switch (op
[2] & 0x00)
17408 goto op_semantics_141
;
17414 switch (op
[2] & 0x00)
17417 goto op_semantics_141
;
17423 switch (op
[2] & 0x00)
17426 goto op_semantics_141
;
17432 switch (op
[2] & 0x00)
17435 goto op_semantics_141
;
17441 switch (op
[2] & 0x00)
17444 goto op_semantics_141
;
17450 switch (op
[2] & 0x00)
17453 goto op_semantics_141
;
17459 switch (op
[2] & 0x00)
17462 goto op_semantics_141
;
17468 switch (op
[2] & 0x00)
17471 goto op_semantics_141
;
17477 switch (op
[2] & 0x00)
17480 goto op_semantics_141
;
17486 switch (op
[2] & 0x00)
17489 goto op_semantics_141
;
17495 switch (op
[2] & 0x00)
17498 goto op_semantics_141
;
17504 switch (op
[2] & 0x00)
17507 goto op_semantics_141
;
17513 switch (op
[2] & 0x00)
17516 goto op_semantics_141
;
17522 switch (op
[2] & 0x00)
17525 goto op_semantics_141
;
17531 switch (op
[2] & 0x00)
17534 goto op_semantics_141
;
17540 switch (op
[2] & 0x00)
17543 goto op_semantics_141
;
17549 switch (op
[2] & 0x00)
17552 goto op_semantics_141
;
17558 switch (op
[2] & 0x00)
17561 goto op_semantics_141
;
17567 switch (op
[2] & 0x00)
17570 goto op_semantics_141
;
17576 switch (op
[2] & 0x00)
17579 goto op_semantics_141
;
17585 switch (op
[2] & 0x00)
17588 goto op_semantics_141
;
17594 switch (op
[2] & 0x00)
17597 goto op_semantics_141
;
17603 switch (op
[2] & 0x00)
17606 goto op_semantics_141
;
17612 switch (op
[2] & 0x00)
17615 goto op_semantics_141
;
17621 switch (op
[2] & 0x00)
17624 goto op_semantics_141
;
17630 switch (op
[2] & 0x00)
17633 goto op_semantics_141
;
17639 switch (op
[2] & 0x00)
17644 /** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */
17645 #line 360 "rx-decode.opc"
17646 int sz AU
= (op
[1] >> 4) & 0x03;
17647 #line 360 "rx-decode.opc"
17648 int isrc AU
= op
[1] & 0x0f;
17649 #line 360 "rx-decode.opc"
17650 int bsrc AU
= (op
[2] >> 4) & 0x0f;
17651 #line 360 "rx-decode.opc"
17652 int rdst AU
= op
[2] & 0x0f;
17655 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
17656 "/** 1111 1110 01sz isrc bsrc rdst mov%s [%1, %2], %0 */",
17657 op
[0], op
[1], op
[2]);
17658 printf (" sz = 0x%x,", sz
);
17659 printf (" isrc = 0x%x,", isrc
);
17660 printf (" bsrc = 0x%x,", bsrc
);
17661 printf (" rdst = 0x%x\n", rdst
);
17663 SYNTAX("mov%s [%1, %2], %0");
17664 #line 360 "rx-decode.opc"
17665 ID(movbi
); sBWL(sz
); DR(rdst
); SRR(isrc
); S2R(bsrc
); F_____
;
17673 switch (op
[2] & 0x00)
17676 goto op_semantics_142
;
17682 switch (op
[2] & 0x00)
17685 goto op_semantics_142
;
17691 switch (op
[2] & 0x00)
17694 goto op_semantics_142
;
17700 switch (op
[2] & 0x00)
17703 goto op_semantics_142
;
17709 switch (op
[2] & 0x00)
17712 goto op_semantics_142
;
17718 switch (op
[2] & 0x00)
17721 goto op_semantics_142
;
17727 switch (op
[2] & 0x00)
17730 goto op_semantics_142
;
17736 switch (op
[2] & 0x00)
17739 goto op_semantics_142
;
17745 switch (op
[2] & 0x00)
17748 goto op_semantics_142
;
17754 switch (op
[2] & 0x00)
17757 goto op_semantics_142
;
17763 switch (op
[2] & 0x00)
17766 goto op_semantics_142
;
17772 switch (op
[2] & 0x00)
17775 goto op_semantics_142
;
17781 switch (op
[2] & 0x00)
17784 goto op_semantics_142
;
17790 switch (op
[2] & 0x00)
17793 goto op_semantics_142
;
17799 switch (op
[2] & 0x00)
17802 goto op_semantics_142
;
17808 switch (op
[2] & 0x00)
17811 goto op_semantics_142
;
17817 switch (op
[2] & 0x00)
17820 goto op_semantics_142
;
17826 switch (op
[2] & 0x00)
17829 goto op_semantics_142
;
17835 switch (op
[2] & 0x00)
17838 goto op_semantics_142
;
17844 switch (op
[2] & 0x00)
17847 goto op_semantics_142
;
17853 switch (op
[2] & 0x00)
17856 goto op_semantics_142
;
17862 switch (op
[2] & 0x00)
17865 goto op_semantics_142
;
17871 switch (op
[2] & 0x00)
17874 goto op_semantics_142
;
17880 switch (op
[2] & 0x00)
17883 goto op_semantics_142
;
17889 switch (op
[2] & 0x00)
17892 goto op_semantics_142
;
17898 switch (op
[2] & 0x00)
17901 goto op_semantics_142
;
17907 switch (op
[2] & 0x00)
17910 goto op_semantics_142
;
17916 switch (op
[2] & 0x00)
17919 goto op_semantics_142
;
17925 switch (op
[2] & 0x00)
17928 goto op_semantics_142
;
17934 switch (op
[2] & 0x00)
17937 goto op_semantics_142
;
17943 switch (op
[2] & 0x00)
17946 goto op_semantics_142
;
17952 switch (op
[2] & 0x00)
17955 goto op_semantics_142
;
17961 switch (op
[2] & 0x00)
17964 goto op_semantics_142
;
17970 switch (op
[2] & 0x00)
17973 goto op_semantics_142
;
17979 switch (op
[2] & 0x00)
17982 goto op_semantics_142
;
17988 switch (op
[2] & 0x00)
17991 goto op_semantics_142
;
17997 switch (op
[2] & 0x00)
18000 goto op_semantics_142
;
18006 switch (op
[2] & 0x00)
18009 goto op_semantics_142
;
18015 switch (op
[2] & 0x00)
18018 goto op_semantics_142
;
18024 switch (op
[2] & 0x00)
18027 goto op_semantics_142
;
18033 switch (op
[2] & 0x00)
18036 goto op_semantics_142
;
18042 switch (op
[2] & 0x00)
18045 goto op_semantics_142
;
18051 switch (op
[2] & 0x00)
18054 goto op_semantics_142
;
18060 switch (op
[2] & 0x00)
18063 goto op_semantics_142
;
18069 switch (op
[2] & 0x00)
18072 goto op_semantics_142
;
18078 switch (op
[2] & 0x00)
18081 goto op_semantics_142
;
18087 switch (op
[2] & 0x00)
18090 goto op_semantics_142
;
18096 switch (op
[2] & 0x00)
18101 /** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */
18102 #line 366 "rx-decode.opc"
18103 int sz AU
= (op
[1] >> 4) & 0x03;
18104 #line 366 "rx-decode.opc"
18105 int isrc AU
= op
[1] & 0x0f;
18106 #line 366 "rx-decode.opc"
18107 int bsrc AU
= (op
[2] >> 4) & 0x0f;
18108 #line 366 "rx-decode.opc"
18109 int rdst AU
= op
[2] & 0x0f;
18112 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
18113 "/** 1111 1110 11sz isrc bsrc rdst movu%s [%1, %2], %0 */",
18114 op
[0], op
[1], op
[2]);
18115 printf (" sz = 0x%x,", sz
);
18116 printf (" isrc = 0x%x,", isrc
);
18117 printf (" bsrc = 0x%x,", bsrc
);
18118 printf (" rdst = 0x%x\n", rdst
);
18120 SYNTAX("movu%s [%1, %2], %0");
18121 #line 366 "rx-decode.opc"
18122 ID(movbi
); uBW(sz
); DR(rdst
); SRR(isrc
); S2R(bsrc
); F_____
;
18130 switch (op
[2] & 0x00)
18133 goto op_semantics_143
;
18139 switch (op
[2] & 0x00)
18142 goto op_semantics_143
;
18148 switch (op
[2] & 0x00)
18151 goto op_semantics_143
;
18157 switch (op
[2] & 0x00)
18160 goto op_semantics_143
;
18166 switch (op
[2] & 0x00)
18169 goto op_semantics_143
;
18175 switch (op
[2] & 0x00)
18178 goto op_semantics_143
;
18184 switch (op
[2] & 0x00)
18187 goto op_semantics_143
;
18193 switch (op
[2] & 0x00)
18196 goto op_semantics_143
;
18202 switch (op
[2] & 0x00)
18205 goto op_semantics_143
;
18211 switch (op
[2] & 0x00)
18214 goto op_semantics_143
;
18220 switch (op
[2] & 0x00)
18223 goto op_semantics_143
;
18229 switch (op
[2] & 0x00)
18232 goto op_semantics_143
;
18238 switch (op
[2] & 0x00)
18241 goto op_semantics_143
;
18247 switch (op
[2] & 0x00)
18250 goto op_semantics_143
;
18256 switch (op
[2] & 0x00)
18259 goto op_semantics_143
;
18265 switch (op
[2] & 0x00)
18268 goto op_semantics_143
;
18274 switch (op
[2] & 0x00)
18277 goto op_semantics_143
;
18283 switch (op
[2] & 0x00)
18286 goto op_semantics_143
;
18292 switch (op
[2] & 0x00)
18295 goto op_semantics_143
;
18301 switch (op
[2] & 0x00)
18304 goto op_semantics_143
;
18310 switch (op
[2] & 0x00)
18313 goto op_semantics_143
;
18319 switch (op
[2] & 0x00)
18322 goto op_semantics_143
;
18328 switch (op
[2] & 0x00)
18331 goto op_semantics_143
;
18337 switch (op
[2] & 0x00)
18340 goto op_semantics_143
;
18346 switch (op
[2] & 0x00)
18349 goto op_semantics_143
;
18355 switch (op
[2] & 0x00)
18358 goto op_semantics_143
;
18364 switch (op
[2] & 0x00)
18367 goto op_semantics_143
;
18373 switch (op
[2] & 0x00)
18376 goto op_semantics_143
;
18382 switch (op
[2] & 0x00)
18385 goto op_semantics_143
;
18391 switch (op
[2] & 0x00)
18394 goto op_semantics_143
;
18400 switch (op
[2] & 0x00)
18403 goto op_semantics_143
;
18409 switch (op
[2] & 0x00)
18412 goto op_semantics_143
;
18418 switch (op
[2] & 0x00)
18421 goto op_semantics_143
;
18427 switch (op
[2] & 0x00)
18430 goto op_semantics_143
;
18436 switch (op
[2] & 0x00)
18439 goto op_semantics_143
;
18445 switch (op
[2] & 0x00)
18448 goto op_semantics_143
;
18454 switch (op
[2] & 0x00)
18457 goto op_semantics_143
;
18463 switch (op
[2] & 0x00)
18466 goto op_semantics_143
;
18472 switch (op
[2] & 0x00)
18475 goto op_semantics_143
;
18481 switch (op
[2] & 0x00)
18484 goto op_semantics_143
;
18490 switch (op
[2] & 0x00)
18493 goto op_semantics_143
;
18499 switch (op
[2] & 0x00)
18502 goto op_semantics_143
;
18508 switch (op
[2] & 0x00)
18511 goto op_semantics_143
;
18517 switch (op
[2] & 0x00)
18520 goto op_semantics_143
;
18526 switch (op
[2] & 0x00)
18529 goto op_semantics_143
;
18535 switch (op
[2] & 0x00)
18538 goto op_semantics_143
;
18544 switch (op
[2] & 0x00)
18547 goto op_semantics_143
;
18551 default: UNSUPPORTED(); break;
18556 switch (op
[1] & 0xff)
18560 switch (op
[2] & 0x00)
18565 /** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */
18566 #line 570 "rx-decode.opc"
18567 int rdst AU
= op
[1] & 0x0f;
18568 #line 570 "rx-decode.opc"
18569 int srca AU
= (op
[2] >> 4) & 0x0f;
18570 #line 570 "rx-decode.opc"
18571 int srcb AU
= op
[2] & 0x0f;
18574 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
18575 "/** 1111 1111 0000 rdst srca srcb sub %2, %1, %0 */",
18576 op
[0], op
[1], op
[2]);
18577 printf (" rdst = 0x%x,", rdst
);
18578 printf (" srca = 0x%x,", srca
);
18579 printf (" srcb = 0x%x\n", srcb
);
18581 SYNTAX("sub %2, %1, %0");
18582 #line 570 "rx-decode.opc"
18583 ID(sub
); DR(rdst
); SR(srcb
); S2R(srca
); F_OSZC
;
18585 /*----------------------------------------------------------------------*/
18594 switch (op
[2] & 0x00)
18597 goto op_semantics_144
;
18603 switch (op
[2] & 0x00)
18606 goto op_semantics_144
;
18612 switch (op
[2] & 0x00)
18615 goto op_semantics_144
;
18621 switch (op
[2] & 0x00)
18624 goto op_semantics_144
;
18630 switch (op
[2] & 0x00)
18633 goto op_semantics_144
;
18639 switch (op
[2] & 0x00)
18642 goto op_semantics_144
;
18648 switch (op
[2] & 0x00)
18651 goto op_semantics_144
;
18657 switch (op
[2] & 0x00)
18660 goto op_semantics_144
;
18666 switch (op
[2] & 0x00)
18669 goto op_semantics_144
;
18675 switch (op
[2] & 0x00)
18678 goto op_semantics_144
;
18684 switch (op
[2] & 0x00)
18687 goto op_semantics_144
;
18693 switch (op
[2] & 0x00)
18696 goto op_semantics_144
;
18702 switch (op
[2] & 0x00)
18705 goto op_semantics_144
;
18711 switch (op
[2] & 0x00)
18714 goto op_semantics_144
;
18720 switch (op
[2] & 0x00)
18723 goto op_semantics_144
;
18729 switch (op
[2] & 0x00)
18734 /** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */
18735 #line 537 "rx-decode.opc"
18736 int rdst AU
= op
[1] & 0x0f;
18737 #line 537 "rx-decode.opc"
18738 int srca AU
= (op
[2] >> 4) & 0x0f;
18739 #line 537 "rx-decode.opc"
18740 int srcb AU
= op
[2] & 0x0f;
18743 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
18744 "/** 1111 1111 0010 rdst srca srcb add %2, %1, %0 */",
18745 op
[0], op
[1], op
[2]);
18746 printf (" rdst = 0x%x,", rdst
);
18747 printf (" srca = 0x%x,", srca
);
18748 printf (" srcb = 0x%x\n", srcb
);
18750 SYNTAX("add %2, %1, %0");
18751 #line 537 "rx-decode.opc"
18752 ID(add
); DR(rdst
); SR(srcb
); S2R(srca
); F_OSZC
;
18754 /*----------------------------------------------------------------------*/
18763 switch (op
[2] & 0x00)
18766 goto op_semantics_145
;
18772 switch (op
[2] & 0x00)
18775 goto op_semantics_145
;
18781 switch (op
[2] & 0x00)
18784 goto op_semantics_145
;
18790 switch (op
[2] & 0x00)
18793 goto op_semantics_145
;
18799 switch (op
[2] & 0x00)
18802 goto op_semantics_145
;
18808 switch (op
[2] & 0x00)
18811 goto op_semantics_145
;
18817 switch (op
[2] & 0x00)
18820 goto op_semantics_145
;
18826 switch (op
[2] & 0x00)
18829 goto op_semantics_145
;
18835 switch (op
[2] & 0x00)
18838 goto op_semantics_145
;
18844 switch (op
[2] & 0x00)
18847 goto op_semantics_145
;
18853 switch (op
[2] & 0x00)
18856 goto op_semantics_145
;
18862 switch (op
[2] & 0x00)
18865 goto op_semantics_145
;
18871 switch (op
[2] & 0x00)
18874 goto op_semantics_145
;
18880 switch (op
[2] & 0x00)
18883 goto op_semantics_145
;
18889 switch (op
[2] & 0x00)
18892 goto op_semantics_145
;
18898 switch (op
[2] & 0x00)
18903 /** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */
18904 #line 677 "rx-decode.opc"
18905 int rdst AU
= op
[1] & 0x0f;
18906 #line 677 "rx-decode.opc"
18907 int srca AU
= (op
[2] >> 4) & 0x0f;
18908 #line 677 "rx-decode.opc"
18909 int srcb AU
= op
[2] & 0x0f;
18912 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
18913 "/** 1111 1111 0011 rdst srca srcb mul %2, %1, %0 */",
18914 op
[0], op
[1], op
[2]);
18915 printf (" rdst = 0x%x,", rdst
);
18916 printf (" srca = 0x%x,", srca
);
18917 printf (" srcb = 0x%x\n", srcb
);
18919 SYNTAX("mul %2, %1, %0");
18920 #line 677 "rx-decode.opc"
18921 ID(mul
); DR(rdst
); SR(srcb
); S2R(srca
); F_____
;
18923 /*----------------------------------------------------------------------*/
18932 switch (op
[2] & 0x00)
18935 goto op_semantics_146
;
18941 switch (op
[2] & 0x00)
18944 goto op_semantics_146
;
18950 switch (op
[2] & 0x00)
18953 goto op_semantics_146
;
18959 switch (op
[2] & 0x00)
18962 goto op_semantics_146
;
18968 switch (op
[2] & 0x00)
18971 goto op_semantics_146
;
18977 switch (op
[2] & 0x00)
18980 goto op_semantics_146
;
18986 switch (op
[2] & 0x00)
18989 goto op_semantics_146
;
18995 switch (op
[2] & 0x00)
18998 goto op_semantics_146
;
19004 switch (op
[2] & 0x00)
19007 goto op_semantics_146
;
19013 switch (op
[2] & 0x00)
19016 goto op_semantics_146
;
19022 switch (op
[2] & 0x00)
19025 goto op_semantics_146
;
19031 switch (op
[2] & 0x00)
19034 goto op_semantics_146
;
19040 switch (op
[2] & 0x00)
19043 goto op_semantics_146
;
19049 switch (op
[2] & 0x00)
19052 goto op_semantics_146
;
19058 switch (op
[2] & 0x00)
19061 goto op_semantics_146
;
19067 switch (op
[2] & 0x00)
19072 /** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */
19073 #line 447 "rx-decode.opc"
19074 int rdst AU
= op
[1] & 0x0f;
19075 #line 447 "rx-decode.opc"
19076 int srca AU
= (op
[2] >> 4) & 0x0f;
19077 #line 447 "rx-decode.opc"
19078 int srcb AU
= op
[2] & 0x0f;
19081 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19082 "/** 1111 1111 0100 rdst srca srcb and %2, %1, %0 */",
19083 op
[0], op
[1], op
[2]);
19084 printf (" rdst = 0x%x,", rdst
);
19085 printf (" srca = 0x%x,", srca
);
19086 printf (" srcb = 0x%x\n", srcb
);
19088 SYNTAX("and %2, %1, %0");
19089 #line 447 "rx-decode.opc"
19090 ID(and); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19092 /*----------------------------------------------------------------------*/
19101 switch (op
[2] & 0x00)
19104 goto op_semantics_147
;
19110 switch (op
[2] & 0x00)
19113 goto op_semantics_147
;
19119 switch (op
[2] & 0x00)
19122 goto op_semantics_147
;
19128 switch (op
[2] & 0x00)
19131 goto op_semantics_147
;
19137 switch (op
[2] & 0x00)
19140 goto op_semantics_147
;
19146 switch (op
[2] & 0x00)
19149 goto op_semantics_147
;
19155 switch (op
[2] & 0x00)
19158 goto op_semantics_147
;
19164 switch (op
[2] & 0x00)
19167 goto op_semantics_147
;
19173 switch (op
[2] & 0x00)
19176 goto op_semantics_147
;
19182 switch (op
[2] & 0x00)
19185 goto op_semantics_147
;
19191 switch (op
[2] & 0x00)
19194 goto op_semantics_147
;
19200 switch (op
[2] & 0x00)
19203 goto op_semantics_147
;
19209 switch (op
[2] & 0x00)
19212 goto op_semantics_147
;
19218 switch (op
[2] & 0x00)
19221 goto op_semantics_147
;
19227 switch (op
[2] & 0x00)
19230 goto op_semantics_147
;
19236 switch (op
[2] & 0x00)
19241 /** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */
19242 #line 465 "rx-decode.opc"
19243 int rdst AU
= op
[1] & 0x0f;
19244 #line 465 "rx-decode.opc"
19245 int srca AU
= (op
[2] >> 4) & 0x0f;
19246 #line 465 "rx-decode.opc"
19247 int srcb AU
= op
[2] & 0x0f;
19250 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19251 "/** 1111 1111 0101 rdst srca srcb or %2, %1, %0 */",
19252 op
[0], op
[1], op
[2]);
19253 printf (" rdst = 0x%x,", rdst
);
19254 printf (" srca = 0x%x,", srca
);
19255 printf (" srcb = 0x%x\n", srcb
);
19257 SYNTAX("or %2, %1, %0");
19258 #line 465 "rx-decode.opc"
19259 ID(or); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19261 /*----------------------------------------------------------------------*/
19270 switch (op
[2] & 0x00)
19273 goto op_semantics_148
;
19279 switch (op
[2] & 0x00)
19282 goto op_semantics_148
;
19288 switch (op
[2] & 0x00)
19291 goto op_semantics_148
;
19297 switch (op
[2] & 0x00)
19300 goto op_semantics_148
;
19306 switch (op
[2] & 0x00)
19309 goto op_semantics_148
;
19315 switch (op
[2] & 0x00)
19318 goto op_semantics_148
;
19324 switch (op
[2] & 0x00)
19327 goto op_semantics_148
;
19333 switch (op
[2] & 0x00)
19336 goto op_semantics_148
;
19342 switch (op
[2] & 0x00)
19345 goto op_semantics_148
;
19351 switch (op
[2] & 0x00)
19354 goto op_semantics_148
;
19360 switch (op
[2] & 0x00)
19363 goto op_semantics_148
;
19369 switch (op
[2] & 0x00)
19372 goto op_semantics_148
;
19378 switch (op
[2] & 0x00)
19381 goto op_semantics_148
;
19387 switch (op
[2] & 0x00)
19390 goto op_semantics_148
;
19396 switch (op
[2] & 0x00)
19399 goto op_semantics_148
;
19405 switch (op
[2] & 0x00)
19410 /** 1111 1111 0110 rdst srca srcb xor %2, %1, %0 */
19411 #line 1146 "rx-decode.opc"
19412 int rdst AU
= op
[1] & 0x0f;
19413 #line 1146 "rx-decode.opc"
19414 int srca AU
= (op
[2] >> 4) & 0x0f;
19415 #line 1146 "rx-decode.opc"
19416 int srcb AU
= op
[2] & 0x0f;
19419 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19420 "/** 1111 1111 0110 rdst srca srcb xor %2, %1, %0 */",
19421 op
[0], op
[1], op
[2]);
19422 printf (" rdst = 0x%x,", rdst
);
19423 printf (" srca = 0x%x,", srca
);
19424 printf (" srcb = 0x%x\n", srcb
);
19426 SYNTAX("xor %2, %1, %0");
19427 #line 1146 "rx-decode.opc"
19428 ID(xor); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19436 switch (op
[2] & 0x00)
19439 goto op_semantics_149
;
19445 switch (op
[2] & 0x00)
19448 goto op_semantics_149
;
19454 switch (op
[2] & 0x00)
19457 goto op_semantics_149
;
19463 switch (op
[2] & 0x00)
19466 goto op_semantics_149
;
19472 switch (op
[2] & 0x00)
19475 goto op_semantics_149
;
19481 switch (op
[2] & 0x00)
19484 goto op_semantics_149
;
19490 switch (op
[2] & 0x00)
19493 goto op_semantics_149
;
19499 switch (op
[2] & 0x00)
19502 goto op_semantics_149
;
19508 switch (op
[2] & 0x00)
19511 goto op_semantics_149
;
19517 switch (op
[2] & 0x00)
19520 goto op_semantics_149
;
19526 switch (op
[2] & 0x00)
19529 goto op_semantics_149
;
19535 switch (op
[2] & 0x00)
19538 goto op_semantics_149
;
19544 switch (op
[2] & 0x00)
19547 goto op_semantics_149
;
19553 switch (op
[2] & 0x00)
19556 goto op_semantics_149
;
19562 switch (op
[2] & 0x00)
19565 goto op_semantics_149
;
19571 switch (op
[2] & 0x00)
19576 /** 1111 1111 1000 rdst srca srcb fsub %2, %1, %0 */
19577 #line 1125 "rx-decode.opc"
19578 int rdst AU
= op
[1] & 0x0f;
19579 #line 1125 "rx-decode.opc"
19580 int srca AU
= (op
[2] >> 4) & 0x0f;
19581 #line 1125 "rx-decode.opc"
19582 int srcb AU
= op
[2] & 0x0f;
19585 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19586 "/** 1111 1111 1000 rdst srca srcb fsub %2, %1, %0 */",
19587 op
[0], op
[1], op
[2]);
19588 printf (" rdst = 0x%x,", rdst
);
19589 printf (" srca = 0x%x,", srca
);
19590 printf (" srcb = 0x%x\n", srcb
);
19592 SYNTAX("fsub %2, %1, %0");
19593 #line 1125 "rx-decode.opc"
19594 ID(fsub
); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19602 switch (op
[2] & 0x00)
19605 goto op_semantics_150
;
19611 switch (op
[2] & 0x00)
19614 goto op_semantics_150
;
19620 switch (op
[2] & 0x00)
19623 goto op_semantics_150
;
19629 switch (op
[2] & 0x00)
19632 goto op_semantics_150
;
19638 switch (op
[2] & 0x00)
19641 goto op_semantics_150
;
19647 switch (op
[2] & 0x00)
19650 goto op_semantics_150
;
19656 switch (op
[2] & 0x00)
19659 goto op_semantics_150
;
19665 switch (op
[2] & 0x00)
19668 goto op_semantics_150
;
19674 switch (op
[2] & 0x00)
19677 goto op_semantics_150
;
19683 switch (op
[2] & 0x00)
19686 goto op_semantics_150
;
19692 switch (op
[2] & 0x00)
19695 goto op_semantics_150
;
19701 switch (op
[2] & 0x00)
19704 goto op_semantics_150
;
19710 switch (op
[2] & 0x00)
19713 goto op_semantics_150
;
19719 switch (op
[2] & 0x00)
19722 goto op_semantics_150
;
19728 switch (op
[2] & 0x00)
19731 goto op_semantics_150
;
19737 switch (op
[2] & 0x00)
19742 /** 1111 1111 1010 rdst srca srcb fadd %2, %1, %0 */
19743 #line 1122 "rx-decode.opc"
19744 int rdst AU
= op
[1] & 0x0f;
19745 #line 1122 "rx-decode.opc"
19746 int srca AU
= (op
[2] >> 4) & 0x0f;
19747 #line 1122 "rx-decode.opc"
19748 int srcb AU
= op
[2] & 0x0f;
19751 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19752 "/** 1111 1111 1010 rdst srca srcb fadd %2, %1, %0 */",
19753 op
[0], op
[1], op
[2]);
19754 printf (" rdst = 0x%x,", rdst
);
19755 printf (" srca = 0x%x,", srca
);
19756 printf (" srcb = 0x%x\n", srcb
);
19758 SYNTAX("fadd %2, %1, %0");
19759 #line 1122 "rx-decode.opc"
19760 ID(fadd
); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19768 switch (op
[2] & 0x00)
19771 goto op_semantics_151
;
19777 switch (op
[2] & 0x00)
19780 goto op_semantics_151
;
19786 switch (op
[2] & 0x00)
19789 goto op_semantics_151
;
19795 switch (op
[2] & 0x00)
19798 goto op_semantics_151
;
19804 switch (op
[2] & 0x00)
19807 goto op_semantics_151
;
19813 switch (op
[2] & 0x00)
19816 goto op_semantics_151
;
19822 switch (op
[2] & 0x00)
19825 goto op_semantics_151
;
19831 switch (op
[2] & 0x00)
19834 goto op_semantics_151
;
19840 switch (op
[2] & 0x00)
19843 goto op_semantics_151
;
19849 switch (op
[2] & 0x00)
19852 goto op_semantics_151
;
19858 switch (op
[2] & 0x00)
19861 goto op_semantics_151
;
19867 switch (op
[2] & 0x00)
19870 goto op_semantics_151
;
19876 switch (op
[2] & 0x00)
19879 goto op_semantics_151
;
19885 switch (op
[2] & 0x00)
19888 goto op_semantics_151
;
19894 switch (op
[2] & 0x00)
19897 goto op_semantics_151
;
19903 switch (op
[2] & 0x00)
19908 /** 1111 1111 1011 rdst srca srcb fmul %2, %1, %0 */
19909 #line 1128 "rx-decode.opc"
19910 int rdst AU
= op
[1] & 0x0f;
19911 #line 1128 "rx-decode.opc"
19912 int srca AU
= (op
[2] >> 4) & 0x0f;
19913 #line 1128 "rx-decode.opc"
19914 int srcb AU
= op
[2] & 0x0f;
19917 printf ("\033[33m%s\033[0m %02x %02x %02x\n",
19918 "/** 1111 1111 1011 rdst srca srcb fmul %2, %1, %0 */",
19919 op
[0], op
[1], op
[2]);
19920 printf (" rdst = 0x%x,", rdst
);
19921 printf (" srca = 0x%x,", srca
);
19922 printf (" srcb = 0x%x\n", srcb
);
19924 SYNTAX("fmul %2, %1, %0");
19925 #line 1128 "rx-decode.opc"
19926 ID(fmul
); DR(rdst
); SR(srcb
); S2R(srca
); F__SZ_
;
19934 switch (op
[2] & 0x00)
19937 goto op_semantics_152
;
19943 switch (op
[2] & 0x00)
19946 goto op_semantics_152
;
19952 switch (op
[2] & 0x00)
19955 goto op_semantics_152
;
19961 switch (op
[2] & 0x00)
19964 goto op_semantics_152
;
19970 switch (op
[2] & 0x00)
19973 goto op_semantics_152
;
19979 switch (op
[2] & 0x00)
19982 goto op_semantics_152
;
19988 switch (op
[2] & 0x00)
19991 goto op_semantics_152
;
19997 switch (op
[2] & 0x00)
20000 goto op_semantics_152
;
20006 switch (op
[2] & 0x00)
20009 goto op_semantics_152
;
20015 switch (op
[2] & 0x00)
20018 goto op_semantics_152
;
20024 switch (op
[2] & 0x00)
20027 goto op_semantics_152
;
20033 switch (op
[2] & 0x00)
20036 goto op_semantics_152
;
20042 switch (op
[2] & 0x00)
20045 goto op_semantics_152
;
20051 switch (op
[2] & 0x00)
20054 goto op_semantics_152
;
20060 switch (op
[2] & 0x00)
20063 goto op_semantics_152
;
20067 default: UNSUPPORTED(); break;
20070 default: UNSUPPORTED(); break;
20072 #line 1280 "rx-decode.opc"
20074 return rx
->n_bytes
;
This page took 0.439639 seconds and 4 git commands to generate.