修订版 | 77f5a59d60f17f356f134f90032d0c1b036fe197 (tree) |
---|---|
时间 | 2018-12-19 21:49:07 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
RXv3 instructions
@@ -38,6 +38,7 @@ typedef enum | ||
38 | 38 | RX_SWord, |
39 | 39 | RX_3Byte, |
40 | 40 | RX_Long, |
41 | + RX_Double, | |
41 | 42 | RX_Bad_Size, |
42 | 43 | RX_MAX_SIZE |
43 | 44 | } RX_Size; |
@@ -54,6 +55,11 @@ typedef enum | ||
54 | 55 | RX_Operand_Condition, /* eq, gtu, etc */ |
55 | 56 | RX_Operand_Flag, /* [UIOSZC] */ |
56 | 57 | RX_Operand_TwoReg, /* [Rn + scale*R2] */ |
58 | + RX_Operand_DoubleReg, /* DRn */ | |
59 | + RX_Operand_DoubleRegH,/* DRHn */ | |
60 | + RX_Operand_DoubleRegL,/* DRLn */ | |
61 | + RX_Operand_DoubleCReg,/* DCRxx */ | |
62 | + RX_Operand_DoubleCond,/* UN/EQ/LE/LT */ | |
57 | 63 | } RX_Operand_Type; |
58 | 64 | |
59 | 65 | typedef enum |
@@ -180,6 +186,32 @@ typedef enum | ||
180 | 186 | RXO_racl, |
181 | 187 | RXO_rdacl, |
182 | 188 | RXO_rdacw, |
189 | + | |
190 | + RXO_bfmov, | |
191 | + RXO_bfmovz, | |
192 | + RXO_rstr, | |
193 | + RXO_save, | |
194 | + RXO_dmov, | |
195 | + RXO_dpopm, | |
196 | + RXO_dpushm, | |
197 | + RXO_mvfdc, | |
198 | + RXO_mvfdr, | |
199 | + RXO_mvtdc, | |
200 | + RXO_dabs, | |
201 | + RXO_dadd, | |
202 | + RXO_dcmp, | |
203 | + RXO_ddiv, | |
204 | + RXO_dmul, | |
205 | + RXO_dneg, | |
206 | + RXO_dround, | |
207 | + RXO_dsqrt, | |
208 | + RXO_dsub, | |
209 | + RXO_dtoi, | |
210 | + RXO_dtof, | |
211 | + RXO_dtou, | |
212 | + RXO_ftod, | |
213 | + RXO_itod, | |
214 | + RXO_utod | |
183 | 215 | } RX_Opcode_ID; |
184 | 216 | |
185 | 217 | /* Condition bitpatterns, as registers. */ |
@@ -45,6 +45,7 @@ static int trace = 0; | ||
45 | 45 | #define BSIZE 0 |
46 | 46 | #define WSIZE 1 |
47 | 47 | #define LSIZE 2 |
48 | +#define DSIZE 3 | |
48 | 49 | |
49 | 50 | /* These are for when the upper bits are "don't care" or "undefined". */ |
50 | 51 | static int bwl[4] = |
@@ -79,6 +80,12 @@ static int memex[4] = | ||
79 | 80 | RX_UWord |
80 | 81 | }; |
81 | 82 | |
83 | +static int _ld[2] = | |
84 | +{ | |
85 | + RX_Long, | |
86 | + RX_Double | |
87 | +}; | |
88 | + | |
82 | 89 | #define ID(x) rx->id = RXO_##x |
83 | 90 | #define OP(n,t,r,a) (rx->op[n].type = t, \ |
84 | 91 | rx->op[n].reg = r, \ |
@@ -89,7 +96,7 @@ static int memex[4] = | ||
89 | 96 | /* This is for the BWL and BW bitfields. */ |
90 | 97 | static int SCALE[] = { 1, 2, 4, 0 }; |
91 | 98 | /* This is for the prefix size enum. */ |
92 | -static int PSCALE[] = { 4, 1, 1, 1, 2, 2, 2, 3, 4 }; | |
99 | +static int PSCALE[] = { 4, 1, 1, 1, 2, 2, 2, 3, 4, 8 }; | |
93 | 100 | |
94 | 101 | #define GET_SCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (SCALE) ? SCALE[(_indx)] : 0) |
95 | 102 | #define GET_PSCALE(_indx) ((unsigned)(_indx) < ARRAY_SIZE (PSCALE) ? PSCALE[(_indx)] : 0) |
@@ -115,6 +122,11 @@ static int dsp3map[] = { 8, 9, 10, 3, 4, 5, 6, 7 }; | ||
115 | 122 | #define DIs(r,a,s) OP (0, RX_Operand_Indirect, r, (a) * GET_SCALE (s)) |
116 | 123 | #define DD(t,r,s) rx_disp (0, t, r, bwl[s], ld); |
117 | 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) | |
118 | 130 | |
119 | 131 | #define SC(i) OP (1, RX_Operand_Immediate, 0, i) |
120 | 132 | #define SR(r) OP (1, RX_Operand_Register, r, 0) |
@@ -125,6 +137,10 @@ static int dsp3map[] = { 8, 9, 10, 3, 4, 5, 6, 7 }; | ||
125 | 137 | #define SP(t,r) rx_disp (1, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 1); |
126 | 138 | #define SPm(t,r,m) rx_disp (1, t, r, memex[m], ld); rx->op[1].size = memex[m]; |
127 | 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) | |
128 | 144 | |
129 | 145 | #define S2C(i) OP (2, RX_Operand_Immediate, 0, i) |
130 | 146 | #define S2R(r) OP (2, RX_Operand_Register, r, 0) |
@@ -134,11 +150,16 @@ static int dsp3map[] = { 8, 9, 10, 3, 4, 5, 6, 7 }; | ||
134 | 150 | #define S2P(t,r) rx_disp (2, t, r, (t!=3) ? RX_UByte : RX_Long, ld); P(t, 2); |
135 | 151 | #define S2Pm(t,r,m) rx_disp (2, t, r, memex[m], ld); rx->op[2].size = memex[m]; |
136 | 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) | |
155 | + | |
156 | +#define SDD(t,r,s) rx_disp (1, t, r, bwl, ld); | |
137 | 157 | |
138 | 158 | #define BWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = bwl[sz] |
139 | 159 | #define sBWL(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = sbwl[sz] |
140 | 160 | #define uBW(sz) rx->op[0].size = rx->op[1].size = rx->op[2].size = rx->size = ubw[sz] |
141 | 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] | |
142 | 163 | |
143 | 164 | #define F(f) store_flags(rx, f) |
144 | 165 |
@@ -299,7 +320,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
299 | 320 | op[0]); |
300 | 321 | } |
301 | 322 | SYNTAX("brk"); |
302 | -#line 1029 "rx-decode.opc" | |
323 | +#line 1050 "rx-decode.opc" | |
303 | 324 | ID(brk); |
304 | 325 | |
305 | 326 | } |
@@ -314,7 +335,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
314 | 335 | op[0]); |
315 | 336 | } |
316 | 337 | SYNTAX("dbt"); |
317 | -#line 1032 "rx-decode.opc" | |
338 | +#line 1053 "rx-decode.opc" | |
318 | 339 | ID(dbt); |
319 | 340 | |
320 | 341 | } |
@@ -329,7 +350,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
329 | 350 | op[0]); |
330 | 351 | } |
331 | 352 | SYNTAX("rts"); |
332 | -#line 810 "rx-decode.opc" | |
353 | +#line 831 "rx-decode.opc" | |
333 | 354 | ID(rts); |
334 | 355 | |
335 | 356 | /*----------------------------------------------------------------------*/ |
@@ -347,7 +368,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
347 | 368 | op[0]); |
348 | 369 | } |
349 | 370 | SYNTAX("nop"); |
350 | -#line 816 "rx-decode.opc" | |
371 | +#line 837 "rx-decode.opc" | |
351 | 372 | ID(nop); |
352 | 373 | |
353 | 374 | /*----------------------------------------------------------------------*/ |
@@ -365,7 +386,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
365 | 386 | op[0]); |
366 | 387 | } |
367 | 388 | SYNTAX("bra.a %a0"); |
368 | -#line 788 "rx-decode.opc" | |
389 | +#line 809 "rx-decode.opc" | |
369 | 390 | ID(branch); DC(pc + IMMex(3)); |
370 | 391 | |
371 | 392 | } |
@@ -380,7 +401,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
380 | 401 | op[0]); |
381 | 402 | } |
382 | 403 | SYNTAX("bsr.a %a0"); |
383 | -#line 804 "rx-decode.opc" | |
404 | +#line 825 "rx-decode.opc" | |
384 | 405 | ID(jsr); DC(pc + IMMex(3)); |
385 | 406 | |
386 | 407 | } |
@@ -397,13 +418,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
397 | 418 | op_semantics_1: |
398 | 419 | { |
399 | 420 | /** 0000 0110 mx00 00ss rsrc rdst sub %2%S2, %1 */ |
400 | -#line 546 "rx-decode.opc" | |
421 | +#line 567 "rx-decode.opc" | |
401 | 422 | int mx AU = (op[1] >> 6) & 0x03; |
402 | -#line 546 "rx-decode.opc" | |
423 | +#line 567 "rx-decode.opc" | |
403 | 424 | int ss AU = op[1] & 0x03; |
404 | -#line 546 "rx-decode.opc" | |
425 | +#line 567 "rx-decode.opc" | |
405 | 426 | int rsrc AU = (op[2] >> 4) & 0x0f; |
406 | -#line 546 "rx-decode.opc" | |
427 | +#line 567 "rx-decode.opc" | |
407 | 428 | int rdst AU = op[2] & 0x0f; |
408 | 429 | if (trace) |
409 | 430 | { |
@@ -416,7 +437,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
416 | 437 | printf (" rdst = 0x%x\n", rdst); |
417 | 438 | } |
418 | 439 | SYNTAX("sub %2%S2, %1"); |
419 | -#line 546 "rx-decode.opc" | |
440 | +#line 567 "rx-decode.opc" | |
420 | 441 | ID(sub); S2Pm(ss, rsrc, mx); SR(rdst); DR(rdst); F_OSZC; |
421 | 442 | |
422 | 443 | } |
@@ -458,13 +479,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
458 | 479 | op_semantics_2: |
459 | 480 | { |
460 | 481 | /** 0000 0110 mx00 01ss rsrc rdst cmp %2%S2, %1 */ |
461 | -#line 534 "rx-decode.opc" | |
482 | +#line 555 "rx-decode.opc" | |
462 | 483 | int mx AU = (op[1] >> 6) & 0x03; |
463 | -#line 534 "rx-decode.opc" | |
484 | +#line 555 "rx-decode.opc" | |
464 | 485 | int ss AU = op[1] & 0x03; |
465 | -#line 534 "rx-decode.opc" | |
486 | +#line 555 "rx-decode.opc" | |
466 | 487 | int rsrc AU = (op[2] >> 4) & 0x0f; |
467 | -#line 534 "rx-decode.opc" | |
488 | +#line 555 "rx-decode.opc" | |
468 | 489 | int rdst AU = op[2] & 0x0f; |
469 | 490 | if (trace) |
470 | 491 | { |
@@ -477,7 +498,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
477 | 498 | printf (" rdst = 0x%x\n", rdst); |
478 | 499 | } |
479 | 500 | SYNTAX("cmp %2%S2, %1"); |
480 | -#line 534 "rx-decode.opc" | |
501 | +#line 555 "rx-decode.opc" | |
481 | 502 | ID(sub); S2Pm(ss, rsrc, mx); SR(rdst); F_OSZC; |
482 | 503 | |
483 | 504 | /*----------------------------------------------------------------------*/ |
@@ -522,13 +543,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
522 | 543 | op_semantics_3: |
523 | 544 | { |
524 | 545 | /** 0000 0110 mx00 10ss rsrc rdst add %1%S1, %0 */ |
525 | -#line 510 "rx-decode.opc" | |
546 | +#line 531 "rx-decode.opc" | |
526 | 547 | int mx AU = (op[1] >> 6) & 0x03; |
527 | -#line 510 "rx-decode.opc" | |
548 | +#line 531 "rx-decode.opc" | |
528 | 549 | int ss AU = op[1] & 0x03; |
529 | -#line 510 "rx-decode.opc" | |
550 | +#line 531 "rx-decode.opc" | |
530 | 551 | int rsrc AU = (op[2] >> 4) & 0x0f; |
531 | -#line 510 "rx-decode.opc" | |
552 | +#line 531 "rx-decode.opc" | |
532 | 553 | int rdst AU = op[2] & 0x0f; |
533 | 554 | if (trace) |
534 | 555 | { |
@@ -541,7 +562,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
541 | 562 | printf (" rdst = 0x%x\n", rdst); |
542 | 563 | } |
543 | 564 | SYNTAX("add %1%S1, %0"); |
544 | -#line 510 "rx-decode.opc" | |
565 | +#line 531 "rx-decode.opc" | |
545 | 566 | ID(add); SPm(ss, rsrc, mx); DR(rdst); F_OSZC; |
546 | 567 | |
547 | 568 | } |
@@ -583,13 +604,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
583 | 604 | op_semantics_4: |
584 | 605 | { |
585 | 606 | /** 0000 0110 mx00 11ss rsrc rdst mul %1%S1, %0 */ |
586 | -#line 653 "rx-decode.opc" | |
607 | +#line 674 "rx-decode.opc" | |
587 | 608 | int mx AU = (op[1] >> 6) & 0x03; |
588 | -#line 653 "rx-decode.opc" | |
609 | +#line 674 "rx-decode.opc" | |
589 | 610 | int ss AU = op[1] & 0x03; |
590 | -#line 653 "rx-decode.opc" | |
611 | +#line 674 "rx-decode.opc" | |
591 | 612 | int rsrc AU = (op[2] >> 4) & 0x0f; |
592 | -#line 653 "rx-decode.opc" | |
613 | +#line 674 "rx-decode.opc" | |
593 | 614 | int rdst AU = op[2] & 0x0f; |
594 | 615 | if (trace) |
595 | 616 | { |
@@ -602,7 +623,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
602 | 623 | printf (" rdst = 0x%x\n", rdst); |
603 | 624 | } |
604 | 625 | SYNTAX("mul %1%S1, %0"); |
605 | -#line 653 "rx-decode.opc" | |
626 | +#line 674 "rx-decode.opc" | |
606 | 627 | ID(mul); SPm(ss, rsrc, mx); DR(rdst); F_____; |
607 | 628 | |
608 | 629 | } |
@@ -644,13 +665,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
644 | 665 | op_semantics_5: |
645 | 666 | { |
646 | 667 | /** 0000 0110 mx01 00ss rsrc rdst and %1%S1, %0 */ |
647 | -#line 423 "rx-decode.opc" | |
668 | +#line 444 "rx-decode.opc" | |
648 | 669 | int mx AU = (op[1] >> 6) & 0x03; |
649 | -#line 423 "rx-decode.opc" | |
670 | +#line 444 "rx-decode.opc" | |
650 | 671 | int ss AU = op[1] & 0x03; |
651 | -#line 423 "rx-decode.opc" | |
672 | +#line 444 "rx-decode.opc" | |
652 | 673 | int rsrc AU = (op[2] >> 4) & 0x0f; |
653 | -#line 423 "rx-decode.opc" | |
674 | +#line 444 "rx-decode.opc" | |
654 | 675 | int rdst AU = op[2] & 0x0f; |
655 | 676 | if (trace) |
656 | 677 | { |
@@ -663,7 +684,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
663 | 684 | printf (" rdst = 0x%x\n", rdst); |
664 | 685 | } |
665 | 686 | SYNTAX("and %1%S1, %0"); |
666 | -#line 423 "rx-decode.opc" | |
687 | +#line 444 "rx-decode.opc" | |
667 | 688 | ID(and); SPm(ss, rsrc, mx); DR(rdst); F__SZ_; |
668 | 689 | |
669 | 690 | } |
@@ -705,13 +726,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
705 | 726 | op_semantics_6: |
706 | 727 | { |
707 | 728 | /** 0000 0110 mx01 01ss rsrc rdst or %1%S1, %0 */ |
708 | -#line 441 "rx-decode.opc" | |
729 | +#line 462 "rx-decode.opc" | |
709 | 730 | int mx AU = (op[1] >> 6) & 0x03; |
710 | -#line 441 "rx-decode.opc" | |
731 | +#line 462 "rx-decode.opc" | |
711 | 732 | int ss AU = op[1] & 0x03; |
712 | -#line 441 "rx-decode.opc" | |
733 | +#line 462 "rx-decode.opc" | |
713 | 734 | int rsrc AU = (op[2] >> 4) & 0x0f; |
714 | -#line 441 "rx-decode.opc" | |
735 | +#line 462 "rx-decode.opc" | |
715 | 736 | int rdst AU = op[2] & 0x0f; |
716 | 737 | if (trace) |
717 | 738 | { |
@@ -724,7 +745,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
724 | 745 | printf (" rdst = 0x%x\n", rdst); |
725 | 746 | } |
726 | 747 | SYNTAX("or %1%S1, %0"); |
727 | -#line 441 "rx-decode.opc" | |
748 | +#line 462 "rx-decode.opc" | |
728 | 749 | ID(or); SPm(ss, rsrc, mx); DR(rdst); F__SZ_; |
729 | 750 | |
730 | 751 | } |
@@ -770,13 +791,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
770 | 791 | op_semantics_7: |
771 | 792 | { |
772 | 793 | /** 0000 0110 mx10 00sp 0000 0000 rsrc rdst sbb %1%S1, %0 */ |
773 | -#line 559 "rx-decode.opc" | |
794 | +#line 580 "rx-decode.opc" | |
774 | 795 | int mx AU = (op[1] >> 6) & 0x03; |
775 | -#line 559 "rx-decode.opc" | |
796 | +#line 580 "rx-decode.opc" | |
776 | 797 | int sp AU = op[1] & 0x03; |
777 | -#line 559 "rx-decode.opc" | |
798 | +#line 580 "rx-decode.opc" | |
778 | 799 | int rsrc AU = (op[3] >> 4) & 0x0f; |
779 | -#line 559 "rx-decode.opc" | |
800 | +#line 580 "rx-decode.opc" | |
780 | 801 | int rdst AU = op[3] & 0x0f; |
781 | 802 | if (trace) |
782 | 803 | { |
@@ -789,7 +810,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
789 | 810 | printf (" rdst = 0x%x\n", rdst); |
790 | 811 | } |
791 | 812 | SYNTAX("sbb %1%S1, %0"); |
792 | -#line 559 "rx-decode.opc" | |
813 | +#line 580 "rx-decode.opc" | |
793 | 814 | ID(sbb); SPm(sp, rsrc, mx); DR(rdst); F_OSZC; |
794 | 815 | |
795 | 816 | /*----------------------------------------------------------------------*/ |
@@ -807,13 +828,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
807 | 828 | op_semantics_8: |
808 | 829 | { |
809 | 830 | /** 0000 0110 mx10 00ss 0000 0100 rsrc rdst max %1%S1, %0 */ |
810 | -#line 598 "rx-decode.opc" | |
831 | +#line 619 "rx-decode.opc" | |
811 | 832 | int mx AU = (op[1] >> 6) & 0x03; |
812 | -#line 598 "rx-decode.opc" | |
833 | +#line 619 "rx-decode.opc" | |
813 | 834 | int ss AU = op[1] & 0x03; |
814 | -#line 598 "rx-decode.opc" | |
835 | +#line 619 "rx-decode.opc" | |
815 | 836 | int rsrc AU = (op[3] >> 4) & 0x0f; |
816 | -#line 598 "rx-decode.opc" | |
837 | +#line 619 "rx-decode.opc" | |
817 | 838 | int rdst AU = op[3] & 0x0f; |
818 | 839 | if (trace) |
819 | 840 | { |
@@ -826,7 +847,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
826 | 847 | printf (" rdst = 0x%x\n", rdst); |
827 | 848 | } |
828 | 849 | SYNTAX("max %1%S1, %0"); |
829 | -#line 598 "rx-decode.opc" | |
850 | +#line 619 "rx-decode.opc" | |
830 | 851 | ID(max); SPm(ss, rsrc, mx); DR(rdst); |
831 | 852 | |
832 | 853 | /*----------------------------------------------------------------------*/ |
@@ -844,13 +865,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
844 | 865 | op_semantics_9: |
845 | 866 | { |
846 | 867 | /** 0000 0110 mx10 00ss 0000 0101 rsrc rdst min %1%S1, %0 */ |
847 | -#line 610 "rx-decode.opc" | |
868 | +#line 631 "rx-decode.opc" | |
848 | 869 | int mx AU = (op[1] >> 6) & 0x03; |
849 | -#line 610 "rx-decode.opc" | |
870 | +#line 631 "rx-decode.opc" | |
850 | 871 | int ss AU = op[1] & 0x03; |
851 | -#line 610 "rx-decode.opc" | |
872 | +#line 631 "rx-decode.opc" | |
852 | 873 | int rsrc AU = (op[3] >> 4) & 0x0f; |
853 | -#line 610 "rx-decode.opc" | |
874 | +#line 631 "rx-decode.opc" | |
854 | 875 | int rdst AU = op[3] & 0x0f; |
855 | 876 | if (trace) |
856 | 877 | { |
@@ -863,7 +884,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
863 | 884 | printf (" rdst = 0x%x\n", rdst); |
864 | 885 | } |
865 | 886 | SYNTAX("min %1%S1, %0"); |
866 | -#line 610 "rx-decode.opc" | |
887 | +#line 631 "rx-decode.opc" | |
867 | 888 | ID(min); SPm(ss, rsrc, mx); DR(rdst); |
868 | 889 | |
869 | 890 | /*----------------------------------------------------------------------*/ |
@@ -881,13 +902,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
881 | 902 | op_semantics_10: |
882 | 903 | { |
883 | 904 | /** 0000 0110 mx10 00ss 0000 0110 rsrc rdst emul %1%S1, %0 */ |
884 | -#line 668 "rx-decode.opc" | |
905 | +#line 689 "rx-decode.opc" | |
885 | 906 | int mx AU = (op[1] >> 6) & 0x03; |
886 | -#line 668 "rx-decode.opc" | |
907 | +#line 689 "rx-decode.opc" | |
887 | 908 | int ss AU = op[1] & 0x03; |
888 | -#line 668 "rx-decode.opc" | |
909 | +#line 689 "rx-decode.opc" | |
889 | 910 | int rsrc AU = (op[3] >> 4) & 0x0f; |
890 | -#line 668 "rx-decode.opc" | |
911 | +#line 689 "rx-decode.opc" | |
891 | 912 | int rdst AU = op[3] & 0x0f; |
892 | 913 | if (trace) |
893 | 914 | { |
@@ -900,7 +921,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
900 | 921 | printf (" rdst = 0x%x\n", rdst); |
901 | 922 | } |
902 | 923 | SYNTAX("emul %1%S1, %0"); |
903 | -#line 668 "rx-decode.opc" | |
924 | +#line 689 "rx-decode.opc" | |
904 | 925 | ID(emul); SPm(ss, rsrc, mx); DR(rdst); |
905 | 926 | |
906 | 927 | /*----------------------------------------------------------------------*/ |
@@ -918,13 +939,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
918 | 939 | op_semantics_11: |
919 | 940 | { |
920 | 941 | /** 0000 0110 mx10 00ss 0000 0111 rsrc rdst emulu %1%S1, %0 */ |
921 | -#line 680 "rx-decode.opc" | |
942 | +#line 701 "rx-decode.opc" | |
922 | 943 | int mx AU = (op[1] >> 6) & 0x03; |
923 | -#line 680 "rx-decode.opc" | |
944 | +#line 701 "rx-decode.opc" | |
924 | 945 | int ss AU = op[1] & 0x03; |
925 | -#line 680 "rx-decode.opc" | |
946 | +#line 701 "rx-decode.opc" | |
926 | 947 | int rsrc AU = (op[3] >> 4) & 0x0f; |
927 | -#line 680 "rx-decode.opc" | |
948 | +#line 701 "rx-decode.opc" | |
928 | 949 | int rdst AU = op[3] & 0x0f; |
929 | 950 | if (trace) |
930 | 951 | { |
@@ -937,7 +958,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
937 | 958 | printf (" rdst = 0x%x\n", rdst); |
938 | 959 | } |
939 | 960 | SYNTAX("emulu %1%S1, %0"); |
940 | -#line 680 "rx-decode.opc" | |
961 | +#line 701 "rx-decode.opc" | |
941 | 962 | ID(emulu); SPm(ss, rsrc, mx); DR(rdst); |
942 | 963 | |
943 | 964 | /*----------------------------------------------------------------------*/ |
@@ -955,13 +976,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
955 | 976 | op_semantics_12: |
956 | 977 | { |
957 | 978 | /** 0000 0110 mx10 00ss 0000 1000 rsrc rdst div %1%S1, %0 */ |
958 | -#line 692 "rx-decode.opc" | |
979 | +#line 713 "rx-decode.opc" | |
959 | 980 | int mx AU = (op[1] >> 6) & 0x03; |
960 | -#line 692 "rx-decode.opc" | |
981 | +#line 713 "rx-decode.opc" | |
961 | 982 | int ss AU = op[1] & 0x03; |
962 | -#line 692 "rx-decode.opc" | |
983 | +#line 713 "rx-decode.opc" | |
963 | 984 | int rsrc AU = (op[3] >> 4) & 0x0f; |
964 | -#line 692 "rx-decode.opc" | |
985 | +#line 713 "rx-decode.opc" | |
965 | 986 | int rdst AU = op[3] & 0x0f; |
966 | 987 | if (trace) |
967 | 988 | { |
@@ -974,7 +995,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
974 | 995 | printf (" rdst = 0x%x\n", rdst); |
975 | 996 | } |
976 | 997 | SYNTAX("div %1%S1, %0"); |
977 | -#line 692 "rx-decode.opc" | |
998 | +#line 713 "rx-decode.opc" | |
978 | 999 | ID(div); SPm(ss, rsrc, mx); DR(rdst); F_O___; |
979 | 1000 | |
980 | 1001 | /*----------------------------------------------------------------------*/ |
@@ -992,13 +1013,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
992 | 1013 | op_semantics_13: |
993 | 1014 | { |
994 | 1015 | /** 0000 0110 mx10 00ss 0000 1001 rsrc rdst divu %1%S1, %0 */ |
995 | -#line 704 "rx-decode.opc" | |
1016 | +#line 725 "rx-decode.opc" | |
996 | 1017 | int mx AU = (op[1] >> 6) & 0x03; |
997 | -#line 704 "rx-decode.opc" | |
1018 | +#line 725 "rx-decode.opc" | |
998 | 1019 | int ss AU = op[1] & 0x03; |
999 | -#line 704 "rx-decode.opc" | |
1020 | +#line 725 "rx-decode.opc" | |
1000 | 1021 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1001 | -#line 704 "rx-decode.opc" | |
1022 | +#line 725 "rx-decode.opc" | |
1002 | 1023 | int rdst AU = op[3] & 0x0f; |
1003 | 1024 | if (trace) |
1004 | 1025 | { |
@@ -1011,7 +1032,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
1011 | 1032 | printf (" rdst = 0x%x\n", rdst); |
1012 | 1033 | } |
1013 | 1034 | SYNTAX("divu %1%S1, %0"); |
1014 | -#line 704 "rx-decode.opc" | |
1035 | +#line 725 "rx-decode.opc" | |
1015 | 1036 | ID(divu); SPm(ss, rsrc, mx); DR(rdst); F_O___; |
1016 | 1037 | |
1017 | 1038 | /*----------------------------------------------------------------------*/ |
@@ -1029,13 +1050,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
1029 | 1050 | op_semantics_14: |
1030 | 1051 | { |
1031 | 1052 | /** 0000 0110 mx10 00ss 0000 1100 rsrc rdst tst %1%S1, %2 */ |
1032 | -#line 477 "rx-decode.opc" | |
1053 | +#line 498 "rx-decode.opc" | |
1033 | 1054 | int mx AU = (op[1] >> 6) & 0x03; |
1034 | -#line 477 "rx-decode.opc" | |
1055 | +#line 498 "rx-decode.opc" | |
1035 | 1056 | int ss AU = op[1] & 0x03; |
1036 | -#line 477 "rx-decode.opc" | |
1057 | +#line 498 "rx-decode.opc" | |
1037 | 1058 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1038 | -#line 477 "rx-decode.opc" | |
1059 | +#line 498 "rx-decode.opc" | |
1039 | 1060 | int rdst AU = op[3] & 0x0f; |
1040 | 1061 | if (trace) |
1041 | 1062 | { |
@@ -1048,7 +1069,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
1048 | 1069 | printf (" rdst = 0x%x\n", rdst); |
1049 | 1070 | } |
1050 | 1071 | SYNTAX("tst %1%S1, %2"); |
1051 | -#line 477 "rx-decode.opc" | |
1072 | +#line 498 "rx-decode.opc" | |
1052 | 1073 | ID(and); SPm(ss, rsrc, mx); S2R(rdst); F__SZ_; |
1053 | 1074 | |
1054 | 1075 | /*----------------------------------------------------------------------*/ |
@@ -1066,13 +1087,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
1066 | 1087 | op_semantics_15: |
1067 | 1088 | { |
1068 | 1089 | /** 0000 0110 mx10 00ss 0000 1101 rsrc rdst xor %1%S1, %0 */ |
1069 | -#line 456 "rx-decode.opc" | |
1090 | +#line 477 "rx-decode.opc" | |
1070 | 1091 | int mx AU = (op[1] >> 6) & 0x03; |
1071 | -#line 456 "rx-decode.opc" | |
1092 | +#line 477 "rx-decode.opc" | |
1072 | 1093 | int ss AU = op[1] & 0x03; |
1073 | -#line 456 "rx-decode.opc" | |
1094 | +#line 477 "rx-decode.opc" | |
1074 | 1095 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1075 | -#line 456 "rx-decode.opc" | |
1096 | +#line 477 "rx-decode.opc" | |
1076 | 1097 | int rdst AU = op[3] & 0x0f; |
1077 | 1098 | if (trace) |
1078 | 1099 | { |
@@ -1085,7 +1106,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
1085 | 1106 | printf (" rdst = 0x%x\n", rdst); |
1086 | 1107 | } |
1087 | 1108 | SYNTAX("xor %1%S1, %0"); |
1088 | -#line 456 "rx-decode.opc" | |
1109 | +#line 477 "rx-decode.opc" | |
1089 | 1110 | ID(xor); SPm(ss, rsrc, mx); DR(rdst); F__SZ_; |
1090 | 1111 | |
1091 | 1112 | /*----------------------------------------------------------------------*/ |
@@ -1103,13 +1124,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
1103 | 1124 | op_semantics_16: |
1104 | 1125 | { |
1105 | 1126 | /** 0000 0110 mx10 00ss 0001 0000 rsrc rdst xchg %1%S1, %0 */ |
1106 | -#line 390 "rx-decode.opc" | |
1127 | +#line 411 "rx-decode.opc" | |
1107 | 1128 | int mx AU = (op[1] >> 6) & 0x03; |
1108 | -#line 390 "rx-decode.opc" | |
1129 | +#line 411 "rx-decode.opc" | |
1109 | 1130 | int ss AU = op[1] & 0x03; |
1110 | -#line 390 "rx-decode.opc" | |
1131 | +#line 411 "rx-decode.opc" | |
1111 | 1132 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1112 | -#line 390 "rx-decode.opc" | |
1133 | +#line 411 "rx-decode.opc" | |
1113 | 1134 | int rdst AU = op[3] & 0x0f; |
1114 | 1135 | if (trace) |
1115 | 1136 | { |
@@ -1122,7 +1143,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
1122 | 1143 | printf (" rdst = 0x%x\n", rdst); |
1123 | 1144 | } |
1124 | 1145 | SYNTAX("xchg %1%S1, %0"); |
1125 | -#line 390 "rx-decode.opc" | |
1146 | +#line 411 "rx-decode.opc" | |
1126 | 1147 | ID(xchg); DR(rdst); SPm(ss, rsrc, mx); |
1127 | 1148 | |
1128 | 1149 | /*----------------------------------------------------------------------*/ |
@@ -1140,13 +1161,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
1140 | 1161 | op_semantics_17: |
1141 | 1162 | { |
1142 | 1163 | /** 0000 0110 mx10 00sd 0001 0001 rsrc rdst itof %1%S1, %0 */ |
1143 | -#line 933 "rx-decode.opc" | |
1164 | +#line 954 "rx-decode.opc" | |
1144 | 1165 | int mx AU = (op[1] >> 6) & 0x03; |
1145 | -#line 933 "rx-decode.opc" | |
1166 | +#line 954 "rx-decode.opc" | |
1146 | 1167 | int sd AU = op[1] & 0x03; |
1147 | -#line 933 "rx-decode.opc" | |
1168 | +#line 954 "rx-decode.opc" | |
1148 | 1169 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1149 | -#line 933 "rx-decode.opc" | |
1170 | +#line 954 "rx-decode.opc" | |
1150 | 1171 | int rdst AU = op[3] & 0x0f; |
1151 | 1172 | if (trace) |
1152 | 1173 | { |
@@ -1159,7 +1180,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
1159 | 1180 | printf (" rdst = 0x%x\n", rdst); |
1160 | 1181 | } |
1161 | 1182 | SYNTAX("itof %1%S1, %0"); |
1162 | -#line 933 "rx-decode.opc" | |
1183 | +#line 954 "rx-decode.opc" | |
1163 | 1184 | ID(itof); DR (rdst); SPm(sd, rsrc, mx); F__SZ_; |
1164 | 1185 | |
1165 | 1186 | /*----------------------------------------------------------------------*/ |
@@ -1177,13 +1198,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
1177 | 1198 | op_semantics_18: |
1178 | 1199 | { |
1179 | 1200 | /** 0000 0110 mx10 00sd 0001 0101 rsrc rdst utof %1%S1, %0 */ |
1180 | -#line 1119 "rx-decode.opc" | |
1201 | +#line 1140 "rx-decode.opc" | |
1181 | 1202 | int mx AU = (op[1] >> 6) & 0x03; |
1182 | -#line 1119 "rx-decode.opc" | |
1203 | +#line 1140 "rx-decode.opc" | |
1183 | 1204 | int sd AU = op[1] & 0x03; |
1184 | -#line 1119 "rx-decode.opc" | |
1205 | +#line 1140 "rx-decode.opc" | |
1185 | 1206 | int rsrc AU = (op[3] >> 4) & 0x0f; |
1186 | -#line 1119 "rx-decode.opc" | |
1207 | +#line 1140 "rx-decode.opc" | |
1187 | 1208 | int rdst AU = op[3] & 0x0f; |
1188 | 1209 | if (trace) |
1189 | 1210 | { |
@@ -1196,9 +1217,12 @@ rx_decode_opcode (unsigned long pc AU, | ||
1196 | 1217 | printf (" rdst = 0x%x\n", rdst); |
1197 | 1218 | } |
1198 | 1219 | SYNTAX("utof %1%S1, %0"); |
1199 | -#line 1119 "rx-decode.opc" | |
1220 | +#line 1140 "rx-decode.opc" | |
1200 | 1221 | ID(utof); DR (rdst); SPm(sd, rsrc, mx); F__SZ_; |
1201 | 1222 | |
1223 | + /*----------------------------------------------------------------------*/ | |
1224 | + /* RXv3 enhanced */ | |
1225 | + | |
1202 | 1226 | } |
1203 | 1227 | break; |
1204 | 1228 | } |
@@ -2464,11 +2488,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
2464 | 2488 | op_semantics_19: |
2465 | 2489 | { |
2466 | 2490 | /** 0000 0110 1010 00ss 0000 0010 rsrc rdst adc %1%S1, %0 */ |
2467 | -#line 498 "rx-decode.opc" | |
2491 | +#line 519 "rx-decode.opc" | |
2468 | 2492 | int ss AU = op[1] & 0x03; |
2469 | -#line 498 "rx-decode.opc" | |
2493 | +#line 519 "rx-decode.opc" | |
2470 | 2494 | int rsrc AU = (op[3] >> 4) & 0x0f; |
2471 | -#line 498 "rx-decode.opc" | |
2495 | +#line 519 "rx-decode.opc" | |
2472 | 2496 | int rdst AU = op[3] & 0x0f; |
2473 | 2497 | if (trace) |
2474 | 2498 | { |
@@ -2480,7 +2504,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
2480 | 2504 | printf (" rdst = 0x%x\n", rdst); |
2481 | 2505 | } |
2482 | 2506 | SYNTAX("adc %1%S1, %0"); |
2483 | -#line 498 "rx-decode.opc" | |
2507 | +#line 519 "rx-decode.opc" | |
2484 | 2508 | ID(adc); SPm(ss, rsrc, 2); DR(rdst); F_OSZC; |
2485 | 2509 | |
2486 | 2510 | /*----------------------------------------------------------------------*/ |
@@ -3653,7 +3677,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3653 | 3677 | case 0x0f: |
3654 | 3678 | { |
3655 | 3679 | /** 0000 1dsp bra.s %a0 */ |
3656 | -#line 779 "rx-decode.opc" | |
3680 | +#line 800 "rx-decode.opc" | |
3657 | 3681 | int dsp AU = op[0] & 0x07; |
3658 | 3682 | if (trace) |
3659 | 3683 | { |
@@ -3663,7 +3687,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3663 | 3687 | printf (" dsp = 0x%x\n", dsp); |
3664 | 3688 | } |
3665 | 3689 | SYNTAX("bra.s %a0"); |
3666 | -#line 779 "rx-decode.opc" | |
3690 | +#line 800 "rx-decode.opc" | |
3667 | 3691 | ID(branch); DC(pc + dsp3map[dsp]); |
3668 | 3692 | |
3669 | 3693 | } |
@@ -3686,9 +3710,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
3686 | 3710 | case 0x1f: |
3687 | 3711 | { |
3688 | 3712 | /** 0001 n dsp b%1.s %a0 */ |
3689 | -#line 769 "rx-decode.opc" | |
3713 | +#line 790 "rx-decode.opc" | |
3690 | 3714 | int n AU = (op[0] >> 3) & 0x01; |
3691 | -#line 769 "rx-decode.opc" | |
3715 | +#line 790 "rx-decode.opc" | |
3692 | 3716 | int dsp AU = op[0] & 0x07; |
3693 | 3717 | if (trace) |
3694 | 3718 | { |
@@ -3699,7 +3723,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3699 | 3723 | printf (" dsp = 0x%x\n", dsp); |
3700 | 3724 | } |
3701 | 3725 | SYNTAX("b%1.s %a0"); |
3702 | -#line 769 "rx-decode.opc" | |
3726 | +#line 790 "rx-decode.opc" | |
3703 | 3727 | ID(branch); Scc(n); DC(pc + dsp3map[dsp]); |
3704 | 3728 | |
3705 | 3729 | } |
@@ -3721,7 +3745,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3721 | 3745 | case 0x2f: |
3722 | 3746 | { |
3723 | 3747 | /** 0010 cond b%1.b %a0 */ |
3724 | -#line 772 "rx-decode.opc" | |
3748 | +#line 793 "rx-decode.opc" | |
3725 | 3749 | int cond AU = op[0] & 0x0f; |
3726 | 3750 | if (trace) |
3727 | 3751 | { |
@@ -3731,7 +3755,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3731 | 3755 | printf (" cond = 0x%x\n", cond); |
3732 | 3756 | } |
3733 | 3757 | SYNTAX("b%1.b %a0"); |
3734 | -#line 772 "rx-decode.opc" | |
3758 | +#line 793 "rx-decode.opc" | |
3735 | 3759 | ID(branch); Scc(cond); DC(pc + IMMex (1)); |
3736 | 3760 | |
3737 | 3761 | } |
@@ -3746,7 +3770,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3746 | 3770 | op[0]); |
3747 | 3771 | } |
3748 | 3772 | SYNTAX("bra.b %a0"); |
3749 | -#line 782 "rx-decode.opc" | |
3773 | +#line 803 "rx-decode.opc" | |
3750 | 3774 | ID(branch); DC(pc + IMMex(1)); |
3751 | 3775 | |
3752 | 3776 | } |
@@ -3761,7 +3785,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3761 | 3785 | op[0]); |
3762 | 3786 | } |
3763 | 3787 | SYNTAX("bra.w %a0"); |
3764 | -#line 785 "rx-decode.opc" | |
3788 | +#line 806 "rx-decode.opc" | |
3765 | 3789 | ID(branch); DC(pc + IMMex(2)); |
3766 | 3790 | |
3767 | 3791 | } |
@@ -3776,7 +3800,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3776 | 3800 | op[0]); |
3777 | 3801 | } |
3778 | 3802 | SYNTAX("bsr.w %a0"); |
3779 | -#line 801 "rx-decode.opc" | |
3803 | +#line 822 "rx-decode.opc" | |
3780 | 3804 | ID(jsr); DC(pc + IMMex(2)); |
3781 | 3805 | |
3782 | 3806 | } |
@@ -3785,7 +3809,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3785 | 3809 | case 0x3b: |
3786 | 3810 | { |
3787 | 3811 | /** 0011 101c b%1.w %a0 */ |
3788 | -#line 775 "rx-decode.opc" | |
3812 | +#line 796 "rx-decode.opc" | |
3789 | 3813 | int c AU = op[0] & 0x01; |
3790 | 3814 | if (trace) |
3791 | 3815 | { |
@@ -3795,7 +3819,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3795 | 3819 | printf (" c = 0x%x\n", c); |
3796 | 3820 | } |
3797 | 3821 | SYNTAX("b%1.w %a0"); |
3798 | -#line 775 "rx-decode.opc" | |
3822 | +#line 796 "rx-decode.opc" | |
3799 | 3823 | ID(branch); Scc(c); DC(pc + IMMex (2)); |
3800 | 3824 | |
3801 | 3825 |
@@ -3809,13 +3833,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
3809 | 3833 | op_semantics_20: |
3810 | 3834 | { |
3811 | 3835 | /** 0011 11sz d dst sppp mov%s #%1, %0 */ |
3812 | -#line 311 "rx-decode.opc" | |
3836 | +#line 332 "rx-decode.opc" | |
3813 | 3837 | int sz AU = op[0] & 0x03; |
3814 | -#line 311 "rx-decode.opc" | |
3838 | +#line 332 "rx-decode.opc" | |
3815 | 3839 | int d AU = (op[1] >> 7) & 0x01; |
3816 | -#line 311 "rx-decode.opc" | |
3840 | +#line 332 "rx-decode.opc" | |
3817 | 3841 | int dst AU = (op[1] >> 4) & 0x07; |
3818 | -#line 311 "rx-decode.opc" | |
3842 | +#line 332 "rx-decode.opc" | |
3819 | 3843 | int sppp AU = op[1] & 0x0f; |
3820 | 3844 | if (trace) |
3821 | 3845 | { |
@@ -3828,7 +3852,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3828 | 3852 | printf (" sppp = 0x%x\n", sppp); |
3829 | 3853 | } |
3830 | 3854 | SYNTAX("mov%s #%1, %0"); |
3831 | -#line 311 "rx-decode.opc" | |
3855 | +#line 332 "rx-decode.opc" | |
3832 | 3856 | ID(mov); sBWL (sz); DIs(dst, d*16+sppp, sz); SC(IMM(1)); F_____; |
3833 | 3857 | |
3834 | 3858 | } |
@@ -3860,9 +3884,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
3860 | 3884 | case 0x00: |
3861 | 3885 | { |
3862 | 3886 | /** 0011 1111 rega regb rtsd #%1, %2-%0 */ |
3863 | -#line 408 "rx-decode.opc" | |
3887 | +#line 429 "rx-decode.opc" | |
3864 | 3888 | int rega AU = (op[1] >> 4) & 0x0f; |
3865 | -#line 408 "rx-decode.opc" | |
3889 | +#line 429 "rx-decode.opc" | |
3866 | 3890 | int regb AU = op[1] & 0x0f; |
3867 | 3891 | if (trace) |
3868 | 3892 | { |
@@ -3873,7 +3897,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3873 | 3897 | printf (" regb = 0x%x\n", regb); |
3874 | 3898 | } |
3875 | 3899 | SYNTAX("rtsd #%1, %2-%0"); |
3876 | -#line 408 "rx-decode.opc" | |
3900 | +#line 429 "rx-decode.opc" | |
3877 | 3901 | ID(rtsd); SC(IMM(1) * 4); S2R(rega); DR(regb); |
3878 | 3902 | |
3879 | 3903 | /*----------------------------------------------------------------------*/ |
@@ -3891,11 +3915,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
3891 | 3915 | op_semantics_21: |
3892 | 3916 | { |
3893 | 3917 | /** 0100 00ss rsrc rdst sub %2%S2, %1 */ |
3894 | -#line 543 "rx-decode.opc" | |
3918 | +#line 564 "rx-decode.opc" | |
3895 | 3919 | int ss AU = op[0] & 0x03; |
3896 | -#line 543 "rx-decode.opc" | |
3920 | +#line 564 "rx-decode.opc" | |
3897 | 3921 | int rsrc AU = (op[1] >> 4) & 0x0f; |
3898 | -#line 543 "rx-decode.opc" | |
3922 | +#line 564 "rx-decode.opc" | |
3899 | 3923 | int rdst AU = op[1] & 0x0f; |
3900 | 3924 | if (trace) |
3901 | 3925 | { |
@@ -3907,7 +3931,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3907 | 3931 | printf (" rdst = 0x%x\n", rdst); |
3908 | 3932 | } |
3909 | 3933 | SYNTAX("sub %2%S2, %1"); |
3910 | -#line 543 "rx-decode.opc" | |
3934 | +#line 564 "rx-decode.opc" | |
3911 | 3935 | ID(sub); S2P(ss, rsrc); SR(rdst); DR(rdst); F_OSZC; |
3912 | 3936 | |
3913 | 3937 | } |
@@ -3949,11 +3973,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
3949 | 3973 | op_semantics_22: |
3950 | 3974 | { |
3951 | 3975 | /** 0100 01ss rsrc rdst cmp %2%S2, %1 */ |
3952 | -#line 531 "rx-decode.opc" | |
3976 | +#line 552 "rx-decode.opc" | |
3953 | 3977 | int ss AU = op[0] & 0x03; |
3954 | -#line 531 "rx-decode.opc" | |
3978 | +#line 552 "rx-decode.opc" | |
3955 | 3979 | int rsrc AU = (op[1] >> 4) & 0x0f; |
3956 | -#line 531 "rx-decode.opc" | |
3980 | +#line 552 "rx-decode.opc" | |
3957 | 3981 | int rdst AU = op[1] & 0x0f; |
3958 | 3982 | if (trace) |
3959 | 3983 | { |
@@ -3965,7 +3989,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
3965 | 3989 | printf (" rdst = 0x%x\n", rdst); |
3966 | 3990 | } |
3967 | 3991 | SYNTAX("cmp %2%S2, %1"); |
3968 | -#line 531 "rx-decode.opc" | |
3992 | +#line 552 "rx-decode.opc" | |
3969 | 3993 | ID(sub); S2P(ss, rsrc); SR(rdst); F_OSZC; |
3970 | 3994 | |
3971 | 3995 | } |
@@ -4007,11 +4031,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4007 | 4031 | op_semantics_23: |
4008 | 4032 | { |
4009 | 4033 | /** 0100 10ss rsrc rdst add %1%S1, %0 */ |
4010 | -#line 507 "rx-decode.opc" | |
4034 | +#line 528 "rx-decode.opc" | |
4011 | 4035 | int ss AU = op[0] & 0x03; |
4012 | -#line 507 "rx-decode.opc" | |
4036 | +#line 528 "rx-decode.opc" | |
4013 | 4037 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4014 | -#line 507 "rx-decode.opc" | |
4038 | +#line 528 "rx-decode.opc" | |
4015 | 4039 | int rdst AU = op[1] & 0x0f; |
4016 | 4040 | if (trace) |
4017 | 4041 | { |
@@ -4023,7 +4047,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4023 | 4047 | printf (" rdst = 0x%x\n", rdst); |
4024 | 4048 | } |
4025 | 4049 | SYNTAX("add %1%S1, %0"); |
4026 | -#line 507 "rx-decode.opc" | |
4050 | +#line 528 "rx-decode.opc" | |
4027 | 4051 | ID(add); SP(ss, rsrc); DR(rdst); F_OSZC; |
4028 | 4052 | |
4029 | 4053 | } |
@@ -4065,11 +4089,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4065 | 4089 | op_semantics_24: |
4066 | 4090 | { |
4067 | 4091 | /** 0100 11ss rsrc rdst mul %1%S1, %0 */ |
4068 | -#line 650 "rx-decode.opc" | |
4092 | +#line 671 "rx-decode.opc" | |
4069 | 4093 | int ss AU = op[0] & 0x03; |
4070 | -#line 650 "rx-decode.opc" | |
4094 | +#line 671 "rx-decode.opc" | |
4071 | 4095 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4072 | -#line 650 "rx-decode.opc" | |
4096 | +#line 671 "rx-decode.opc" | |
4073 | 4097 | int rdst AU = op[1] & 0x0f; |
4074 | 4098 | if (trace) |
4075 | 4099 | { |
@@ -4081,7 +4105,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4081 | 4105 | printf (" rdst = 0x%x\n", rdst); |
4082 | 4106 | } |
4083 | 4107 | SYNTAX("mul %1%S1, %0"); |
4084 | -#line 650 "rx-decode.opc" | |
4108 | +#line 671 "rx-decode.opc" | |
4085 | 4109 | ID(mul); SP(ss, rsrc); DR(rdst); F_____; |
4086 | 4110 | |
4087 | 4111 | } |
@@ -4123,11 +4147,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4123 | 4147 | op_semantics_25: |
4124 | 4148 | { |
4125 | 4149 | /** 0101 00ss rsrc rdst and %1%S1, %0 */ |
4126 | -#line 420 "rx-decode.opc" | |
4150 | +#line 441 "rx-decode.opc" | |
4127 | 4151 | int ss AU = op[0] & 0x03; |
4128 | -#line 420 "rx-decode.opc" | |
4152 | +#line 441 "rx-decode.opc" | |
4129 | 4153 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4130 | -#line 420 "rx-decode.opc" | |
4154 | +#line 441 "rx-decode.opc" | |
4131 | 4155 | int rdst AU = op[1] & 0x0f; |
4132 | 4156 | if (trace) |
4133 | 4157 | { |
@@ -4139,7 +4163,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4139 | 4163 | printf (" rdst = 0x%x\n", rdst); |
4140 | 4164 | } |
4141 | 4165 | SYNTAX("and %1%S1, %0"); |
4142 | -#line 420 "rx-decode.opc" | |
4166 | +#line 441 "rx-decode.opc" | |
4143 | 4167 | ID(and); SP(ss, rsrc); DR(rdst); F__SZ_; |
4144 | 4168 | |
4145 | 4169 | } |
@@ -4181,11 +4205,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4181 | 4205 | op_semantics_26: |
4182 | 4206 | { |
4183 | 4207 | /** 0101 01ss rsrc rdst or %1%S1, %0 */ |
4184 | -#line 438 "rx-decode.opc" | |
4208 | +#line 459 "rx-decode.opc" | |
4185 | 4209 | int ss AU = op[0] & 0x03; |
4186 | -#line 438 "rx-decode.opc" | |
4210 | +#line 459 "rx-decode.opc" | |
4187 | 4211 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4188 | -#line 438 "rx-decode.opc" | |
4212 | +#line 459 "rx-decode.opc" | |
4189 | 4213 | int rdst AU = op[1] & 0x0f; |
4190 | 4214 | if (trace) |
4191 | 4215 | { |
@@ -4197,7 +4221,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4197 | 4221 | printf (" rdst = 0x%x\n", rdst); |
4198 | 4222 | } |
4199 | 4223 | SYNTAX("or %1%S1, %0"); |
4200 | -#line 438 "rx-decode.opc" | |
4224 | +#line 459 "rx-decode.opc" | |
4201 | 4225 | ID(or); SP(ss, rsrc); DR(rdst); F__SZ_; |
4202 | 4226 | |
4203 | 4227 | } |
@@ -4239,13 +4263,13 @@ rx_decode_opcode (unsigned long pc AU, | ||
4239 | 4263 | op_semantics_27: |
4240 | 4264 | { |
4241 | 4265 | /** 0101 1 s ss rsrc rdst movu%s %1, %0 */ |
4242 | -#line 359 "rx-decode.opc" | |
4266 | +#line 380 "rx-decode.opc" | |
4243 | 4267 | int s AU = (op[0] >> 2) & 0x01; |
4244 | -#line 359 "rx-decode.opc" | |
4268 | +#line 380 "rx-decode.opc" | |
4245 | 4269 | int ss AU = op[0] & 0x03; |
4246 | -#line 359 "rx-decode.opc" | |
4270 | +#line 380 "rx-decode.opc" | |
4247 | 4271 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4248 | -#line 359 "rx-decode.opc" | |
4272 | +#line 380 "rx-decode.opc" | |
4249 | 4273 | int rdst AU = op[1] & 0x0f; |
4250 | 4274 | if (trace) |
4251 | 4275 | { |
@@ -4258,7 +4282,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4258 | 4282 | printf (" rdst = 0x%x\n", rdst); |
4259 | 4283 | } |
4260 | 4284 | SYNTAX("movu%s %1, %0"); |
4261 | -#line 359 "rx-decode.opc" | |
4285 | +#line 380 "rx-decode.opc" | |
4262 | 4286 | ID(mov); uBW(s); SD(ss, rsrc, s); DR(rdst); F_____; |
4263 | 4287 | |
4264 | 4288 | } |
@@ -4335,9 +4359,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4335 | 4359 | case 0x00: |
4336 | 4360 | { |
4337 | 4361 | /** 0110 0000 immm rdst sub #%2, %0 */ |
4338 | -#line 540 "rx-decode.opc" | |
4362 | +#line 561 "rx-decode.opc" | |
4339 | 4363 | int immm AU = (op[1] >> 4) & 0x0f; |
4340 | -#line 540 "rx-decode.opc" | |
4364 | +#line 561 "rx-decode.opc" | |
4341 | 4365 | int rdst AU = op[1] & 0x0f; |
4342 | 4366 | if (trace) |
4343 | 4367 | { |
@@ -4348,7 +4372,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4348 | 4372 | printf (" rdst = 0x%x\n", rdst); |
4349 | 4373 | } |
4350 | 4374 | SYNTAX("sub #%2, %0"); |
4351 | -#line 540 "rx-decode.opc" | |
4375 | +#line 561 "rx-decode.opc" | |
4352 | 4376 | ID(sub); S2C(immm); SR(rdst); DR(rdst); F_OSZC; |
4353 | 4377 | |
4354 | 4378 | } |
@@ -4362,9 +4386,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4362 | 4386 | case 0x00: |
4363 | 4387 | { |
4364 | 4388 | /** 0110 0001 immm rdst cmp #%2, %1 */ |
4365 | -#line 522 "rx-decode.opc" | |
4389 | +#line 543 "rx-decode.opc" | |
4366 | 4390 | int immm AU = (op[1] >> 4) & 0x0f; |
4367 | -#line 522 "rx-decode.opc" | |
4391 | +#line 543 "rx-decode.opc" | |
4368 | 4392 | int rdst AU = op[1] & 0x0f; |
4369 | 4393 | if (trace) |
4370 | 4394 | { |
@@ -4375,7 +4399,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4375 | 4399 | printf (" rdst = 0x%x\n", rdst); |
4376 | 4400 | } |
4377 | 4401 | SYNTAX("cmp #%2, %1"); |
4378 | -#line 522 "rx-decode.opc" | |
4402 | +#line 543 "rx-decode.opc" | |
4379 | 4403 | ID(sub); S2C(immm); SR(rdst); F_OSZC; |
4380 | 4404 | |
4381 | 4405 | } |
@@ -4389,9 +4413,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4389 | 4413 | case 0x00: |
4390 | 4414 | { |
4391 | 4415 | /** 0110 0010 immm rdst add #%1, %0 */ |
4392 | -#line 504 "rx-decode.opc" | |
4416 | +#line 525 "rx-decode.opc" | |
4393 | 4417 | int immm AU = (op[1] >> 4) & 0x0f; |
4394 | -#line 504 "rx-decode.opc" | |
4418 | +#line 525 "rx-decode.opc" | |
4395 | 4419 | int rdst AU = op[1] & 0x0f; |
4396 | 4420 | if (trace) |
4397 | 4421 | { |
@@ -4402,7 +4426,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4402 | 4426 | printf (" rdst = 0x%x\n", rdst); |
4403 | 4427 | } |
4404 | 4428 | SYNTAX("add #%1, %0"); |
4405 | -#line 504 "rx-decode.opc" | |
4429 | +#line 525 "rx-decode.opc" | |
4406 | 4430 | ID(add); SC(immm); DR(rdst); F_OSZC; |
4407 | 4431 | |
4408 | 4432 | } |
@@ -4416,9 +4440,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4416 | 4440 | case 0x00: |
4417 | 4441 | { |
4418 | 4442 | /** 0110 0011 immm rdst mul #%1, %0 */ |
4419 | -#line 616 "rx-decode.opc" | |
4443 | +#line 637 "rx-decode.opc" | |
4420 | 4444 | int immm AU = (op[1] >> 4) & 0x0f; |
4421 | -#line 616 "rx-decode.opc" | |
4445 | +#line 637 "rx-decode.opc" | |
4422 | 4446 | int rdst AU = op[1] & 0x0f; |
4423 | 4447 | if (trace) |
4424 | 4448 | { |
@@ -4429,7 +4453,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4429 | 4453 | printf (" rdst = 0x%x\n", rdst); |
4430 | 4454 | } |
4431 | 4455 | SYNTAX("mul #%1, %0"); |
4432 | -#line 616 "rx-decode.opc" | |
4456 | +#line 637 "rx-decode.opc" | |
4433 | 4457 | if (immm == 1 && rdst == 0) |
4434 | 4458 | { |
4435 | 4459 | ID(nop2); |
@@ -4452,9 +4476,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4452 | 4476 | case 0x00: |
4453 | 4477 | { |
4454 | 4478 | /** 0110 0100 immm rdst and #%1, %0 */ |
4455 | -#line 414 "rx-decode.opc" | |
4479 | +#line 435 "rx-decode.opc" | |
4456 | 4480 | int immm AU = (op[1] >> 4) & 0x0f; |
4457 | -#line 414 "rx-decode.opc" | |
4481 | +#line 435 "rx-decode.opc" | |
4458 | 4482 | int rdst AU = op[1] & 0x0f; |
4459 | 4483 | if (trace) |
4460 | 4484 | { |
@@ -4465,7 +4489,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4465 | 4489 | printf (" rdst = 0x%x\n", rdst); |
4466 | 4490 | } |
4467 | 4491 | SYNTAX("and #%1, %0"); |
4468 | -#line 414 "rx-decode.opc" | |
4492 | +#line 435 "rx-decode.opc" | |
4469 | 4493 | ID(and); SC(immm); DR(rdst); F__SZ_; |
4470 | 4494 | |
4471 | 4495 | } |
@@ -4479,9 +4503,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4479 | 4503 | case 0x00: |
4480 | 4504 | { |
4481 | 4505 | /** 0110 0101 immm rdst or #%1, %0 */ |
4482 | -#line 432 "rx-decode.opc" | |
4506 | +#line 453 "rx-decode.opc" | |
4483 | 4507 | int immm AU = (op[1] >> 4) & 0x0f; |
4484 | -#line 432 "rx-decode.opc" | |
4508 | +#line 453 "rx-decode.opc" | |
4485 | 4509 | int rdst AU = op[1] & 0x0f; |
4486 | 4510 | if (trace) |
4487 | 4511 | { |
@@ -4492,7 +4516,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4492 | 4516 | printf (" rdst = 0x%x\n", rdst); |
4493 | 4517 | } |
4494 | 4518 | SYNTAX("or #%1, %0"); |
4495 | -#line 432 "rx-decode.opc" | |
4519 | +#line 453 "rx-decode.opc" | |
4496 | 4520 | ID(or); SC(immm); DR(rdst); F__SZ_; |
4497 | 4521 | |
4498 | 4522 | } |
@@ -4506,9 +4530,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4506 | 4530 | case 0x00: |
4507 | 4531 | { |
4508 | 4532 | /** 0110 0110 immm rdst mov%s #%1, %0 */ |
4509 | -#line 308 "rx-decode.opc" | |
4533 | +#line 329 "rx-decode.opc" | |
4510 | 4534 | int immm AU = (op[1] >> 4) & 0x0f; |
4511 | -#line 308 "rx-decode.opc" | |
4535 | +#line 329 "rx-decode.opc" | |
4512 | 4536 | int rdst AU = op[1] & 0x0f; |
4513 | 4537 | if (trace) |
4514 | 4538 | { |
@@ -4519,7 +4543,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4519 | 4543 | printf (" rdst = 0x%x\n", rdst); |
4520 | 4544 | } |
4521 | 4545 | SYNTAX("mov%s #%1, %0"); |
4522 | -#line 308 "rx-decode.opc" | |
4546 | +#line 329 "rx-decode.opc" | |
4523 | 4547 | ID(mov); DR(rdst); SC(immm); F_____; |
4524 | 4548 | |
4525 | 4549 | } |
@@ -4536,7 +4560,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4536 | 4560 | op[0]); |
4537 | 4561 | } |
4538 | 4562 | SYNTAX("rtsd #%1"); |
4539 | -#line 405 "rx-decode.opc" | |
4563 | +#line 426 "rx-decode.opc" | |
4540 | 4564 | ID(rtsd); SC(IMM(1) * 4); |
4541 | 4565 | |
4542 | 4566 | } |
@@ -4549,11 +4573,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4549 | 4573 | op_semantics_28: |
4550 | 4574 | { |
4551 | 4575 | /** 0110 100i mmmm rdst shlr #%2, %0 */ |
4552 | -#line 730 "rx-decode.opc" | |
4576 | +#line 751 "rx-decode.opc" | |
4553 | 4577 | int i AU = op[0] & 0x01; |
4554 | -#line 730 "rx-decode.opc" | |
4578 | +#line 751 "rx-decode.opc" | |
4555 | 4579 | int mmmm AU = (op[1] >> 4) & 0x0f; |
4556 | -#line 730 "rx-decode.opc" | |
4580 | +#line 751 "rx-decode.opc" | |
4557 | 4581 | int rdst AU = op[1] & 0x0f; |
4558 | 4582 | if (trace) |
4559 | 4583 | { |
@@ -4565,7 +4589,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4565 | 4589 | printf (" rdst = 0x%x\n", rdst); |
4566 | 4590 | } |
4567 | 4591 | SYNTAX("shlr #%2, %0"); |
4568 | -#line 730 "rx-decode.opc" | |
4592 | +#line 751 "rx-decode.opc" | |
4569 | 4593 | ID(shlr); S2C(i*16+mmmm); SR(rdst); DR(rdst); F__SZC; |
4570 | 4594 | |
4571 | 4595 | } |
@@ -4589,11 +4613,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4589 | 4613 | op_semantics_29: |
4590 | 4614 | { |
4591 | 4615 | /** 0110 101i mmmm rdst shar #%2, %0 */ |
4592 | -#line 720 "rx-decode.opc" | |
4616 | +#line 741 "rx-decode.opc" | |
4593 | 4617 | int i AU = op[0] & 0x01; |
4594 | -#line 720 "rx-decode.opc" | |
4618 | +#line 741 "rx-decode.opc" | |
4595 | 4619 | int mmmm AU = (op[1] >> 4) & 0x0f; |
4596 | -#line 720 "rx-decode.opc" | |
4620 | +#line 741 "rx-decode.opc" | |
4597 | 4621 | int rdst AU = op[1] & 0x0f; |
4598 | 4622 | if (trace) |
4599 | 4623 | { |
@@ -4605,7 +4629,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4605 | 4629 | printf (" rdst = 0x%x\n", rdst); |
4606 | 4630 | } |
4607 | 4631 | SYNTAX("shar #%2, %0"); |
4608 | -#line 720 "rx-decode.opc" | |
4632 | +#line 741 "rx-decode.opc" | |
4609 | 4633 | ID(shar); S2C(i*16+mmmm); SR(rdst); DR(rdst); F_0SZC; |
4610 | 4634 | |
4611 | 4635 | } |
@@ -4629,11 +4653,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4629 | 4653 | op_semantics_30: |
4630 | 4654 | { |
4631 | 4655 | /** 0110 110i mmmm rdst shll #%2, %0 */ |
4632 | -#line 710 "rx-decode.opc" | |
4656 | +#line 731 "rx-decode.opc" | |
4633 | 4657 | int i AU = op[0] & 0x01; |
4634 | -#line 710 "rx-decode.opc" | |
4658 | +#line 731 "rx-decode.opc" | |
4635 | 4659 | int mmmm AU = (op[1] >> 4) & 0x0f; |
4636 | -#line 710 "rx-decode.opc" | |
4660 | +#line 731 "rx-decode.opc" | |
4637 | 4661 | int rdst AU = op[1] & 0x0f; |
4638 | 4662 | if (trace) |
4639 | 4663 | { |
@@ -4645,7 +4669,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4645 | 4669 | printf (" rdst = 0x%x\n", rdst); |
4646 | 4670 | } |
4647 | 4671 | SYNTAX("shll #%2, %0"); |
4648 | -#line 710 "rx-decode.opc" | |
4672 | +#line 731 "rx-decode.opc" | |
4649 | 4673 | ID(shll); S2C(i*16+mmmm); SR(rdst); DR(rdst); F_OSZC; |
4650 | 4674 | |
4651 | 4675 | } |
@@ -4668,9 +4692,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4668 | 4692 | case 0x00: |
4669 | 4693 | { |
4670 | 4694 | /** 0110 1110 dsta dstb pushm %1-%2 */ |
4671 | -#line 372 "rx-decode.opc" | |
4695 | +#line 393 "rx-decode.opc" | |
4672 | 4696 | int dsta AU = (op[1] >> 4) & 0x0f; |
4673 | -#line 372 "rx-decode.opc" | |
4697 | +#line 393 "rx-decode.opc" | |
4674 | 4698 | int dstb AU = op[1] & 0x0f; |
4675 | 4699 | if (trace) |
4676 | 4700 | { |
@@ -4681,7 +4705,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4681 | 4705 | printf (" dstb = 0x%x\n", dstb); |
4682 | 4706 | } |
4683 | 4707 | SYNTAX("pushm %1-%2"); |
4684 | -#line 372 "rx-decode.opc" | |
4708 | +#line 393 "rx-decode.opc" | |
4685 | 4709 | ID(pushm); SR(dsta); S2R(dstb); F_____; |
4686 | 4710 | |
4687 | 4711 | } |
@@ -4695,9 +4719,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4695 | 4719 | case 0x00: |
4696 | 4720 | { |
4697 | 4721 | /** 0110 1111 dsta dstb popm %1-%2 */ |
4698 | -#line 369 "rx-decode.opc" | |
4722 | +#line 390 "rx-decode.opc" | |
4699 | 4723 | int dsta AU = (op[1] >> 4) & 0x0f; |
4700 | -#line 369 "rx-decode.opc" | |
4724 | +#line 390 "rx-decode.opc" | |
4701 | 4725 | int dstb AU = op[1] & 0x0f; |
4702 | 4726 | if (trace) |
4703 | 4727 | { |
@@ -4708,7 +4732,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4708 | 4732 | printf (" dstb = 0x%x\n", dstb); |
4709 | 4733 | } |
4710 | 4734 | SYNTAX("popm %1-%2"); |
4711 | -#line 369 "rx-decode.opc" | |
4735 | +#line 390 "rx-decode.opc" | |
4712 | 4736 | ID(popm); SR(dsta); S2R(dstb); F_____; |
4713 | 4737 | |
4714 | 4738 | } |
@@ -4723,11 +4747,11 @@ rx_decode_opcode (unsigned long pc AU, | ||
4723 | 4747 | op_semantics_31: |
4724 | 4748 | { |
4725 | 4749 | /** 0111 00im rsrc rdst add #%1, %2, %0 */ |
4726 | -#line 513 "rx-decode.opc" | |
4750 | +#line 534 "rx-decode.opc" | |
4727 | 4751 | int im AU = op[0] & 0x03; |
4728 | -#line 513 "rx-decode.opc" | |
4752 | +#line 534 "rx-decode.opc" | |
4729 | 4753 | int rsrc AU = (op[1] >> 4) & 0x0f; |
4730 | -#line 513 "rx-decode.opc" | |
4754 | +#line 534 "rx-decode.opc" | |
4731 | 4755 | int rdst AU = op[1] & 0x0f; |
4732 | 4756 | if (trace) |
4733 | 4757 | { |
@@ -4739,7 +4763,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4739 | 4763 | printf (" rdst = 0x%x\n", rdst); |
4740 | 4764 | } |
4741 | 4765 | SYNTAX("add #%1, %2, %0"); |
4742 | -#line 513 "rx-decode.opc" | |
4766 | +#line 534 "rx-decode.opc" | |
4743 | 4767 | ID(add); SC(IMMex(im)); S2R(rsrc); DR(rdst); F_OSZC; |
4744 | 4768 | |
4745 | 4769 | } |
@@ -4781,9 +4805,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4781 | 4805 | op_semantics_32: |
4782 | 4806 | { |
4783 | 4807 | /** 0111 01im 0000 rsrc cmp #%2, %1%S1 */ |
4784 | -#line 525 "rx-decode.opc" | |
4808 | +#line 546 "rx-decode.opc" | |
4785 | 4809 | int im AU = op[0] & 0x03; |
4786 | -#line 525 "rx-decode.opc" | |
4810 | +#line 546 "rx-decode.opc" | |
4787 | 4811 | int rsrc AU = op[1] & 0x0f; |
4788 | 4812 | if (trace) |
4789 | 4813 | { |
@@ -4794,7 +4818,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4794 | 4818 | printf (" rsrc = 0x%x\n", rsrc); |
4795 | 4819 | } |
4796 | 4820 | SYNTAX("cmp #%2, %1%S1"); |
4797 | -#line 525 "rx-decode.opc" | |
4821 | +#line 546 "rx-decode.opc" | |
4798 | 4822 | ID(sub); SR(rsrc); S2C(IMMex(im)); F_OSZC; |
4799 | 4823 | |
4800 | 4824 | } |
@@ -4803,9 +4827,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4803 | 4827 | op_semantics_33: |
4804 | 4828 | { |
4805 | 4829 | /** 0111 01im 0001rdst mul #%1, %0 */ |
4806 | -#line 628 "rx-decode.opc" | |
4830 | +#line 649 "rx-decode.opc" | |
4807 | 4831 | int im AU = op[0] & 0x03; |
4808 | -#line 628 "rx-decode.opc" | |
4832 | +#line 649 "rx-decode.opc" | |
4809 | 4833 | int rdst AU = op[1] & 0x0f; |
4810 | 4834 | if (trace) |
4811 | 4835 | { |
@@ -4816,7 +4840,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4816 | 4840 | printf (" rdst = 0x%x\n", rdst); |
4817 | 4841 | } |
4818 | 4842 | SYNTAX("mul #%1, %0"); |
4819 | -#line 628 "rx-decode.opc" | |
4843 | +#line 649 "rx-decode.opc" | |
4820 | 4844 | int val = IMMex(im); |
4821 | 4845 | if (val == 1 && rdst == 0) |
4822 | 4846 | { |
@@ -4844,9 +4868,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4844 | 4868 | op_semantics_34: |
4845 | 4869 | { |
4846 | 4870 | /** 0111 01im 0010 rdst and #%1, %0 */ |
4847 | -#line 417 "rx-decode.opc" | |
4871 | +#line 438 "rx-decode.opc" | |
4848 | 4872 | int im AU = op[0] & 0x03; |
4849 | -#line 417 "rx-decode.opc" | |
4873 | +#line 438 "rx-decode.opc" | |
4850 | 4874 | int rdst AU = op[1] & 0x0f; |
4851 | 4875 | if (trace) |
4852 | 4876 | { |
@@ -4857,7 +4881,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4857 | 4881 | printf (" rdst = 0x%x\n", rdst); |
4858 | 4882 | } |
4859 | 4883 | SYNTAX("and #%1, %0"); |
4860 | -#line 417 "rx-decode.opc" | |
4884 | +#line 438 "rx-decode.opc" | |
4861 | 4885 | ID(and); SC(IMMex(im)); DR(rdst); F__SZ_; |
4862 | 4886 | |
4863 | 4887 | } |
@@ -4866,9 +4890,9 @@ rx_decode_opcode (unsigned long pc AU, | ||
4866 | 4890 | op_semantics_35: |
4867 | 4891 | { |
4868 | 4892 | /** 0111 01im 0011 rdst or #%1, %0 */ |
4869 | -#line 435 "rx-decode.opc" | |
4893 | +#line 456 "rx-decode.opc" | |
4870 | 4894 | int im AU = op[0] & 0x03; |
4871 | -#line 435 "rx-decode.opc" | |
4895 | +#line 456 "rx-decode.opc" | |
4872 | 4896 | int rdst AU = op[1] & 0x0f; |
4873 | 4897 | if (trace) |
4874 | 4898 | { |
@@ -4879,7 +4903,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4879 | 4903 | printf (" rdst = 0x%x\n", rdst); |
4880 | 4904 | } |
4881 | 4905 | SYNTAX("or #%1, %0"); |
4882 | -#line 435 "rx-decode.opc" | |
4906 | +#line 456 "rx-decode.opc" | |
4883 | 4907 | ID(or); SC(IMMex(im)); DR(rdst); F__SZ_; |
4884 | 4908 | |
4885 | 4909 | } |
@@ -4981,7 +5005,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4981 | 5005 | case 0x4f: |
4982 | 5006 | { |
4983 | 5007 | /** 0111 0101 0100 rdst mov%s #%1, %0 */ |
4984 | -#line 289 "rx-decode.opc" | |
5008 | +#line 310 "rx-decode.opc" | |
4985 | 5009 | int rdst AU = op[1] & 0x0f; |
4986 | 5010 | if (trace) |
4987 | 5011 | { |
@@ -4991,7 +5015,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
4991 | 5015 | printf (" rdst = 0x%x\n", rdst); |
4992 | 5016 | } |
4993 | 5017 | SYNTAX("mov%s #%1, %0"); |
4994 | -#line 289 "rx-decode.opc" | |
5018 | +#line 310 "rx-decode.opc" | |
4995 | 5019 | ID(mov); DR(rdst); SC(IMM (1)); F_____; |
4996 | 5020 | |
4997 | 5021 | } |
@@ -5014,7 +5038,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
5014 | 5038 | case 0x5f: |
5015 | 5039 | { |
5016 | 5040 | /** 0111 0101 0101 rsrc cmp #%2, %1 */ |
5017 | -#line 528 "rx-decode.opc" | |
5041 | +#line 549 "rx-decode.opc" | |
5018 | 5042 | int rsrc AU = op[1] & 0x0f; |
5019 | 5043 | if (trace) |
5020 | 5044 | { |
@@ -5024,7 +5048,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
5024 | 5048 | printf (" rsrc = 0x%x\n", rsrc); |
5025 | 5049 | } |
5026 | 5050 | SYNTAX("cmp #%2, %1"); |
5027 | -#line 528 "rx-decode.opc" | |
5051 | +#line 549 "rx-decode.opc" | |
5028 | 5052 | ID(sub); SR(rsrc); S2C(IMM(1)); F_OSZC; |
5029 | 5053 | |
5030 | 5054 | } |
@@ -5039,7 +5063,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
5039 | 5063 | op[0], op[1]); |
5040 | 5064 | } |
5041 | 5065 | SYNTAX("int #%1"); |
5042 | -#line 1035 "rx-decode.opc" | |
5066 | +#line 1056 "rx-decode.opc" | |
5043 | 5067 | ID(int); SC(IMM(1)); |
5044 | 5068 | |
5045 | 5069 | } |
@@ -5051,7 +5075,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
5051 | 5075 | case 0x00: |
5052 | 5076 | { |
5053 | 5077 | /** 0111 0101 0111 0000 0000 immm mvtipl #%1 */ |
5054 | -#line 1002 "rx-decode.opc" | |
5078 | +#line 1023 "rx-decode.opc" | |
5055 | 5079 | int immm AU = op[2] & 0x0f; |
5056 | 5080 | if (trace) |
5057 | 5081 | { |
@@ -5061,7 +5085,7 @@ rx_decode_opcode (unsigned long pc AU, | ||
5061 | 5085 | printf (" immm = 0x%x\n", immm); |
5062 | 5086 | } |
5063 | 5087 | SYNTAX("mvtipl #%1"); |
5064 | -#line 1002 "rx-decode.opc" | |
5088 | +#line 1023 "rx-decode.opc" | |
5065 | 5089 | ID(mvtipl); SC(immm); |
5066 | 5090 | |
5067 | 5091 | } |
@@ -5069,6702 +5093,10167 @@ rx_decode_opcode (unsigned long pc AU, | ||
5069 | 5093 | default: UNSUPPORTED(); break; |
5070 | 5094 | } |
5071 | 5095 | break; |
5072 | - default: UNSUPPORTED(); break; | |
5073 | - } | |
5074 | - break; | |
5075 | - case 0x76: | |
5076 | - GETBYTE (); | |
5077 | - switch (op[1] & 0xf0) | |
5078 | - { | |
5079 | - case 0x00: | |
5080 | - goto op_semantics_32; | |
5081 | - break; | |
5082 | - case 0x10: | |
5083 | - goto op_semantics_33; | |
5084 | - break; | |
5085 | - case 0x20: | |
5086 | - goto op_semantics_34; | |
5087 | - break; | |
5088 | - case 0x30: | |
5089 | - goto op_semantics_35; | |
5096 | + case 0x90: | |
5097 | + GETBYTE (); | |
5098 | + switch (op[2] & 0xff) | |
5099 | + { | |
5100 | + case 0x1b: | |
5101 | + { | |
5102 | + /** 0111 0101 1001 0000 0001 1011 mvfdr */ | |
5103 | + if (trace) | |
5104 | + { | |
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]); | |
5108 | + } | |
5109 | + SYNTAX("mvfdr"); | |
5110 | +#line 1229 "rx-decode.opc" | |
5111 | + ID(mvfdr); F_____; | |
5112 | + | |
5113 | + } | |
5114 | + break; | |
5115 | + default: UNSUPPORTED(); break; | |
5116 | + } | |
5090 | 5117 | break; |
5091 | - default: UNSUPPORTED(); break; | |
5092 | - } | |
5093 | - break; | |
5094 | - case 0x77: | |
5095 | - GETBYTE (); | |
5096 | - switch (op[1] & 0xf0) | |
5097 | - { | |
5098 | - case 0x00: | |
5099 | - goto op_semantics_32; | |
5100 | - break; | |
5101 | - case 0x10: | |
5102 | - goto op_semantics_33; | |
5103 | - break; | |
5104 | - case 0x20: | |
5105 | - goto op_semantics_34; | |
5106 | - break; | |
5107 | - case 0x30: | |
5108 | - goto op_semantics_35; | |
5109 | - break; | |
5110 | - default: UNSUPPORTED(); break; | |
5111 | - } | |
5112 | - break; | |
5113 | - case 0x78: | |
5114 | - GETBYTE (); | |
5115 | - switch (op[1] & 0x00) | |
5116 | - { | |
5117 | - case 0x00: | |
5118 | - op_semantics_36: | |
5118 | + case 0xa0: | |
5119 | + GETBYTE (); | |
5120 | + switch (op[2] & 0x00) | |
5119 | 5121 | { |
5120 | - /** 0111 100b ittt rdst bset #%1, %0 */ | |
5121 | -#line 947 "rx-decode.opc" | |
5122 | - int b AU = op[0] & 0x01; | |
5123 | -#line 947 "rx-decode.opc" | |
5124 | - int ittt AU = (op[1] >> 4) & 0x0f; | |
5125 | -#line 947 "rx-decode.opc" | |
5126 | - int rdst AU = op[1] & 0x0f; | |
5127 | - if (trace) | |
5128 | - { | |
5129 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5130 | - "/** 0111 100b ittt rdst bset #%1, %0 */", | |
5131 | - op[0], op[1]); | |
5132 | - printf (" b = 0x%x,", b); | |
5133 | - printf (" ittt = 0x%x,", ittt); | |
5134 | - printf (" rdst = 0x%x\n", rdst); | |
5135 | - } | |
5136 | - SYNTAX("bset #%1, %0"); | |
5137 | -#line 947 "rx-decode.opc" | |
5138 | - ID(bset); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____; | |
5139 | - | |
5122 | + case 0x00: | |
5123 | + { | |
5124 | + /** 0111 0101 1010 0000 rdst rnum dpush.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; | |
5129 | + if (trace) | |
5130 | + { | |
5131 | + printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
5132 | + "/** 0111 0101 1010 0000 rdst rnum dpush.l %1-%2 */", | |
5133 | + op[0], op[1], op[2]); | |
5134 | + printf (" rdst = 0x%x,", rdst); | |
5135 | + printf (" rnum = 0x%x\n", rnum); | |
5136 | + } | |
5137 | + SYNTAX("dpush.l %1-%2"); | |
5138 | +#line 1223 "rx-decode.opc" | |
5139 | + ID(dpushm); SCR(rdst); S2CR(rdst + rnum); F_____; | |
5140 | 5140 | |
5141 | + } | |
5142 | + break; | |
5141 | 5143 | } |
5142 | 5144 | break; |
5143 | - } | |
5144 | - break; | |
5145 | - case 0x79: | |
5146 | - GETBYTE (); | |
5147 | - switch (op[1] & 0x00) | |
5148 | - { | |
5149 | - case 0x00: | |
5150 | - goto op_semantics_36; | |
5151 | - break; | |
5152 | - } | |
5153 | - break; | |
5154 | - case 0x7a: | |
5155 | - GETBYTE (); | |
5156 | - switch (op[1] & 0x00) | |
5157 | - { | |
5158 | - case 0x00: | |
5159 | - op_semantics_37: | |
5145 | + case 0xa8: | |
5146 | + GETBYTE (); | |
5147 | + switch (op[2] & 0x00) | |
5160 | 5148 | { |
5161 | - /** 0111 101b ittt rdst bclr #%1, %0 */ | |
5162 | -#line 959 "rx-decode.opc" | |
5163 | - int b AU = op[0] & 0x01; | |
5164 | -#line 959 "rx-decode.opc" | |
5165 | - int ittt AU = (op[1] >> 4) & 0x0f; | |
5166 | -#line 959 "rx-decode.opc" | |
5167 | - int rdst AU = op[1] & 0x0f; | |
5168 | - if (trace) | |
5169 | - { | |
5170 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5171 | - "/** 0111 101b ittt rdst bclr #%1, %0 */", | |
5172 | - op[0], op[1]); | |
5173 | - printf (" b = 0x%x,", b); | |
5174 | - printf (" ittt = 0x%x,", ittt); | |
5175 | - printf (" rdst = 0x%x\n", rdst); | |
5176 | - } | |
5177 | - SYNTAX("bclr #%1, %0"); | |
5178 | -#line 959 "rx-decode.opc" | |
5179 | - ID(bclr); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____; | |
5180 | - | |
5149 | + case 0x00: | |
5150 | + { | |
5151 | + /** 0111 0101 1010 1000 rdst rnum dpop.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; | |
5156 | + if (trace) | |
5157 | + { | |
5158 | + printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
5159 | + "/** 0111 0101 1010 1000 rdst rnum dpop.l %1-%2 */", | |
5160 | + op[0], op[1], op[2]); | |
5161 | + printf (" rdst = 0x%x,", rdst); | |
5162 | + printf (" rnum = 0x%x\n", rnum); | |
5163 | + } | |
5164 | + SYNTAX("dpop.l %1-%2"); | |
5165 | +#line 1217 "rx-decode.opc" | |
5166 | + ID(dpopm); SCR(rdst); S2CR(rdst + rnum); F_____; | |
5181 | 5167 | |
5168 | + } | |
5169 | + break; | |
5182 | 5170 | } |
5183 | 5171 | break; |
5184 | - } | |
5185 | - break; | |
5186 | - case 0x7b: | |
5187 | - GETBYTE (); | |
5188 | - switch (op[1] & 0x00) | |
5189 | - { | |
5190 | - case 0x00: | |
5191 | - goto op_semantics_37; | |
5192 | - break; | |
5193 | - } | |
5194 | - break; | |
5195 | - case 0x7c: | |
5196 | - GETBYTE (); | |
5197 | - switch (op[1] & 0x00) | |
5198 | - { | |
5199 | - case 0x00: | |
5200 | - op_semantics_38: | |
5172 | + case 0xb0: | |
5173 | + GETBYTE (); | |
5174 | + switch (op[2] & 0x00) | |
5201 | 5175 | { |
5202 | - /** 0111 110b ittt rdst btst #%2, %1 */ | |
5203 | -#line 971 "rx-decode.opc" | |
5204 | - int b AU = op[0] & 0x01; | |
5205 | -#line 971 "rx-decode.opc" | |
5206 | - int ittt AU = (op[1] >> 4) & 0x0f; | |
5207 | -#line 971 "rx-decode.opc" | |
5208 | - int rdst AU = op[1] & 0x0f; | |
5209 | - if (trace) | |
5210 | - { | |
5211 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5212 | - "/** 0111 110b ittt rdst btst #%2, %1 */", | |
5213 | - op[0], op[1]); | |
5214 | - printf (" b = 0x%x,", b); | |
5215 | - printf (" ittt = 0x%x,", ittt); | |
5216 | - printf (" rdst = 0x%x\n", rdst); | |
5217 | - } | |
5218 | - SYNTAX("btst #%2, %1"); | |
5219 | -#line 971 "rx-decode.opc" | |
5220 | - ID(btst); BWL(LSIZE); S2C(b*16+ittt); SR(rdst); F___ZC; | |
5221 | - | |
5176 | + case 0x00: | |
5177 | + { | |
5178 | + /** 0111 0101 1011 0000 rdst rnum dpush.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; | |
5183 | + if (trace) | |
5184 | + { | |
5185 | + printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
5186 | + "/** 0111 0101 1011 0000 rdst rnum dpush.d %1-%2 */", | |
5187 | + op[0], op[1], op[2]); | |
5188 | + printf (" rdst = 0x%x,", rdst); | |
5189 | + printf (" rnum = 0x%x\n", rnum); | |
5190 | + } | |
5191 | + SYNTAX("dpush.d %1-%2"); | |
5192 | +#line 1220 "rx-decode.opc" | |
5193 | + ID(dpushm); SDR(rdst); S2DR(rdst + rnum); F_____; | |
5222 | 5194 | |
5195 | + } | |
5196 | + break; | |
5223 | 5197 | } |
5224 | 5198 | break; |
5225 | - } | |
5226 | - break; | |
5227 | - case 0x7d: | |
5228 | - GETBYTE (); | |
5229 | - switch (op[1] & 0x00) | |
5230 | - { | |
5231 | - case 0x00: | |
5232 | - goto op_semantics_38; | |
5199 | + case 0xb8: | |
5200 | + GETBYTE (); | |
5201 | + switch (op[2] & 0x00) | |
5202 | + { | |
5203 | + case 0x00: | |
5204 | + { | |
5205 | + /** 0111 0101 1011 1000 rdst rnum dpop.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; | |
5210 | + if (trace) | |
5211 | + { | |
5212 | + printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
5213 | + "/** 0111 0101 1011 1000 rdst rnum dpop.d %1-%2 */", | |
5214 | + op[0], op[1], op[2]); | |
5215 | + printf (" rdst = 0x%x,", rdst); | |
5216 | + printf (" rnum = 0x%x\n", rnum); | |
5217 | + } | |
5218 | + SYNTAX("dpop.d %1-%2"); | |
5219 | +#line 1214 "rx-decode.opc" | |
5220 | + ID(dpopm); SDR(rdst); S2DR(rdst + rnum); F_____; | |
5221 | + | |
5222 | + } | |
5223 | + break; | |
5224 | + } | |
5233 | 5225 | break; |
5226 | + default: UNSUPPORTED(); break; | |
5234 | 5227 | } |
5235 | 5228 | break; |
5236 | - case 0x7e: | |
5229 | + case 0x76: | |
5237 | 5230 | GETBYTE (); |
5238 | - switch (op[1] & 0xf0) | |
5231 | + switch (op[1] & 0xff) | |
5239 | 5232 | { |
5240 | 5233 | case 0x00: |
5241 | - { | |
5242 | - /** 0111 1110 0000 rdst not %0 */ | |
5243 | -#line 462 "rx-decode.opc" | |
5244 | - int rdst AU = op[1] & 0x0f; | |
5245 | - if (trace) | |
5246 | - { | |
5247 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5248 | - "/** 0111 1110 0000 rdst not %0 */", | |
5249 | - op[0], op[1]); | |
5250 | - printf (" rdst = 0x%x\n", rdst); | |
5251 | - } | |
5252 | - SYNTAX("not %0"); | |
5253 | -#line 462 "rx-decode.opc" | |
5254 | - ID(xor); DR(rdst); SR(rdst); S2C(~0); F__SZ_; | |
5255 | - | |
5256 | - } | |
5234 | + case 0x01: | |
5235 | + case 0x02: | |
5236 | + case 0x03: | |
5237 | + case 0x04: | |
5238 | + case 0x05: | |
5239 | + case 0x06: | |
5240 | + case 0x07: | |
5241 | + case 0x08: | |
5242 | + case 0x09: | |
5243 | + case 0x0a: | |
5244 | + case 0x0b: | |
5245 | + case 0x0c: | |
5246 | + case 0x0d: | |
5247 | + case 0x0e: | |
5248 | + case 0x0f: | |
5249 | + goto op_semantics_32; | |
5257 | 5250 | break; |
5258 | 5251 | case 0x10: |
5259 | - { | |
5260 | - /** 0111 1110 0001 rdst neg %0 */ | |
5261 | -#line 483 "rx-decode.opc" | |
5262 | - int rdst AU = op[1] & 0x0f; | |
5263 | - if (trace) | |
5264 | - { | |
5265 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5266 | - "/** 0111 1110 0001 rdst neg %0 */", | |
5267 | - op[0], op[1]); | |
5268 | - printf (" rdst = 0x%x\n", rdst); | |
5269 | - } | |
5270 | - SYNTAX("neg %0"); | |
5271 | -#line 483 "rx-decode.opc" | |
5272 | - ID(sub); DR(rdst); SC(0); S2R(rdst); F_OSZC; | |
5273 | - | |
5274 | - } | |
5252 | + case 0x11: | |
5253 | + case 0x12: | |
5254 | + case 0x13: | |
5255 | + case 0x14: | |
5256 | + case 0x15: | |
5257 | + case 0x16: | |
5258 | + case 0x17: | |
5259 | + case 0x18: | |
5260 | + case 0x19: | |
5261 | + case 0x1a: | |
5262 | + case 0x1b: | |
5263 | + case 0x1c: | |
5264 | + case 0x1d: | |
5265 | + case 0x1e: | |
5266 | + case 0x1f: | |
5267 | + goto op_semantics_33; | |
5275 | 5268 | break; |
5276 | 5269 | case 0x20: |
5277 | - { | |
5278 | - /** 0111 1110 0010 rdst abs %0 */ | |
5279 | -#line 565 "rx-decode.opc" | |
5280 | - int rdst AU = op[1] & 0x0f; | |
5281 | - if (trace) | |
5282 | - { | |
5283 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5284 | - "/** 0111 1110 0010 rdst abs %0 */", | |
5285 | - op[0], op[1]); | |
5286 | - printf (" rdst = 0x%x\n", rdst); | |
5287 | - } | |
5288 | - SYNTAX("abs %0"); | |
5289 | -#line 565 "rx-decode.opc" | |
5290 | - ID(abs); DR(rdst); SR(rdst); F_OSZ_; | |
5291 | - | |
5292 | - } | |
5293 | - break; | |
5294 | - case 0x30: | |
5295 | - { | |
5296 | - /** 0111 1110 0011 rdst sat %0 */ | |
5297 | -#line 885 "rx-decode.opc" | |
5270 | + case 0x21: | |
5271 | + case 0x22: | |
5272 | + case 0x23: | |
5273 | + case 0x24: | |
5274 | + case 0x25: | |
5275 | + case 0x26: | |
5276 | + case 0x27: | |
5277 | + case 0x28: | |
5278 | + case 0x29: | |
5279 | + case 0x2a: | |
5280 | + case 0x2b: | |
5281 | + case 0x2c: | |
5282 | + case 0x2d: | |
5283 | + case 0x2e: | |
5284 | + case 0x2f: | |
5285 | + goto op_semantics_34; | |
5286 | + break; | |
5287 | + case 0x30: | |
5288 | + case 0x31: | |
5289 | + case 0x32: | |
5290 | + case 0x33: | |
5291 | + case 0x34: | |
5292 | + case 0x35: | |
5293 | + case 0x36: | |
5294 | + case 0x37: | |
5295 | + case 0x38: | |
5296 | + case 0x39: | |
5297 | + case 0x3a: | |
5298 | + case 0x3b: | |
5299 | + case 0x3c: | |
5300 | + case 0x3d: | |
5301 | + case 0x3e: | |
5302 | + case 0x3f: | |
5303 | + goto op_semantics_35; | |
5304 | + break; | |
5305 | + case 0x90: | |
5306 | + GETBYTE (); | |
5307 | + switch (op[2] & 0xff) | |
5308 | + { | |
5309 | + case 0x00: | |
5310 | + GETBYTE (); | |
5311 | + switch (op[3] & 0x00) | |
5312 | + { | |
5313 | + case 0x00: | |
5314 | + op_semantics_36: | |
5315 | + { | |
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; | |
5323 | + if (trace) | |
5324 | + { | |
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); | |
5331 | + } | |
5332 | + SYNTAX("dadd %1, %2, %0"); | |
5333 | +#line 1238 "rx-decode.opc" | |
5334 | + ID(dadd); DDR(rdst); SDR(srca); S2DR(srcb); F_____; | |
5335 | + | |
5336 | + } | |
5337 | + break; | |
5338 | + } | |
5339 | + break; | |
5340 | + case 0x01: | |
5341 | + GETBYTE (); | |
5342 | + switch (op[3] & 0x00) | |
5343 | + { | |
5344 | + case 0x00: | |
5345 | + op_semantics_37: | |
5346 | + { | |
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; | |
5354 | + if (trace) | |
5355 | + { | |
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); | |
5362 | + } | |
5363 | + SYNTAX("dsub %1, %2, %0"); | |
5364 | +#line 1259 "rx-decode.opc" | |
5365 | + ID(dsub); DDR(rdst); SDR(srca); S2DR(srcb); F_____; | |
5366 | + | |
5367 | + } | |
5368 | + break; | |
5369 | + } | |
5370 | + break; | |
5371 | + case 0x02: | |
5372 | + GETBYTE (); | |
5373 | + switch (op[3] & 0x00) | |
5374 | + { | |
5375 | + case 0x00: | |
5376 | + op_semantics_38: | |
5377 | + { | |
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; | |
5385 | + if (trace) | |
5386 | + { | |
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); | |
5393 | + } | |
5394 | + SYNTAX("dmul %1, %2, %0"); | |
5395 | +#line 1247 "rx-decode.opc" | |
5396 | + ID(dmul); DDR(rdst); SDR(srca); S2DR(srcb); F_____; | |
5397 | + | |
5398 | + } | |
5399 | + break; | |
5400 | + } | |
5401 | + break; | |
5402 | + case 0x05: | |
5403 | + GETBYTE (); | |
5404 | + switch (op[3] & 0x00) | |
5405 | + { | |
5406 | + case 0x00: | |
5407 | + op_semantics_39: | |
5408 | + { | |
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; | |
5416 | + if (trace) | |
5417 | + { | |
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); | |
5424 | + } | |
5425 | + SYNTAX("ddiv %1, %2, %0"); | |
5426 | +#line 1244 "rx-decode.opc" | |
5427 | + ID(ddiv); DDR(rdst); SDR(srca); S2DR(srcb); F_____; | |
5428 | + | |
5429 | + } | |
5430 | + break; | |
5431 | + } | |
5432 | + break; | |
5433 | + case 0x08: | |
5434 | + GETBYTE (); | |
5435 | + switch (op[3] & 0x00) | |
5436 | + { | |
5437 | + case 0x00: | |
5438 | + op_semantics_40: | |
5439 | + { | |
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; | |
5447 | + if (trace) | |
5448 | + { | |
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); | |
5455 | + } | |
5456 | + SYNTAX("dcmp%0 %1, %2"); | |
5457 | +#line 1241 "rx-decode.opc" | |
5458 | + ID(dcmp); DCND(cond); SDR(srca); S2DR(srcb); F_____; | |
5459 | + | |
5460 | + } | |
5461 | + break; | |
5462 | + } | |
5463 | + break; | |
5464 | + case 0x0c: | |
5465 | + GETBYTE (); | |
5466 | + switch (op[3] & 0x0f) | |
5467 | + { | |
5468 | + case 0x00: | |
5469 | + op_semantics_41: | |
5470 | + { | |
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; | |
5476 | + if (trace) | |
5477 | + { | |
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); | |
5483 | + } | |
5484 | + SYNTAX("dmov.d %1, %0"); | |
5485 | +#line 1179 "rx-decode.opc" | |
5486 | + ID(dmov); DDR(rdst); SDR(rsrc); F_____; | |
5487 | + | |
5488 | + } | |
5489 | + break; | |
5490 | + case 0x01: | |
5491 | + op_semantics_42: | |
5492 | + { | |
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; | |
5498 | + if (trace) | |
5499 | + { | |
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); | |
5505 | + } | |
5506 | + SYNTAX("dabs %1, %0"); | |
5507 | +#line 1235 "rx-decode.opc" | |
5508 | + ID(dabs); DDR(rdst); SDR(rsrc); F_____; | |
5509 | + | |
5510 | + } | |
5511 | + break; | |
5512 | + case 0x02: | |
5513 | + op_semantics_43: | |
5514 | + { | |
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; | |
5520 | + if (trace) | |
5521 | + { | |
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); | |
5527 | + } | |
5528 | + SYNTAX("dneg %1, %0"); | |
5529 | +#line 1250 "rx-decode.opc" | |
5530 | + ID(dneg); DDR(rdst); SDR(rsrc); F_____; | |
5531 | + | |
5532 | + } | |
5533 | + break; | |
5534 | + default: UNSUPPORTED(); break; | |
5535 | + } | |
5536 | + break; | |
5537 | + case 0x0d: | |
5538 | + GETBYTE (); | |
5539 | + switch (op[3] & 0x0f) | |
5540 | + { | |
5541 | + case 0x00: | |
5542 | + op_semantics_44: | |
5543 | + { | |
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; | |
5549 | + if (trace) | |
5550 | + { | |
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); | |
5556 | + } | |
5557 | + SYNTAX("dsqrt %1, %0"); | |
5558 | +#line 1256 "rx-decode.opc" | |
5559 | + ID(dsqrt); DDR(rdst); SDR(rsrc); F_____; | |
5560 | + | |
5561 | + } | |
5562 | + break; | |
5563 | + case 0x08: | |
5564 | + op_semantics_45: | |
5565 | + { | |
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; | |
5571 | + if (trace) | |
5572 | + { | |
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); | |
5578 | + } | |
5579 | + SYNTAX("dtoi %1, %0"); | |
5580 | +#line 1265 "rx-decode.opc" | |
5581 | + ID(dtoi); DDR(rdst); SDR(rsrc); F_____; | |
5582 | + | |
5583 | + } | |
5584 | + break; | |
5585 | + case 0x09: | |
5586 | + op_semantics_46: | |
5587 | + { | |
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; | |
5593 | + if (trace) | |
5594 | + { | |
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); | |
5600 | + } | |
5601 | + SYNTAX("dtou %1, %0"); | |
5602 | +#line 1268 "rx-decode.opc" | |
5603 | + ID(dtou); DDR(rdst); SDR(rsrc); F_____; | |
5604 | + | |
5605 | + } | |
5606 | + break; | |
5607 | + case 0x0c: | |
5608 | + op_semantics_47: | |
5609 | + { | |
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; | |
5615 | + if (trace) | |
5616 | + { | |
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); | |
5622 | + } | |
5623 | + SYNTAX("dtof %1, %0"); | |
5624 | +#line 1262 "rx-decode.opc" | |
5625 | + ID(dtof); DDR(rdst); SDR(rsrc); F_____; | |
5626 | + | |
5627 | + } | |
5628 | + break; | |
5629 | + case 0x0d: | |
5630 | + op_semantics_48: | |
5631 | + { | |
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; | |
5637 | + if (trace) | |
5638 | + { | |
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); | |
5644 | + } | |
5645 | + SYNTAX("dround %1, %0"); | |
5646 | +#line 1253 "rx-decode.opc" | |
5647 | + ID(dround); DDR(rdst); SDR(rsrc); F_____; | |
5648 | + | |
5649 | + } | |
5650 | + break; | |
5651 | + default: UNSUPPORTED(); break; | |
5652 | + } | |
5653 | + break; | |
5654 | + case 0x10: | |
5655 | + GETBYTE (); | |
5656 | + switch (op[3] & 0x00) | |
5657 | + { | |
5658 | + case 0x00: | |
5659 | + goto op_semantics_36; | |
5660 | + break; | |
5661 | + } | |
5662 | + break; | |
5663 | + case 0x11: | |
5664 | + GETBYTE (); | |
5665 | + switch (op[3] & 0x00) | |
5666 | + { | |
5667 | + case 0x00: | |
5668 | + goto op_semantics_37; | |
5669 | + break; | |
5670 | + } | |
5671 | + break; | |
5672 | + case 0x12: | |
5673 | + GETBYTE (); | |
5674 | + switch (op[3] & 0x00) | |
5675 | + { | |
5676 | + case 0x00: | |
5677 | + goto op_semantics_38; | |
5678 | + break; | |
5679 | + } | |
5680 | + break; | |
5681 | + case 0x15: | |
5682 | + GETBYTE (); | |
5683 | + switch (op[3] & 0x00) | |
5684 | + { | |
5685 | + case 0x00: | |
5686 | + goto op_semantics_39; | |
5687 | + break; | |
5688 | + } | |
5689 | + break; | |
5690 | + case 0x18: | |
5691 | + GETBYTE (); | |
5692 | + switch (op[3] & 0x00) | |
5693 | + { | |
5694 | + case 0x00: | |
5695 | + goto op_semantics_40; | |
5696 | + break; | |
5697 | + } | |
5698 | + break; | |
5699 | + case 0x1c: | |
5700 | + GETBYTE (); | |
5701 | + switch (op[3] & 0x0f) | |
5702 | + { | |
5703 | + case 0x00: | |
5704 | + goto op_semantics_41; | |
5705 | + break; | |
5706 | + case 0x01: | |
5707 | + goto op_semantics_42; | |
5708 | + break; | |
5709 | + case 0x02: | |
5710 | + goto op_semantics_43; | |
5711 | + break; | |
5712 | + default: UNSUPPORTED(); break; | |
5713 | + } | |
5714 | + break; | |
5715 | + case 0x1d: | |
5716 | + GETBYTE (); | |
5717 | + switch (op[3] & 0x0f) | |
5718 | + { | |
5719 | + case 0x00: | |
5720 | + goto op_semantics_44; | |
5721 | + break; | |
5722 | + case 0x08: | |
5723 | + goto op_semantics_45; | |
5724 | + break; | |
5725 | + case 0x09: | |
5726 | + goto op_semantics_46; | |
5727 | + break; | |
5728 | + case 0x0c: | |
5729 | + goto op_semantics_47; | |
5730 | + break; | |
5731 | + case 0x0d: | |
5732 | + goto op_semantics_48; | |
5733 | + break; | |
5734 | + default: UNSUPPORTED(); break; | |
5735 | + } | |
5736 | + break; | |
5737 | + case 0x20: | |
5738 | + GETBYTE (); | |
5739 | + switch (op[3] & 0x00) | |
5740 | + { | |
5741 | + case 0x00: | |
5742 | + goto op_semantics_36; | |
5743 | + break; | |
5744 | + } | |
5745 | + break; | |
5746 | + case 0x21: | |
5747 | + GETBYTE (); | |
5748 | + switch (op[3] & 0x00) | |
5749 | + { | |
5750 | + case 0x00: | |
5751 | + goto op_semantics_37; | |
5752 | + break; | |
5753 | + } | |
5754 | + break; | |
5755 | + case 0x22: | |
5756 | + GETBYTE (); | |
5757 | + switch (op[3] & 0x00) | |
5758 | + { | |
5759 | + case 0x00: | |
5760 | + goto op_semantics_38; | |
5761 | + break; | |
5762 | + } | |
5763 | + break; | |
5764 | + case 0x25: | |
5765 | + GETBYTE (); | |
5766 | + switch (op[3] & 0x00) | |
5767 | + { | |
5768 | + case 0x00: | |
5769 | + goto op_semantics_39; | |
5770 | + break; | |
5771 | + } | |
5772 | + break; | |
5773 | + case 0x28: | |
5774 | + GETBYTE (); | |
5775 | + switch (op[3] & 0x00) | |
5776 | + { | |
5777 | + case 0x00: | |
5778 | + goto op_semantics_40; | |
5779 | + break; | |
5780 | + } | |
5781 | + break; | |
5782 | + case 0x2c: | |
5783 | + GETBYTE (); | |
5784 | + switch (op[3] & 0x0f) | |
5785 | + { | |
5786 | + case 0x00: | |
5787 | + goto op_semantics_41; | |
5788 | + break; | |
5789 | + case 0x01: | |
5790 | + goto op_semantics_42; | |
5791 | + break; | |
5792 | + case 0x02: | |
5793 | + goto op_semantics_43; | |
5794 | + break; | |
5795 | + default: UNSUPPORTED(); break; | |
5796 | + } | |
5797 | + break; | |
5798 | + case 0x2d: | |
5799 | + GETBYTE (); | |
5800 | + switch (op[3] & 0x0f) | |
5801 | + { | |
5802 | + case 0x00: | |
5803 | + goto op_semantics_44; | |
5804 | + break; | |
5805 | + case 0x08: | |
5806 | + goto op_semantics_45; | |
5807 | + break; | |
5808 | + case 0x09: | |
5809 | + goto op_semantics_46; | |
5810 | + break; | |
5811 | + case 0x0c: | |
5812 | + goto op_semantics_47; | |
5813 | + break; | |
5814 | + case 0x0d: | |
5815 | + goto op_semantics_48; | |
5816 | + break; | |
5817 | + default: UNSUPPORTED(); break; | |
5818 | + } | |
5819 | + break; | |
5820 | + case 0x30: | |
5821 | + GETBYTE (); | |
5822 | + switch (op[3] & 0x00) | |
5823 | + { | |
5824 | + case 0x00: | |
5825 | + goto op_semantics_36; | |
5826 | + break; | |
5827 | + } | |
5828 | + break; | |
5829 | + case 0x31: | |
5830 | + GETBYTE (); | |
5831 | + switch (op[3] & 0x00) | |
5832 | + { | |
5833 | + case 0x00: | |
5834 | + goto op_semantics_37; | |
5835 | + break; | |
5836 | + } | |
5837 | + break; | |
5838 | + case 0x32: | |
5839 | + GETBYTE (); | |
5840 | + switch (op[3] & 0x00) | |
5841 | + { | |
5842 | + case 0x00: | |
5843 | + goto op_semantics_38; | |
5844 | + break; | |
5845 | + } | |
5846 | + break; | |
5847 | + case 0x35: | |
5848 | + GETBYTE (); | |
5849 | + switch (op[3] & 0x00) | |
5850 | + { | |
5851 | + case 0x00: | |
5852 | + goto op_semantics_39; | |
5853 | + break; | |
5854 | + } | |
5855 | + break; | |
5856 | + case 0x38: | |
5857 | + GETBYTE (); | |
5858 | + switch (op[3] & 0x00) | |
5859 | + { | |
5860 | + case 0x00: | |
5861 | + goto op_semantics_40; | |
5862 | + break; | |
5863 | + } | |
5864 | + break; | |
5865 | + case 0x3c: | |
5866 | + GETBYTE (); | |
5867 | + switch (op[3] & 0x0f) | |
5868 | + { | |
5869 | + case 0x00: | |
5870 | + goto op_semantics_41; | |
5871 | + break; | |
5872 | + case 0x01: | |
5873 | + goto op_semantics_42; | |
5874 | + break; | |
5875 | + case 0x02: | |
5876 | + goto op_semantics_43; | |
5877 | + break; | |
5878 | + default: UNSUPPORTED(); break; | |
5879 | + } | |
5880 | + break; | |
5881 | + case 0x3d: | |
5882 | + GETBYTE (); | |
5883 | + switch (op[3] & 0x0f) | |
5884 | + { | |
5885 | + case 0x00: | |
5886 | + goto op_semantics_44; | |
5887 | + break; | |
5888 | + case 0x08: | |
5889 | + goto op_semantics_45; | |
5890 | + break; | |
5891 | + case 0x09: | |
5892 | + goto op_semantics_46; | |
5893 | + break; | |
5894 | + case 0x0c: | |
5895 | + goto op_semantics_47; | |
5896 | + break; | |
5897 | + case 0x0d: | |
5898 | + goto op_semantics_48; | |
5899 | + break; | |
5900 | + default: UNSUPPORTED(); break; | |
5901 | + } | |
5902 | + break; | |
5903 | + case 0x40: | |
5904 | + GETBYTE (); | |
5905 | + switch (op[3] & 0x00) | |
5906 | + { | |
5907 | + case 0x00: | |
5908 | + goto op_semantics_36; | |
5909 | + break; | |
5910 | + } | |
5911 | + break; | |
5912 | + case 0x41: | |
5913 | + GETBYTE (); | |
5914 | + switch (op[3] & 0x00) | |
5915 | + { | |
5916 | + case 0x00: | |
5917 | + goto op_semantics_37; | |
5918 | + break; | |
5919 | + } | |
5920 | + break; | |
5921 | + case 0x42: | |
5922 | + GETBYTE (); | |
5923 | + switch (op[3] & 0x00) | |
5924 | + { | |
5925 | + case 0x00: | |
5926 | + goto op_semantics_38; | |
5927 | + break; | |
5928 | + } | |
5929 | + break; | |
5930 | + case 0x45: | |
5931 | + GETBYTE (); | |
5932 | + switch (op[3] & 0x00) | |
5933 | + { | |
5934 | + case 0x00: | |
5935 | + goto op_semantics_39; | |
5936 | + break; | |
5937 | + } | |
5938 | + break; | |
5939 | + case 0x48: | |
5940 | + GETBYTE (); | |
5941 | + switch (op[3] & 0x00) | |
5942 | + { | |
5943 | + case 0x00: | |
5944 | + goto op_semantics_40; | |
5945 | + break; | |
5946 | + } | |
5947 | + break; | |
5948 | + case 0x4c: | |
5949 | + GETBYTE (); | |
5950 | + switch (op[3] & 0x0f) | |
5951 | + { | |
5952 | + case 0x00: | |
5953 | + goto op_semantics_41; | |
5954 | + break; | |
5955 | + case 0x01: | |
5956 | + goto op_semantics_42; | |
5957 | + break; | |
5958 | + case 0x02: | |
5959 | + goto op_semantics_43; | |
5960 | + break; | |
5961 | + default: UNSUPPORTED(); break; | |
5962 | + } | |
5963 | + break; | |
5964 | + case 0x4d: | |
5965 | + GETBYTE (); | |
5966 | + switch (op[3] & 0x0f) | |
5967 | + { | |
5968 | + case 0x00: | |
5969 | + goto op_semantics_44; | |
5970 | + break; | |
5971 | + case 0x08: | |
5972 | + goto op_semantics_45; | |
5973 | + break; | |
5974 | + case 0x09: | |
5975 | + goto op_semantics_46; | |
5976 | + break; | |
5977 | + case 0x0c: | |
5978 | + goto op_semantics_47; | |
5979 | + break; | |
5980 | + case 0x0d: | |
5981 | + goto op_semantics_48; | |
5982 | + break; | |
5983 | + default: UNSUPPORTED(); break; | |
5984 | + } | |
5985 | + break; | |
5986 | + case 0x50: | |
5987 | + GETBYTE (); | |
5988 | + switch (op[3] & 0x00) | |
5989 | + { | |
5990 | + case 0x00: | |
5991 | + goto op_semantics_36; | |
5992 | + break; | |
5993 | + } | |
5994 | + break; | |
5995 | + case 0x51: | |
5996 | + GETBYTE (); | |
5997 | + switch (op[3] & 0x00) | |
5998 | + { | |
5999 | + case 0x00: | |
6000 | + goto op_semantics_37; | |
6001 | + break; | |
6002 | + } | |
6003 | + break; | |
6004 | + case 0x52: | |
6005 | + GETBYTE (); | |
6006 | + switch (op[3] & 0x00) | |
6007 | + { | |
6008 | + case 0x00: | |
6009 | + goto op_semantics_38; | |
6010 | + break; | |
6011 | + } | |
6012 | + break; | |
6013 | + case 0x55: | |
6014 | + GETBYTE (); | |
6015 | + switch (op[3] & 0x00) | |
6016 | + { | |
6017 | + case 0x00: | |
6018 | + goto op_semantics_39; | |
6019 | + break; | |
6020 | + } | |
6021 | + break; | |
6022 | + case 0x58: | |
6023 | + GETBYTE (); | |
6024 | + switch (op[3] & 0x00) | |
6025 | + { | |
6026 | + case 0x00: | |
6027 | + goto op_semantics_40; | |
6028 | + break; | |
6029 | + } | |
6030 | + break; | |
6031 | + case 0x5c: | |
6032 | + GETBYTE (); | |
6033 | + switch (op[3] & 0x0f) | |
6034 | + { | |
6035 | + case 0x00: | |
6036 | + goto op_semantics_41; | |
6037 | + break; | |
6038 | + case 0x01: | |
6039 | + goto op_semantics_42; | |
6040 | + break; | |
6041 | + case 0x02: | |
6042 | + goto op_semantics_43; | |
6043 | + break; | |
6044 | + default: UNSUPPORTED(); break; | |
6045 | + } | |
6046 | + break; | |
6047 | + case 0x5d: | |
6048 | + GETBYTE (); | |
6049 | + switch (op[3] & 0x0f) | |
6050 | + { | |
6051 | + case 0x00: | |
6052 | + goto op_semantics_44; | |
6053 | + break; | |
6054 | + case 0x08: | |
6055 | + goto op_semantics_45; | |
6056 | + break; | |
6057 | + case 0x09: | |
6058 | + goto op_semantics_46; | |
6059 | + break; | |
6060 | + case 0x0c: | |
6061 | + goto op_semantics_47; | |
6062 | + break; | |
6063 | + case 0x0d: | |
6064 | + goto op_semantics_48; | |
6065 | + break; | |
6066 | + default: UNSUPPORTED(); break; | |
6067 | + } | |
6068 | + break; | |
6069 | + case 0x60: | |
6070 | + GETBYTE (); | |
6071 | + switch (op[3] & 0x00) | |
6072 | + { | |
6073 | + case 0x00: | |
6074 | + goto op_semantics_36; | |
6075 | + break; | |
6076 | + } | |
6077 | + break; | |
6078 | + case 0x61: | |
6079 | + GETBYTE (); | |
6080 | + switch (op[3] & 0x00) | |
6081 | + { | |
6082 | + case 0x00: | |
6083 | + goto op_semantics_37; | |
6084 | + break; | |
6085 | + } | |
6086 | + break; | |
6087 | + case 0x62: | |
6088 | + GETBYTE (); | |
6089 | + switch (op[3] & 0x00) | |
6090 | + { | |
6091 | + case 0x00: | |
6092 | + goto op_semantics_38; | |
6093 | + break; | |
6094 | + } | |
6095 | + break; | |
6096 | + case 0x65: | |
6097 | + GETBYTE (); | |
6098 | + switch (op[3] & 0x00) | |
6099 | + { | |
6100 | + case 0x00: | |
6101 | + goto op_semantics_39; | |
6102 | + break; | |
6103 | + } | |
6104 | + break; | |
6105 | + case 0x68: | |
6106 | + GETBYTE (); | |
6107 | + switch (op[3] & 0x00) | |
6108 | + { | |
6109 | + case 0x00: | |
6110 | + goto op_semantics_40; | |
6111 | + break; | |
6112 | + } | |
6113 | + break; | |
6114 | + case 0x6c: | |
6115 | + GETBYTE (); | |
6116 | + switch (op[3] & 0x0f) | |
6117 | + { | |
6118 | + case 0x00: | |
6119 | + goto op_semantics_41; | |
6120 | + break; | |
6121 | + case 0x01: | |
6122 | + goto op_semantics_42; | |
6123 | + break; | |
6124 | + case 0x02: | |
6125 | + goto op_semantics_43; | |
6126 | + break; | |
6127 | + default: UNSUPPORTED(); break; | |
6128 | + } | |
6129 | + break; | |
6130 | + case 0x6d: | |
6131 | + GETBYTE (); | |
6132 | + switch (op[3] & 0x0f) | |
6133 | + { | |
6134 | + case 0x00: | |
6135 | + goto op_semantics_44; | |
6136 | + break; | |
6137 | + case 0x08: | |
6138 | + goto op_semantics_45; | |
6139 | + break; | |
6140 | + case 0x09: | |
6141 | + goto op_semantics_46; | |
6142 | + break; | |
6143 | + case 0x0c: | |
6144 | + goto op_semantics_47; | |
6145 | + break; | |
6146 | + case 0x0d: | |
6147 | + goto op_semantics_48; | |
6148 | + break; | |
6149 | + default: UNSUPPORTED(); break; | |
6150 | + } | |
6151 | + break; | |
6152 | + case 0x70: | |
6153 | + GETBYTE (); | |
6154 | + switch (op[3] & 0x00) | |
6155 | + { | |
6156 | + case 0x00: | |
6157 | + goto op_semantics_36; | |
6158 | + break; | |
6159 | + } | |
6160 | + break; | |
6161 | + case 0x71: | |
6162 | + GETBYTE (); | |
6163 | + switch (op[3] & 0x00) | |
6164 | + { | |
6165 | + case 0x00: | |
6166 | + goto op_semantics_37; | |
6167 | + break; | |
6168 | + } | |
6169 | + break; | |
6170 | + case 0x72: | |
6171 | + GETBYTE (); | |
6172 | + switch (op[3] & 0x00) | |
6173 | + { | |
6174 | + case 0x00: | |
6175 | + goto op_semantics_38; | |
6176 | + break; | |
6177 | + } | |
6178 | + break; | |
6179 | + case 0x75: | |
6180 | + GETBYTE (); | |
6181 | + switch (op[3] & 0x00) | |
6182 | + { | |
6183 | + case 0x00: | |
6184 | + goto op_semantics_39; | |
6185 | + break; | |
6186 | + } | |
6187 | + break; | |
6188 | + case 0x78: | |
6189 | + GETBYTE (); | |
6190 | + switch (op[3] & 0x00) | |
6191 | + { | |
6192 | + case 0x00: | |
6193 | + goto op_semantics_40; | |
6194 | + break; | |
6195 | + } | |
6196 | + break; | |
6197 | + case 0x7c: | |
6198 | + GETBYTE (); | |
6199 | + switch (op[3] & 0x0f) | |
6200 | + { | |
6201 | + case 0x00: | |
6202 | + goto op_semantics_41; | |
6203 | + break; | |
6204 | + case 0x01: | |
6205 | + goto op_semantics_42; | |
6206 | + break; | |
6207 | + case 0x02: | |
6208 | + goto op_semantics_43; | |
6209 | + break; | |
6210 | + default: UNSUPPORTED(); break; | |
6211 | + } | |
6212 | + break; | |
6213 | + case 0x7d: | |
6214 | + GETBYTE (); | |
6215 | + switch (op[3] & 0x0f) | |
6216 | + { | |
6217 | + case 0x00: | |
6218 | + goto op_semantics_44; | |
6219 | + break; | |
6220 | + case 0x08: | |
6221 | + goto op_semantics_45; | |
6222 | + break; | |
6223 | + case 0x09: | |
6224 | + goto op_semantics_46; | |
6225 | + break; | |
6226 | + case 0x0c: | |
6227 | + goto op_semantics_47; | |
6228 | + break; | |
6229 | + case 0x0d: | |
6230 | + goto op_semantics_48; | |
6231 | + break; | |
6232 | + default: UNSUPPORTED(); break; | |
6233 | + } | |
6234 | + break; | |
6235 | + case 0x80: | |
6236 | + GETBYTE (); | |
6237 | + switch (op[3] & 0x00) | |
6238 | + { | |
6239 | + case 0x00: | |
6240 | + goto op_semantics_36; | |
6241 | + break; | |
6242 | + } | |
6243 | + break; | |
6244 | + case 0x81: | |
6245 | + GETBYTE (); | |
6246 | + switch (op[3] & 0x00) | |
6247 | + { | |
6248 | + case 0x00: | |
6249 | + goto op_semantics_37; | |
6250 | + break; | |
6251 | + } | |
6252 | + break; | |
6253 | + case 0x82: | |
6254 | + GETBYTE (); | |
6255 | + switch (op[3] & 0x00) | |
6256 | + { | |
6257 | + case 0x00: | |
6258 | + goto op_semantics_38; | |
6259 | + break; | |
6260 | + } | |
6261 | + break; | |
6262 | + case 0x85: | |
6263 | + GETBYTE (); | |
6264 | + switch (op[3] & 0x00) | |
6265 | + { | |
6266 | + case 0x00: | |
6267 | + goto op_semantics_39; | |
6268 | + break; | |
6269 | + } | |
6270 | + break; | |
6271 | + case 0x88: | |
6272 | + GETBYTE (); | |
6273 | + switch (op[3] & 0x00) | |
6274 | + { | |
6275 | + case 0x00: | |
6276 | + goto op_semantics_40; | |
6277 | + break; | |
6278 | + } | |
6279 | + break; | |
6280 | + case 0x8c: | |
6281 | + GETBYTE (); | |
6282 | + switch (op[3] & 0x0f) | |
6283 | + { | |
6284 | + case 0x00: | |
6285 | + goto op_semantics_41; | |
6286 | + break; | |
6287 | + case 0x01: | |
6288 | + goto op_semantics_42; | |
6289 | + break; | |
6290 | + case 0x02: | |
6291 | + goto op_semantics_43; | |
6292 | + break; | |
6293 | + default: UNSUPPORTED(); break; | |
6294 | + } | |
6295 | + break; | |
6296 | + case 0x8d: | |
6297 | + GETBYTE (); | |
6298 | + switch (op[3] & 0x0f) | |
6299 | + { | |
6300 | + case 0x00: | |
6301 | + goto op_semantics_44; | |
6302 | + break; | |
6303 | + case 0x08: | |
6304 | + goto op_semantics_45; | |
6305 | + break; | |
6306 | + case 0x09: | |
6307 | + goto op_semantics_46; | |
6308 | + break; | |
6309 | + case 0x0c: | |
6310 | + goto op_semantics_47; | |
6311 | + break; | |
6312 | + case 0x0d: | |
6313 | + goto op_semantics_48; | |
6314 | + break; | |
6315 | + default: UNSUPPORTED(); break; | |
6316 | + } | |
6317 | + break; | |
6318 | + case 0x90: | |
6319 | + GETBYTE (); | |
6320 | + switch (op[3] & 0x00) | |
6321 | + { | |
6322 | + case 0x00: | |
6323 | + goto op_semantics_36; | |
6324 | + break; | |
6325 | + } | |
6326 | + break; | |
6327 | + case 0x91: | |
6328 | + GETBYTE (); | |
6329 | + switch (op[3] & 0x00) | |
6330 | + { | |
6331 | + case 0x00: | |
6332 | + goto op_semantics_37; | |
6333 | + break; | |
6334 | + } | |
6335 | + break; | |
6336 | + case 0x92: | |
6337 | + GETBYTE (); | |
6338 | + switch (op[3] & 0x00) | |
6339 | + { | |
6340 | + case 0x00: | |
6341 | + goto op_semantics_38; | |
6342 | + break; | |
6343 | + } | |
6344 | + break; | |
6345 | + case 0x95: | |
6346 | + GETBYTE (); | |
6347 | + switch (op[3] & 0x00) | |
6348 | + { | |
6349 | + case 0x00: | |
6350 | + goto op_semantics_39; | |
6351 | + break; | |
6352 | + } | |
6353 | + break; | |
6354 | + case 0x98: | |
6355 | + GETBYTE (); | |
6356 | + switch (op[3] & 0x00) | |
6357 | + { | |
6358 | + case 0x00: | |
6359 | + goto op_semantics_40; | |
6360 | + break; | |
6361 | + } | |
6362 | + break; | |
6363 | + case 0x9c: | |
6364 | + GETBYTE (); | |
6365 | + switch (op[3] & 0x0f) | |
6366 | + { | |
6367 | + case 0x00: | |
6368 | + goto op_semantics_41; | |
6369 | + break; | |
6370 | + case 0x01: | |
6371 | + goto op_semantics_42; | |
6372 | + break; | |
6373 | + case 0x02: | |
6374 | + goto op_semantics_43; | |
6375 | + break; | |
6376 | + default: UNSUPPORTED(); break; | |
6377 | + } | |
6378 | + break; | |
6379 | + case 0x9d: | |
6380 | + GETBYTE (); | |
6381 | + switch (op[3] & 0x0f) | |
6382 | + { | |
6383 | + case 0x00: | |
6384 | + goto op_semantics_44; | |
6385 | + break; | |
6386 | + case 0x08: | |
6387 | + goto op_semantics_45; | |
6388 | + break; | |
6389 | + case 0x09: | |
6390 | + goto op_semantics_46; | |
6391 | + break; | |
6392 | + case 0x0c: | |
6393 | + goto op_semantics_47; | |
6394 | + break; | |
6395 | + case 0x0d: | |
6396 | + goto op_semantics_48; | |
6397 | + break; | |
6398 | + default: UNSUPPORTED(); break; | |
6399 | + } | |
6400 | + break; | |
6401 | + case 0xa0: | |
6402 | + GETBYTE (); | |
6403 | + switch (op[3] & 0x00) | |
6404 | + { | |
6405 | + case 0x00: | |
6406 | + goto op_semantics_36; | |
6407 | + break; | |
6408 | + } | |
6409 | + break; | |
6410 | + case 0xa1: | |
6411 | + GETBYTE (); | |
6412 | + switch (op[3] & 0x00) | |
6413 | + { | |
6414 | + case 0x00: | |
6415 | + goto op_semantics_37; | |
6416 | + break; | |
6417 | + } | |
6418 | + break; | |
6419 | + case 0xa2: | |
6420 | + GETBYTE (); | |
6421 | + switch (op[3] & 0x00) | |
6422 | + { | |
6423 | + case 0x00: | |
6424 | + goto op_semantics_38; | |
6425 | + break; | |
6426 | + } | |
6427 | + break; | |
6428 | + case 0xa5: | |
6429 | + GETBYTE (); | |
6430 | + switch (op[3] & 0x00) | |
6431 | + { | |
6432 | + case 0x00: | |
6433 | + goto op_semantics_39; | |
6434 | + break; | |
6435 | + } | |
6436 | + break; | |
6437 | + case 0xa8: | |
6438 | + GETBYTE (); | |
6439 | + switch (op[3] & 0x00) | |
6440 | + { | |
6441 | + case 0x00: | |
6442 | + goto op_semantics_40; | |
6443 | + break; | |
6444 | + } | |
6445 | + break; | |
6446 | + case 0xac: | |
6447 | + GETBYTE (); | |
6448 | + switch (op[3] & 0x0f) | |
6449 | + { | |
6450 | + case 0x00: | |
6451 | + goto op_semantics_41; | |
6452 | + break; | |
6453 | + case 0x01: | |
6454 | + goto op_semantics_42; | |
6455 | + break; | |
6456 | + case 0x02: | |
6457 | + goto op_semantics_43; | |
6458 | + break; | |
6459 | + default: UNSUPPORTED(); break; | |
6460 | + } | |
6461 | + break; | |
6462 | + case 0xad: | |
6463 | + GETBYTE (); | |
6464 | + switch (op[3] & 0x0f) | |
6465 | + { | |
6466 | + case 0x00: | |
6467 | + goto op_semantics_44; | |
6468 | + break; | |
6469 | + case 0x08: | |
6470 | + goto op_semantics_45; | |
6471 | + break; | |
6472 | + case 0x09: | |
6473 | + goto op_semantics_46; | |
6474 | + break; | |
6475 | + case 0x0c: | |
6476 | + goto op_semantics_47; | |
6477 | + break; | |
6478 | + case 0x0d: | |
6479 | + goto op_semantics_48; | |
6480 | + break; | |
6481 | + default: UNSUPPORTED(); break; | |
6482 | + } | |
6483 | + break; | |
6484 | + case 0xb0: | |
6485 | + GETBYTE (); | |
6486 | + switch (op[3] & 0x00) | |
6487 | + { | |
6488 | + case 0x00: | |
6489 | + goto op_semantics_36; | |
6490 | + break; | |
6491 | + } | |
6492 | + break; | |
6493 | + case 0xb1: | |
6494 | + GETBYTE (); | |
6495 | + switch (op[3] & 0x00) | |
6496 | + { | |
6497 | + case 0x00: | |
6498 | + goto op_semantics_37; | |
6499 | + break; | |
6500 | + } | |
6501 | + break; | |
6502 | + case 0xb2: | |
6503 | + GETBYTE (); | |
6504 | + switch (op[3] & 0x00) | |
6505 | + { | |
6506 | + case 0x00: | |
6507 | + goto op_semantics_38; | |
6508 | + break; | |
6509 | + } | |
6510 | + break; | |
6511 | + case 0xb5: | |
6512 | + GETBYTE (); | |
6513 | + switch (op[3] & 0x00) | |
6514 | + { | |
6515 | + case 0x00: | |
6516 | + goto op_semantics_39; | |
6517 | + break; | |
6518 | + } | |
6519 | + break; | |
6520 | + case 0xb8: | |
6521 | + GETBYTE (); | |
6522 | + switch (op[3] & 0x00) | |
6523 | + { | |
6524 | + case 0x00: | |
6525 | + goto op_semantics_40; | |
6526 | + break; | |
6527 | + } | |
6528 | + break; | |
6529 | + case 0xbc: | |
6530 | + GETBYTE (); | |
6531 | + switch (op[3] & 0x0f) | |
6532 | + { | |
6533 | + case 0x00: | |
6534 | + goto op_semantics_41; | |
6535 | + break; | |
6536 | + case 0x01: | |
6537 | + goto op_semantics_42; | |
6538 | + break; | |
6539 | + case 0x02: | |
6540 | + goto op_semantics_43; | |
6541 | + break; | |
6542 | + default: UNSUPPORTED(); break; | |
6543 | + } | |
6544 | + break; | |
6545 | + case 0xbd: | |
6546 | + GETBYTE (); | |
6547 | + switch (op[3] & 0x0f) | |
6548 | + { | |
6549 | + case 0x00: | |
6550 | + goto op_semantics_44; | |
6551 | + break; | |
6552 | + case 0x08: | |
6553 | + goto op_semantics_45; | |
6554 | + break; | |
6555 | + case 0x09: | |
6556 | + goto op_semantics_46; | |
6557 | + break; | |
6558 | + case 0x0c: | |
6559 | + goto op_semantics_47; | |
6560 | + break; | |
6561 | + case 0x0d: | |
6562 | + goto op_semantics_48; | |
6563 | + break; | |
6564 | + default: UNSUPPORTED(); break; | |
6565 | + } | |
6566 | + break; | |
6567 | + case 0xc0: | |
6568 | + GETBYTE (); | |
6569 | + switch (op[3] & 0x00) | |
6570 | + { | |
6571 | + case 0x00: | |
6572 | + goto op_semantics_36; | |
6573 | + break; | |
6574 | + } | |
6575 | + break; | |
6576 | + case 0xc1: | |
6577 | + GETBYTE (); | |
6578 | + switch (op[3] & 0x00) | |
6579 | + { | |
6580 | + case 0x00: | |
6581 | + goto op_semantics_37; | |
6582 | + break; | |
6583 | + } | |
6584 | + break; | |
6585 | + case 0xc2: | |
6586 | + GETBYTE (); | |
6587 | + switch (op[3] & 0x00) | |
6588 | + { | |
6589 | + case 0x00: | |
6590 | + goto op_semantics_38; | |
6591 | + break; | |
6592 | + } | |
6593 | + break; | |
6594 | + case 0xc5: | |
6595 | + GETBYTE (); | |
6596 | + switch (op[3] & 0x00) | |
6597 | + { | |
6598 | + case 0x00: | |
6599 | + goto op_semantics_39; | |
6600 | + break; | |
6601 | + } | |
6602 | + break; | |
6603 | + case 0xc8: | |
6604 | + GETBYTE (); | |
6605 | + switch (op[3] & 0x00) | |
6606 | + { | |
6607 | + case 0x00: | |
6608 | + goto op_semantics_40; | |
6609 | + break; | |
6610 | + } | |
6611 | + break; | |
6612 | + case 0xcc: | |
6613 | + GETBYTE (); | |
6614 | + switch (op[3] & 0x0f) | |
6615 | + { | |
6616 | + case 0x00: | |
6617 | + goto op_semantics_41; | |
6618 | + break; | |
6619 | + case 0x01: | |
6620 | + goto op_semantics_42; | |
6621 | + break; | |
6622 | + case 0x02: | |
6623 | + goto op_semantics_43; | |
6624 | + break; | |
6625 | + default: UNSUPPORTED(); break; | |
6626 | + } | |
6627 | + break; | |
6628 | + case 0xcd: | |
6629 | + GETBYTE (); | |
6630 | + switch (op[3] & 0x0f) | |
6631 | + { | |
6632 | + case 0x00: | |
6633 | + goto op_semantics_44; | |
6634 | + break; | |
6635 | + case 0x08: | |
6636 | + goto op_semantics_45; | |
6637 | + break; | |
6638 | + case 0x09: | |
6639 | + goto op_semantics_46; | |
6640 | + break; | |
6641 | + case 0x0c: | |
6642 | + goto op_semantics_47; | |
6643 | + break; | |
6644 | + case 0x0d: | |
6645 | + goto op_semantics_48; | |
6646 | + break; | |
6647 | + default: UNSUPPORTED(); break; | |
6648 | + } | |
6649 | + break; | |
6650 | + case 0xd0: | |
6651 | + GETBYTE (); | |
6652 | + switch (op[3] & 0x00) | |
6653 | + { | |
6654 | + case 0x00: | |
6655 | + goto op_semantics_36; | |
6656 | + break; | |
6657 | + } | |
6658 | + break; | |
6659 | + case 0xd1: | |
6660 | + GETBYTE (); | |
6661 | + switch (op[3] & 0x00) | |
6662 | + { | |
6663 | + case 0x00: | |
6664 | + goto op_semantics_37; | |
6665 | + break; | |
6666 | + } | |
6667 | + break; | |
6668 | + case 0xd2: | |
6669 | + GETBYTE (); | |
6670 | + switch (op[3] & 0x00) | |
6671 | + { | |
6672 | + case 0x00: | |
6673 | + goto op_semantics_38; | |
6674 | + break; | |
6675 | + } | |
6676 | + break; | |
6677 | + case 0xd5: | |
6678 | + GETBYTE (); | |
6679 | + switch (op[3] & 0x00) | |
6680 | + { | |
6681 | + case 0x00: | |
6682 | + goto op_semantics_39; | |
6683 | + break; | |
6684 | + } | |
6685 | + break; | |
6686 | + case 0xd8: | |
6687 | + GETBYTE (); | |
6688 | + switch (op[3] & 0x00) | |
6689 | + { | |
6690 | + case 0x00: | |
6691 | + goto op_semantics_40; | |
6692 | + break; | |
6693 | + } | |
6694 | + break; | |
6695 | + case 0xdc: | |
6696 | + GETBYTE (); | |
6697 | + switch (op[3] & 0x0f) | |
6698 | + { | |
6699 | + case 0x00: | |
6700 | + goto op_semantics_41; | |
6701 | + break; | |
6702 | + case 0x01: | |
6703 | + goto op_semantics_42; | |
6704 | + break; | |
6705 | + case 0x02: | |
6706 | + goto op_semantics_43; | |
6707 | + break; | |
6708 | + default: UNSUPPORTED(); break; | |
6709 | + } | |
6710 | + break; | |
6711 | + case 0xdd: | |
6712 | + GETBYTE (); | |
6713 | + switch (op[3] & 0x0f) | |
6714 | + { | |
6715 | + case 0x00: | |
6716 | + goto op_semantics_44; | |
6717 | + break; | |
6718 | + case 0x08: | |
6719 | + goto op_semantics_45; | |
6720 | + break; | |
6721 | + case 0x09: | |
6722 | + goto op_semantics_46; | |
6723 | + break; | |
6724 | + case 0x0c: | |
6725 | + goto op_semantics_47; | |
6726 | + break; | |
6727 | + case 0x0d: | |
6728 | + goto op_semantics_48; | |
6729 | + break; | |
6730 | + default: UNSUPPORTED(); break; | |
6731 | + } | |
6732 | + break; | |
6733 | + case 0xe0: | |
6734 | + GETBYTE (); | |
6735 | + switch (op[3] & 0x00) | |
6736 | + { | |
6737 | + case 0x00: | |
6738 | + goto op_semantics_36; | |
6739 | + break; | |
6740 | + } | |
6741 | + break; | |
6742 | + case 0xe1: | |
6743 | + GETBYTE (); | |
6744 | + switch (op[3] & 0x00) | |
6745 | + { | |
6746 | + case 0x00: | |
6747 | + goto op_semantics_37; | |
6748 | + break; | |
6749 | + } | |
6750 | + break; | |
6751 | + case 0xe2: | |
6752 | + GETBYTE (); | |
6753 | + switch (op[3] & 0x00) | |
6754 | + { | |
6755 | + case 0x00: | |
6756 | + goto op_semantics_38; | |
6757 | + break; | |
6758 | + } | |
6759 | + break; | |
6760 | + case 0xe5: | |
6761 | + GETBYTE (); | |
6762 | + switch (op[3] & 0x00) | |
6763 | + { | |
6764 | + case 0x00: | |
6765 | + goto op_semantics_39; | |
6766 | + break; | |
6767 | + } | |
6768 | + break; | |
6769 | + case 0xe8: | |
6770 | + GETBYTE (); | |
6771 | + switch (op[3] & 0x00) | |
6772 | + { | |
6773 | + case 0x00: | |
6774 | + goto op_semantics_40; | |
6775 | + break; | |
6776 | + } | |
6777 | + break; | |
6778 | + case 0xec: | |
6779 | + GETBYTE (); | |
6780 | + switch (op[3] & 0x0f) | |
6781 | + { | |
6782 | + case 0x00: | |
6783 | + goto op_semantics_41; | |
6784 | + break; | |
6785 | + case 0x01: | |
6786 | + goto op_semantics_42; | |
6787 | + break; | |
6788 | + case 0x02: | |
6789 | + goto op_semantics_43; | |
6790 | + break; | |
6791 | + default: UNSUPPORTED(); break; | |
6792 | + } | |
6793 | + break; | |
6794 | + case 0xed: | |
6795 | + GETBYTE (); | |
6796 | + switch (op[3] & 0x0f) | |
6797 | + { | |
6798 | + case 0x00: | |
6799 | + goto op_semantics_44; | |
6800 | + break; | |
6801 | + case 0x08: | |
6802 | + goto op_semantics_45; | |
6803 | + break; | |
6804 | + case 0x09: | |
6805 | + goto op_semantics_46; | |
6806 | + break; | |
6807 | + case 0x0c: | |
6808 | + goto op_semantics_47; | |
6809 | + break; | |
6810 | + case 0x0d: | |
6811 | + goto op_semantics_48; | |
6812 | + break; | |
6813 | + default: UNSUPPORTED(); break; | |
6814 | + } | |
6815 | + break; | |
6816 | + case 0xf0: | |
6817 | + GETBYTE (); | |
6818 | + switch (op[3] & 0x00) | |
6819 | + { | |
6820 | + case 0x00: | |
6821 | + goto op_semantics_36; | |
6822 | + break; | |
6823 | + } | |
6824 | + break; | |
6825 | + case 0xf1: | |
6826 | + GETBYTE (); | |
6827 | + switch (op[3] & 0x00) | |
6828 | + { | |
6829 | + case 0x00: | |
6830 | + goto op_semantics_37; | |
6831 | + break; | |
6832 | + } | |
6833 | + break; | |
6834 | + case 0xf2: | |
6835 | + GETBYTE (); | |
6836 | + switch (op[3] & 0x00) | |
6837 | + { | |
6838 | + case 0x00: | |
6839 | + goto op_semantics_38; | |
6840 | + break; | |
6841 | + } | |
6842 | + break; | |
6843 | + case 0xf5: | |
6844 | + GETBYTE (); | |
6845 | + switch (op[3] & 0x00) | |
6846 | + { | |
6847 | + case 0x00: | |
6848 | + goto op_semantics_39; | |
6849 | + break; | |
6850 | + } | |
6851 | + break; | |
6852 | + case 0xf8: | |
6853 | + GETBYTE (); | |
6854 | + switch (op[3] & 0x00) | |
6855 | + { | |
6856 | + case 0x00: | |
6857 | + goto op_semantics_40; | |
6858 | + break; | |
6859 | + } | |
6860 | + break; | |
6861 | + case 0xfc: | |
6862 | + GETBYTE (); | |
6863 | + switch (op[3] & 0x0f) | |
6864 | + { | |
6865 | + case 0x00: | |
6866 | + goto op_semantics_41; | |
6867 | + break; | |
6868 | + case 0x01: | |
6869 | + goto op_semantics_42; | |
6870 | + break; | |
6871 | + case 0x02: | |
6872 | + goto op_semantics_43; | |
6873 | + break; | |
6874 | + default: UNSUPPORTED(); break; | |
6875 | + } | |
6876 | + break; | |
6877 | + case 0xfd: | |
6878 | + GETBYTE (); | |
6879 | + switch (op[3] & 0x0f) | |
6880 | + { | |
6881 | + case 0x00: | |
6882 | + goto op_semantics_44; | |
6883 | + break; | |
6884 | + case 0x08: | |
6885 | + goto op_semantics_45; | |
6886 | + break; | |
6887 | + case 0x09: | |
6888 | + goto op_semantics_46; | |
6889 | + break; | |
6890 | + case 0x0c: | |
6891 | + goto op_semantics_47; | |
6892 | + break; | |
6893 | + case 0x0d: | |
6894 | + goto op_semantics_48; | |
6895 | + break; | |
6896 | + default: UNSUPPORTED(); break; | |
6897 | + } | |
6898 | + break; | |
6899 | + default: UNSUPPORTED(); break; | |
6900 | + } | |
6901 | + break; | |
6902 | + default: UNSUPPORTED(); break; | |
6903 | + } | |
6904 | + break; | |
6905 | + case 0x77: | |
6906 | + GETBYTE (); | |
6907 | + switch (op[1] & 0xf0) | |
6908 | + { | |
6909 | + case 0x00: | |
6910 | + goto op_semantics_32; | |
6911 | + break; | |
6912 | + case 0x10: | |
6913 | + goto op_semantics_33; | |
6914 | + break; | |
6915 | + case 0x20: | |
6916 | + goto op_semantics_34; | |
6917 | + break; | |
6918 | + case 0x30: | |
6919 | + goto op_semantics_35; | |
6920 | + break; | |
6921 | + default: UNSUPPORTED(); break; | |
6922 | + } | |
6923 | + break; | |
6924 | + case 0x78: | |
6925 | + GETBYTE (); | |
6926 | + switch (op[1] & 0x00) | |
6927 | + { | |
6928 | + case 0x00: | |
6929 | + op_semantics_49: | |
6930 | + { | |
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; | |
6938 | + if (trace) | |
6939 | + { | |
6940 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
6941 | + "/** 0111 100b ittt rdst bset #%1, %0 */", | |
6942 | + op[0], op[1]); | |
6943 | + printf (" b = 0x%x,", b); | |
6944 | + printf (" ittt = 0x%x,", ittt); | |
6945 | + printf (" rdst = 0x%x\n", rdst); | |
6946 | + } | |
6947 | + SYNTAX("bset #%1, %0"); | |
6948 | +#line 968 "rx-decode.opc" | |
6949 | + ID(bset); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____; | |
6950 | + | |
6951 | + | |
6952 | + } | |
6953 | + break; | |
6954 | + } | |
6955 | + break; | |
6956 | + case 0x79: | |
6957 | + GETBYTE (); | |
6958 | + switch (op[1] & 0x00) | |
6959 | + { | |
6960 | + case 0x00: | |
6961 | + goto op_semantics_49; | |
6962 | + break; | |
6963 | + } | |
6964 | + break; | |
6965 | + case 0x7a: | |
6966 | + GETBYTE (); | |
6967 | + switch (op[1] & 0x00) | |
6968 | + { | |
6969 | + case 0x00: | |
6970 | + op_semantics_50: | |
6971 | + { | |
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; | |
6979 | + if (trace) | |
6980 | + { | |
6981 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
6982 | + "/** 0111 101b ittt rdst bclr #%1, %0 */", | |
6983 | + op[0], op[1]); | |
6984 | + printf (" b = 0x%x,", b); | |
6985 | + printf (" ittt = 0x%x,", ittt); | |
6986 | + printf (" rdst = 0x%x\n", rdst); | |
6987 | + } | |
6988 | + SYNTAX("bclr #%1, %0"); | |
6989 | +#line 980 "rx-decode.opc" | |
6990 | + ID(bclr); BWL(LSIZE); SC(b*16+ittt); DR(rdst); F_____; | |
6991 | + | |
6992 | + | |
6993 | + } | |
6994 | + break; | |
6995 | + } | |
6996 | + break; | |
6997 | + case 0x7b: | |
6998 | + GETBYTE (); | |
6999 | + switch (op[1] & 0x00) | |
7000 | + { | |
7001 | + case 0x00: | |
7002 | + goto op_semantics_50; | |
7003 | + break; | |
7004 | + } | |
7005 | + break; | |
7006 | + case 0x7c: | |
7007 | + GETBYTE (); | |
7008 | + switch (op[1] & 0x00) | |
7009 | + { | |
7010 | + case 0x00: | |
7011 | + op_semantics_51: | |
7012 | + { | |
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; | |
7020 | + if (trace) | |
7021 | + { | |
7022 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7023 | + "/** 0111 110b ittt rdst btst #%2, %1 */", | |
7024 | + op[0], op[1]); | |
7025 | + printf (" b = 0x%x,", b); | |
7026 | + printf (" ittt = 0x%x,", ittt); | |
7027 | + printf (" rdst = 0x%x\n", rdst); | |
7028 | + } | |
7029 | + SYNTAX("btst #%2, %1"); | |
7030 | +#line 992 "rx-decode.opc" | |
7031 | + ID(btst); BWL(LSIZE); S2C(b*16+ittt); SR(rdst); F___ZC; | |
7032 | + | |
7033 | + | |
7034 | + } | |
7035 | + break; | |
7036 | + } | |
7037 | + break; | |
7038 | + case 0x7d: | |
7039 | + GETBYTE (); | |
7040 | + switch (op[1] & 0x00) | |
7041 | + { | |
7042 | + case 0x00: | |
7043 | + goto op_semantics_51; | |
7044 | + break; | |
7045 | + } | |
7046 | + break; | |
7047 | + case 0x7e: | |
7048 | + GETBYTE (); | |
7049 | + switch (op[1] & 0xf0) | |
7050 | + { | |
7051 | + case 0x00: | |
7052 | + { | |
7053 | + /** 0111 1110 0000 rdst not %0 */ | |
7054 | +#line 483 "rx-decode.opc" | |
5298 | 7055 | int rdst AU = op[1] & 0x0f; |
5299 | 7056 | if (trace) |
5300 | 7057 | { |
5301 | 7058 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5302 | - "/** 0111 1110 0011 rdst sat %0 */", | |
7059 | + "/** 0111 1110 0000 rdst not %0 */", | |
7060 | + op[0], op[1]); | |
7061 | + printf (" rdst = 0x%x\n", rdst); | |
7062 | + } | |
7063 | + SYNTAX("not %0"); | |
7064 | +#line 483 "rx-decode.opc" | |
7065 | + ID(xor); DR(rdst); SR(rdst); S2C(~0); F__SZ_; | |
7066 | + | |
7067 | + } | |
7068 | + break; | |
7069 | + case 0x10: | |
7070 | + { | |
7071 | + /** 0111 1110 0001 rdst neg %0 */ | |
7072 | +#line 504 "rx-decode.opc" | |
7073 | + int rdst AU = op[1] & 0x0f; | |
7074 | + if (trace) | |
7075 | + { | |
7076 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7077 | + "/** 0111 1110 0001 rdst neg %0 */", | |
7078 | + op[0], op[1]); | |
7079 | + printf (" rdst = 0x%x\n", rdst); | |
7080 | + } | |
7081 | + SYNTAX("neg %0"); | |
7082 | +#line 504 "rx-decode.opc" | |
7083 | + ID(sub); DR(rdst); SC(0); S2R(rdst); F_OSZC; | |
7084 | + | |
7085 | + } | |
7086 | + break; | |
7087 | + case 0x20: | |
7088 | + { | |
7089 | + /** 0111 1110 0010 rdst abs %0 */ | |
7090 | +#line 586 "rx-decode.opc" | |
7091 | + int rdst AU = op[1] & 0x0f; | |
7092 | + if (trace) | |
7093 | + { | |
7094 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7095 | + "/** 0111 1110 0010 rdst abs %0 */", | |
7096 | + op[0], op[1]); | |
7097 | + printf (" rdst = 0x%x\n", rdst); | |
7098 | + } | |
7099 | + SYNTAX("abs %0"); | |
7100 | +#line 586 "rx-decode.opc" | |
7101 | + ID(abs); DR(rdst); SR(rdst); F_OSZ_; | |
7102 | + | |
7103 | + } | |
7104 | + break; | |
7105 | + case 0x30: | |
7106 | + { | |
7107 | + /** 0111 1110 0011 rdst sat %0 */ | |
7108 | +#line 906 "rx-decode.opc" | |
7109 | + int rdst AU = op[1] & 0x0f; | |
7110 | + if (trace) | |
7111 | + { | |
7112 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7113 | + "/** 0111 1110 0011 rdst sat %0 */", | |
7114 | + op[0], op[1]); | |
7115 | + printf (" rdst = 0x%x\n", rdst); | |
7116 | + } | |
7117 | + SYNTAX("sat %0"); | |
7118 | +#line 906 "rx-decode.opc" | |
7119 | + ID(sat); DR (rdst); | |
7120 | + | |
7121 | + } | |
7122 | + break; | |
7123 | + case 0x40: | |
7124 | + { | |
7125 | + /** 0111 1110 0100 rdst rorc %0 */ | |
7126 | +#line 766 "rx-decode.opc" | |
7127 | + int rdst AU = op[1] & 0x0f; | |
7128 | + if (trace) | |
7129 | + { | |
7130 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7131 | + "/** 0111 1110 0100 rdst rorc %0 */", | |
7132 | + op[0], op[1]); | |
7133 | + printf (" rdst = 0x%x\n", rdst); | |
7134 | + } | |
7135 | + SYNTAX("rorc %0"); | |
7136 | +#line 766 "rx-decode.opc" | |
7137 | + ID(rorc); DR(rdst); F__SZC; | |
7138 | + | |
7139 | + } | |
7140 | + break; | |
7141 | + case 0x50: | |
7142 | + { | |
7143 | + /** 0111 1110 0101 rdst rolc %0 */ | |
7144 | +#line 763 "rx-decode.opc" | |
7145 | + int rdst AU = op[1] & 0x0f; | |
7146 | + if (trace) | |
7147 | + { | |
7148 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7149 | + "/** 0111 1110 0101 rdst rolc %0 */", | |
7150 | + op[0], op[1]); | |
7151 | + printf (" rdst = 0x%x\n", rdst); | |
7152 | + } | |
7153 | + SYNTAX("rolc %0"); | |
7154 | +#line 763 "rx-decode.opc" | |
7155 | + ID(rolc); DR(rdst); F__SZC; | |
7156 | + | |
7157 | + } | |
7158 | + break; | |
7159 | + case 0x80: | |
7160 | + case 0x90: | |
7161 | + case 0xa0: | |
7162 | + { | |
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; | |
7168 | + if (trace) | |
7169 | + { | |
7170 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7171 | + "/** 0111 1110 10sz rsrc push%s %1 */", | |
7172 | + op[0], op[1]); | |
7173 | + printf (" sz = 0x%x,", sz); | |
7174 | + printf (" rsrc = 0x%x\n", rsrc); | |
7175 | + } | |
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_____; | |
7179 | + | |
7180 | + } | |
7181 | + break; | |
7182 | + case 0xb0: | |
7183 | + { | |
7184 | + /** 0111 1110 1011 rdst pop %0 */ | |
7185 | +#line 396 "rx-decode.opc" | |
7186 | + int rdst AU = op[1] & 0x0f; | |
7187 | + if (trace) | |
7188 | + { | |
7189 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7190 | + "/** 0111 1110 1011 rdst pop %0 */", | |
7191 | + op[0], op[1]); | |
7192 | + printf (" rdst = 0x%x\n", rdst); | |
7193 | + } | |
7194 | + SYNTAX("pop %0"); | |
7195 | +#line 396 "rx-decode.opc" | |
7196 | + ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(rdst); F_____; | |
7197 | + | |
7198 | + } | |
7199 | + break; | |
7200 | + case 0xc0: | |
7201 | + case 0xd0: | |
7202 | + { | |
7203 | + /** 0111 1110 110 crsrc pushc %1 */ | |
7204 | +#line 1029 "rx-decode.opc" | |
7205 | + int crsrc AU = op[1] & 0x1f; | |
7206 | + if (trace) | |
7207 | + { | |
7208 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7209 | + "/** 0111 1110 110 crsrc pushc %1 */", | |
7210 | + op[0], op[1]); | |
7211 | + printf (" crsrc = 0x%x\n", crsrc); | |
7212 | + } | |
7213 | + SYNTAX("pushc %1"); | |
7214 | +#line 1029 "rx-decode.opc" | |
7215 | + ID(mov); OP(0, RX_Operand_Predec, 0, 0); SR(crsrc + 16); | |
7216 | + | |
7217 | + } | |
7218 | + break; | |
7219 | + case 0xe0: | |
7220 | + case 0xf0: | |
7221 | + { | |
7222 | + /** 0111 1110 111 crdst popc %0 */ | |
7223 | +#line 1026 "rx-decode.opc" | |
7224 | + int crdst AU = op[1] & 0x1f; | |
7225 | + if (trace) | |
7226 | + { | |
7227 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7228 | + "/** 0111 1110 111 crdst popc %0 */", | |
7229 | + op[0], op[1]); | |
7230 | + printf (" crdst = 0x%x\n", crdst); | |
7231 | + } | |
7232 | + SYNTAX("popc %0"); | |
7233 | +#line 1026 "rx-decode.opc" | |
7234 | + ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(crdst + 16); | |
7235 | + | |
7236 | + } | |
7237 | + break; | |
7238 | + default: UNSUPPORTED(); break; | |
7239 | + } | |
7240 | + break; | |
7241 | + case 0x7f: | |
7242 | + GETBYTE (); | |
7243 | + switch (op[1] & 0xff) | |
7244 | + { | |
7245 | + case 0x00: | |
7246 | + case 0x01: | |
7247 | + case 0x02: | |
7248 | + case 0x03: | |
7249 | + case 0x04: | |
7250 | + case 0x05: | |
7251 | + case 0x06: | |
7252 | + case 0x07: | |
7253 | + case 0x08: | |
7254 | + case 0x09: | |
7255 | + case 0x0a: | |
7256 | + case 0x0b: | |
7257 | + case 0x0c: | |
7258 | + case 0x0d: | |
7259 | + case 0x0e: | |
7260 | + case 0x0f: | |
7261 | + { | |
7262 | + /** 0111 1111 0000 rsrc jmp %0 */ | |
7263 | +#line 816 "rx-decode.opc" | |
7264 | + int rsrc AU = op[1] & 0x0f; | |
7265 | + if (trace) | |
7266 | + { | |
7267 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7268 | + "/** 0111 1111 0000 rsrc jmp %0 */", | |
7269 | + op[0], op[1]); | |
7270 | + printf (" rsrc = 0x%x\n", rsrc); | |
7271 | + } | |
7272 | + SYNTAX("jmp %0"); | |
7273 | +#line 816 "rx-decode.opc" | |
7274 | + ID(branch); DR(rsrc); | |
7275 | + | |
7276 | + } | |
7277 | + break; | |
7278 | + case 0x10: | |
7279 | + case 0x11: | |
7280 | + case 0x12: | |
7281 | + case 0x13: | |
7282 | + case 0x14: | |
7283 | + case 0x15: | |
7284 | + case 0x16: | |
7285 | + case 0x17: | |
7286 | + case 0x18: | |
7287 | + case 0x19: | |
7288 | + case 0x1a: | |
7289 | + case 0x1b: | |
7290 | + case 0x1c: | |
7291 | + case 0x1d: | |
7292 | + case 0x1e: | |
7293 | + case 0x1f: | |
7294 | + { | |
7295 | + /** 0111 1111 0001 rsrc jsr %0 */ | |
7296 | +#line 819 "rx-decode.opc" | |
7297 | + int rsrc AU = op[1] & 0x0f; | |
7298 | + if (trace) | |
7299 | + { | |
7300 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7301 | + "/** 0111 1111 0001 rsrc jsr %0 */", | |
7302 | + op[0], op[1]); | |
7303 | + printf (" rsrc = 0x%x\n", rsrc); | |
7304 | + } | |
7305 | + SYNTAX("jsr %0"); | |
7306 | +#line 819 "rx-decode.opc" | |
7307 | + ID(jsr); DR(rsrc); | |
7308 | + | |
7309 | + } | |
7310 | + break; | |
7311 | + case 0x40: | |
7312 | + case 0x41: | |
7313 | + case 0x42: | |
7314 | + case 0x43: | |
7315 | + case 0x44: | |
7316 | + case 0x45: | |
7317 | + case 0x46: | |
7318 | + case 0x47: | |
7319 | + case 0x48: | |
7320 | + case 0x49: | |
7321 | + case 0x4a: | |
7322 | + case 0x4b: | |
7323 | + case 0x4c: | |
7324 | + case 0x4d: | |
7325 | + case 0x4e: | |
7326 | + case 0x4f: | |
7327 | + { | |
7328 | + /** 0111 1111 0100 rsrc bra.l %0 */ | |
7329 | +#line 812 "rx-decode.opc" | |
7330 | + int rsrc AU = op[1] & 0x0f; | |
7331 | + if (trace) | |
7332 | + { | |
7333 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7334 | + "/** 0111 1111 0100 rsrc bra.l %0 */", | |
7335 | + op[0], op[1]); | |
7336 | + printf (" rsrc = 0x%x\n", rsrc); | |
7337 | + } | |
7338 | + SYNTAX("bra.l %0"); | |
7339 | +#line 812 "rx-decode.opc" | |
7340 | + ID(branchrel); DR(rsrc); | |
7341 | + | |
7342 | + | |
7343 | + } | |
7344 | + break; | |
7345 | + case 0x50: | |
7346 | + case 0x51: | |
7347 | + case 0x52: | |
7348 | + case 0x53: | |
7349 | + case 0x54: | |
7350 | + case 0x55: | |
7351 | + case 0x56: | |
7352 | + case 0x57: | |
7353 | + case 0x58: | |
7354 | + case 0x59: | |
7355 | + case 0x5a: | |
7356 | + case 0x5b: | |
7357 | + case 0x5c: | |
7358 | + case 0x5d: | |
7359 | + case 0x5e: | |
7360 | + case 0x5f: | |
7361 | + { | |
7362 | + /** 0111 1111 0101 rsrc bsr.l %0 */ | |
7363 | +#line 828 "rx-decode.opc" | |
7364 | + int rsrc AU = op[1] & 0x0f; | |
7365 | + if (trace) | |
7366 | + { | |
7367 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7368 | + "/** 0111 1111 0101 rsrc bsr.l %0 */", | |
7369 | + op[0], op[1]); | |
7370 | + printf (" rsrc = 0x%x\n", rsrc); | |
7371 | + } | |
7372 | + SYNTAX("bsr.l %0"); | |
7373 | +#line 828 "rx-decode.opc" | |
7374 | + ID(jsrrel); DR(rsrc); | |
7375 | + | |
7376 | + } | |
7377 | + break; | |
7378 | + case 0x80: | |
7379 | + case 0x81: | |
7380 | + case 0x82: | |
7381 | + { | |
7382 | + /** 0111 1111 1000 00sz suntil%s */ | |
7383 | +#line 852 "rx-decode.opc" | |
7384 | + int sz AU = op[1] & 0x03; | |
7385 | + if (trace) | |
7386 | + { | |
7387 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7388 | + "/** 0111 1111 1000 00sz suntil%s */", | |
7389 | + op[0], op[1]); | |
7390 | + printf (" sz = 0x%x\n", sz); | |
7391 | + } | |
7392 | + SYNTAX("suntil%s"); | |
7393 | +#line 852 "rx-decode.opc" | |
7394 | + ID(suntil); BWL(sz); F___ZC; | |
7395 | + | |
7396 | + } | |
7397 | + break; | |
7398 | + case 0x83: | |
7399 | + { | |
7400 | + /** 0111 1111 1000 0011 scmpu */ | |
7401 | + if (trace) | |
7402 | + { | |
7403 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7404 | + "/** 0111 1111 1000 0011 scmpu */", | |
7405 | + op[0], op[1]); | |
7406 | + } | |
7407 | + SYNTAX("scmpu"); | |
7408 | +#line 843 "rx-decode.opc" | |
7409 | + ID(scmpu); F___ZC; | |
7410 | + | |
7411 | + } | |
7412 | + break; | |
7413 | + case 0x84: | |
7414 | + case 0x85: | |
7415 | + case 0x86: | |
7416 | + { | |
7417 | + /** 0111 1111 1000 01sz swhile%s */ | |
7418 | +#line 855 "rx-decode.opc" | |
7419 | + int sz AU = op[1] & 0x03; | |
7420 | + if (trace) | |
7421 | + { | |
7422 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7423 | + "/** 0111 1111 1000 01sz swhile%s */", | |
7424 | + op[0], op[1]); | |
7425 | + printf (" sz = 0x%x\n", sz); | |
7426 | + } | |
7427 | + SYNTAX("swhile%s"); | |
7428 | +#line 855 "rx-decode.opc" | |
7429 | + ID(swhile); BWL(sz); F___ZC; | |
7430 | + | |
7431 | + } | |
7432 | + break; | |
7433 | + case 0x87: | |
7434 | + { | |
7435 | + /** 0111 1111 1000 0111 smovu */ | |
7436 | + if (trace) | |
7437 | + { | |
7438 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7439 | + "/** 0111 1111 1000 0111 smovu */", | |
7440 | + op[0], op[1]); | |
7441 | + } | |
7442 | + SYNTAX("smovu"); | |
7443 | +#line 846 "rx-decode.opc" | |
7444 | + ID(smovu); | |
7445 | + | |
7446 | + } | |
7447 | + break; | |
7448 | + case 0x88: | |
7449 | + case 0x89: | |
7450 | + case 0x8a: | |
7451 | + { | |
7452 | + /** 0111 1111 1000 10sz sstr%s */ | |
7453 | +#line 861 "rx-decode.opc" | |
7454 | + int sz AU = op[1] & 0x03; | |
7455 | + if (trace) | |
7456 | + { | |
7457 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7458 | + "/** 0111 1111 1000 10sz sstr%s */", | |
5303 | 7459 | op[0], op[1]); |
5304 | - printf (" rdst = 0x%x\n", rdst); | |
7460 | + printf (" sz = 0x%x\n", sz); | |
5305 | 7461 | } |
5306 | - SYNTAX("sat %0"); | |
5307 | -#line 885 "rx-decode.opc" | |
5308 | - ID(sat); DR (rdst); | |
7462 | + SYNTAX("sstr%s"); | |
7463 | +#line 861 "rx-decode.opc" | |
7464 | + ID(sstr); BWL(sz); | |
7465 | + | |
7466 | + /*----------------------------------------------------------------------*/ | |
7467 | + /* RMPA */ | |
5309 | 7468 | |
5310 | 7469 | } |
5311 | 7470 | break; |
5312 | - case 0x40: | |
7471 | + case 0x8b: | |
5313 | 7472 | { |
5314 | - /** 0111 1110 0100 rdst rorc %0 */ | |
5315 | -#line 745 "rx-decode.opc" | |
5316 | - int rdst AU = op[1] & 0x0f; | |
7473 | + /** 0111 1111 1000 1011 smovb */ | |
5317 | 7474 | if (trace) |
5318 | 7475 | { |
5319 | 7476 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5320 | - "/** 0111 1110 0100 rdst rorc %0 */", | |
7477 | + "/** 0111 1111 1000 1011 smovb */", | |
5321 | 7478 | op[0], op[1]); |
5322 | - printf (" rdst = 0x%x\n", rdst); | |
5323 | 7479 | } |
5324 | - SYNTAX("rorc %0"); | |
5325 | -#line 745 "rx-decode.opc" | |
5326 | - ID(rorc); DR(rdst); F__SZC; | |
7480 | + SYNTAX("smovb"); | |
7481 | +#line 849 "rx-decode.opc" | |
7482 | + ID(smovb); | |
5327 | 7483 | |
5328 | 7484 | } |
5329 | 7485 | break; |
5330 | - case 0x50: | |
7486 | + case 0x8c: | |
7487 | + case 0x8d: | |
7488 | + case 0x8e: | |
5331 | 7489 | { |
5332 | - /** 0111 1110 0101 rdst rolc %0 */ | |
5333 | -#line 742 "rx-decode.opc" | |
5334 | - int rdst AU = op[1] & 0x0f; | |
7490 | + /** 0111 1111 1000 11sz rmpa%s */ | |
7491 | +#line 867 "rx-decode.opc" | |
7492 | + int sz AU = op[1] & 0x03; | |
5335 | 7493 | if (trace) |
5336 | 7494 | { |
5337 | 7495 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5338 | - "/** 0111 1110 0101 rdst rolc %0 */", | |
7496 | + "/** 0111 1111 1000 11sz rmpa%s */", | |
5339 | 7497 | op[0], op[1]); |
5340 | - printf (" rdst = 0x%x\n", rdst); | |
7498 | + printf (" sz = 0x%x\n", sz); | |
5341 | 7499 | } |
5342 | - SYNTAX("rolc %0"); | |
5343 | -#line 742 "rx-decode.opc" | |
5344 | - ID(rolc); DR(rdst); F__SZC; | |
7500 | + SYNTAX("rmpa%s"); | |
7501 | +#line 867 "rx-decode.opc" | |
7502 | + ID(rmpa); BWL(sz); F_OS__; | |
7503 | + | |
7504 | + /*----------------------------------------------------------------------*/ | |
7505 | + /* HI/LO stuff */ | |
5345 | 7506 | |
5346 | 7507 | } |
5347 | 7508 | break; |
5348 | - case 0x80: | |
5349 | - case 0x90: | |
5350 | - case 0xa0: | |
7509 | + case 0x8f: | |
5351 | 7510 | { |
5352 | - /** 0111 1110 10sz rsrc push%s %1 */ | |
5353 | -#line 378 "rx-decode.opc" | |
5354 | - int sz AU = (op[1] >> 4) & 0x03; | |
5355 | -#line 378 "rx-decode.opc" | |
5356 | - int rsrc AU = op[1] & 0x0f; | |
7511 | + /** 0111 1111 1000 1111 smovf */ | |
5357 | 7512 | if (trace) |
5358 | 7513 | { |
5359 | 7514 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5360 | - "/** 0111 1110 10sz rsrc push%s %1 */", | |
7515 | + "/** 0111 1111 1000 1111 smovf */", | |
5361 | 7516 | op[0], op[1]); |
5362 | - printf (" sz = 0x%x,", sz); | |
5363 | - printf (" rsrc = 0x%x\n", rsrc); | |
5364 | 7517 | } |
5365 | - SYNTAX("push%s %1"); | |
5366 | -#line 378 "rx-decode.opc" | |
5367 | - ID(mov); BWL(sz); OP(0, RX_Operand_Predec, 0, 0); SR(rsrc); F_____; | |
7518 | + SYNTAX("smovf"); | |
7519 | +#line 858 "rx-decode.opc" | |
7520 | + ID(smovf); | |
5368 | 7521 | |
5369 | 7522 | } |
5370 | 7523 | break; |
5371 | - case 0xb0: | |
7524 | + case 0x93: | |
5372 | 7525 | { |
5373 | - /** 0111 1110 1011 rdst pop %0 */ | |
5374 | -#line 375 "rx-decode.opc" | |
5375 | - int rdst AU = op[1] & 0x0f; | |
7526 | + /** 0111 1111 1001 0011 satr */ | |
5376 | 7527 | if (trace) |
5377 | 7528 | { |
5378 | 7529 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5379 | - "/** 0111 1110 1011 rdst pop %0 */", | |
7530 | + "/** 0111 1111 1001 0011 satr */", | |
5380 | 7531 | op[0], op[1]); |
5381 | - printf (" rdst = 0x%x\n", rdst); | |
5382 | 7532 | } |
5383 | - SYNTAX("pop %0"); | |
5384 | -#line 375 "rx-decode.opc" | |
5385 | - ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(rdst); F_____; | |
7533 | + SYNTAX("satr"); | |
7534 | +#line 909 "rx-decode.opc" | |
7535 | + ID(satr); | |
7536 | + | |
7537 | + /*----------------------------------------------------------------------*/ | |
7538 | + /* FLOAT */ | |
5386 | 7539 | |
5387 | 7540 | } |
5388 | 7541 | break; |
5389 | - case 0xc0: | |
5390 | - case 0xd0: | |
7542 | + case 0x94: | |
5391 | 7543 | { |
5392 | - /** 0111 1110 110 crsrc pushc %1 */ | |
5393 | -#line 1008 "rx-decode.opc" | |
5394 | - int crsrc AU = op[1] & 0x1f; | |
7544 | + /** 0111 1111 1001 0100 rtfi */ | |
5395 | 7545 | if (trace) |
5396 | 7546 | { |
5397 | 7547 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5398 | - "/** 0111 1110 110 crsrc pushc %1 */", | |
7548 | + "/** 0111 1111 1001 0100 rtfi */", | |
5399 | 7549 | op[0], op[1]); |
5400 | - printf (" crsrc = 0x%x\n", crsrc); | |
5401 | 7550 | } |
5402 | - SYNTAX("pushc %1"); | |
5403 | -#line 1008 "rx-decode.opc" | |
5404 | - ID(mov); OP(0, RX_Operand_Predec, 0, 0); SR(crsrc + 16); | |
7551 | + SYNTAX("rtfi"); | |
7552 | +#line 1044 "rx-decode.opc" | |
7553 | + ID(rtfi); | |
5405 | 7554 | |
5406 | 7555 | } |
5407 | 7556 | break; |
5408 | - case 0xe0: | |
5409 | - case 0xf0: | |
7557 | + case 0x95: | |
5410 | 7558 | { |
5411 | - /** 0111 1110 111 crdst popc %0 */ | |
5412 | -#line 1005 "rx-decode.opc" | |
5413 | - int crdst AU = op[1] & 0x1f; | |
7559 | + /** 0111 1111 1001 0101 rte */ | |
5414 | 7560 | if (trace) |
5415 | 7561 | { |
5416 | 7562 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5417 | - "/** 0111 1110 111 crdst popc %0 */", | |
7563 | + "/** 0111 1111 1001 0101 rte */", | |
5418 | 7564 | op[0], op[1]); |
5419 | - printf (" crdst = 0x%x\n", crdst); | |
5420 | 7565 | } |
5421 | - SYNTAX("popc %0"); | |
5422 | -#line 1005 "rx-decode.opc" | |
5423 | - ID(mov); OP(1, RX_Operand_Postinc, 0, 0); DR(crdst + 16); | |
7566 | + SYNTAX("rte"); | |
7567 | +#line 1047 "rx-decode.opc" | |
7568 | + ID(rte); | |
5424 | 7569 | |
5425 | 7570 | } |
5426 | 7571 | break; |
5427 | - default: UNSUPPORTED(); break; | |
5428 | - } | |
5429 | - break; | |
5430 | - case 0x7f: | |
5431 | - GETBYTE (); | |
5432 | - switch (op[1] & 0xff) | |
5433 | - { | |
5434 | - case 0x00: | |
5435 | - case 0x01: | |
5436 | - case 0x02: | |
5437 | - case 0x03: | |
5438 | - case 0x04: | |
5439 | - case 0x05: | |
5440 | - case 0x06: | |
5441 | - case 0x07: | |
5442 | - case 0x08: | |
5443 | - case 0x09: | |
5444 | - case 0x0a: | |
5445 | - case 0x0b: | |
5446 | - case 0x0c: | |
5447 | - case 0x0d: | |
5448 | - case 0x0e: | |
5449 | - case 0x0f: | |
7572 | + case 0x96: | |
5450 | 7573 | { |
5451 | - /** 0111 1111 0000 rsrc jmp %0 */ | |
5452 | -#line 795 "rx-decode.opc" | |
5453 | - int rsrc AU = op[1] & 0x0f; | |
7574 | + /** 0111 1111 1001 0110 wait */ | |
5454 | 7575 | if (trace) |
5455 | 7576 | { |
5456 | 7577 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5457 | - "/** 0111 1111 0000 rsrc jmp %0 */", | |
7578 | + "/** 0111 1111 1001 0110 wait */", | |
5458 | 7579 | op[0], op[1]); |
5459 | - printf (" rsrc = 0x%x\n", rsrc); | |
5460 | 7580 | } |
5461 | - SYNTAX("jmp %0"); | |
5462 | -#line 795 "rx-decode.opc" | |
5463 | - ID(branch); DR(rsrc); | |
7581 | + SYNTAX("wait"); | |
7582 | +#line 1059 "rx-decode.opc" | |
7583 | + ID(wait); | |
7584 | + | |
7585 | + /*----------------------------------------------------------------------*/ | |
7586 | + /* SCcnd */ | |
5464 | 7587 | |
5465 | 7588 | } |
5466 | 7589 | break; |
5467 | - case 0x10: | |
5468 | - case 0x11: | |
5469 | - case 0x12: | |
5470 | - case 0x13: | |
5471 | - case 0x14: | |
5472 | - case 0x15: | |
5473 | - case 0x16: | |
5474 | - case 0x17: | |
5475 | - case 0x18: | |
5476 | - case 0x19: | |
5477 | - case 0x1a: | |
5478 | - case 0x1b: | |
5479 | - case 0x1c: | |
5480 | - case 0x1d: | |
5481 | - case 0x1e: | |
5482 | - case 0x1f: | |
7590 | + case 0xa0: | |
7591 | + case 0xa1: | |
7592 | + case 0xa2: | |
7593 | + case 0xa3: | |
7594 | + case 0xa4: | |
7595 | + case 0xa5: | |
7596 | + case 0xa6: | |
7597 | + case 0xa7: | |
7598 | + case 0xa8: | |
7599 | + case 0xa9: | |
7600 | + case 0xaa: | |
7601 | + case 0xab: | |
7602 | + case 0xac: | |
7603 | + case 0xad: | |
7604 | + case 0xae: | |
7605 | + case 0xaf: | |
5483 | 7606 | { |
5484 | - /** 0111 1111 0001 rsrc jsr %0 */ | |
5485 | -#line 798 "rx-decode.opc" | |
5486 | - int rsrc AU = op[1] & 0x0f; | |
7607 | + /** 0111 1111 1010 rdst setpsw %0 */ | |
7608 | +#line 1020 "rx-decode.opc" | |
7609 | + int rdst AU = op[1] & 0x0f; | |
5487 | 7610 | if (trace) |
5488 | 7611 | { |
5489 | 7612 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5490 | - "/** 0111 1111 0001 rsrc jsr %0 */", | |
7613 | + "/** 0111 1111 1010 rdst setpsw %0 */", | |
5491 | 7614 | op[0], op[1]); |
5492 | - printf (" rsrc = 0x%x\n", rsrc); | |
7615 | + printf (" rdst = 0x%x\n", rdst); | |
5493 | 7616 | } |
5494 | - SYNTAX("jsr %0"); | |
5495 | -#line 798 "rx-decode.opc" | |
5496 | - ID(jsr); DR(rsrc); | |
7617 | + SYNTAX("setpsw %0"); | |
7618 | +#line 1020 "rx-decode.opc" | |
7619 | + ID(setpsw); DF(rdst); | |
5497 | 7620 | |
5498 | 7621 | } |
5499 | 7622 | break; |
5500 | - case 0x40: | |
5501 | - case 0x41: | |
5502 | - case 0x42: | |
5503 | - case 0x43: | |
5504 | - case 0x44: | |
5505 | - case 0x45: | |
5506 | - case 0x46: | |
5507 | - case 0x47: | |
5508 | - case 0x48: | |
5509 | - case 0x49: | |
5510 | - case 0x4a: | |
5511 | - case 0x4b: | |
5512 | - case 0x4c: | |
5513 | - case 0x4d: | |
5514 | - case 0x4e: | |
5515 | - case 0x4f: | |
7623 | + case 0xb0: | |
7624 | + case 0xb1: | |
7625 | + case 0xb2: | |
7626 | + case 0xb3: | |
7627 | + case 0xb4: | |
7628 | + case 0xb5: | |
7629 | + case 0xb6: | |
7630 | + case 0xb7: | |
7631 | + case 0xb8: | |
7632 | + case 0xb9: | |
7633 | + case 0xba: | |
7634 | + case 0xbb: | |
7635 | + case 0xbc: | |
7636 | + case 0xbd: | |
7637 | + case 0xbe: | |
7638 | + case 0xbf: | |
5516 | 7639 | { |
5517 | - /** 0111 1111 0100 rsrc bra.l %0 */ | |
5518 | -#line 791 "rx-decode.opc" | |
5519 | - int rsrc AU = op[1] & 0x0f; | |
7640 | + /** 0111 1111 1011 rdst clrpsw %0 */ | |
7641 | +#line 1017 "rx-decode.opc" | |
7642 | + int rdst AU = op[1] & 0x0f; | |
7643 | + if (trace) | |
7644 | + { | |
7645 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
7646 | + "/** 0111 1111 1011 rdst clrpsw %0 */", | |
7647 | + op[0], op[1]); | |
7648 | + printf (" rdst = 0x%x\n", rdst); | |
7649 | + } | |
7650 | + SYNTAX("clrpsw %0"); | |
7651 | +#line 1017 "rx-decode.opc" | |
7652 | + ID(clrpsw); DF(rdst); | |
7653 | + | |
7654 | + } | |
7655 | + break; | |
7656 | + default: UNSUPPORTED(); break; | |
7657 | + } | |
7658 | + break; | |
7659 | + case 0x80: | |
7660 | + GETBYTE (); | |
7661 | + switch (op[1] & 0x00) | |
7662 | + { | |
7663 | + case 0x00: | |
7664 | + op_semantics_52: | |
7665 | + { | |
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; | |
5520 | 7679 | if (trace) |
5521 | 7680 | { |
5522 | 7681 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5523 | - "/** 0111 1111 0100 rsrc bra.l %0 */", | |
7682 | + "/** 10sz 0dsp a dst b src mov%s %1, %0 */", | |
5524 | 7683 | op[0], op[1]); |
5525 | - printf (" rsrc = 0x%x\n", rsrc); | |
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); | |
5526 | 7690 | } |
5527 | - SYNTAX("bra.l %0"); | |
5528 | -#line 791 "rx-decode.opc" | |
5529 | - ID(branchrel); DR(rsrc); | |
5530 | - | |
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_____; | |
5531 | 7694 | |
5532 | 7695 | } |
5533 | 7696 | break; |
5534 | - case 0x50: | |
5535 | - case 0x51: | |
5536 | - case 0x52: | |
5537 | - case 0x53: | |
5538 | - case 0x54: | |
5539 | - case 0x55: | |
5540 | - case 0x56: | |
5541 | - case 0x57: | |
5542 | - case 0x58: | |
5543 | - case 0x59: | |
5544 | - case 0x5a: | |
5545 | - case 0x5b: | |
5546 | - case 0x5c: | |
5547 | - case 0x5d: | |
5548 | - case 0x5e: | |
5549 | - case 0x5f: | |
7697 | + } | |
7698 | + break; | |
7699 | + case 0x81: | |
7700 | + GETBYTE (); | |
7701 | + switch (op[1] & 0x00) | |
7702 | + { | |
7703 | + case 0x00: | |
7704 | + goto op_semantics_52; | |
7705 | + break; | |
7706 | + } | |
7707 | + break; | |
7708 | + case 0x82: | |
7709 | + GETBYTE (); | |
7710 | + switch (op[1] & 0x00) | |
7711 | + { | |
7712 | + case 0x00: | |
7713 | + goto op_semantics_52; | |
7714 | + break; | |
7715 | + } | |
7716 | + break; | |
7717 | + case 0x83: | |
7718 | + GETBYTE (); | |
7719 | + switch (op[1] & 0x00) | |
7720 | + { | |
7721 | + case 0x00: | |
7722 | + goto op_semantics_52; | |
7723 | + break; | |
7724 | + } | |
7725 | + break; | |
7726 | + case 0x84: | |
7727 | + GETBYTE (); | |
7728 | + switch (op[1] & 0x00) | |
7729 | + { | |
7730 | + case 0x00: | |
7731 | + goto op_semantics_52; | |
7732 | + break; | |
7733 | + } | |
7734 | + break; | |
7735 | + case 0x85: | |
7736 | + GETBYTE (); | |
7737 | + switch (op[1] & 0x00) | |
7738 | + { | |
7739 | + case 0x00: | |
7740 | + goto op_semantics_52; | |
7741 | + break; | |
7742 | + } | |
7743 | + break; | |
7744 | + case 0x86: | |
7745 | + GETBYTE (); | |
7746 | + switch (op[1] & 0x00) | |
7747 | + { | |
7748 | + case 0x00: | |
7749 | + goto op_semantics_52; | |
7750 | + break; | |
7751 | + } | |
7752 | + break; | |
7753 | + case 0x87: | |
7754 | + GETBYTE (); | |
7755 | + switch (op[1] & 0x00) | |
7756 | + { | |
7757 | + case 0x00: | |
7758 | + goto op_semantics_52; | |
7759 | + break; | |
7760 | + } | |
7761 | + break; | |
7762 | + case 0x88: | |
7763 | + GETBYTE (); | |
7764 | + switch (op[1] & 0x00) | |
7765 | + { | |
7766 | + case 0x00: | |
7767 | + op_semantics_53: | |
5550 | 7768 | { |
5551 | - /** 0111 1111 0101 rsrc bsr.l %0 */ | |
5552 | -#line 807 "rx-decode.opc" | |
5553 | - int rsrc AU = op[1] & 0x0f; | |
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; | |
5554 | 7782 | if (trace) |
5555 | 7783 | { |
5556 | 7784 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5557 | - "/** 0111 1111 0101 rsrc bsr.l %0 */", | |
7785 | + "/** 10sz 1dsp a src b dst mov%s %1, %0 */", | |
5558 | 7786 | op[0], op[1]); |
5559 | - printf (" rsrc = 0x%x\n", rsrc); | |
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); | |
5560 | 7793 | } |
5561 | - SYNTAX("bsr.l %0"); | |
5562 | -#line 807 "rx-decode.opc" | |
5563 | - ID(jsrrel); DR(rsrc); | |
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_____; | |
5564 | 7797 | |
5565 | 7798 | } |
5566 | 7799 | break; |
5567 | - case 0x80: | |
5568 | - case 0x81: | |
5569 | - case 0x82: | |
5570 | - { | |
5571 | - /** 0111 1111 1000 00sz suntil%s */ | |
5572 | -#line 831 "rx-decode.opc" | |
5573 | - int sz AU = op[1] & 0x03; | |
5574 | - if (trace) | |
5575 | - { | |
5576 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5577 | - "/** 0111 1111 1000 00sz suntil%s */", | |
5578 | - op[0], op[1]); | |
5579 | - printf (" sz = 0x%x\n", sz); | |
5580 | - } | |
5581 | - SYNTAX("suntil%s"); | |
5582 | -#line 831 "rx-decode.opc" | |
5583 | - ID(suntil); BWL(sz); F___ZC; | |
5584 | - | |
5585 | - } | |
7800 | + } | |
7801 | + break; | |
7802 | + case 0x89: | |
7803 | + GETBYTE (); | |
7804 | + switch (op[1] & 0x00) | |
7805 | + { | |
7806 | + case 0x00: | |
7807 | + goto op_semantics_53; | |
7808 | + break; | |
7809 | + } | |
7810 | + break; | |
7811 | + case 0x8a: | |
7812 | + GETBYTE (); | |
7813 | + switch (op[1] & 0x00) | |
7814 | + { | |
7815 | + case 0x00: | |
7816 | + goto op_semantics_53; | |
7817 | + break; | |
7818 | + } | |
7819 | + break; | |
7820 | + case 0x8b: | |
7821 | + GETBYTE (); | |
7822 | + switch (op[1] & 0x00) | |
7823 | + { | |
7824 | + case 0x00: | |
7825 | + goto op_semantics_53; | |
7826 | + break; | |
7827 | + } | |
7828 | + break; | |
7829 | + case 0x8c: | |
7830 | + GETBYTE (); | |
7831 | + switch (op[1] & 0x00) | |
7832 | + { | |
7833 | + case 0x00: | |
7834 | + goto op_semantics_53; | |
7835 | + break; | |
7836 | + } | |
7837 | + break; | |
7838 | + case 0x8d: | |
7839 | + GETBYTE (); | |
7840 | + switch (op[1] & 0x00) | |
7841 | + { | |
7842 | + case 0x00: | |
7843 | + goto op_semantics_53; | |
7844 | + break; | |
7845 | + } | |
7846 | + break; | |
7847 | + case 0x8e: | |
7848 | + GETBYTE (); | |
7849 | + switch (op[1] & 0x00) | |
7850 | + { | |
7851 | + case 0x00: | |
7852 | + goto op_semantics_53; | |
7853 | + break; | |
7854 | + } | |
7855 | + break; | |
7856 | + case 0x8f: | |
7857 | + GETBYTE (); | |
7858 | + switch (op[1] & 0x00) | |
7859 | + { | |
7860 | + case 0x00: | |
7861 | + goto op_semantics_53; | |
7862 | + break; | |
7863 | + } | |
7864 | + break; | |
7865 | + case 0x90: | |
7866 | + GETBYTE (); | |
7867 | + switch (op[1] & 0x00) | |
7868 | + { | |
7869 | + case 0x00: | |
7870 | + goto op_semantics_52; | |
7871 | + break; | |
7872 | + } | |
7873 | + break; | |
7874 | + case 0x91: | |
7875 | + GETBYTE (); | |
7876 | + switch (op[1] & 0x00) | |
7877 | + { | |
7878 | + case 0x00: | |
7879 | + goto op_semantics_52; | |
7880 | + break; | |
7881 | + } | |
7882 | + break; | |
7883 | + case 0x92: | |
7884 | + GETBYTE (); | |
7885 | + switch (op[1] & 0x00) | |
7886 | + { | |
7887 | + case 0x00: | |
7888 | + goto op_semantics_52; | |
7889 | + break; | |
7890 | + } | |
7891 | + break; | |
7892 | + case 0x93: | |
7893 | + GETBYTE (); | |
7894 | + switch (op[1] & 0x00) | |
7895 | + { | |
7896 | + case 0x00: | |
7897 | + goto op_semantics_52; | |
7898 | + break; | |
7899 | + } | |
7900 | + break; | |
7901 | + case 0x94: | |
7902 | + GETBYTE (); | |
7903 | + switch (op[1] & 0x00) | |
7904 | + { | |
7905 | + case 0x00: | |
7906 | + goto op_semantics_52; | |
7907 | + break; | |
7908 | + } | |
7909 | + break; | |
7910 | + case 0x95: | |
7911 | + GETBYTE (); | |
7912 | + switch (op[1] & 0x00) | |
7913 | + { | |
7914 | + case 0x00: | |
7915 | + goto op_semantics_52; | |
7916 | + break; | |
7917 | + } | |
7918 | + break; | |
7919 | + case 0x96: | |
7920 | + GETBYTE (); | |
7921 | + switch (op[1] & 0x00) | |
7922 | + { | |
7923 | + case 0x00: | |
7924 | + goto op_semantics_52; | |
7925 | + break; | |
7926 | + } | |
7927 | + break; | |
7928 | + case 0x97: | |
7929 | + GETBYTE (); | |
7930 | + switch (op[1] & 0x00) | |
7931 | + { | |
7932 | + case 0x00: | |
7933 | + goto op_semantics_52; | |
7934 | + break; | |
7935 | + } | |
7936 | + break; | |
7937 | + case 0x98: | |
7938 | + GETBYTE (); | |
7939 | + switch (op[1] & 0x00) | |
7940 | + { | |
7941 | + case 0x00: | |
7942 | + goto op_semantics_53; | |
7943 | + break; | |
7944 | + } | |
7945 | + break; | |
7946 | + case 0x99: | |
7947 | + GETBYTE (); | |
7948 | + switch (op[1] & 0x00) | |
7949 | + { | |
7950 | + case 0x00: | |
7951 | + goto op_semantics_53; | |
7952 | + break; | |
7953 | + } | |
7954 | + break; | |
7955 | + case 0x9a: | |
7956 | + GETBYTE (); | |
7957 | + switch (op[1] & 0x00) | |
7958 | + { | |
7959 | + case 0x00: | |
7960 | + goto op_semantics_53; | |
5586 | 7961 | break; |
5587 | - case 0x83: | |
5588 | - { | |
5589 | - /** 0111 1111 1000 0011 scmpu */ | |
5590 | - if (trace) | |
5591 | - { | |
5592 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5593 | - "/** 0111 1111 1000 0011 scmpu */", | |
5594 | - op[0], op[1]); | |
5595 | - } | |
5596 | - SYNTAX("scmpu"); | |
5597 | -#line 822 "rx-decode.opc" | |
5598 | - ID(scmpu); F___ZC; | |
5599 | - | |
5600 | - } | |
7962 | + } | |
7963 | + break; | |
7964 | + case 0x9b: | |
7965 | + GETBYTE (); | |
7966 | + switch (op[1] & 0x00) | |
7967 | + { | |
7968 | + case 0x00: | |
7969 | + goto op_semantics_53; | |
5601 | 7970 | break; |
5602 | - case 0x84: | |
5603 | - case 0x85: | |
5604 | - case 0x86: | |
5605 | - { | |
5606 | - /** 0111 1111 1000 01sz swhile%s */ | |
5607 | -#line 834 "rx-decode.opc" | |
5608 | - int sz AU = op[1] & 0x03; | |
5609 | - if (trace) | |
5610 | - { | |
5611 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5612 | - "/** 0111 1111 1000 01sz swhile%s */", | |
5613 | - op[0], op[1]); | |
5614 | - printf (" sz = 0x%x\n", sz); | |
5615 | - } | |
5616 | - SYNTAX("swhile%s"); | |
5617 | -#line 834 "rx-decode.opc" | |
5618 | - ID(swhile); BWL(sz); F___ZC; | |
5619 | - | |
5620 | - } | |
7971 | + } | |
7972 | + break; | |
7973 | + case 0x9c: | |
7974 | + GETBYTE (); | |
7975 | + switch (op[1] & 0x00) | |
7976 | + { | |
7977 | + case 0x00: | |
7978 | + goto op_semantics_53; | |
5621 | 7979 | break; |
5622 | - case 0x87: | |
5623 | - { | |
5624 | - /** 0111 1111 1000 0111 smovu */ | |
5625 | - if (trace) | |
5626 | - { | |
5627 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5628 | - "/** 0111 1111 1000 0111 smovu */", | |
5629 | - op[0], op[1]); | |
5630 | - } | |
5631 | - SYNTAX("smovu"); | |
5632 | -#line 825 "rx-decode.opc" | |
5633 | - ID(smovu); | |
5634 | - | |
5635 | - } | |
7980 | + } | |
7981 | + break; | |
7982 | + case 0x9d: | |
7983 | + GETBYTE (); | |
7984 | + switch (op[1] & 0x00) | |
7985 | + { | |
7986 | + case 0x00: | |
7987 | + goto op_semantics_53; | |
5636 | 7988 | break; |
5637 | - case 0x88: | |
5638 | - case 0x89: | |
5639 | - case 0x8a: | |
5640 | - { | |
5641 | - /** 0111 1111 1000 10sz sstr%s */ | |
5642 | -#line 840 "rx-decode.opc" | |
5643 | - int sz AU = op[1] & 0x03; | |
5644 | - if (trace) | |
5645 | - { | |
5646 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5647 | - "/** 0111 1111 1000 10sz sstr%s */", | |
5648 | - op[0], op[1]); | |
5649 | - printf (" sz = 0x%x\n", sz); | |
5650 | - } | |
5651 | - SYNTAX("sstr%s"); | |
5652 | -#line 840 "rx-decode.opc" | |
5653 | - ID(sstr); BWL(sz); | |
5654 | - | |
5655 | - /*----------------------------------------------------------------------*/ | |
5656 | - /* RMPA */ | |
5657 | - | |
5658 | - } | |
7989 | + } | |
7990 | + break; | |
7991 | + case 0x9e: | |
7992 | + GETBYTE (); | |
7993 | + switch (op[1] & 0x00) | |
7994 | + { | |
7995 | + case 0x00: | |
7996 | + goto op_semantics_53; | |
5659 | 7997 | break; |
5660 | - case 0x8b: | |
5661 | - { | |
5662 | - /** 0111 1111 1000 1011 smovb */ | |
5663 | - if (trace) | |
5664 | - { | |
5665 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5666 | - "/** 0111 1111 1000 1011 smovb */", | |
5667 | - op[0], op[1]); | |
5668 | - } | |
5669 | - SYNTAX("smovb"); | |
5670 | -#line 828 "rx-decode.opc" | |
5671 | - ID(smovb); | |
5672 | - | |
5673 | - } | |
7998 | + } | |
7999 | + break; | |
8000 | + case 0x9f: | |
8001 | + GETBYTE (); | |
8002 | + switch (op[1] & 0x00) | |
8003 | + { | |
8004 | + case 0x00: | |
8005 | + goto op_semantics_53; | |
5674 | 8006 | break; |
5675 | - case 0x8c: | |
5676 | - case 0x8d: | |
5677 | - case 0x8e: | |
5678 | - { | |
5679 | - /** 0111 1111 1000 11sz rmpa%s */ | |
5680 | -#line 846 "rx-decode.opc" | |
5681 | - int sz AU = op[1] & 0x03; | |
5682 | - if (trace) | |
5683 | - { | |
5684 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5685 | - "/** 0111 1111 1000 11sz rmpa%s */", | |
5686 | - op[0], op[1]); | |
5687 | - printf (" sz = 0x%x\n", sz); | |
5688 | - } | |
5689 | - SYNTAX("rmpa%s"); | |
5690 | -#line 846 "rx-decode.opc" | |
5691 | - ID(rmpa); BWL(sz); F_OS__; | |
5692 | - | |
5693 | - /*----------------------------------------------------------------------*/ | |
5694 | - /* HI/LO stuff */ | |
5695 | - | |
5696 | - } | |
8007 | + } | |
8008 | + break; | |
8009 | + case 0xa0: | |
8010 | + GETBYTE (); | |
8011 | + switch (op[1] & 0x00) | |
8012 | + { | |
8013 | + case 0x00: | |
8014 | + goto op_semantics_52; | |
5697 | 8015 | break; |
5698 | - case 0x8f: | |
5699 | - { | |
5700 | - /** 0111 1111 1000 1111 smovf */ | |
5701 | - if (trace) | |
5702 | - { | |
5703 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5704 | - "/** 0111 1111 1000 1111 smovf */", | |
5705 | - op[0], op[1]); | |
5706 | - } | |
5707 | - SYNTAX("smovf"); | |
5708 | -#line 837 "rx-decode.opc" | |
5709 | - ID(smovf); | |
5710 | - | |
5711 | - } | |
8016 | + } | |
8017 | + break; | |
8018 | + case 0xa1: | |
8019 | + GETBYTE (); | |
8020 | + switch (op[1] & 0x00) | |
8021 | + { | |
8022 | + case 0x00: | |
8023 | + goto op_semantics_52; | |
5712 | 8024 | break; |
5713 | - case 0x93: | |
5714 | - { | |
5715 | - /** 0111 1111 1001 0011 satr */ | |
5716 | - if (trace) | |
5717 | - { | |
5718 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5719 | - "/** 0111 1111 1001 0011 satr */", | |
5720 | - op[0], op[1]); | |
5721 | - } | |
5722 | - SYNTAX("satr"); | |
5723 | -#line 888 "rx-decode.opc" | |
5724 | - ID(satr); | |
5725 | - | |
5726 | - /*----------------------------------------------------------------------*/ | |
5727 | - /* FLOAT */ | |
5728 | - | |
5729 | - } | |
8025 | + } | |
8026 | + break; | |
8027 | + case 0xa2: | |
8028 | + GETBYTE (); | |
8029 | + switch (op[1] & 0x00) | |
8030 | + { | |
8031 | + case 0x00: | |
8032 | + goto op_semantics_52; | |
5730 | 8033 | break; |
5731 | - case 0x94: | |
5732 | - { | |
5733 | - /** 0111 1111 1001 0100 rtfi */ | |
5734 | - if (trace) | |
5735 | - { | |
5736 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5737 | - "/** 0111 1111 1001 0100 rtfi */", | |
5738 | - op[0], op[1]); | |
5739 | - } | |
5740 | - SYNTAX("rtfi"); | |
5741 | -#line 1023 "rx-decode.opc" | |
5742 | - ID(rtfi); | |
5743 | - | |
5744 | - } | |
8034 | + } | |
8035 | + break; | |
8036 | + case 0xa3: | |
8037 | + GETBYTE (); | |
8038 | + switch (op[1] & 0x00) | |
8039 | + { | |
8040 | + case 0x00: | |
8041 | + goto op_semantics_52; | |
5745 | 8042 | break; |
5746 | - case 0x95: | |
5747 | - { | |
5748 | - /** 0111 1111 1001 0101 rte */ | |
5749 | - if (trace) | |
5750 | - { | |
5751 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5752 | - "/** 0111 1111 1001 0101 rte */", | |
5753 | - op[0], op[1]); | |
5754 | - } | |
5755 | - SYNTAX("rte"); | |
5756 | -#line 1026 "rx-decode.opc" | |
5757 | - ID(rte); | |
5758 | - | |
5759 | - } | |
8043 | + } | |
8044 | + break; | |
8045 | + case 0xa4: | |
8046 | + GETBYTE (); | |
8047 | + switch (op[1] & 0x00) | |
8048 | + { | |
8049 | + case 0x00: | |
8050 | + goto op_semantics_52; | |
5760 | 8051 | break; |
5761 | - case 0x96: | |
5762 | - { | |
5763 | - /** 0111 1111 1001 0110 wait */ | |
5764 | - if (trace) | |
5765 | - { | |
5766 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5767 | - "/** 0111 1111 1001 0110 wait */", | |
5768 | - op[0], op[1]); | |
5769 | - } | |
5770 | - SYNTAX("wait"); | |
5771 | -#line 1038 "rx-decode.opc" | |
5772 | - ID(wait); | |
5773 | - | |
5774 | - /*----------------------------------------------------------------------*/ | |
5775 | - /* SCcnd */ | |
5776 | - | |
5777 | - } | |
8052 | + } | |
8053 | + break; | |
8054 | + case 0xa5: | |
8055 | + GETBYTE (); | |
8056 | + switch (op[1] & 0x00) | |
8057 | + { | |
8058 | + case 0x00: | |
8059 | + goto op_semantics_52; | |
5778 | 8060 | break; |
5779 | - case 0xa0: | |
5780 | - case 0xa1: | |
5781 | - case 0xa2: | |
5782 | - case 0xa3: | |
5783 | - case 0xa4: | |
5784 | - case 0xa5: | |
5785 | - case 0xa6: | |
5786 | - case 0xa7: | |
5787 | - case 0xa8: | |
5788 | - case 0xa9: | |
5789 | - case 0xaa: | |
5790 | - case 0xab: | |
5791 | - case 0xac: | |
5792 | - case 0xad: | |
5793 | - case 0xae: | |
5794 | - case 0xaf: | |
5795 | - { | |
5796 | - /** 0111 1111 1010 rdst setpsw %0 */ | |
5797 | -#line 999 "rx-decode.opc" | |
5798 | - int rdst AU = op[1] & 0x0f; | |
5799 | - if (trace) | |
5800 | - { | |
5801 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5802 | - "/** 0111 1111 1010 rdst setpsw %0 */", | |
5803 | - op[0], op[1]); | |
5804 | - printf (" rdst = 0x%x\n", rdst); | |
5805 | - } | |
5806 | - SYNTAX("setpsw %0"); | |
5807 | -#line 999 "rx-decode.opc" | |
5808 | - ID(setpsw); DF(rdst); | |
5809 | - | |
5810 | - } | |
8061 | + } | |
8062 | + break; | |
8063 | + case 0xa6: | |
8064 | + GETBYTE (); | |
8065 | + switch (op[1] & 0x00) | |
8066 | + { | |
8067 | + case 0x00: | |
8068 | + goto op_semantics_52; | |
5811 | 8069 | break; |
5812 | - case 0xb0: | |
5813 | - case 0xb1: | |
5814 | - case 0xb2: | |
5815 | - case 0xb3: | |
5816 | - case 0xb4: | |
5817 | - case 0xb5: | |
5818 | - case 0xb6: | |
5819 | - case 0xb7: | |
5820 | - case 0xb8: | |
5821 | - case 0xb9: | |
5822 | - case 0xba: | |
5823 | - case 0xbb: | |
5824 | - case 0xbc: | |
5825 | - case 0xbd: | |
5826 | - case 0xbe: | |
5827 | - case 0xbf: | |
5828 | - { | |
5829 | - /** 0111 1111 1011 rdst clrpsw %0 */ | |
5830 | -#line 996 "rx-decode.opc" | |
5831 | - int rdst AU = op[1] & 0x0f; | |
5832 | - if (trace) | |
5833 | - { | |
5834 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5835 | - "/** 0111 1111 1011 rdst clrpsw %0 */", | |
5836 | - op[0], op[1]); | |
5837 | - printf (" rdst = 0x%x\n", rdst); | |
5838 | - } | |
5839 | - SYNTAX("clrpsw %0"); | |
5840 | -#line 996 "rx-decode.opc" | |
5841 | - ID(clrpsw); DF(rdst); | |
5842 | - | |
5843 | - } | |
8070 | + } | |
8071 | + break; | |
8072 | + case 0xa7: | |
8073 | + GETBYTE (); | |
8074 | + switch (op[1] & 0x00) | |
8075 | + { | |
8076 | + case 0x00: | |
8077 | + goto op_semantics_52; | |
5844 | 8078 | break; |
5845 | - default: UNSUPPORTED(); break; | |
5846 | 8079 | } |
5847 | 8080 | break; |
5848 | - case 0x80: | |
8081 | + case 0xa8: | |
5849 | 8082 | GETBYTE (); |
5850 | 8083 | switch (op[1] & 0x00) |
5851 | 8084 | { |
5852 | 8085 | case 0x00: |
5853 | - op_semantics_39: | |
5854 | - { | |
5855 | - /** 10sz 0dsp a dst b src mov%s %1, %0 */ | |
5856 | -#line 336 "rx-decode.opc" | |
5857 | - int sz AU = (op[0] >> 4) & 0x03; | |
5858 | -#line 336 "rx-decode.opc" | |
5859 | - int dsp AU = op[0] & 0x07; | |
5860 | -#line 336 "rx-decode.opc" | |
5861 | - int a AU = (op[1] >> 7) & 0x01; | |
5862 | -#line 336 "rx-decode.opc" | |
5863 | - int dst AU = (op[1] >> 4) & 0x07; | |
5864 | -#line 336 "rx-decode.opc" | |
5865 | - int b AU = (op[1] >> 3) & 0x01; | |
5866 | -#line 336 "rx-decode.opc" | |
5867 | - int src AU = op[1] & 0x07; | |
5868 | - if (trace) | |
5869 | - { | |
5870 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
5871 | - "/** 10sz 0dsp a dst b src mov%s %1, %0 */", | |
5872 | - op[0], op[1]); | |
5873 | - printf (" sz = 0x%x,", sz); | |
5874 | - printf (" dsp = 0x%x,", dsp); | |
5875 | - printf (" a = 0x%x,", a); | |
5876 | - printf (" dst = 0x%x,", dst); | |
5877 | - printf (" b = 0x%x,", b); | |
5878 | - printf (" src = 0x%x\n", src); | |
5879 | - } | |
5880 | - SYNTAX("mov%s %1, %0"); | |
5881 | -#line 336 "rx-decode.opc" | |
5882 | - ID(mov); sBWL(sz); DIs(dst, dsp*4+a*2+b, sz); SR(src); F_____; | |
5883 | - | |
5884 | - } | |
8086 | + goto op_semantics_53; | |
5885 | 8087 | break; |
5886 | 8088 | } |
5887 | 8089 | break; |
5888 | - case 0x81: | |
8090 | + case 0xa9: | |
5889 | 8091 | GETBYTE (); |
5890 | 8092 | switch (op[1] & 0x00) |
5891 | 8093 | { |
5892 | 8094 | case 0x00: |
5893 | - goto op_semantics_39; | |
8095 | + goto op_semantics_53; | |
5894 | 8096 | break; |
5895 | 8097 | } |
5896 | 8098 | break; |
5897 | - case 0x82: | |
8099 | + case 0xaa: | |
5898 | 8100 | GETBYTE (); |
5899 | 8101 | switch (op[1] & 0x00) |
5900 | 8102 | { |
5901 | 8103 | case 0x00: |
5902 | - goto op_semantics_39; | |
8104 | + goto op_semantics_53; | |
5903 | 8105 | break; |
5904 | 8106 | } |
5905 | 8107 | break; |
5906 | - case 0x83: | |
8108 | + case 0xab: | |
5907 | 8109 | GETBYTE (); |
5908 | 8110 | switch (op[1] & 0x00) |
5909 | 8111 | { |
5910 | 8112 | case 0x00: |
5911 | - goto op_semantics_39; | |
8113 | + goto op_semantics_53; | |
5912 | 8114 | break; |
5913 | 8115 | } |
5914 | 8116 | break; |
5915 | - case 0x84: | |
8117 | + case 0xac: | |
5916 | 8118 | GETBYTE (); |
5917 | 8119 | switch (op[1] & 0x00) |
5918 | 8120 | { |
5919 | 8121 | case 0x00: |
5920 | - goto op_semantics_39; | |
8122 | + goto op_semantics_53; | |
5921 | 8123 | break; |
5922 | 8124 | } |
5923 | 8125 | break; |
5924 | - case 0x85: | |
8126 | + case 0xad: | |
5925 | 8127 | GETBYTE (); |
5926 | 8128 | switch (op[1] & 0x00) |
5927 | 8129 | { |
5928 | 8130 | case 0x00: |
5929 | - goto op_semantics_39; | |
8131 | + goto op_semantics_53; | |
5930 | 8132 | break; |
5931 | 8133 | } |
5932 | 8134 | break; |
5933 | - case 0x86: | |
8135 | + case 0xae: | |
5934 | 8136 | GETBYTE (); |
5935 | 8137 | switch (op[1] & 0x00) |
5936 | 8138 | { |
5937 | 8139 | case 0x00: |
5938 | - goto op_semantics_39; | |
8140 | + goto op_semantics_53; | |
5939 | 8141 | break; |
5940 | 8142 | } |
5941 | 8143 | break; |
5942 | - case 0x87: | |
8144 | + case 0xaf: | |
5943 | 8145 | GETBYTE (); |
5944 | 8146 | switch (op[1] & 0x00) |
5945 | 8147 | { |
5946 | 8148 | case 0x00: |
5947 | - goto op_semantics_39; | |
8149 | + goto op_semantics_53; | |
5948 | 8150 | break; |
5949 | 8151 | } |
5950 | 8152 | break; |
5951 | - case 0x88: | |
8153 | + case 0xb0: | |
5952 | 8154 | GETBYTE (); |
5953 | 8155 | switch (op[1] & 0x00) |
5954 | 8156 | { |
5955 | 8157 | case 0x00: |
5956 | - op_semantics_40: | |
8158 | + op_semantics_54: | |
5957 | 8159 | { |
5958 | - /** 10sz 1dsp a src b dst mov%s %1, %0 */ | |
5959 | -#line 333 "rx-decode.opc" | |
5960 | - int sz AU = (op[0] >> 4) & 0x03; | |
5961 | -#line 333 "rx-decode.opc" | |
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" | |
5962 | 8164 | int dsp AU = op[0] & 0x07; |
5963 | -#line 333 "rx-decode.opc" | |
8165 | +#line 377 "rx-decode.opc" | |
5964 | 8166 | int a AU = (op[1] >> 7) & 0x01; |
5965 | -#line 333 "rx-decode.opc" | |
8167 | +#line 377 "rx-decode.opc" | |
5966 | 8168 | int src AU = (op[1] >> 4) & 0x07; |
5967 | -#line 333 "rx-decode.opc" | |
8169 | +#line 377 "rx-decode.opc" | |
5968 | 8170 | int b AU = (op[1] >> 3) & 0x01; |
5969 | -#line 333 "rx-decode.opc" | |
8171 | +#line 377 "rx-decode.opc" | |
5970 | 8172 | int dst AU = op[1] & 0x07; |
5971 | 8173 | if (trace) |
5972 | 8174 | { |
5973 | 8175 | printf ("\033[33m%s\033[0m %02x %02x\n", |
5974 | - "/** 10sz 1dsp a src b dst mov%s %1, %0 */", | |
8176 | + "/** 1011 w dsp a src b dst movu%s %1, %0 */", | |
5975 | 8177 | op[0], op[1]); |
5976 | - printf (" sz = 0x%x,", sz); | |
8178 | + printf (" w = 0x%x,", w); | |
5977 | 8179 | printf (" dsp = 0x%x,", dsp); |
5978 | 8180 | printf (" a = 0x%x,", a); |
5979 | 8181 | printf (" src = 0x%x,", src); |
5980 | 8182 | printf (" b = 0x%x,", b); |
5981 | 8183 | printf (" dst = 0x%x\n", dst); |
5982 | 8184 | } |
5983 | - SYNTAX("mov%s %1, %0"); | |
5984 | -#line 333 "rx-decode.opc" | |
5985 | - ID(mov); sBWL(sz); DR(dst); SIs(src, dsp*4+a*2+b, sz); F_____; | |
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_____; | |
5986 | 8188 | |
5987 | 8189 | } |
5988 | 8190 | break; |
5989 | 8191 | } |
5990 | 8192 | break; |
5991 | - case 0x89: | |
5992 | - GETBYTE (); | |
5993 | - switch (op[1] & 0x00) | |
5994 | - { | |
5995 | - case 0x00: | |
5996 | - goto op_semantics_40; | |
5997 | - break; | |
5998 | - } | |
5999 | - break; | |
6000 | - case 0x8a: | |
8193 | + case 0xb1: | |
6001 | 8194 | GETBYTE (); |
6002 | 8195 | switch (op[1] & 0x00) |
6003 | 8196 | { |
6004 | 8197 | case 0x00: |
6005 | - goto op_semantics_40; | |
8198 | + goto op_semantics_54; | |
6006 | 8199 | break; |
6007 | 8200 | } |
6008 | 8201 | break; |
6009 | - case 0x8b: | |
8202 | + case 0xb2: | |
6010 | 8203 | GETBYTE (); |
6011 | 8204 | switch (op[1] & 0x00) |
6012 | 8205 | { |
6013 | 8206 | case 0x00: |
6014 | - goto op_semantics_40; | |
8207 | + goto op_semantics_54; | |
6015 | 8208 | break; |
6016 | 8209 | } |
6017 | 8210 | break; |
6018 | - case 0x8c: | |
8211 | + case 0xb3: | |
6019 | 8212 | GETBYTE (); |
6020 | 8213 | switch (op[1] & 0x00) |
6021 | 8214 | { |
6022 | 8215 | case 0x00: |
6023 | - goto op_semantics_40; | |
8216 | + goto op_semantics_54; | |
6024 | 8217 | break; |
6025 | 8218 | } |
6026 | 8219 | break; |
6027 | - case 0x8d: | |
8220 | + case 0xb4: | |
6028 | 8221 | GETBYTE (); |
6029 | 8222 | switch (op[1] & 0x00) |
6030 | 8223 | { |
6031 | 8224 | case 0x00: |
6032 | - goto op_semantics_40; | |
8225 | + goto op_semantics_54; | |
6033 | 8226 | break; |
6034 | 8227 | } |
6035 | 8228 | break; |
6036 | - case 0x8e: | |
8229 | + case 0xb5: | |
6037 | 8230 | GETBYTE (); |
6038 | 8231 | switch (op[1] & 0x00) |
6039 | 8232 | { |
6040 | 8233 | case 0x00: |
6041 | - goto op_semantics_40; | |
8234 | + goto op_semantics_54; | |
6042 | 8235 | break; |
6043 | 8236 | } |
6044 | 8237 | break; |
6045 | - case 0x8f: | |
8238 | + case 0xb6: | |
6046 | 8239 | GETBYTE (); |
6047 | 8240 | switch (op[1] & 0x00) |
6048 | 8241 | { |
6049 | 8242 | case 0x00: |
6050 | - goto op_semantics_40; | |
8243 | + goto op_semantics_54; | |
6051 | 8244 | break; |
6052 | 8245 | } |
6053 | 8246 | break; |
6054 | - case 0x90: | |
8247 | + case 0xb7: | |
6055 | 8248 | GETBYTE (); |
6056 | 8249 | switch (op[1] & 0x00) |
6057 | 8250 | { |
6058 | 8251 | case 0x00: |
6059 | - goto op_semantics_39; | |
8252 | + goto op_semantics_54; | |
6060 | 8253 | break; |
6061 | 8254 | } |
6062 | 8255 | break; |
6063 | - case 0x91: | |
8256 | + case 0xb8: | |
6064 | 8257 | GETBYTE (); |
6065 | 8258 | switch (op[1] & 0x00) |
6066 | 8259 | { |
6067 | 8260 | case 0x00: |
6068 | - goto op_semantics_39; | |
8261 | + goto op_semantics_54; | |
6069 | 8262 | break; |
6070 | 8263 | } |
6071 | 8264 | break; |
6072 | - case 0x92: | |
8265 | + case 0xb9: | |
6073 | 8266 | GETBYTE (); |
6074 | 8267 | switch (op[1] & 0x00) |
6075 | 8268 | { |
6076 | 8269 | case 0x00: |
6077 | - goto op_semantics_39; | |
8270 | + goto op_semantics_54; | |
6078 | 8271 | break; |
6079 | 8272 | } |
6080 | 8273 | break; |
6081 | - case 0x93: | |
8274 | + case 0xba: | |
6082 | 8275 | GETBYTE (); |
6083 | 8276 | switch (op[1] & 0x00) |
6084 | 8277 | { |
6085 | 8278 | case 0x00: |
6086 | - goto op_semantics_39; | |
8279 | + goto op_semantics_54; | |
6087 | 8280 | break; |
6088 | 8281 | } |
6089 | 8282 | break; |
6090 | - case 0x94: | |
8283 | + case 0xbb: | |
6091 | 8284 | GETBYTE (); |
6092 | 8285 | switch (op[1] & 0x00) |
6093 | 8286 | { |
6094 | 8287 | case 0x00: |
6095 | - goto op_semantics_39; | |
8288 | + goto op_semantics_54; | |
6096 | 8289 | break; |
6097 | 8290 | } |
6098 | 8291 | break; |
6099 | - case 0x95: | |
8292 | + case 0xbc: | |
6100 | 8293 | GETBYTE (); |
6101 | 8294 | switch (op[1] & 0x00) |
6102 | 8295 | { |
6103 | 8296 | case 0x00: |
6104 | - goto op_semantics_39; | |
8297 | + goto op_semantics_54; | |
6105 | 8298 | break; |
6106 | 8299 | } |
6107 | 8300 | break; |
6108 | - case 0x96: | |
8301 | + case 0xbd: | |
6109 | 8302 | GETBYTE (); |
6110 | 8303 | switch (op[1] & 0x00) |
6111 | 8304 | { |
6112 | 8305 | case 0x00: |
6113 | - goto op_semantics_39; | |
8306 | + goto op_semantics_54; | |
6114 | 8307 | break; |
6115 | 8308 | } |
6116 | 8309 | break; |
6117 | - case 0x97: | |
8310 | + case 0xbe: | |
6118 | 8311 | GETBYTE (); |
6119 | 8312 | switch (op[1] & 0x00) |
6120 | 8313 | { |
6121 | 8314 | case 0x00: |
6122 | - goto op_semantics_39; | |
8315 | + goto op_semantics_54; | |
6123 | 8316 | break; |
6124 | 8317 | } |
6125 | 8318 | break; |
6126 | - case 0x98: | |
8319 | + case 0xbf: | |
6127 | 8320 | GETBYTE (); |
6128 | 8321 | switch (op[1] & 0x00) |
6129 | 8322 | { |
6130 | 8323 | case 0x00: |
6131 | - goto op_semantics_40; | |
8324 | + goto op_semantics_54; | |
6132 | 8325 | break; |
6133 | 8326 | } |
6134 | 8327 | break; |
6135 | - case 0x99: | |
8328 | + case 0xc0: | |
6136 | 8329 | GETBYTE (); |
6137 | 8330 | switch (op[1] & 0x00) |
6138 | 8331 | { |
6139 | 8332 | case 0x00: |
6140 | - goto op_semantics_40; | |
8333 | + op_semantics_55: | |
8334 | + { | |
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; | |
8346 | + if (trace) | |
8347 | + { | |
8348 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
8349 | + "/** 11sz sd ss rsrc rdst mov%s %1, %0 */", | |
8350 | + op[0], op[1]); | |
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); | |
8356 | + } | |
8357 | + SYNTAX("mov%s %1, %0"); | |
8358 | +#line 335 "rx-decode.opc" | |
8359 | + if (sd == 3 && ss == 3 && sz == 2 && rsrc == 0 && rdst == 0) | |
8360 | + { | |
8361 | + ID(nop2); | |
8362 | + SYNTAX ("nop\t; mov.l\tr0, r0"); | |
8363 | + } | |
8364 | + else | |
8365 | + { | |
8366 | + ID(mov); sBWL(sz); F_____; | |
8367 | + if ((ss == 3) && (sd != 3)) | |
8368 | + { | |
8369 | + SD(ss, rdst, sz); DD(sd, rsrc, sz); | |
8370 | + } | |
8371 | + else | |
8372 | + { | |
8373 | + SD(ss, rsrc, sz); DD(sd, rdst, sz); | |
8374 | + } | |
8375 | + } | |
8376 | + | |
8377 | + } | |
6141 | 8378 | break; |
6142 | 8379 | } |
6143 | 8380 | break; |
6144 | - case 0x9a: | |
8381 | + case 0xc1: | |
6145 | 8382 | GETBYTE (); |
6146 | 8383 | switch (op[1] & 0x00) |
6147 | 8384 | { |
6148 | 8385 | case 0x00: |
6149 | - goto op_semantics_40; | |
8386 | + goto op_semantics_55; | |
6150 | 8387 | break; |
6151 | 8388 | } |
6152 | 8389 | break; |
6153 | - case 0x9b: | |
8390 | + case 0xc2: | |
6154 | 8391 | GETBYTE (); |
6155 | 8392 | switch (op[1] & 0x00) |
6156 | 8393 | { |
6157 | 8394 | case 0x00: |
6158 | - goto op_semantics_40; | |
8395 | + goto op_semantics_55; | |
6159 | 8396 | break; |
6160 | 8397 | } |
6161 | 8398 | break; |
6162 | - case 0x9c: | |
8399 | + case 0xc3: | |
6163 | 8400 | GETBYTE (); |
6164 | 8401 | switch (op[1] & 0x00) |
6165 | 8402 | { |
6166 | 8403 | case 0x00: |
6167 | - goto op_semantics_40; | |
8404 | + goto op_semantics_55; | |
6168 | 8405 | break; |
6169 | 8406 | } |
6170 | 8407 | break; |
6171 | - case 0x9d: | |
8408 | + case 0xc4: | |
6172 | 8409 | GETBYTE (); |
6173 | 8410 | switch (op[1] & 0x00) |
6174 | 8411 | { |
6175 | 8412 | case 0x00: |
6176 | - goto op_semantics_40; | |
8413 | + goto op_semantics_55; | |
6177 | 8414 | break; |
6178 | 8415 | } |
6179 | 8416 | break; |
6180 | - case 0x9e: | |
8417 | + case 0xc5: | |
6181 | 8418 | GETBYTE (); |
6182 | 8419 | switch (op[1] & 0x00) |
6183 | 8420 | { |
6184 | 8421 | case 0x00: |
6185 | - goto op_semantics_40; | |
8422 | + goto op_semantics_55; | |
6186 | 8423 | break; |
6187 | 8424 | } |
6188 | 8425 | break; |
6189 | - case 0x9f: | |
8426 | + case 0xc6: | |
6190 | 8427 | GETBYTE (); |
6191 | 8428 | switch (op[1] & 0x00) |
6192 | 8429 | { |
6193 | 8430 | case 0x00: |
6194 | - goto op_semantics_40; | |
8431 | + goto op_semantics_55; | |
6195 | 8432 | break; |
6196 | 8433 | } |
6197 | 8434 | break; |
6198 | - case 0xa0: | |
8435 | + case 0xc7: | |
6199 | 8436 | GETBYTE (); |
6200 | 8437 | switch (op[1] & 0x00) |
6201 | 8438 | { |
6202 | 8439 | case 0x00: |
6203 | - goto op_semantics_39; | |
8440 | + goto op_semantics_55; | |
6204 | 8441 | break; |
6205 | 8442 | } |
6206 | 8443 | break; |
6207 | - case 0xa1: | |
8444 | + case 0xc8: | |
6208 | 8445 | GETBYTE (); |
6209 | 8446 | switch (op[1] & 0x00) |
6210 | 8447 | { |
6211 | 8448 | case 0x00: |
6212 | - goto op_semantics_39; | |
8449 | + goto op_semantics_55; | |
6213 | 8450 | break; |
6214 | 8451 | } |
6215 | 8452 | break; |
6216 | - case 0xa2: | |
8453 | + case 0xc9: | |
6217 | 8454 | GETBYTE (); |
6218 | 8455 | switch (op[1] & 0x00) |
6219 | 8456 | { |
6220 | 8457 | case 0x00: |
6221 | - goto op_semantics_39; | |
8458 | + goto op_semantics_55; | |
6222 | 8459 | break; |
6223 | 8460 | } |
6224 | 8461 | break; |
6225 | - case 0xa3: | |
8462 | + case 0xca: | |
6226 | 8463 | GETBYTE (); |
6227 | 8464 | switch (op[1] & 0x00) |
6228 | 8465 | { |
6229 | 8466 | case 0x00: |
6230 | - goto op_semantics_39; | |
8467 | + goto op_semantics_55; | |
6231 | 8468 | break; |
6232 | 8469 | } |
6233 | 8470 | break; |
6234 | - case 0xa4: | |
8471 | + case 0xcb: | |
6235 | 8472 | GETBYTE (); |
6236 | 8473 | switch (op[1] & 0x00) |
6237 | 8474 | { |
6238 | 8475 | case 0x00: |
6239 | - goto op_semantics_39; | |
8476 | + goto op_semantics_55; | |
6240 | 8477 | break; |
6241 | 8478 | } |
6242 | 8479 | break; |
6243 | - case 0xa5: | |
8480 | + case 0xcc: | |
6244 | 8481 | GETBYTE (); |
6245 | 8482 | switch (op[1] & 0x00) |
6246 | 8483 | { |
6247 | 8484 | case 0x00: |
6248 | - goto op_semantics_39; | |
8485 | + goto op_semantics_55; | |
6249 | 8486 | break; |
6250 | 8487 | } |
6251 | 8488 | break; |
6252 | - case 0xa6: | |
8489 | + case 0xcd: | |
6253 | 8490 | GETBYTE (); |
6254 | 8491 | switch (op[1] & 0x00) |
6255 | 8492 | { |
6256 | 8493 | case 0x00: |
6257 | - goto op_semantics_39; | |
8494 | + goto op_semantics_55; | |
6258 | 8495 | break; |
6259 | 8496 | } |
6260 | 8497 | break; |
6261 | - case 0xa7: | |
8498 | + case 0xce: | |
6262 | 8499 | GETBYTE (); |
6263 | 8500 | switch (op[1] & 0x00) |
6264 | 8501 | { |
6265 | 8502 | case 0x00: |
6266 | - goto op_semantics_39; | |
8503 | + goto op_semantics_55; | |
6267 | 8504 | break; |
6268 | 8505 | } |
6269 | 8506 | break; |
6270 | - case 0xa8: | |
8507 | + case 0xcf: | |
6271 | 8508 | GETBYTE (); |
6272 | 8509 | switch (op[1] & 0x00) |
6273 | 8510 | { |
6274 | 8511 | case 0x00: |
6275 | - goto op_semantics_40; | |
8512 | + goto op_semantics_55; | |
6276 | 8513 | break; |
6277 | 8514 | } |
6278 | 8515 | break; |
6279 | - case 0xa9: | |
8516 | + case 0xd0: | |
6280 | 8517 | GETBYTE (); |
6281 | 8518 | switch (op[1] & 0x00) |
6282 | 8519 | { |
6283 | 8520 | case 0x00: |
6284 | - goto op_semantics_40; | |
8521 | + goto op_semantics_55; | |
6285 | 8522 | break; |
6286 | 8523 | } |
6287 | 8524 | break; |
6288 | - case 0xaa: | |
8525 | + case 0xd1: | |
6289 | 8526 | GETBYTE (); |
6290 | 8527 | switch (op[1] & 0x00) |
6291 | 8528 | { |
6292 | 8529 | case 0x00: |
6293 | - goto op_semantics_40; | |
8530 | + goto op_semantics_55; | |
6294 | 8531 | break; |
6295 | 8532 | } |
6296 | 8533 | break; |
6297 | - case 0xab: | |
8534 | + case 0xd2: | |
6298 | 8535 | GETBYTE (); |
6299 | 8536 | switch (op[1] & 0x00) |
6300 | 8537 | { |
6301 | 8538 | case 0x00: |
6302 | - goto op_semantics_40; | |
8539 | + goto op_semantics_55; | |
6303 | 8540 | break; |
6304 | 8541 | } |
6305 | 8542 | break; |
6306 | - case 0xac: | |
8543 | + case 0xd3: | |
6307 | 8544 | GETBYTE (); |
6308 | 8545 | switch (op[1] & 0x00) |
6309 | 8546 | { |
6310 | 8547 | case 0x00: |
6311 | - goto op_semantics_40; | |
8548 | + goto op_semantics_55; | |
6312 | 8549 | break; |
6313 | 8550 | } |
6314 | 8551 | break; |
6315 | - case 0xad: | |
8552 | + case 0xd4: | |
6316 | 8553 | GETBYTE (); |
6317 | 8554 | switch (op[1] & 0x00) |
6318 | 8555 | { |
6319 | 8556 | case 0x00: |
6320 | - goto op_semantics_40; | |
8557 | + goto op_semantics_55; | |
6321 | 8558 | break; |
6322 | 8559 | } |
6323 | 8560 | break; |
6324 | - case 0xae: | |
8561 | + case 0xd5: | |
6325 | 8562 | GETBYTE (); |
6326 | 8563 | switch (op[1] & 0x00) |
6327 | 8564 | { |
6328 | 8565 | case 0x00: |
6329 | - goto op_semantics_40; | |
8566 | + goto op_semantics_55; | |
6330 | 8567 | break; |
6331 | 8568 | } |
6332 | 8569 | break; |
6333 | - case 0xaf: | |
8570 | + case 0xd6: | |
6334 | 8571 | GETBYTE (); |
6335 | 8572 | switch (op[1] & 0x00) |
6336 | 8573 | { |
6337 | 8574 | case 0x00: |
6338 | - goto op_semantics_40; | |
8575 | + goto op_semantics_55; | |
6339 | 8576 | break; |
6340 | 8577 | } |
6341 | 8578 | break; |
6342 | - case 0xb0: | |
8579 | + case 0xd7: | |
6343 | 8580 | GETBYTE (); |
6344 | 8581 | switch (op[1] & 0x00) |
6345 | 8582 | { |
6346 | 8583 | case 0x00: |
6347 | - op_semantics_41: | |
6348 | - { | |
6349 | - /** 1011 w dsp a src b dst movu%s %1, %0 */ | |
6350 | -#line 356 "rx-decode.opc" | |
6351 | - int w AU = (op[0] >> 3) & 0x01; | |
6352 | -#line 356 "rx-decode.opc" | |
6353 | - int dsp AU = op[0] & 0x07; | |
6354 | -#line 356 "rx-decode.opc" | |
6355 | - int a AU = (op[1] >> 7) & 0x01; | |
6356 | -#line 356 "rx-decode.opc" | |
6357 | - int src AU = (op[1] >> 4) & 0x07; | |
6358 | -#line 356 "rx-decode.opc" | |
6359 | - int b AU = (op[1] >> 3) & 0x01; | |
6360 | -#line 356 "rx-decode.opc" | |
6361 | - int dst AU = op[1] & 0x07; | |
6362 | - if (trace) | |
6363 | - { | |
6364 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
6365 | - "/** 1011 w dsp a src b dst movu%s %1, %0 */", | |
6366 | - op[0], op[1]); | |
6367 | - printf (" w = 0x%x,", w); | |
6368 | - printf (" dsp = 0x%x,", dsp); | |
6369 | - printf (" a = 0x%x,", a); | |
6370 | - printf (" src = 0x%x,", src); | |
6371 | - printf (" b = 0x%x,", b); | |
6372 | - printf (" dst = 0x%x\n", dst); | |
6373 | - } | |
6374 | - SYNTAX("movu%s %1, %0"); | |
6375 | -#line 356 "rx-decode.opc" | |
6376 | - ID(mov); uBW(w); DR(dst); SIs(src, dsp*4+a*2+b, w); F_____; | |
6377 | - | |
6378 | - } | |
8584 | + goto op_semantics_55; | |
6379 | 8585 | break; |
6380 | 8586 | } |
6381 | 8587 | break; |
6382 | - case 0xb1: | |
8588 | + case 0xd8: | |
6383 | 8589 | GETBYTE (); |
6384 | 8590 | switch (op[1] & 0x00) |
6385 | 8591 | { |
6386 | 8592 | case 0x00: |
6387 | - goto op_semantics_41; | |
8593 | + goto op_semantics_55; | |
6388 | 8594 | break; |
6389 | 8595 | } |
6390 | 8596 | break; |
6391 | - case 0xb2: | |
8597 | + case 0xd9: | |
6392 | 8598 | GETBYTE (); |
6393 | 8599 | switch (op[1] & 0x00) |
6394 | 8600 | { |
6395 | 8601 | case 0x00: |
6396 | - goto op_semantics_41; | |
8602 | + goto op_semantics_55; | |
6397 | 8603 | break; |
6398 | 8604 | } |
6399 | 8605 | break; |
6400 | - case 0xb3: | |
8606 | + case 0xda: | |
6401 | 8607 | GETBYTE (); |
6402 | 8608 | switch (op[1] & 0x00) |
6403 | 8609 | { |
6404 | 8610 | case 0x00: |
6405 | - goto op_semantics_41; | |
8611 | + goto op_semantics_55; | |
6406 | 8612 | break; |
6407 | 8613 | } |
6408 | 8614 | break; |
6409 | - case 0xb4: | |
8615 | + case 0xdb: | |
6410 | 8616 | GETBYTE (); |
6411 | 8617 | switch (op[1] & 0x00) |
6412 | 8618 | { |
6413 | 8619 | case 0x00: |
6414 | - goto op_semantics_41; | |
8620 | + goto op_semantics_55; | |
6415 | 8621 | break; |
6416 | 8622 | } |
6417 | 8623 | break; |
6418 | - case 0xb5: | |
8624 | + case 0xdc: | |
6419 | 8625 | GETBYTE (); |
6420 | 8626 | switch (op[1] & 0x00) |
6421 | 8627 | { |
6422 | 8628 | case 0x00: |
6423 | - goto op_semantics_41; | |
8629 | + goto op_semantics_55; | |
6424 | 8630 | break; |
6425 | 8631 | } |
6426 | 8632 | break; |
6427 | - case 0xb6: | |
8633 | + case 0xdd: | |
6428 | 8634 | GETBYTE (); |
6429 | 8635 | switch (op[1] & 0x00) |
6430 | 8636 | { |
6431 | 8637 | case 0x00: |
6432 | - goto op_semantics_41; | |
8638 | + goto op_semantics_55; | |
6433 | 8639 | break; |
6434 | 8640 | } |
6435 | 8641 | break; |
6436 | - case 0xb7: | |
8642 | + case 0xde: | |
6437 | 8643 | GETBYTE (); |
6438 | 8644 | switch (op[1] & 0x00) |
6439 | 8645 | { |
6440 | 8646 | case 0x00: |
6441 | - goto op_semantics_41; | |
8647 | + goto op_semantics_55; | |
6442 | 8648 | break; |
6443 | 8649 | } |
6444 | 8650 | break; |
6445 | - case 0xb8: | |
8651 | + case 0xdf: | |
6446 | 8652 | GETBYTE (); |
6447 | 8653 | switch (op[1] & 0x00) |
6448 | 8654 | { |
6449 | 8655 | case 0x00: |
6450 | - goto op_semantics_41; | |
8656 | + goto op_semantics_55; | |
6451 | 8657 | break; |
6452 | 8658 | } |
6453 | 8659 | break; |
6454 | - case 0xb9: | |
8660 | + case 0xe0: | |
6455 | 8661 | GETBYTE (); |
6456 | 8662 | switch (op[1] & 0x00) |
6457 | 8663 | { |
6458 | 8664 | case 0x00: |
6459 | - goto op_semantics_41; | |
8665 | + goto op_semantics_55; | |
6460 | 8666 | break; |
6461 | 8667 | } |
6462 | 8668 | break; |
6463 | - case 0xba: | |
8669 | + case 0xe1: | |
6464 | 8670 | GETBYTE (); |
6465 | 8671 | switch (op[1] & 0x00) |
6466 | 8672 | { |
6467 | 8673 | case 0x00: |
6468 | - goto op_semantics_41; | |
8674 | + goto op_semantics_55; | |
6469 | 8675 | break; |
6470 | 8676 | } |
6471 | 8677 | break; |
6472 | - case 0xbb: | |
8678 | + case 0xe2: | |
6473 | 8679 | GETBYTE (); |
6474 | 8680 | switch (op[1] & 0x00) |
6475 | 8681 | { |
6476 | 8682 | case 0x00: |
6477 | - goto op_semantics_41; | |
8683 | + goto op_semantics_55; | |
6478 | 8684 | break; |
6479 | 8685 | } |
6480 | 8686 | break; |
6481 | - case 0xbc: | |
8687 | + case 0xe3: | |
6482 | 8688 | GETBYTE (); |
6483 | 8689 | switch (op[1] & 0x00) |
6484 | 8690 | { |
6485 | 8691 | case 0x00: |
6486 | - goto op_semantics_41; | |
8692 | + goto op_semantics_55; | |
6487 | 8693 | break; |
6488 | 8694 | } |
6489 | 8695 | break; |
6490 | - case 0xbd: | |
8696 | + case 0xe4: | |
6491 | 8697 | GETBYTE (); |
6492 | 8698 | switch (op[1] & 0x00) |
6493 | 8699 | { |
6494 | 8700 | case 0x00: |
6495 | - goto op_semantics_41; | |
8701 | + goto op_semantics_55; | |
6496 | 8702 | break; |
6497 | 8703 | } |
6498 | 8704 | break; |
6499 | - case 0xbe: | |
8705 | + case 0xe5: | |
6500 | 8706 | GETBYTE (); |
6501 | 8707 | switch (op[1] & 0x00) |
6502 | 8708 | { |
6503 | 8709 | case 0x00: |
6504 | - goto op_semantics_41; | |
8710 | + goto op_semantics_55; | |
6505 | 8711 | break; |
6506 | 8712 | } |
6507 | 8713 | break; |
6508 | - case 0xbf: | |
8714 | + case 0xe6: | |
6509 | 8715 | GETBYTE (); |
6510 | 8716 | switch (op[1] & 0x00) |
6511 | 8717 | { |
6512 | 8718 | case 0x00: |
6513 | - goto op_semantics_41; | |
8719 | + goto op_semantics_55; | |
6514 | 8720 | break; |
6515 | 8721 | } |
6516 | 8722 | break; |
6517 | - case 0xc0: | |
8723 | + case 0xe7: | |
6518 | 8724 | GETBYTE (); |
6519 | 8725 | switch (op[1] & 0x00) |
6520 | 8726 | { |
6521 | 8727 | case 0x00: |
6522 | - op_semantics_42: | |
6523 | - { | |
6524 | - /** 11sz sd ss rsrc rdst mov%s %1, %0 */ | |
6525 | -#line 314 "rx-decode.opc" | |
6526 | - int sz AU = (op[0] >> 4) & 0x03; | |
6527 | -#line 314 "rx-decode.opc" | |
6528 | - int sd AU = (op[0] >> 2) & 0x03; | |
6529 | -#line 314 "rx-decode.opc" | |
6530 | - int ss AU = op[0] & 0x03; | |
6531 | -#line 314 "rx-decode.opc" | |
6532 | - int rsrc AU = (op[1] >> 4) & 0x0f; | |
6533 | -#line 314 "rx-decode.opc" | |
6534 | - int rdst AU = op[1] & 0x0f; | |
6535 | - if (trace) | |
6536 | - { | |
6537 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
6538 | - "/** 11sz sd ss rsrc rdst mov%s %1, %0 */", | |
6539 | - op[0], op[1]); | |
6540 | - printf (" sz = 0x%x,", sz); | |
6541 | - printf (" sd = 0x%x,", sd); | |
6542 | - printf (" ss = 0x%x,", ss); | |
6543 | - printf (" rsrc = 0x%x,", rsrc); | |
6544 | - printf (" rdst = 0x%x\n", rdst); | |
6545 | - } | |
6546 | - SYNTAX("mov%s %1, %0"); | |
6547 | -#line 314 "rx-decode.opc" | |
6548 | - if (sd == 3 && ss == 3 && sz == 2 && rsrc == 0 && rdst == 0) | |
6549 | - { | |
6550 | - ID(nop2); | |
6551 | - SYNTAX ("nop\t; mov.l\tr0, r0"); | |
6552 | - } | |
6553 | - else | |
6554 | - { | |
6555 | - ID(mov); sBWL(sz); F_____; | |
6556 | - if ((ss == 3) && (sd != 3)) | |
6557 | - { | |
6558 | - SD(ss, rdst, sz); DD(sd, rsrc, sz); | |
6559 | - } | |
6560 | - else | |
6561 | - { | |
6562 | - SD(ss, rsrc, sz); DD(sd, rdst, sz); | |
6563 | - } | |
6564 | - } | |
6565 | - | |
6566 | - } | |
8728 | + goto op_semantics_55; | |
6567 | 8729 | break; |
6568 | 8730 | } |
6569 | 8731 | break; |
6570 | - case 0xc1: | |
8732 | + case 0xe8: | |
6571 | 8733 | GETBYTE (); |
6572 | 8734 | switch (op[1] & 0x00) |
6573 | 8735 | { |
6574 | 8736 | case 0x00: |
6575 | - goto op_semantics_42; | |
8737 | + goto op_semantics_55; | |
6576 | 8738 | break; |
6577 | 8739 | } |
6578 | 8740 | break; |
6579 | - case 0xc2: | |
8741 | + case 0xe9: | |
6580 | 8742 | GETBYTE (); |
6581 | 8743 | switch (op[1] & 0x00) |
6582 | 8744 | { |
6583 | 8745 | case 0x00: |
6584 | - goto op_semantics_42; | |
8746 | + goto op_semantics_55; | |
6585 | 8747 | break; |
6586 | 8748 | } |
6587 | 8749 | break; |
6588 | - case 0xc3: | |
8750 | + case 0xea: | |
6589 | 8751 | GETBYTE (); |
6590 | 8752 | switch (op[1] & 0x00) |
6591 | 8753 | { |
6592 | 8754 | case 0x00: |
6593 | - goto op_semantics_42; | |
8755 | + goto op_semantics_55; | |
6594 | 8756 | break; |
6595 | 8757 | } |
6596 | 8758 | break; |
6597 | - case 0xc4: | |
8759 | + case 0xeb: | |
6598 | 8760 | GETBYTE (); |
6599 | 8761 | switch (op[1] & 0x00) |
6600 | 8762 | { |
6601 | 8763 | case 0x00: |
6602 | - goto op_semantics_42; | |
8764 | + goto op_semantics_55; | |
6603 | 8765 | break; |
6604 | 8766 | } |
6605 | 8767 | break; |
6606 | - case 0xc5: | |
8768 | + case 0xec: | |
6607 | 8769 | GETBYTE (); |
6608 | 8770 | switch (op[1] & 0x00) |
6609 | 8771 | { |
6610 | 8772 | case 0x00: |
6611 | - goto op_semantics_42; | |
8773 | + goto op_semantics_55; | |
6612 | 8774 | break; |
6613 | 8775 | } |
6614 | 8776 | break; |
6615 | - case 0xc6: | |
8777 | + case 0xed: | |
6616 | 8778 | GETBYTE (); |
6617 | 8779 | switch (op[1] & 0x00) |
6618 | 8780 | { |
6619 | 8781 | case 0x00: |
6620 | - goto op_semantics_42; | |
8782 | + goto op_semantics_55; | |
6621 | 8783 | break; |
6622 | 8784 | } |
6623 | 8785 | break; |
6624 | - case 0xc7: | |
8786 | + case 0xee: | |
6625 | 8787 | GETBYTE (); |
6626 | 8788 | switch (op[1] & 0x00) |
6627 | 8789 | { |
6628 | 8790 | case 0x00: |
6629 | - goto op_semantics_42; | |
8791 | + goto op_semantics_55; | |
6630 | 8792 | break; |
6631 | 8793 | } |
6632 | 8794 | break; |
6633 | - case 0xc8: | |
8795 | + case 0xef: | |
6634 | 8796 | GETBYTE (); |
6635 | 8797 | switch (op[1] & 0x00) |
6636 | 8798 | { |
6637 | 8799 | case 0x00: |
6638 | - goto op_semantics_42; | |
8800 | + goto op_semantics_55; | |
6639 | 8801 | break; |
6640 | 8802 | } |
6641 | 8803 | break; |
6642 | - case 0xc9: | |
8804 | + case 0xf0: | |
6643 | 8805 | GETBYTE (); |
6644 | - switch (op[1] & 0x00) | |
8806 | + switch (op[1] & 0x08) | |
6645 | 8807 | { |
6646 | 8808 | case 0x00: |
6647 | - goto op_semantics_42; | |
8809 | + op_semantics_56: | |
8810 | + { | |
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; | |
8818 | + if (trace) | |
8819 | + { | |
8820 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
8821 | + "/** 1111 00sd rdst 0bit bset #%1, %0%S0 */", | |
8822 | + op[0], op[1]); | |
8823 | + printf (" sd = 0x%x,", sd); | |
8824 | + printf (" rdst = 0x%x,", rdst); | |
8825 | + printf (" bit = 0x%x\n", bit); | |
8826 | + } | |
8827 | + SYNTAX("bset #%1, %0%S0"); | |
8828 | +#line 960 "rx-decode.opc" | |
8829 | + ID(bset); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____; | |
8830 | + | |
8831 | + } | |
8832 | + break; | |
8833 | + case 0x08: | |
8834 | + op_semantics_57: | |
8835 | + { | |
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; | |
8843 | + if (trace) | |
8844 | + { | |
8845 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
8846 | + "/** 1111 00sd rdst 1bit bclr #%1, %0%S0 */", | |
8847 | + op[0], op[1]); | |
8848 | + printf (" sd = 0x%x,", sd); | |
8849 | + printf (" rdst = 0x%x,", rdst); | |
8850 | + printf (" bit = 0x%x\n", bit); | |
8851 | + } | |
8852 | + SYNTAX("bclr #%1, %0%S0"); | |
8853 | +#line 972 "rx-decode.opc" | |
8854 | + ID(bclr); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____; | |
8855 | + | |
8856 | + } | |
6648 | 8857 | break; |
6649 | 8858 | } |
6650 | 8859 | break; |
6651 | - case 0xca: | |
8860 | + case 0xf1: | |
6652 | 8861 | GETBYTE (); |
6653 | - switch (op[1] & 0x00) | |
8862 | + switch (op[1] & 0x08) | |
6654 | 8863 | { |
6655 | 8864 | case 0x00: |
6656 | - goto op_semantics_42; | |
8865 | + goto op_semantics_56; | |
8866 | + break; | |
8867 | + case 0x08: | |
8868 | + goto op_semantics_57; | |
6657 | 8869 | break; |
6658 | 8870 | } |
6659 | 8871 | break; |
6660 | - case 0xcb: | |
8872 | + case 0xf2: | |
6661 | 8873 | GETBYTE (); |
6662 | - switch (op[1] & 0x00) | |
8874 | + switch (op[1] & 0x08) | |
6663 | 8875 | { |
6664 | 8876 | case 0x00: |
6665 | - goto op_semantics_42; | |
8877 | + goto op_semantics_56; | |
8878 | + break; | |
8879 | + case 0x08: | |
8880 | + goto op_semantics_57; | |
6666 | 8881 | break; |
6667 | 8882 | } |
6668 | 8883 | break; |
6669 | - case 0xcc: | |
8884 | + case 0xf3: | |
6670 | 8885 | GETBYTE (); |
6671 | - switch (op[1] & 0x00) | |
8886 | + switch (op[1] & 0x08) | |
6672 | 8887 | { |
6673 | 8888 | case 0x00: |
6674 | - goto op_semantics_42; | |
8889 | + goto op_semantics_56; | |
8890 | + break; | |
8891 | + case 0x08: | |
8892 | + goto op_semantics_57; | |
6675 | 8893 | break; |
6676 | 8894 | } |
6677 | 8895 | break; |
6678 | - case 0xcd: | |
8896 | + case 0xf4: | |
6679 | 8897 | GETBYTE (); |
6680 | - switch (op[1] & 0x00) | |
8898 | + switch (op[1] & 0x0c) | |
6681 | 8899 | { |
6682 | 8900 | case 0x00: |
6683 | - goto op_semantics_42; | |
8901 | + case 0x04: | |
8902 | + op_semantics_58: | |
8903 | + { | |
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; | |
8911 | + if (trace) | |
8912 | + { | |
8913 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
8914 | + "/** 1111 01sd rdst 0bit btst #%2, %1%S1 */", | |
8915 | + op[0], op[1]); | |
8916 | + printf (" sd = 0x%x,", sd); | |
8917 | + printf (" rdst = 0x%x,", rdst); | |
8918 | + printf (" bit = 0x%x\n", bit); | |
8919 | + } | |
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; | |
8923 | + | |
8924 | + } | |
8925 | + break; | |
8926 | + case 0x08: | |
8927 | + op_semantics_59: | |
8928 | + { | |
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; | |
8936 | + if (trace) | |
8937 | + { | |
8938 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
8939 | + "/** 1111 01ss rsrc 10sz push%s %1 */", | |
8940 | + op[0], op[1]); | |
8941 | + printf (" ss = 0x%x,", ss); | |
8942 | + printf (" rsrc = 0x%x,", rsrc); | |
8943 | + printf (" sz = 0x%x\n", sz); | |
8944 | + } | |
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_____; | |
8948 | + | |
8949 | + /*----------------------------------------------------------------------*/ | |
8950 | + /* XCHG */ | |
8951 | + | |
8952 | + } | |
6684 | 8953 | break; |
8954 | + default: UNSUPPORTED(); break; | |
6685 | 8955 | } |
6686 | 8956 | break; |
6687 | - case 0xce: | |
8957 | + case 0xf5: | |
6688 | 8958 | GETBYTE (); |
6689 | - switch (op[1] & 0x00) | |
8959 | + switch (op[1] & 0x0c) | |
6690 | 8960 | { |
6691 | 8961 | case 0x00: |
6692 | - goto op_semantics_42; | |
8962 | + case 0x04: | |
8963 | + goto op_semantics_58; | |
6693 | 8964 | break; |
8965 | + case 0x08: | |
8966 | + goto op_semantics_59; | |
8967 | + break; | |
8968 | + default: UNSUPPORTED(); break; | |
6694 | 8969 | } |
6695 | 8970 | break; |
6696 | - case 0xcf: | |
8971 | + case 0xf6: | |
6697 | 8972 | GETBYTE (); |
6698 | - switch (op[1] & 0x00) | |
8973 | + switch (op[1] & 0x0c) | |
6699 | 8974 | { |
6700 | 8975 | case 0x00: |
6701 | - goto op_semantics_42; | |
8976 | + case 0x04: | |
8977 | + goto op_semantics_58; | |
6702 | 8978 | break; |
8979 | + case 0x08: | |
8980 | + goto op_semantics_59; | |
8981 | + break; | |
8982 | + default: UNSUPPORTED(); break; | |
6703 | 8983 | } |
6704 | 8984 | break; |
6705 | - case 0xd0: | |
8985 | + case 0xf7: | |
6706 | 8986 | GETBYTE (); |
6707 | - switch (op[1] & 0x00) | |
8987 | + switch (op[1] & 0x0c) | |
6708 | 8988 | { |
6709 | 8989 | case 0x00: |
6710 | - goto op_semantics_42; | |
8990 | + case 0x04: | |
8991 | + goto op_semantics_58; | |
6711 | 8992 | break; |
8993 | + case 0x08: | |
8994 | + goto op_semantics_59; | |
8995 | + break; | |
8996 | + default: UNSUPPORTED(); break; | |
6712 | 8997 | } |
6713 | 8998 | break; |
6714 | - case 0xd1: | |
8999 | + case 0xf8: | |
6715 | 9000 | GETBYTE (); |
6716 | 9001 | switch (op[1] & 0x00) |
6717 | 9002 | { |
6718 | 9003 | case 0x00: |
6719 | - goto op_semantics_42; | |
9004 | + op_semantics_60: | |
9005 | + { | |
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; | |
9015 | + if (trace) | |
9016 | + { | |
9017 | + printf ("\033[33m%s\033[0m %02x %02x\n", | |
9018 | + "/** 1111 10sd rdst im sz mov%s #%1, %0 */", | |
9019 | + op[0], op[1]); | |
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); | |
9024 | + } | |
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)) | |
9031 | + { | |
9032 | + BWL (sz); | |
9033 | + SC(IMM(im)); | |
9034 | + } | |
9035 | + else | |
9036 | + { | |
9037 | + sBWL (sz); | |
9038 | + SC(IMMex(im)); | |
9039 | + } | |
9040 | + F_____; | |
9041 | + | |
9042 | + } | |
6720 | 9043 | break; |
6721 | 9044 | } |
6722 | 9045 | break; |
6723 | - case 0xd2: | |
9046 | + case 0xf9: | |
6724 | 9047 | GETBYTE (); |
6725 | - switch (op[1] & 0x00) | |
9048 | + switch (op[1] & 0xff) | |
6726 | 9049 | { |
6727 | 9050 | case 0x00: |
6728 | - goto op_semantics_42; | |
9051 | + case 0x01: | |
9052 | + case 0x02: | |
9053 | + case 0x04: | |
9054 | + case 0x05: | |
9055 | + case 0x06: | |
9056 | + case 0x08: | |
9057 | + case 0x09: | |
9058 | + case 0x0a: | |
9059 | + case 0x0c: | |
9060 | + case 0x0d: | |
9061 | + case 0x0e: | |
9062 | + case 0x10: | |
9063 | + case 0x11: | |
9064 | + case 0x12: | |
9065 | + case 0x14: | |
9066 | + case 0x15: | |
9067 | + case 0x16: | |
9068 | + case 0x18: | |
9069 | + case 0x19: | |
9070 | + case 0x1a: | |
9071 | + case 0x1c: | |
9072 | + case 0x1d: | |
9073 | + case 0x1e: | |
9074 | + case 0x20: | |
9075 | + case 0x21: | |
9076 | + case 0x22: | |
9077 | + case 0x24: | |
9078 | + case 0x25: | |
9079 | + case 0x26: | |
9080 | + case 0x28: | |
9081 | + case 0x29: | |
9082 | + case 0x2a: | |
9083 | + case 0x2c: | |
9084 | + case 0x2d: | |
9085 | + case 0x2e: | |
9086 | + case 0x30: | |
9087 | + case 0x31: | |
9088 | + case 0x32: | |
9089 | + case 0x34: | |
9090 | + case 0x35: | |
9091 | + case 0x36: | |
9092 | + case 0x38: | |
9093 | + case 0x39: | |
9094 | + case 0x3a: | |
9095 | + case 0x3c: | |
9096 | + case 0x3d: | |
9097 | + case 0x3e: | |
9098 | + case 0x40: | |
9099 | + case 0x41: | |
9100 | + case 0x42: | |
9101 | + case 0x44: | |
9102 | + case 0x45: | |
9103 | + case 0x46: | |
9104 | + case 0x48: | |
9105 | + case 0x49: | |
9106 | + case 0x4a: | |
9107 | + case 0x4c: | |
9108 | + case 0x4d: | |
9109 | + case 0x4e: | |
9110 | + case 0x50: | |
9111 | + case 0x51: | |
9112 | + case 0x52: | |
9113 | + case 0x54: | |
9114 | + case 0x55: | |
9115 | + case 0x56: | |
9116 | + case 0x58: | |
9117 | + case 0x59: | |
9118 | + case 0x5a: | |
9119 | + case 0x5c: | |
9120 | + case 0x5d: | |
9121 | + case 0x5e: | |
9122 | + case 0x60: | |
9123 | + case 0x61: | |
9124 | + case 0x62: | |
9125 | + case 0x64: | |
9126 | + case 0x65: | |
9127 | + case 0x66: | |
9128 | + case 0x68: | |
9129 | + case 0x69: | |
9130 | + case 0x6a: | |
9131 | + case 0x6c: | |
9132 | + case 0x6d: | |
9133 | + case 0x6e: | |
9134 | + case 0x70: | |
9135 | + case 0x71: | |
9136 | + case 0x72: | |
9137 | + case 0x74: | |
9138 | + case 0x75: | |
9139 | + case 0x76: | |
9140 | + case 0x78: | |
9141 | + case 0x79: | |
9142 | + case 0x7a: | |
9143 | + case 0x7c: | |
9144 | + case 0x7d: | |
9145 | + case 0x7e: | |
9146 | + case 0x80: | |
9147 | + case 0x81: | |
9148 | + case 0x82: | |
9149 | + case 0x84: | |
9150 | + case 0x85: | |
9151 | + case 0x86: | |
9152 | + case 0x88: | |
9153 | + case 0x89: | |
9154 | + case 0x8a: | |
9155 | + case 0x8c: | |
9156 | + case 0x8d: | |
9157 | + case 0x8e: | |
9158 | + case 0x90: | |
9159 | + case 0x91: | |
9160 | + case 0x92: | |
9161 | + case 0x94: | |
9162 | + case 0x95: | |
9163 | + case 0x96: | |
9164 | + case 0x98: | |
9165 | + case 0x99: | |
9166 | + case 0x9a: | |
9167 | + case 0x9c: | |
9168 | + case 0x9d: | |
9169 | + case 0x9e: | |
9170 | + case 0xa0: | |
9171 | + case 0xa1: | |
9172 | + case 0xa2: | |
9173 | + case 0xa4: | |
9174 | + case 0xa5: | |
9175 | + case 0xa6: | |
9176 | + case 0xa8: | |
9177 | + case 0xa9: | |
9178 | + case 0xaa: | |
9179 | + case 0xac: | |
9180 | + case 0xad: | |
9181 | + case 0xae: | |
9182 | + case 0xb0: | |
9183 | + case 0xb1: | |
9184 | + case 0xb2: | |
9185 | + case 0xb4: | |
9186 | + case 0xb5: | |
9187 | + case 0xb6: | |
9188 | + case 0xb8: | |
9189 | + case 0xb9: | |
9190 | + case 0xba: | |
9191 | + case 0xbc: | |
9192 | + case 0xbd: | |
9193 | + case 0xbe: | |
9194 | + case 0xc0: | |
9195 | + case 0xc1: | |
9196 | + case 0xc2: | |
9197 | + case 0xc4: | |
9198 | + case 0xc5: | |
9199 | + case 0xc6: | |
9200 | + case 0xc8: | |
9201 | + case 0xc9: | |
9202 | + case 0xca: | |
9203 | + case 0xcc: | |
9204 | + case 0xcd: | |
9205 | + case 0xce: | |
9206 | + case 0xd0: | |
9207 | + case 0xd1: | |
9208 | + case 0xd2: | |
9209 | + case 0xd4: | |
9210 | + case 0xd5: | |
9211 | + case 0xd6: | |
9212 | + case 0xd8: | |
9213 | + case 0xd9: | |
9214 | + case 0xda: | |
9215 | + case 0xdc: | |
9216 | + case 0xdd: | |
9217 | + case 0xde: | |
9218 | + case 0xe0: | |
9219 | + case 0xe1: | |
9220 | + case 0xe2: | |
9221 | + case 0xe4: | |
9222 | + case 0xe5: | |
9223 | + case 0xe6: | |
9224 | + case 0xe8: | |
9225 | + case 0xe9: | |
9226 | + case 0xea: | |
9227 | + case 0xec: | |
9228 | + case 0xed: | |
9229 | + case 0xee: | |
9230 | + case 0xf0: | |
9231 | + case 0xf1: | |
9232 | + case 0xf2: | |
9233 | + case 0xf4: | |
9234 | + case 0xf5: | |
9235 | + case 0xf6: | |
9236 | + case 0xf8: | |
9237 | + case 0xf9: | |
9238 | + case 0xfa: | |
9239 | + case 0xfc: | |
9240 | + case 0xfd: | |
9241 | + case 0xfe: | |
9242 | + goto op_semantics_60; | |
9243 | + break; | |
9244 | + case 0x03: | |
9245 | + GETBYTE (); | |
9246 | + switch (op[2] & 0x0f) | |
9247 | + { | |
9248 | + case 0x00: | |
9249 | + { | |
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; | |
9253 | + if (trace) | |
9254 | + { | |
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); | |
9259 | + } | |
9260 | + SYNTAX("dmov.l #%1, %0"); | |
9261 | +#line 1211 "rx-decode.opc" | |
9262 | + ID(dmov); DDRL(rdst); SC(IMMex(0)); F_____; | |
9263 | + | |
9264 | + } | |
9265 | + break; | |
9266 | + case 0x02: | |
9267 | + case 0x03: | |
9268 | + { | |
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; | |
9274 | + if (trace) | |
9275 | + { | |
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); | |
9281 | + } | |
9282 | + SYNTAX("dmov%s #%1, %0"); | |
9283 | +#line 1208 "rx-decode.opc" | |
9284 | + ID(dmov); DDRH(rdst); DL(s); SC(IMMex(0)); F_____; | |
9285 | + | |
9286 | + } | |
9287 | + break; | |
9288 | + default: UNSUPPORTED(); break; | |
9289 | + } | |
6729 | 9290 | break; |
9291 | + default: UNSUPPORTED(); break; | |
6730 | 9292 | } |
6731 | 9293 | break; |
6732 | - case 0xd3: | |
9294 | + case 0xfa: | |
6733 | 9295 | GETBYTE (); |
6734 | 9296 | switch (op[1] & 0x00) |
6735 | 9297 | { |
6736 | 9298 | case 0x00: |
6737 | - goto op_semantics_42; | |
9299 | + goto op_semantics_60; | |
6738 | 9300 | break; |
6739 | 9301 | } |
6740 | 9302 | break; |
6741 | - case 0xd4: | |
9303 | + case 0xfb: | |
6742 | 9304 | GETBYTE (); |
6743 | 9305 | switch (op[1] & 0x00) |
6744 | 9306 | { |
6745 | 9307 | case 0x00: |
6746 | - goto op_semantics_42; | |
9308 | + goto op_semantics_60; | |
6747 | 9309 | break; |
6748 | 9310 | } |
6749 | 9311 | break; |
6750 | - case 0xd5: | |
9312 | + case 0xfc: | |
6751 | 9313 | GETBYTE (); |
6752 | - switch (op[1] & 0x00) | |
9314 | + switch (op[1] & 0xff) | |
6753 | 9315 | { |
6754 | - case 0x00: | |
6755 | - goto op_semantics_42; | |
9316 | + case 0x03: | |
9317 | + GETBYTE (); | |
9318 | + switch (op[2] & 0x00) | |
9319 | + { | |
9320 | + case 0x00: | |
9321 | + { | |
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; | |
9327 | + if (trace) | |
9328 | + { | |
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); | |
9334 | + } | |
9335 | + SYNTAX("sbb %1, %0"); | |
9336 | +#line 576 "rx-decode.opc" | |
9337 | + ID(sbb); SR (rsrc); DR(rdst); F_OSZC; | |
9338 | + | |
9339 | + /* FIXME: only supports .L */ | |
9340 | + } | |
9341 | + break; | |
9342 | + } | |
6756 | 9343 | break; |
6757 | - } | |
6758 | - break; | |
6759 | - case 0xd6: | |
6760 | - GETBYTE (); | |
6761 | - switch (op[1] & 0x00) | |
6762 | - { | |
6763 | - case 0x00: | |
6764 | - goto op_semantics_42; | |
9344 | + case 0x07: | |
9345 | + GETBYTE (); | |
9346 | + switch (op[2] & 0x00) | |
9347 | + { | |
9348 | + case 0x00: | |
9349 | + { | |
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; | |
9355 | + if (trace) | |
9356 | + { | |
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); | |
9362 | + } | |
9363 | + SYNTAX("neg %2, %0"); | |
9364 | +#line 507 "rx-decode.opc" | |
9365 | + ID(sub); DR(rdst); SC(0); S2R(rsrc); F_OSZC; | |
9366 | + | |
9367 | + /*----------------------------------------------------------------------*/ | |
9368 | + /* ADC */ | |
9369 | + | |
9370 | + } | |
9371 | + break; | |
9372 | + } | |
6765 | 9373 | break; |
6766 | - } | |
6767 | - break; | |
6768 | - case 0xd7: | |
6769 | - GETBYTE (); | |
6770 | - switch (op[1] & 0x00) | |
6771 | - { | |
6772 | - case 0x00: | |
6773 | - goto op_semantics_42; | |
9374 | + case 0x0b: | |
9375 | + GETBYTE (); | |
9376 | + switch (op[2] & 0x00) | |
9377 | + { | |
9378 | + case 0x00: | |
9379 | + { | |
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; | |
9385 | + if (trace) | |
9386 | + { | |
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); | |
9392 | + } | |
9393 | + SYNTAX("adc %1, %0"); | |
9394 | +#line 516 "rx-decode.opc" | |
9395 | + ID(adc); SR(rsrc); DR(rdst); F_OSZC; | |
9396 | + | |
9397 | + } | |
9398 | + break; | |
9399 | + } | |
6774 | 9400 | break; |
6775 | - } | |
6776 | - break; | |
6777 | - case 0xd8: | |
6778 | - GETBYTE (); | |
6779 | - switch (op[1] & 0x00) | |
6780 | - { | |
6781 | - case 0x00: | |
6782 | - goto op_semantics_42; | |
9401 | + case 0x0f: | |
9402 | + GETBYTE (); | |
9403 | + switch (op[2] & 0x00) | |
9404 | + { | |
9405 | + case 0x00: | |
9406 | + { | |
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; | |
9412 | + if (trace) | |
9413 | + { | |
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); | |
9419 | + } | |
9420 | + SYNTAX("abs %1, %0"); | |
9421 | +#line 589 "rx-decode.opc" | |
9422 | + ID(abs); DR(rdst); SR(rsrc); F_OSZ_; | |
9423 | + | |
9424 | + /*----------------------------------------------------------------------*/ | |
9425 | + /* MAX */ | |
9426 | + | |
9427 | + } | |
9428 | + break; | |
9429 | + } | |
6783 | 9430 | break; |
6784 | - } | |
6785 | - break; | |
6786 | - case 0xd9: | |
6787 | - GETBYTE (); | |
6788 | - switch (op[1] & 0x00) | |
6789 | - { | |
6790 | - case 0x00: | |
6791 | - goto op_semantics_42; | |
9431 | + case 0x10: | |
9432 | + GETBYTE (); | |
9433 | + switch (op[2] & 0x00) | |
9434 | + { | |
9435 | + case 0x00: | |
9436 | + op_semantics_61: | |
9437 | + { | |
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; | |
9445 | + if (trace) | |
9446 | + { | |
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); | |
9453 | + } | |
9454 | + SYNTAX("max %1%S1, %0"); | |
9455 | +#line 608 "rx-decode.opc" | |
9456 | + if (ss == 3 && rsrc == 0 && rdst == 0) | |
9457 | + { | |
9458 | + ID(nop3); | |
9459 | + SYNTAX("nop\t; max\tr0, r0"); | |
9460 | + } | |
9461 | + else | |
9462 | + { | |
9463 | + ID(max); SP(ss, rsrc); DR(rdst); | |
9464 | + } | |
9465 | + | |
9466 | + } | |
9467 | + break; | |
9468 | + } | |
6792 | 9469 | break; |
6793 | - } | |
6794 | - break; | |
6795 | - case 0xda: | |
6796 | - GETBYTE (); | |
6797 | - switch (op[1] & 0x00) | |
6798 | - { | |
6799 | - case 0x00: | |
6800 | - goto op_semantics_42; | |
9470 | + case 0x11: | |
9471 | + GETBYTE (); | |
9472 | + switch (op[2] & 0x00) | |
9473 | + { | |
9474 | + case 0x00: | |
9475 | + goto op_semantics_61; | |
9476 | + break; | |
9477 | + } | |
6801 | 9478 | break; |
6802 | - } | |
6803 | - break; | |
6804 | - case 0xdb: | |
6805 | - GETBYTE (); | |
6806 | - switch (op[1] & 0x00) | |
6807 | - { | |
6808 | - case 0x00: | |
6809 | - goto op_semantics_42; | |
9479 | + case 0x12: | |
9480 | + GETBYTE (); | |
9481 | + switch (op[2] & 0x00) | |
9482 | + { | |
9483 | + case 0x00: | |
9484 | + goto op_semantics_61; | |
9485 | + break; | |
9486 | + } | |
6810 | 9487 | break; |
6811 | - } | |
6812 | - break; | |
6813 | - case 0xdc: | |
6814 | - GETBYTE (); | |
6815 | - switch (op[1] & 0x00) | |
6816 | - { | |
6817 | - case 0x00: | |
6818 | - goto op_semantics_42; | |
9488 | + case 0x13: | |
9489 | + GETBYTE (); | |
9490 | + switch (op[2] & 0x00) | |
9491 | + { | |
9492 | + case 0x00: | |
9493 | + goto op_semantics_61; | |
9494 | + break; | |
9495 | + } | |
6819 | 9496 | break; |
6820 | - } | |
6821 | - break; | |
6822 | - case 0xdd: | |
6823 | - GETBYTE (); | |
6824 | - switch (op[1] & 0x00) | |
6825 | - { | |
6826 | - case 0x00: | |
6827 | - goto op_semantics_42; | |
9497 | + case 0x14: | |
9498 | + GETBYTE (); | |
9499 | + switch (op[2] & 0x00) | |
9500 | + { | |
9501 | + case 0x00: | |
9502 | + op_semantics_62: | |
9503 | + { | |
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; | |
9511 | + if (trace) | |
9512 | + { | |
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); | |
9519 | + } | |
9520 | + SYNTAX("min %1%S1, %0"); | |
9521 | +#line 628 "rx-decode.opc" | |
9522 | + ID(min); SP(ss, rsrc); DR(rdst); | |
9523 | + | |
9524 | + } | |
9525 | + break; | |
9526 | + } | |
6828 | 9527 | break; |
6829 | - } | |
6830 | - break; | |
6831 | - case 0xde: | |
6832 | - GETBYTE (); | |
6833 | - switch (op[1] & 0x00) | |
6834 | - { | |
6835 | - case 0x00: | |
6836 | - goto op_semantics_42; | |
9528 | + case 0x15: | |
9529 | + GETBYTE (); | |
9530 | + switch (op[2] & 0x00) | |
9531 | + { | |
9532 | + case 0x00: | |
9533 | + goto op_semantics_62; | |
9534 | + break; | |
9535 | + } | |
6837 | 9536 | break; |
6838 | - } | |
6839 | - break; | |
6840 | - case 0xdf: | |
6841 | - GETBYTE (); | |
6842 | - switch (op[1] & 0x00) | |
6843 | - { | |
6844 | - case 0x00: | |
6845 | - goto op_semantics_42; | |
9537 | + case 0x16: | |
9538 | + GETBYTE (); | |
9539 | + switch (op[2] & 0x00) | |
9540 | + { | |
9541 | + case 0x00: | |
9542 | + goto op_semantics_62; | |
9543 | + break; | |
9544 | + } | |
6846 | 9545 | break; |
6847 | - } | |
6848 | - break; | |
6849 | - case 0xe0: | |
6850 | - GETBYTE (); | |
6851 | - switch (op[1] & 0x00) | |
6852 | - { | |
6853 | - case 0x00: | |
6854 | - goto op_semantics_42; | |
9546 | + case 0x17: | |
9547 | + GETBYTE (); | |
9548 | + switch (op[2] & 0x00) | |
9549 | + { | |
9550 | + case 0x00: | |
9551 | + goto op_semantics_62; | |
9552 | + break; | |
9553 | + } | |
6855 | 9554 | break; |
6856 | - } | |
6857 | - break; | |
6858 | - case 0xe1: | |
6859 | - GETBYTE (); | |
6860 | - switch (op[1] & 0x00) | |
6861 | - { | |
6862 | - case 0x00: | |
6863 | - goto op_semantics_42; | |
9555 | + case 0x18: | |
9556 | + GETBYTE (); | |
9557 | + switch (op[2] & 0x00) | |
9558 | + { | |
9559 | + case 0x00: | |
9560 | + op_semantics_63: | |
9561 | + { | |
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; | |
9569 | + if (trace) | |
9570 | + { | |
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); | |
9577 | + } | |
9578 | + SYNTAX("emul %1%S1, %0"); | |
9579 | +#line 686 "rx-decode.opc" | |
9580 | + ID(emul); SP(ss, rsrc); DR(rdst); | |
9581 | + | |
9582 | + } | |
9583 | + break; | |
9584 | + } | |
6864 | 9585 | break; |
6865 | - } | |
6866 | - break; | |
6867 | - case 0xe2: | |
6868 | - GETBYTE (); | |
6869 | - switch (op[1] & 0x00) | |
6870 | - { | |
6871 | - case 0x00: | |
6872 | - goto op_semantics_42; | |
9586 | + case 0x19: | |
9587 | + GETBYTE (); | |
9588 | + switch (op[2] & 0x00) | |
9589 | + { | |
9590 | + case 0x00: | |
9591 | + goto op_semantics_63; | |
9592 | + break; | |
9593 | + } | |
6873 | 9594 | break; |
6874 | - } | |
6875 | - break; | |
6876 | - case 0xe3: | |
6877 | - GETBYTE (); | |
6878 | - switch (op[1] & 0x00) | |
6879 | - { | |
6880 | - case 0x00: | |
6881 | - goto op_semantics_42; | |
9595 | + case 0x1a: | |
9596 | + GETBYTE (); | |
9597 | + switch (op[2] & 0x00) | |
9598 | + { | |
9599 | + case 0x00: | |
9600 | + goto op_semantics_63; | |
9601 | + break; | |
9602 | + } | |
6882 | 9603 | break; |
6883 | - } | |
6884 | - break; | |
6885 | - case 0xe4: | |
6886 | - GETBYTE (); | |
6887 | - switch (op[1] & 0x00) | |
6888 | - { | |
6889 | - case 0x00: | |
6890 | - goto op_semantics_42; | |
9604 | + case 0x1b: | |
9605 | + GETBYTE (); | |
9606 | + switch (op[2] & 0x00) | |
9607 | + { | |
9608 | + case 0x00: | |
9609 | + goto op_semantics_63; | |
9610 | + break; | |
9611 | + } | |
6891 | 9612 | break; |
6892 | - } | |
6893 | - break; | |
6894 | - case 0xe5: | |
6895 | - GETBYTE (); | |
6896 | - switch (op[1] & 0x00) | |
6897 | - { | |
6898 | - case 0x00: | |
6899 | - goto op_semantics_42; | |
9613 | + case 0x1c: | |
9614 | + GETBYTE (); | |
9615 | + switch (op[2] & 0x00) | |
9616 | + { | |
9617 | + case 0x00: | |
9618 | + op_semantics_64: | |
9619 | + { | |
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; | |
9627 | + if (trace) | |
9628 | + { | |
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); | |
9635 | + } | |
9636 | + SYNTAX("emulu %1%S1, %0"); | |
9637 | +#line 698 "rx-decode.opc" | |
9638 | + ID(emulu); SP(ss, rsrc); DR(rdst); | |
9639 | + | |
9640 | + } | |
9641 | + break; | |
9642 | + } | |
6900 | 9643 | break; |
6901 | - } | |
6902 | - break; | |
6903 | - case 0xe6: | |
6904 | - GETBYTE (); | |
6905 | - switch (op[1] & 0x00) | |
6906 | - { | |
6907 | - case 0x00: | |
6908 | - goto op_semantics_42; | |
9644 | + case 0x1d: | |
9645 | + GETBYTE (); | |
9646 | + switch (op[2] & 0x00) | |
9647 | + { | |
9648 | + case 0x00: | |
9649 | + goto op_semantics_64; | |
9650 | + break; | |
9651 | + } | |
6909 | 9652 | break; |
6910 | - } | |
6911 | - break; | |
6912 | - case 0xe7: | |
6913 | - GETBYTE (); | |
6914 | - switch (op[1] & 0x00) | |
6915 | - { | |
6916 | - case 0x00: | |
6917 | - goto op_semantics_42; | |
9653 | + case 0x1e: | |
9654 | + GETBYTE (); | |
9655 | + switch (op[2] & 0x00) | |
9656 | + { | |
9657 | + case 0x00: | |
9658 | + goto op_semantics_64; | |
9659 | + break; | |
9660 | + } | |
6918 | 9661 | break; |
6919 | - } | |
6920 | - break; | |
6921 | - case 0xe8: | |
6922 | - GETBYTE (); | |
6923 | - switch (op[1] & 0x00) | |
6924 | - { | |
6925 | - case 0x00: | |
6926 | - goto op_semantics_42; | |
9662 | + case 0x1f: | |
9663 | + GETBYTE (); | |
9664 | + switch (op[2] & 0x00) | |
9665 | + { | |
9666 | + case 0x00: | |
9667 | + goto op_semantics_64; | |
9668 | + break; | |
9669 | + } | |
6927 | 9670 | break; |
6928 | - } | |
6929 | - break; | |
6930 | - case 0xe9: | |
6931 | - GETBYTE (); | |
6932 | - switch (op[1] & 0x00) | |
6933 | - { | |
6934 | - case 0x00: | |
6935 | - goto op_semantics_42; | |
9671 | + case 0x20: | |
9672 | + GETBYTE (); | |
9673 | + switch (op[2] & 0x00) | |
9674 | + { | |
9675 | + case 0x00: | |
9676 | + op_semantics_65: | |
9677 | + { | |
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; | |
9685 | + if (trace) | |
9686 | + { | |
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); | |
9693 | + } | |
9694 | + SYNTAX("div %1%S1, %0"); | |
9695 | +#line 710 "rx-decode.opc" | |
9696 | + ID(div); SP(ss, rsrc); DR(rdst); F_O___; | |
9697 | + | |
9698 | + } | |
9699 | + break; | |
9700 | + } | |
6936 | 9701 | break; |
6937 | - } | |
6938 | - break; | |
6939 | - case 0xea: | |
6940 | - GETBYTE (); | |
6941 | - switch (op[1] & 0x00) | |
6942 | - { | |
6943 | - case 0x00: | |
6944 | - goto op_semantics_42; | |
9702 | + case 0x21: | |
9703 | + GETBYTE (); | |
9704 | + switch (op[2] & 0x00) | |
9705 | + { | |
9706 | + case 0x00: | |
9707 | + goto op_semantics_65; | |
9708 | + break; | |
9709 | + } | |
6945 | 9710 | break; |
6946 | - } | |
6947 | - break; | |
6948 | - case 0xeb: | |
6949 | - GETBYTE (); | |
6950 | - switch (op[1] & 0x00) | |
6951 | - { | |
6952 | - case 0x00: | |
6953 | - goto op_semantics_42; | |
9711 | + case 0x22: | |
9712 | + GETBYTE (); | |
9713 | + switch (op[2] & 0x00) | |
9714 | + { | |
9715 | + case 0x00: | |
9716 | + goto op_semantics_65; | |
9717 | + break; | |
9718 | + } | |
6954 | 9719 | break; |
6955 | - } | |
6956 | - break; | |
6957 | - case 0xec: | |
6958 | - GETBYTE (); | |
6959 | - switch (op[1] & 0x00) | |
6960 | - { | |
6961 | - case 0x00: | |
6962 | - goto op_semantics_42; | |
9720 | + case 0x23: | |
9721 | + GETBYTE (); | |
9722 | + switch (op[2] & 0x00) | |
9723 | + { | |
9724 | + case 0x00: | |
9725 | + goto op_semantics_65; | |
9726 | + break; | |
9727 | + } | |
6963 | 9728 | break; |
6964 | - } | |
6965 | - break; | |
6966 | - case 0xed: | |
6967 | - GETBYTE (); | |
6968 | - switch (op[1] & 0x00) | |
6969 | - { | |
6970 | - case 0x00: | |
6971 | - goto op_semantics_42; | |
9729 | + case 0x24: | |
9730 | + GETBYTE (); | |
9731 | + switch (op[2] & 0x00) | |
9732 | + { | |
9733 | + case 0x00: | |
9734 | + op_semantics_66: | |
9735 | + { | |
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; | |
9743 | + if (trace) | |
9744 | + { | |
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); | |
9751 | + } | |
9752 | + SYNTAX("divu %1%S1, %0"); | |
9753 | +#line 722 "rx-decode.opc" | |
9754 | + ID(divu); SP(ss, rsrc); DR(rdst); F_O___; | |
9755 | + | |
9756 | + } | |
9757 | + break; | |
9758 | + } | |
6972 | 9759 | break; |
6973 | - } | |
6974 | - break; | |
6975 | - case 0xee: | |
6976 | - GETBYTE (); | |
6977 | - switch (op[1] & 0x00) | |
6978 | - { | |
6979 | - case 0x00: | |
6980 | - goto op_semantics_42; | |
9760 | + case 0x25: | |
9761 | + GETBYTE (); | |
9762 | + switch (op[2] & 0x00) | |
9763 | + { | |
9764 | + case 0x00: | |
9765 | + goto op_semantics_66; | |
9766 | + break; | |
9767 | + } | |
6981 | 9768 | break; |
6982 | - } | |
6983 | - break; | |
6984 | - case 0xef: | |
6985 | - GETBYTE (); | |
6986 | - switch (op[1] & 0x00) | |
6987 | - { | |
6988 | - case 0x00: | |
6989 | - goto op_semantics_42; | |
9769 | + case 0x26: | |
9770 | + GETBYTE (); | |
9771 | + switch (op[2] & 0x00) | |
9772 | + { | |
9773 | + case 0x00: | |
9774 | + goto op_semantics_66; | |
9775 | + break; | |
9776 | + } | |
6990 | 9777 | break; |
6991 | - } | |
6992 | - break; | |
6993 | - case 0xf0: | |
6994 | - GETBYTE (); | |
6995 | - switch (op[1] & 0x08) | |
6996 | - { | |
6997 | - case 0x00: | |
6998 | - op_semantics_43: | |
9778 | + case 0x27: | |
9779 | + GETBYTE (); | |
9780 | + switch (op[2] & 0x00) | |
6999 | 9781 | { |
7000 | - /** 1111 00sd rdst 0bit bset #%1, %0%S0 */ | |
7001 | -#line 939 "rx-decode.opc" | |
7002 | - int sd AU = op[0] & 0x03; | |
7003 | -#line 939 "rx-decode.opc" | |
7004 | - int rdst AU = (op[1] >> 4) & 0x0f; | |
7005 | -#line 939 "rx-decode.opc" | |
7006 | - int bit AU = op[1] & 0x07; | |
7007 | - if (trace) | |
7008 | - { | |
7009 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
7010 | - "/** 1111 00sd rdst 0bit bset #%1, %0%S0 */", | |
7011 | - op[0], op[1]); | |
7012 | - printf (" sd = 0x%x,", sd); | |
7013 | - printf (" rdst = 0x%x,", rdst); | |
7014 | - printf (" bit = 0x%x\n", bit); | |
7015 | - } | |
7016 | - SYNTAX("bset #%1, %0%S0"); | |
7017 | -#line 939 "rx-decode.opc" | |
7018 | - ID(bset); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____; | |
7019 | - | |
9782 | + case 0x00: | |
9783 | + goto op_semantics_66; | |
9784 | + break; | |
7020 | 9785 | } |
7021 | 9786 | break; |
7022 | - case 0x08: | |
7023 | - op_semantics_44: | |
9787 | + case 0x30: | |
9788 | + GETBYTE (); | |
9789 | + switch (op[2] & 0x00) | |
7024 | 9790 | { |
7025 | - /** 1111 00sd rdst 1bit bclr #%1, %0%S0 */ | |
7026 | -#line 951 "rx-decode.opc" | |
7027 | - int sd AU = op[0] & 0x03; | |
7028 | -#line 951 "rx-decode.opc" | |
7029 | - int rdst AU = (op[1] >> 4) & 0x0f; | |
7030 | -#line 951 "rx-decode.opc" | |
7031 | - int bit AU = op[1] & 0x07; | |
7032 | - if (trace) | |
7033 | - { | |
7034 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
7035 | - "/** 1111 00sd rdst 1bit bclr #%1, %0%S0 */", | |
7036 | - op[0], op[1]); | |
7037 | - printf (" sd = 0x%x,", sd); | |
7038 | - printf (" rdst = 0x%x,", rdst); | |
7039 | - printf (" bit = 0x%x\n", bit); | |
7040 | - } | |
7041 | - SYNTAX("bclr #%1, %0%S0"); | |
7042 | -#line 951 "rx-decode.opc" | |
7043 | - ID(bclr); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); F_____; | |
9791 | + case 0x00: | |
9792 | + op_semantics_67: | |
9793 | + { | |
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; | |
9801 | + if (trace) | |
9802 | + { | |
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); | |
9809 | + } | |
9810 | + SYNTAX("tst %1%S1, %2"); | |
9811 | +#line 495 "rx-decode.opc" | |
9812 | + ID(and); SP(ss, rsrc); S2R(rdst); F__SZ_; | |
7044 | 9813 | |
9814 | + } | |
9815 | + break; | |
7045 | 9816 | } |
7046 | 9817 | break; |
7047 | - } | |
7048 | - break; | |
7049 | - case 0xf1: | |
7050 | - GETBYTE (); | |
7051 | - switch (op[1] & 0x08) | |
7052 | - { | |
7053 | - case 0x00: | |
7054 | - goto op_semantics_43; | |
9818 | + case 0x31: | |
9819 | + GETBYTE (); | |
9820 | + switch (op[2] & 0x00) | |
9821 | + { | |
9822 | + case 0x00: | |
9823 | + goto op_semantics_67; | |
9824 | + break; | |
9825 | + } | |
7055 | 9826 | break; |
7056 | - case 0x08: | |
7057 | - goto op_semantics_44; | |
9827 | + case 0x32: | |
9828 | + GETBYTE (); | |
9829 | + switch (op[2] & 0x00) | |
9830 | + { | |
9831 | + case 0x00: | |
9832 | + goto op_semantics_67; | |
9833 | + break; | |
9834 | + } | |
7058 | 9835 | break; |
7059 | - } | |
7060 | - break; | |
7061 | - case 0xf2: | |
7062 | - GETBYTE (); | |
7063 | - switch (op[1] & 0x08) | |
7064 | - { | |
7065 | - case 0x00: | |
7066 | - goto op_semantics_43; | |
9836 | + case 0x33: | |
9837 | + GETBYTE (); | |
9838 | + switch (op[2] & 0x00) | |
9839 | + { | |
9840 | + case 0x00: | |
9841 | + goto op_semantics_67; | |
9842 | + break; | |
9843 | + } | |
7067 | 9844 | break; |
7068 | - case 0x08: | |
7069 | - goto op_semantics_44; | |
9845 | + case 0x34: | |
9846 | + GETBYTE (); | |
9847 | + switch (op[2] & 0x00) | |
9848 | + { | |
9849 | + case 0x00: | |
9850 | + op_semantics_68: | |
9851 | + { | |
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; | |
9859 | + if (trace) | |
9860 | + { | |
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); | |
9867 | + } | |
9868 | + SYNTAX("xor %1%S1, %0"); | |
9869 | +#line 474 "rx-decode.opc" | |
9870 | + ID(xor); SP(ss, rsrc); DR(rdst); F__SZ_; | |
9871 | + | |
9872 | + } | |
9873 | + break; | |
9874 | + } | |
7070 | 9875 | break; |
7071 | - } | |
7072 | - break; | |
7073 | - case 0xf3: | |
7074 | - GETBYTE (); | |
7075 | - switch (op[1] & 0x08) | |
7076 | - { | |
7077 | - case 0x00: | |
7078 | - goto op_semantics_43; | |
9876 | + case 0x35: | |
9877 | + GETBYTE (); | |
9878 | + switch (op[2] & 0x00) | |
9879 | + { | |
9880 | + case 0x00: | |
9881 | + goto op_semantics_68; | |
9882 | + break; | |
9883 | + } | |
7079 | 9884 | break; |
7080 | - case 0x08: | |
7081 | - goto op_semantics_44; | |
9885 | + case 0x36: | |
9886 | + GETBYTE (); | |
9887 | + switch (op[2] & 0x00) | |
9888 | + { | |
9889 | + case 0x00: | |
9890 | + goto op_semantics_68; | |
9891 | + break; | |
9892 | + } | |
7082 | 9893 | break; |
7083 | - } | |
7084 | - break; | |
7085 | - case 0xf4: | |
7086 | - GETBYTE (); | |
7087 | - switch (op[1] & 0x0c) | |
7088 | - { | |
7089 | - case 0x00: | |
7090 | - case 0x04: | |
7091 | - op_semantics_45: | |
9894 | + case 0x37: | |
9895 | + GETBYTE (); | |
9896 | + switch (op[2] & 0x00) | |
7092 | 9897 | { |
7093 | - /** 1111 01sd rdst 0bit btst #%2, %1%S1 */ | |
7094 | -#line 963 "rx-decode.opc" | |
7095 | - int sd AU = op[0] & 0x03; | |
7096 | -#line 963 "rx-decode.opc" | |
7097 | - int rdst AU = (op[1] >> 4) & 0x0f; | |
7098 | -#line 963 "rx-decode.opc" | |
7099 | - int bit AU = op[1] & 0x07; | |
7100 | - if (trace) | |
7101 | - { | |
7102 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
7103 | - "/** 1111 01sd rdst 0bit btst #%2, %1%S1 */", | |
7104 | - op[0], op[1]); | |
7105 | - printf (" sd = 0x%x,", sd); | |
7106 | - printf (" rdst = 0x%x,", rdst); | |
7107 | - printf (" bit = 0x%x\n", bit); | |
7108 | - } | |
7109 | - SYNTAX("btst #%2, %1%S1"); | |
7110 | -#line 963 "rx-decode.opc" | |
7111 | - ID(btst); BWL(BSIZE); S2C(bit); SD(sd, rdst, BSIZE); F___ZC; | |
7112 | - | |
9898 | + case 0x00: | |
9899 | + goto op_semantics_68; | |
9900 | + break; | |
7113 | 9901 | } |
7114 | 9902 | break; |
7115 | - case 0x08: | |
7116 | - op_semantics_46: | |
9903 | + case 0x3b: | |
9904 | + GETBYTE (); | |
9905 | + switch (op[2] & 0x00) | |
7117 | 9906 | { |
7118 | - /** 1111 01ss rsrc 10sz push%s %1 */ | |
7119 | -#line 381 "rx-decode.opc" | |
7120 | - int ss AU = op[0] & 0x03; | |
7121 | -#line 381 "rx-decode.opc" | |
7122 | - int rsrc AU = (op[1] >> 4) & 0x0f; | |
7123 | -#line 381 "rx-decode.opc" | |
7124 | - int sz AU = op[1] & 0x03; | |
7125 | - if (trace) | |
7126 | - { | |
7127 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
7128 | - "/** 1111 01ss rsrc 10sz push%s %1 */", | |
7129 | - op[0], op[1]); | |
7130 | - printf (" ss = 0x%x,", ss); | |
7131 | - printf (" rsrc = 0x%x,", rsrc); | |
7132 | - printf (" sz = 0x%x\n", sz); | |
7133 | - } | |
7134 | - SYNTAX("push%s %1"); | |
7135 | -#line 381 "rx-decode.opc" | |
7136 | - ID(mov); BWL(sz); OP(0, RX_Operand_Predec, 0, 0); SD(ss, rsrc, sz); F_____; | |
9907 | + case 0x00: | |
9908 | + { | |
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; | |
9914 | + if (trace) | |
9915 | + { | |
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); | |
9921 | + } | |
9922 | + SYNTAX("not %1, %0"); | |
9923 | +#line 486 "rx-decode.opc" | |
9924 | + ID(xor); DR(rdst); SR(rsrc); S2C(~0); F__SZ_; | |
7137 | 9925 | |
7138 | - /*----------------------------------------------------------------------*/ | |
7139 | - /* XCHG */ | |
9926 | + /*----------------------------------------------------------------------*/ | |
9927 | + /* TST */ | |
7140 | 9928 | |
9929 | + } | |
9930 | + break; | |
7141 | 9931 | } |
7142 | 9932 | break; |
7143 | - default: UNSUPPORTED(); break; | |
7144 | - } | |
7145 | - break; | |
7146 | - case 0xf5: | |
7147 | - GETBYTE (); | |
7148 | - switch (op[1] & 0x0c) | |
7149 | - { | |
7150 | - case 0x00: | |
7151 | - case 0x04: | |
7152 | - goto op_semantics_45; | |
7153 | - break; | |
7154 | - case 0x08: | |
7155 | - goto op_semantics_46; | |
7156 | - break; | |
7157 | - default: UNSUPPORTED(); break; | |
7158 | - } | |
7159 | - break; | |
7160 | - case 0xf6: | |
7161 | - GETBYTE (); | |
7162 | - switch (op[1] & 0x0c) | |
7163 | - { | |
7164 | - case 0x00: | |
7165 | - case 0x04: | |
7166 | - goto op_semantics_45; | |
9933 | + case 0x40: | |
9934 | + GETBYTE (); | |
9935 | + switch (op[2] & 0x00) | |
9936 | + { | |
9937 | + case 0x00: | |
9938 | + op_semantics_69: | |
9939 | + { | |
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; | |
9947 | + if (trace) | |
9948 | + { | |
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); | |
9955 | + } | |
9956 | + SYNTAX("xchg %1%S1, %0"); | |
9957 | +#line 408 "rx-decode.opc" | |
9958 | + ID(xchg); DR(rdst); SP(ss, rsrc); | |
9959 | + | |
9960 | + } | |
9961 | + break; | |
9962 | + } | |
7167 | 9963 | break; |
7168 | - case 0x08: | |
7169 | - goto op_semantics_46; | |
9964 | + case 0x41: | |
9965 | + GETBYTE (); | |
9966 | + switch (op[2] & 0x00) | |
9967 | + { | |
9968 | + case 0x00: | |
9969 | + goto op_semantics_69; | |
9970 | + break; | |
9971 | + } | |
7170 | 9972 | break; |
7171 | - default: UNSUPPORTED(); break; | |
7172 | - } | |
7173 | - break; | |
7174 | - case 0xf7: | |
7175 | - GETBYTE (); | |
7176 | - switch (op[1] & 0x0c) | |
7177 | - { | |
7178 | - case 0x00: | |
7179 | - case 0x04: | |
7180 | - goto op_semantics_45; | |
9973 | + case 0x42: | |
9974 | + GETBYTE (); | |
9975 | + switch (op[2] & 0x00) | |
9976 | + { | |
9977 | + case 0x00: | |
9978 | + goto op_semantics_69; | |
9979 | + break; | |
9980 | + } | |
7181 | 9981 | break; |
7182 | - case 0x08: | |
7183 | - goto op_semantics_46; | |
9982 | + case 0x43: | |
9983 | + GETBYTE (); | |
9984 | + switch (op[2] & 0x00) | |
9985 | + { | |
9986 | + case 0x00: | |
9987 | + goto op_semantics_69; | |
9988 | + break; | |
9989 | + } | |
7184 | 9990 | break; |
7185 | - default: UNSUPPORTED(); break; | |
7186 | - } | |
7187 | - break; | |
7188 | - case 0xf8: | |
7189 | - GETBYTE (); | |
7190 | - switch (op[1] & 0x00) | |
7191 | - { | |
7192 | - case 0x00: | |
7193 | - op_semantics_47: | |
9991 | + case 0x44: | |
9992 | + GETBYTE (); | |
9993 | + switch (op[2] & 0x00) | |
7194 | 9994 | { |
7195 | - /** 1111 10sd rdst im sz mov%s #%1, %0 */ | |
7196 | -#line 292 "rx-decode.opc" | |
7197 | - int sd AU = op[0] & 0x03; | |
7198 | -#line 292 "rx-decode.opc" | |
7199 | - int rdst AU = (op[1] >> 4) & 0x0f; | |
7200 | -#line 292 "rx-decode.opc" | |
7201 | - int im AU = (op[1] >> 2) & 0x03; | |
7202 | -#line 292 "rx-decode.opc" | |
7203 | - int sz AU = op[1] & 0x03; | |
7204 | - if (trace) | |
7205 | - { | |
7206 | - printf ("\033[33m%s\033[0m %02x %02x\n", | |
7207 | - "/** 1111 10sd rdst im sz mov%s #%1, %0 */", | |
7208 | - op[0], op[1]); | |
7209 | - printf (" sd = 0x%x,", sd); | |
7210 | - printf (" rdst = 0x%x,", rdst); | |
7211 | - printf (" im = 0x%x,", im); | |
7212 | - printf (" sz = 0x%x\n", sz); | |
7213 | - } | |
7214 | - SYNTAX("mov%s #%1, %0"); | |
7215 | -#line 292 "rx-decode.opc" | |
7216 | - ID(mov); DD(sd, rdst, sz); | |
7217 | - if ((im == 1 && sz == 0) | |
7218 | - || (im == 2 && sz == 1) | |
7219 | - || (im == 0 && sz == 2)) | |
7220 | - { | |
7221 | - BWL (sz); | |
7222 | - SC(IMM(im)); | |
7223 | - } | |
7224 | - else | |
7225 | - { | |
7226 | - sBWL (sz); | |
7227 | - SC(IMMex(im)); | |
7228 | - } | |
7229 | - F_____; | |
9995 | + case 0x00: | |
9996 | + op_semantics_70: | |
9997 | + { | |
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; | |
10005 | + if (trace) | |
10006 | + { | |
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); | |
10013 | + } | |
10014 | + SYNTAX("itof %1%S1, %0"); | |
10015 | +#line 951 "rx-decode.opc" | |
10016 | + ID(itof); DR (rdst); SP(sd, rsrc); F__SZ_; | |
7230 | 10017 | |
10018 | + } | |
10019 | + break; | |
7231 | 10020 | } |
7232 | 10021 | break; |
7233 | - } | |
7234 | - break; | |
7235 | - case 0xf9: | |
7236 | - GETBYTE (); | |
7237 | - switch (op[1] & 0x00) | |
7238 | - { | |
7239 | - case 0x00: | |
7240 | - goto op_semantics_47; | |
10022 | + case 0x45: | |
10023 | + GETBYTE (); | |
10024 | + switch (op[2] & 0x00) | |
10025 | + { | |
10026 | + case 0x00: | |
10027 | + goto op_semantics_70; | |
10028 | + break; | |
10029 | + } | |
7241 | 10030 | break; |
7242 | - } | |
7243 | - break; | |
7244 | - case 0xfa: | |
7245 | - GETBYTE (); | |
7246 | - switch (op[1] & 0x00) | |
7247 | - { | |
7248 | - case 0x00: | |
7249 | - goto op_semantics_47; | |
10031 | + case 0x46: | |
10032 | + GETBYTE (); | |
10033 | + switch (op[2] & 0x00) | |
10034 | + { | |
10035 | + case 0x00: | |
10036 | + goto op_semantics_70; | |
10037 | + break; | |
10038 | + } | |
7250 | 10039 | break; |
7251 | - } | |
7252 | - break; | |
7253 | - case 0xfb: | |
7254 | - GETBYTE (); | |
7255 | - switch (op[1] & 0x00) | |
7256 | - { | |
7257 | - case 0x00: | |
7258 | - goto op_semantics_47; | |
10040 | + case 0x47: | |
10041 | + GETBYTE (); | |
10042 | + switch (op[2] & 0x00) | |
10043 | + { | |
10044 | + case 0x00: | |
10045 | + goto op_semantics_70; | |
10046 | + break; | |
10047 | + } | |
7259 | 10048 | break; |
7260 | - } | |
7261 | - break; | |
7262 | - case 0xfc: | |
7263 | - GETBYTE (); | |
7264 | - switch (op[1] & 0xff) | |
7265 | - { | |
7266 | - case 0x03: | |
10049 | + case 0x4b: | |
7267 | 10050 | GETBYTE (); |
7268 | 10051 | switch (op[2] & 0x00) |
7269 | 10052 | { |
7270 | 10053 | case 0x00: |
7271 | 10054 | { |
7272 | - /** 1111 1100 0000 0011 rsrc rdst sbb %1, %0 */ | |
7273 | -#line 555 "rx-decode.opc" | |
10055 | + /** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */ | |
10056 | +#line 1077 "rx-decode.opc" | |
7274 | 10057 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7275 | -#line 555 "rx-decode.opc" | |
10058 | +#line 1077 "rx-decode.opc" | |
7276 | 10059 | int rdst AU = op[2] & 0x0f; |
7277 | 10060 | if (trace) |
7278 | 10061 | { |
7279 | 10062 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7280 | - "/** 1111 1100 0000 0011 rsrc rdst sbb %1, %0 */", | |
10063 | + "/** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */", | |
7281 | 10064 | op[0], op[1], op[2]); |
7282 | 10065 | printf (" rsrc = 0x%x,", rsrc); |
7283 | 10066 | printf (" rdst = 0x%x\n", rdst); |
7284 | 10067 | } |
7285 | - SYNTAX("sbb %1, %0"); | |
7286 | -#line 555 "rx-decode.opc" | |
7287 | - ID(sbb); SR (rsrc); DR(rdst); F_OSZC; | |
10068 | + SYNTAX("stz %1, %0"); | |
10069 | +#line 1077 "rx-decode.opc" | |
10070 | + ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_z); | |
7288 | 10071 | |
7289 | - /* FIXME: only supports .L */ | |
7290 | 10072 | } |
7291 | 10073 | break; |
7292 | 10074 | } |
7293 | 10075 | break; |
7294 | - case 0x07: | |
10076 | + case 0x4f: | |
7295 | 10077 | GETBYTE (); |
7296 | 10078 | switch (op[2] & 0x00) |
7297 | 10079 | { |
7298 | 10080 | case 0x00: |
7299 | 10081 | { |
7300 | - /** 1111 1100 0000 0111 rsrc rdst neg %2, %0 */ | |
7301 | -#line 486 "rx-decode.opc" | |
10082 | + /** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */ | |
10083 | +#line 1080 "rx-decode.opc" | |
7302 | 10084 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7303 | -#line 486 "rx-decode.opc" | |
10085 | +#line 1080 "rx-decode.opc" | |
7304 | 10086 | int rdst AU = op[2] & 0x0f; |
7305 | 10087 | if (trace) |
7306 | 10088 | { |
7307 | 10089 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7308 | - "/** 1111 1100 0000 0111 rsrc rdst neg %2, %0 */", | |
10090 | + "/** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */", | |
7309 | 10091 | op[0], op[1], op[2]); |
7310 | 10092 | printf (" rsrc = 0x%x,", rsrc); |
7311 | 10093 | printf (" rdst = 0x%x\n", rdst); |
7312 | 10094 | } |
7313 | - SYNTAX("neg %2, %0"); | |
7314 | -#line 486 "rx-decode.opc" | |
7315 | - ID(sub); DR(rdst); SC(0); S2R(rsrc); F_OSZC; | |
7316 | - | |
7317 | - /*----------------------------------------------------------------------*/ | |
7318 | - /* ADC */ | |
10095 | + SYNTAX("stnz %1, %0"); | |
10096 | +#line 1080 "rx-decode.opc" | |
10097 | + ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_nz); | |
7319 | 10098 | |
7320 | 10099 | } |
7321 | 10100 | break; |
7322 | 10101 | } |
7323 | 10102 | break; |
7324 | - case 0x0b: | |
10103 | + case 0x54: | |
7325 | 10104 | GETBYTE (); |
7326 | 10105 | switch (op[2] & 0x00) |
7327 | 10106 | { |
7328 | 10107 | case 0x00: |
10108 | + op_semantics_71: | |
7329 | 10109 | { |
7330 | - /** 1111 1100 0000 1011 rsrc rdst adc %1, %0 */ | |
7331 | -#line 495 "rx-decode.opc" | |
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" | |
7332 | 10114 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7333 | -#line 495 "rx-decode.opc" | |
10115 | +#line 1137 "rx-decode.opc" | |
7334 | 10116 | int rdst AU = op[2] & 0x0f; |
7335 | 10117 | if (trace) |
7336 | 10118 | { |
7337 | 10119 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7338 | - "/** 1111 1100 0000 1011 rsrc rdst adc %1, %0 */", | |
10120 | + "/** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */", | |
7339 | 10121 | op[0], op[1], op[2]); |
10122 | + printf (" sd = 0x%x,", sd); | |
7340 | 10123 | printf (" rsrc = 0x%x,", rsrc); |
7341 | 10124 | printf (" rdst = 0x%x\n", rdst); |
7342 | 10125 | } |
7343 | - SYNTAX("adc %1, %0"); | |
7344 | -#line 495 "rx-decode.opc" | |
7345 | - ID(adc); SR(rsrc); DR(rdst); F_OSZC; | |
10126 | + SYNTAX("utof %1%S1, %0"); | |
10127 | +#line 1137 "rx-decode.opc" | |
10128 | + ID(utof); DR (rdst); SP(sd, rsrc); F__SZ_; | |
7346 | 10129 | |
7347 | 10130 | } |
7348 | 10131 | break; |
7349 | 10132 | } |
7350 | 10133 | break; |
7351 | - case 0x0f: | |
10134 | + case 0x55: | |
10135 | + GETBYTE (); | |
10136 | + switch (op[2] & 0x00) | |
10137 | + { | |
10138 | + case 0x00: | |
10139 | + goto op_semantics_71; | |
10140 | + break; | |
10141 | + } | |
10142 | + break; | |
10143 | + case 0x56: | |
10144 | + GETBYTE (); | |
10145 | + switch (op[2] & 0x00) | |
10146 | + { | |
10147 | + case 0x00: | |
10148 | + goto op_semantics_71; | |
10149 | + break; | |
10150 | + } | |
10151 | + break; | |
10152 | + case 0x57: | |
10153 | + GETBYTE (); | |
10154 | + switch (op[2] & 0x00) | |
10155 | + { | |
10156 | + case 0x00: | |
10157 | + goto op_semantics_71; | |
10158 | + break; | |
10159 | + } | |
10160 | + break; | |
10161 | + case 0x5a: | |
7352 | 10162 | GETBYTE (); |
7353 | 10163 | switch (op[2] & 0x00) |
7354 | 10164 | { |
7355 | 10165 | case 0x00: |
7356 | 10166 | { |
7357 | - /** 1111 1100 0000 1111 rsrc rdst abs %1, %0 */ | |
7358 | -#line 568 "rx-decode.opc" | |
10167 | + /** 1111 1100 0101 1010 rsrc rdst bfmovz %bf */ | |
10168 | +#line 1152 "rx-decode.opc" | |
7359 | 10169 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7360 | -#line 568 "rx-decode.opc" | |
10170 | +#line 1152 "rx-decode.opc" | |
7361 | 10171 | int rdst AU = op[2] & 0x0f; |
7362 | 10172 | if (trace) |
7363 | 10173 | { |
7364 | 10174 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7365 | - "/** 1111 1100 0000 1111 rsrc rdst abs %1, %0 */", | |
10175 | + "/** 1111 1100 0101 1010 rsrc rdst bfmovz %bf */", | |
7366 | 10176 | op[0], op[1], op[2]); |
7367 | 10177 | printf (" rsrc = 0x%x,", rsrc); |
7368 | 10178 | printf (" rdst = 0x%x\n", rdst); |
7369 | 10179 | } |
7370 | - SYNTAX("abs %1, %0"); | |
7371 | -#line 568 "rx-decode.opc" | |
7372 | - ID(abs); DR(rdst); SR(rsrc); F_OSZ_; | |
7373 | - | |
7374 | - /*----------------------------------------------------------------------*/ | |
7375 | - /* MAX */ | |
10180 | + SYNTAX("bfmovz %bf"); | |
10181 | +#line 1152 "rx-decode.opc" | |
10182 | + ID(bfmovz); DR(rdst); SR(rsrc); S2C(IMM(2)); F_____; | |
7376 | 10183 | |
7377 | 10184 | } |
7378 | 10185 | break; |
7379 | 10186 | } |
7380 | 10187 | break; |
7381 | - case 0x10: | |
10188 | + case 0x5e: | |
7382 | 10189 | GETBYTE (); |
7383 | 10190 | switch (op[2] & 0x00) |
7384 | 10191 | { |
7385 | 10192 | case 0x00: |
7386 | - op_semantics_48: | |
7387 | 10193 | { |
7388 | - /** 1111 1100 0001 00ss rsrc rdst max %1%S1, %0 */ | |
7389 | -#line 587 "rx-decode.opc" | |
7390 | - int ss AU = op[1] & 0x03; | |
7391 | -#line 587 "rx-decode.opc" | |
10194 | + /** 1111 1100 0101 1110 rsrc rdst bfmov %bf */ | |
10195 | +#line 1149 "rx-decode.opc" | |
7392 | 10196 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7393 | -#line 587 "rx-decode.opc" | |
10197 | +#line 1149 "rx-decode.opc" | |
7394 | 10198 | int rdst AU = op[2] & 0x0f; |
7395 | 10199 | if (trace) |
7396 | 10200 | { |
7397 | 10201 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7398 | - "/** 1111 1100 0001 00ss rsrc rdst max %1%S1, %0 */", | |
10202 | + "/** 1111 1100 0101 1110 rsrc rdst bfmov %bf */", | |
7399 | 10203 | op[0], op[1], op[2]); |
7400 | - printf (" ss = 0x%x,", ss); | |
7401 | 10204 | printf (" rsrc = 0x%x,", rsrc); |
7402 | 10205 | printf (" rdst = 0x%x\n", rdst); |
7403 | 10206 | } |
7404 | - SYNTAX("max %1%S1, %0"); | |
7405 | -#line 587 "rx-decode.opc" | |
7406 | - if (ss == 3 && rsrc == 0 && rdst == 0) | |
7407 | - { | |
7408 | - ID(nop3); | |
7409 | - SYNTAX("nop\t; max\tr0, r0"); | |
7410 | - } | |
7411 | - else | |
10207 | + SYNTAX("bfmov %bf"); | |
10208 | +#line 1149 "rx-decode.opc" | |
10209 | + ID(bfmov); DR(rdst); SR(rsrc); S2C(IMM(2)); F_____; | |
10210 | + | |
10211 | + } | |
10212 | + break; | |
10213 | + } | |
10214 | + break; | |
10215 | + case 0x60: | |
10216 | + GETBYTE (); | |
10217 | + switch (op[2] & 0x00) | |
10218 | + { | |
10219 | + case 0x00: | |
10220 | + op_semantics_72: | |
10221 | + { | |
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; | |
10229 | + if (trace) | |
7412 | 10230 | { |
7413 | - ID(max); SP(ss, rsrc); DR(rdst); | |
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); | |
7414 | 10237 | } |
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 */ | |
10242 | + BWL(LSIZE); | |
7415 | 10243 | |
7416 | 10244 | } |
7417 | 10245 | break; |
7418 | 10246 | } |
7419 | 10247 | break; |
7420 | - case 0x11: | |
10248 | + case 0x61: | |
7421 | 10249 | GETBYTE (); |
7422 | 10250 | switch (op[2] & 0x00) |
7423 | 10251 | { |
7424 | 10252 | case 0x00: |
7425 | - goto op_semantics_48; | |
10253 | + goto op_semantics_72; | |
7426 | 10254 | break; |
7427 | 10255 | } |
7428 | 10256 | break; |
7429 | - case 0x12: | |
10257 | + case 0x62: | |
7430 | 10258 | GETBYTE (); |
7431 | 10259 | switch (op[2] & 0x00) |
7432 | 10260 | { |
7433 | 10261 | case 0x00: |
7434 | - goto op_semantics_48; | |
10262 | + goto op_semantics_72; | |
7435 | 10263 | break; |
7436 | 10264 | } |
7437 | 10265 | break; |
7438 | - case 0x13: | |
10266 | + case 0x63: | |
7439 | 10267 | GETBYTE (); |
7440 | 10268 | switch (op[2] & 0x00) |
7441 | 10269 | { |
7442 | 10270 | case 0x00: |
7443 | - goto op_semantics_48; | |
10271 | + goto op_semantics_72; | |
7444 | 10272 | break; |
7445 | 10273 | } |
7446 | 10274 | break; |
7447 | - case 0x14: | |
10275 | + case 0x64: | |
7448 | 10276 | GETBYTE (); |
7449 | 10277 | switch (op[2] & 0x00) |
7450 | 10278 | { |
7451 | 10279 | case 0x00: |
7452 | - op_semantics_49: | |
10280 | + op_semantics_73: | |
7453 | 10281 | { |
7454 | - /** 1111 1100 0001 01ss rsrc rdst min %1%S1, %0 */ | |
7455 | -#line 607 "rx-decode.opc" | |
7456 | - int ss AU = op[1] & 0x03; | |
7457 | -#line 607 "rx-decode.opc" | |
7458 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
7459 | -#line 607 "rx-decode.opc" | |
7460 | - int rdst AU = op[2] & 0x0f; | |
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; | |
7461 | 10289 | if (trace) |
7462 | 10290 | { |
7463 | 10291 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7464 | - "/** 1111 1100 0001 01ss rsrc rdst min %1%S1, %0 */", | |
10292 | + "/** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */", | |
7465 | 10293 | op[0], op[1], op[2]); |
7466 | - printf (" ss = 0x%x,", ss); | |
7467 | - printf (" rsrc = 0x%x,", rsrc); | |
7468 | - printf (" rdst = 0x%x\n", rdst); | |
10294 | + printf (" sd = 0x%x,", sd); | |
10295 | + printf (" rdst = 0x%x,", rdst); | |
10296 | + printf (" rsrc = 0x%x\n", rsrc); | |
7469 | 10297 | } |
7470 | - SYNTAX("min %1%S1, %0"); | |
7471 | -#line 607 "rx-decode.opc" | |
7472 | - ID(min); SP(ss, rsrc); DR(rdst); | |
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 */ | |
10302 | + BWL(LSIZE); | |
7473 | 10303 | |
7474 | 10304 | } |
7475 | 10305 | break; |
7476 | 10306 | } |
7477 | 10307 | break; |
7478 | - case 0x15: | |
10308 | + case 0x65: | |
7479 | 10309 | GETBYTE (); |
7480 | 10310 | switch (op[2] & 0x00) |
7481 | 10311 | { |
7482 | 10312 | case 0x00: |
7483 | - goto op_semantics_49; | |
10313 | + goto op_semantics_73; | |
7484 | 10314 | break; |
7485 | 10315 | } |
7486 | 10316 | break; |
7487 | - case 0x16: | |
10317 | + case 0x66: | |
7488 | 10318 | GETBYTE (); |
7489 | 10319 | switch (op[2] & 0x00) |
7490 | 10320 | { |
7491 | 10321 | case 0x00: |
7492 | - goto op_semantics_49; | |
10322 | + goto op_semantics_73; | |
7493 | 10323 | break; |
7494 | 10324 | } |
7495 | 10325 | break; |
7496 | - case 0x17: | |
10326 | + case 0x67: | |
7497 | 10327 | GETBYTE (); |
7498 | 10328 | switch (op[2] & 0x00) |
7499 | 10329 | { |
7500 | 10330 | case 0x00: |
7501 | - goto op_semantics_49; | |
10331 | + goto op_semantics_73; | |
7502 | 10332 | break; |
7503 | 10333 | } |
7504 | 10334 | break; |
7505 | - case 0x18: | |
10335 | + case 0x68: | |
7506 | 10336 | GETBYTE (); |
7507 | 10337 | switch (op[2] & 0x00) |
7508 | 10338 | { |
7509 | 10339 | case 0x00: |
7510 | - op_semantics_50: | |
10340 | + op_semantics_74: | |
7511 | 10341 | { |
7512 | - /** 1111 1100 0001 10ss rsrc rdst emul %1%S1, %0 */ | |
7513 | -#line 665 "rx-decode.opc" | |
7514 | - int ss AU = op[1] & 0x03; | |
7515 | -#line 665 "rx-decode.opc" | |
7516 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
7517 | -#line 665 "rx-decode.opc" | |
7518 | - int rdst AU = op[2] & 0x0f; | |
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; | |
7519 | 10349 | if (trace) |
7520 | 10350 | { |
7521 | 10351 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7522 | - "/** 1111 1100 0001 10ss rsrc rdst emul %1%S1, %0 */", | |
10352 | + "/** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */", | |
7523 | 10353 | op[0], op[1], op[2]); |
7524 | - printf (" ss = 0x%x,", ss); | |
7525 | - printf (" rsrc = 0x%x,", rsrc); | |
7526 | - printf (" rdst = 0x%x\n", rdst); | |
10354 | + printf (" sd = 0x%x,", sd); | |
10355 | + printf (" rdst = 0x%x,", rdst); | |
10356 | + printf (" rsrc = 0x%x\n", rsrc); | |
7527 | 10357 | } |
7528 | - SYNTAX("emul %1%S1, %0"); | |
7529 | -#line 665 "rx-decode.opc" | |
7530 | - ID(emul); SP(ss, rsrc); DR(rdst); | |
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 */ | |
10362 | + BWL(LSIZE); | |
7531 | 10363 | |
7532 | 10364 | } |
7533 | 10365 | break; |
7534 | 10366 | } |
7535 | 10367 | break; |
7536 | - case 0x19: | |
10368 | + case 0x69: | |
7537 | 10369 | GETBYTE (); |
7538 | 10370 | switch (op[2] & 0x00) |
7539 | 10371 | { |
7540 | 10372 | case 0x00: |
7541 | - goto op_semantics_50; | |
10373 | + goto op_semantics_74; | |
7542 | 10374 | break; |
7543 | 10375 | } |
7544 | 10376 | break; |
7545 | - case 0x1a: | |
10377 | + case 0x6a: | |
7546 | 10378 | GETBYTE (); |
7547 | 10379 | switch (op[2] & 0x00) |
7548 | 10380 | { |
7549 | 10381 | case 0x00: |
7550 | - goto op_semantics_50; | |
10382 | + goto op_semantics_74; | |
7551 | 10383 | break; |
7552 | 10384 | } |
7553 | 10385 | break; |
7554 | - case 0x1b: | |
10386 | + case 0x6b: | |
7555 | 10387 | GETBYTE (); |
7556 | 10388 | switch (op[2] & 0x00) |
7557 | 10389 | { |
7558 | 10390 | case 0x00: |
7559 | - goto op_semantics_50; | |
10391 | + goto op_semantics_74; | |
7560 | 10392 | break; |
7561 | 10393 | } |
7562 | 10394 | break; |
7563 | - case 0x1c: | |
10395 | + case 0x6c: | |
7564 | 10396 | GETBYTE (); |
7565 | 10397 | switch (op[2] & 0x00) |
7566 | 10398 | { |
7567 | 10399 | case 0x00: |
7568 | - op_semantics_51: | |
10400 | + op_semantics_75: | |
7569 | 10401 | { |
7570 | - /** 1111 1100 0001 11ss rsrc rdst emulu %1%S1, %0 */ | |
7571 | -#line 677 "rx-decode.opc" | |
7572 | - int ss AU = op[1] & 0x03; | |
7573 | -#line 677 "rx-decode.opc" | |
7574 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
7575 | -#line 677 "rx-decode.opc" | |
7576 | - int rdst AU = op[2] & 0x0f; | |
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; | |
7577 | 10409 | if (trace) |
7578 | 10410 | { |
7579 | 10411 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7580 | - "/** 1111 1100 0001 11ss rsrc rdst emulu %1%S1, %0 */", | |
10412 | + "/** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */", | |
7581 | 10413 | op[0], op[1], op[2]); |
7582 | - printf (" ss = 0x%x,", ss); | |
7583 | - printf (" rsrc = 0x%x,", rsrc); | |
7584 | - printf (" rdst = 0x%x\n", rdst); | |
10414 | + printf (" sd = 0x%x,", sd); | |
10415 | + printf (" rdst = 0x%x,", rdst); | |
10416 | + printf (" rsrc = 0x%x\n", rsrc); | |
7585 | 10417 | } |
7586 | - SYNTAX("emulu %1%S1, %0"); | |
7587 | -#line 677 "rx-decode.opc" | |
7588 | - ID(emulu); SP(ss, rsrc); DR(rdst); | |
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 */ | |
10422 | + BWL(LSIZE); | |
7589 | 10423 | |
7590 | 10424 | } |
7591 | 10425 | break; |
7592 | 10426 | } |
7593 | 10427 | break; |
7594 | - case 0x1d: | |
10428 | + case 0x6d: | |
7595 | 10429 | GETBYTE (); |
7596 | 10430 | switch (op[2] & 0x00) |
7597 | 10431 | { |
7598 | 10432 | case 0x00: |
7599 | - goto op_semantics_51; | |
10433 | + goto op_semantics_75; | |
7600 | 10434 | break; |
7601 | 10435 | } |
7602 | 10436 | break; |
7603 | - case 0x1e: | |
10437 | + case 0x6e: | |
7604 | 10438 | GETBYTE (); |
7605 | 10439 | switch (op[2] & 0x00) |
7606 | 10440 | { |
7607 | 10441 | case 0x00: |
7608 | - goto op_semantics_51; | |
10442 | + goto op_semantics_75; | |
7609 | 10443 | break; |
7610 | 10444 | } |
7611 | 10445 | break; |
7612 | - case 0x1f: | |
10446 | + case 0x6f: | |
7613 | 10447 | GETBYTE (); |
7614 | 10448 | switch (op[2] & 0x00) |
7615 | 10449 | { |
7616 | 10450 | case 0x00: |
7617 | - goto op_semantics_51; | |
10451 | + goto op_semantics_75; | |
7618 | 10452 | break; |
7619 | 10453 | } |
7620 | 10454 | break; |
7621 | - case 0x20: | |
10455 | + case 0x78: | |
7622 | 10456 | GETBYTE (); |
7623 | - switch (op[2] & 0x00) | |
10457 | + switch (op[2] & 0x0f) | |
7624 | 10458 | { |
7625 | - case 0x00: | |
7626 | - op_semantics_52: | |
10459 | + case 0x08: | |
10460 | + op_semantics_76: | |
7627 | 10461 | { |
7628 | - /** 1111 1100 0010 00ss rsrc rdst div %1%S1, %0 */ | |
7629 | -#line 689 "rx-decode.opc" | |
7630 | - int ss AU = op[1] & 0x03; | |
7631 | -#line 689 "rx-decode.opc" | |
7632 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
7633 | -#line 689 "rx-decode.opc" | |
7634 | - int rdst AU = 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; | |
7635 | 10467 | if (trace) |
7636 | 10468 | { |
7637 | 10469 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7638 | - "/** 1111 1100 0010 00ss rsrc rdst div %1%S1, %0 */", | |
10470 | + "/** 1111 1100 0111 10sz rdst 1000 dmov.d %1, %0 */", | |
7639 | 10471 | op[0], op[1], op[2]); |
7640 | - printf (" ss = 0x%x,", ss); | |
7641 | - printf (" rsrc = 0x%x,", rsrc); | |
10472 | + printf (" sz = 0x%x,", sz); | |
7642 | 10473 | printf (" rdst = 0x%x\n", rdst); |
7643 | 10474 | } |
7644 | - SYNTAX("div %1%S1, %0"); | |
7645 | -#line 689 "rx-decode.opc" | |
7646 | - ID(div); SP(ss, rsrc); DR(rdst); F_O___; | |
10475 | + SYNTAX("dmov.d %1, %0"); | |
10476 | +#line 1185 "rx-decode.opc" | |
10477 | + int rsrc; | |
10478 | + rx_disp(0, sz, rdst, RX_Double, ld); | |
10479 | + rsrc = GETBYTE(); | |
10480 | + if (rsrc & 0x0f) | |
10481 | + UNSUPPORTED(); | |
10482 | + else { | |
10483 | + ID(dmov); SDR(rsrc >> 4); F_____; | |
10484 | + } | |
7647 | 10485 | |
7648 | 10486 | } |
7649 | 10487 | break; |
10488 | + default: UNSUPPORTED(); break; | |
7650 | 10489 | } |
7651 | 10490 | break; |
7652 | - case 0x21: | |
7653 | - GETBYTE (); | |
7654 | - switch (op[2] & 0x00) | |
7655 | - { | |
7656 | - case 0x00: | |
7657 | - goto op_semantics_52; | |
7658 | - break; | |
7659 | - } | |
7660 | - break; | |
7661 | - case 0x22: | |
10491 | + case 0x79: | |
7662 | 10492 | GETBYTE (); |
7663 | - switch (op[2] & 0x00) | |
10493 | + switch (op[2] & 0x0f) | |
7664 | 10494 | { |
7665 | - case 0x00: | |
7666 | - goto op_semantics_52; | |
10495 | + case 0x08: | |
10496 | + goto op_semantics_76; | |
7667 | 10497 | break; |
10498 | + default: UNSUPPORTED(); break; | |
7668 | 10499 | } |
7669 | 10500 | break; |
7670 | - case 0x23: | |
10501 | + case 0x7a: | |
7671 | 10502 | GETBYTE (); |
7672 | - switch (op[2] & 0x00) | |
10503 | + switch (op[2] & 0x0f) | |
7673 | 10504 | { |
7674 | - case 0x00: | |
7675 | - goto op_semantics_52; | |
10505 | + case 0x08: | |
10506 | + goto op_semantics_76; | |
7676 | 10507 | break; |
10508 | + default: UNSUPPORTED(); break; | |
7677 | 10509 | } |
7678 | 10510 | break; |
7679 | - case 0x24: | |
10511 | + case 0x80: | |
7680 | 10512 | GETBYTE (); |
7681 | 10513 | switch (op[2] & 0x00) |
7682 | 10514 | { |
7683 | 10515 | case 0x00: |
7684 | - op_semantics_53: | |
10516 | + op_semantics_77: | |
7685 | 10517 | { |
7686 | - /** 1111 1100 0010 01ss rsrc rdst divu %1%S1, %0 */ | |
7687 | -#line 701 "rx-decode.opc" | |
7688 | - int ss AU = op[1] & 0x03; | |
7689 | -#line 701 "rx-decode.opc" | |
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" | |
7690 | 10522 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7691 | -#line 701 "rx-decode.opc" | |
10523 | +#line 930 "rx-decode.opc" | |
7692 | 10524 | int rdst AU = op[2] & 0x0f; |
7693 | 10525 | if (trace) |
7694 | 10526 | { |
7695 | 10527 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7696 | - "/** 1111 1100 0010 01ss rsrc rdst divu %1%S1, %0 */", | |
10528 | + "/** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */", | |
7697 | 10529 | op[0], op[1], op[2]); |
7698 | - printf (" ss = 0x%x,", ss); | |
10530 | + printf (" sd = 0x%x,", sd); | |
7699 | 10531 | printf (" rsrc = 0x%x,", rsrc); |
7700 | 10532 | printf (" rdst = 0x%x\n", rdst); |
7701 | 10533 | } |
7702 | - SYNTAX("divu %1%S1, %0"); | |
7703 | -#line 701 "rx-decode.opc" | |
7704 | - ID(divu); SP(ss, rsrc); DR(rdst); F_O___; | |
10534 | + SYNTAX("fsub %1%S1, %0"); | |
10535 | +#line 930 "rx-decode.opc" | |
10536 | + ID(fsub); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
7705 | 10537 | |
7706 | 10538 | } |
7707 | 10539 | break; |
7708 | 10540 | } |
7709 | 10541 | break; |
7710 | - case 0x25: | |
10542 | + case 0x81: | |
7711 | 10543 | GETBYTE (); |
7712 | 10544 | switch (op[2] & 0x00) |
7713 | 10545 | { |
7714 | 10546 | case 0x00: |
7715 | - goto op_semantics_53; | |
10547 | + goto op_semantics_77; | |
7716 | 10548 | break; |
7717 | 10549 | } |
7718 | 10550 | break; |
7719 | - case 0x26: | |
10551 | + case 0x82: | |
7720 | 10552 | GETBYTE (); |
7721 | 10553 | switch (op[2] & 0x00) |
7722 | 10554 | { |
7723 | 10555 | case 0x00: |
7724 | - goto op_semantics_53; | |
10556 | + goto op_semantics_77; | |
7725 | 10557 | break; |
7726 | 10558 | } |
7727 | 10559 | break; |
7728 | - case 0x27: | |
10560 | + case 0x83: | |
7729 | 10561 | GETBYTE (); |
7730 | 10562 | switch (op[2] & 0x00) |
7731 | 10563 | { |
7732 | 10564 | case 0x00: |
7733 | - goto op_semantics_53; | |
10565 | + goto op_semantics_77; | |
7734 | 10566 | break; |
7735 | 10567 | } |
7736 | 10568 | break; |
7737 | - case 0x30: | |
10569 | + case 0x84: | |
7738 | 10570 | GETBYTE (); |
7739 | 10571 | switch (op[2] & 0x00) |
7740 | 10572 | { |
7741 | 10573 | case 0x00: |
7742 | - op_semantics_54: | |
10574 | + op_semantics_78: | |
7743 | 10575 | { |
7744 | - /** 1111 1100 0011 00ss rsrc rdst tst %1%S1, %2 */ | |
7745 | -#line 474 "rx-decode.opc" | |
7746 | - int ss AU = op[1] & 0x03; | |
7747 | -#line 474 "rx-decode.opc" | |
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" | |
7748 | 10580 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7749 | -#line 474 "rx-decode.opc" | |
10581 | +#line 924 "rx-decode.opc" | |
7750 | 10582 | int rdst AU = op[2] & 0x0f; |
7751 | 10583 | if (trace) |
7752 | 10584 | { |
7753 | 10585 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7754 | - "/** 1111 1100 0011 00ss rsrc rdst tst %1%S1, %2 */", | |
10586 | + "/** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */", | |
7755 | 10587 | op[0], op[1], op[2]); |
7756 | - printf (" ss = 0x%x,", ss); | |
10588 | + printf (" sd = 0x%x,", sd); | |
7757 | 10589 | printf (" rsrc = 0x%x,", rsrc); |
7758 | 10590 | printf (" rdst = 0x%x\n", rdst); |
7759 | 10591 | } |
7760 | - SYNTAX("tst %1%S1, %2"); | |
7761 | -#line 474 "rx-decode.opc" | |
7762 | - ID(and); SP(ss, rsrc); S2R(rdst); F__SZ_; | |
10592 | + SYNTAX("fcmp %1%S1, %0"); | |
10593 | +#line 924 "rx-decode.opc" | |
10594 | + ID(fcmp); DR(rdst); SD(sd, rsrc, LSIZE); F_OSZ_; | |
7763 | 10595 | |
7764 | 10596 | } |
7765 | 10597 | break; |
7766 | 10598 | } |
7767 | 10599 | break; |
7768 | - case 0x31: | |
10600 | + case 0x85: | |
7769 | 10601 | GETBYTE (); |
7770 | 10602 | switch (op[2] & 0x00) |
7771 | 10603 | { |
7772 | 10604 | case 0x00: |
7773 | - goto op_semantics_54; | |
10605 | + goto op_semantics_78; | |
7774 | 10606 | break; |
7775 | 10607 | } |
7776 | 10608 | break; |
7777 | - case 0x32: | |
10609 | + case 0x86: | |
7778 | 10610 | GETBYTE (); |
7779 | 10611 | switch (op[2] & 0x00) |
7780 | 10612 | { |
7781 | 10613 | case 0x00: |
7782 | - goto op_semantics_54; | |
10614 | + goto op_semantics_78; | |
7783 | 10615 | break; |
7784 | 10616 | } |
7785 | 10617 | break; |
7786 | - case 0x33: | |
10618 | + case 0x87: | |
7787 | 10619 | GETBYTE (); |
7788 | 10620 | switch (op[2] & 0x00) |
7789 | 10621 | { |
7790 | 10622 | case 0x00: |
7791 | - goto op_semantics_54; | |
10623 | + goto op_semantics_78; | |
7792 | 10624 | break; |
7793 | 10625 | } |
7794 | 10626 | break; |
7795 | - case 0x34: | |
10627 | + case 0x88: | |
7796 | 10628 | GETBYTE (); |
7797 | 10629 | switch (op[2] & 0x00) |
7798 | 10630 | { |
7799 | 10631 | case 0x00: |
7800 | - op_semantics_55: | |
10632 | + op_semantics_79: | |
7801 | 10633 | { |
7802 | - /** 1111 1100 0011 01ss rsrc rdst xor %1%S1, %0 */ | |
7803 | -#line 453 "rx-decode.opc" | |
7804 | - int ss AU = op[1] & 0x03; | |
7805 | -#line 453 "rx-decode.opc" | |
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" | |
7806 | 10638 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7807 | -#line 453 "rx-decode.opc" | |
10639 | +#line 918 "rx-decode.opc" | |
7808 | 10640 | int rdst AU = op[2] & 0x0f; |
7809 | 10641 | if (trace) |
7810 | 10642 | { |
7811 | 10643 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7812 | - "/** 1111 1100 0011 01ss rsrc rdst xor %1%S1, %0 */", | |
10644 | + "/** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */", | |
7813 | 10645 | op[0], op[1], op[2]); |
7814 | - printf (" ss = 0x%x,", ss); | |
10646 | + printf (" sd = 0x%x,", sd); | |
7815 | 10647 | printf (" rsrc = 0x%x,", rsrc); |
7816 | 10648 | printf (" rdst = 0x%x\n", rdst); |
7817 | 10649 | } |
7818 | - SYNTAX("xor %1%S1, %0"); | |
7819 | -#line 453 "rx-decode.opc" | |
7820 | - ID(xor); SP(ss, rsrc); DR(rdst); F__SZ_; | |
10650 | + SYNTAX("fadd %1%S1, %0"); | |
10651 | +#line 918 "rx-decode.opc" | |
10652 | + ID(fadd); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
7821 | 10653 | |
7822 | 10654 | } |
7823 | 10655 | break; |
7824 | 10656 | } |
7825 | 10657 | break; |
7826 | - case 0x35: | |
7827 | - GETBYTE (); | |
7828 | - switch (op[2] & 0x00) | |
7829 | - { | |
7830 | - case 0x00: | |
7831 | - goto op_semantics_55; | |
7832 | - break; | |
7833 | - } | |
7834 | - break; | |
7835 | - case 0x36: | |
10658 | + case 0x89: | |
7836 | 10659 | GETBYTE (); |
7837 | 10660 | switch (op[2] & 0x00) |
7838 | 10661 | { |
7839 | 10662 | case 0x00: |
7840 | - goto op_semantics_55; | |
10663 | + goto op_semantics_79; | |
7841 | 10664 | break; |
7842 | 10665 | } |
7843 | 10666 | break; |
7844 | - case 0x37: | |
10667 | + case 0x8a: | |
7845 | 10668 | GETBYTE (); |
7846 | 10669 | switch (op[2] & 0x00) |
7847 | 10670 | { |
7848 | 10671 | case 0x00: |
7849 | - goto op_semantics_55; | |
10672 | + goto op_semantics_79; | |
7850 | 10673 | break; |
7851 | 10674 | } |
7852 | 10675 | break; |
7853 | - case 0x3b: | |
10676 | + case 0x8b: | |
7854 | 10677 | GETBYTE (); |
7855 | 10678 | switch (op[2] & 0x00) |
7856 | 10679 | { |
7857 | 10680 | case 0x00: |
7858 | - { | |
7859 | - /** 1111 1100 0011 1011 rsrc rdst not %1, %0 */ | |
7860 | -#line 465 "rx-decode.opc" | |
7861 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
7862 | -#line 465 "rx-decode.opc" | |
7863 | - int rdst AU = op[2] & 0x0f; | |
7864 | - if (trace) | |
7865 | - { | |
7866 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
7867 | - "/** 1111 1100 0011 1011 rsrc rdst not %1, %0 */", | |
7868 | - op[0], op[1], op[2]); | |
7869 | - printf (" rsrc = 0x%x,", rsrc); | |
7870 | - printf (" rdst = 0x%x\n", rdst); | |
7871 | - } | |
7872 | - SYNTAX("not %1, %0"); | |
7873 | -#line 465 "rx-decode.opc" | |
7874 | - ID(xor); DR(rdst); SR(rsrc); S2C(~0); F__SZ_; | |
7875 | - | |
7876 | - /*----------------------------------------------------------------------*/ | |
7877 | - /* TST */ | |
7878 | - | |
7879 | - } | |
10681 | + goto op_semantics_79; | |
7880 | 10682 | break; |
7881 | 10683 | } |
7882 | 10684 | break; |
7883 | - case 0x40: | |
10685 | + case 0x8c: | |
7884 | 10686 | GETBYTE (); |
7885 | 10687 | switch (op[2] & 0x00) |
7886 | 10688 | { |
7887 | 10689 | case 0x00: |
7888 | - op_semantics_56: | |
10690 | + op_semantics_80: | |
7889 | 10691 | { |
7890 | - /** 1111 1100 0100 00ss rsrc rdst xchg %1%S1, %0 */ | |
7891 | -#line 387 "rx-decode.opc" | |
7892 | - int ss AU = op[1] & 0x03; | |
7893 | -#line 387 "rx-decode.opc" | |
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" | |
7894 | 10696 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7895 | -#line 387 "rx-decode.opc" | |
10697 | +#line 939 "rx-decode.opc" | |
7896 | 10698 | int rdst AU = op[2] & 0x0f; |
7897 | 10699 | if (trace) |
7898 | 10700 | { |
7899 | 10701 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7900 | - "/** 1111 1100 0100 00ss rsrc rdst xchg %1%S1, %0 */", | |
10702 | + "/** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */", | |
7901 | 10703 | op[0], op[1], op[2]); |
7902 | - printf (" ss = 0x%x,", ss); | |
10704 | + printf (" sd = 0x%x,", sd); | |
7903 | 10705 | printf (" rsrc = 0x%x,", rsrc); |
7904 | 10706 | printf (" rdst = 0x%x\n", rdst); |
7905 | 10707 | } |
7906 | - SYNTAX("xchg %1%S1, %0"); | |
7907 | -#line 387 "rx-decode.opc" | |
7908 | - ID(xchg); DR(rdst); SP(ss, rsrc); | |
10708 | + SYNTAX("fmul %1%S1, %0"); | |
10709 | +#line 939 "rx-decode.opc" | |
10710 | + ID(fmul); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
7909 | 10711 | |
7910 | 10712 | } |
7911 | 10713 | break; |
7912 | 10714 | } |
7913 | 10715 | break; |
7914 | - case 0x41: | |
10716 | + case 0x8d: | |
7915 | 10717 | GETBYTE (); |
7916 | 10718 | switch (op[2] & 0x00) |
7917 | 10719 | { |
7918 | 10720 | case 0x00: |
7919 | - goto op_semantics_56; | |
10721 | + goto op_semantics_80; | |
7920 | 10722 | break; |
7921 | 10723 | } |
7922 | 10724 | break; |
7923 | - case 0x42: | |
10725 | + case 0x8e: | |
7924 | 10726 | GETBYTE (); |
7925 | 10727 | switch (op[2] & 0x00) |
7926 | 10728 | { |
7927 | 10729 | case 0x00: |
7928 | - goto op_semantics_56; | |
10730 | + goto op_semantics_80; | |
7929 | 10731 | break; |
7930 | 10732 | } |
7931 | 10733 | break; |
7932 | - case 0x43: | |
10734 | + case 0x8f: | |
7933 | 10735 | GETBYTE (); |
7934 | 10736 | switch (op[2] & 0x00) |
7935 | 10737 | { |
7936 | 10738 | case 0x00: |
7937 | - goto op_semantics_56; | |
10739 | + goto op_semantics_80; | |
7938 | 10740 | break; |
7939 | 10741 | } |
7940 | 10742 | break; |
7941 | - case 0x44: | |
10743 | + case 0x90: | |
7942 | 10744 | GETBYTE (); |
7943 | 10745 | switch (op[2] & 0x00) |
7944 | 10746 | { |
7945 | 10747 | case 0x00: |
7946 | - op_semantics_57: | |
10748 | + op_semantics_81: | |
7947 | 10749 | { |
7948 | - /** 1111 1100 0100 01sd rsrc rdst itof %1%S1, %0 */ | |
7949 | -#line 930 "rx-decode.opc" | |
10750 | + /** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */ | |
10751 | +#line 945 "rx-decode.opc" | |
7950 | 10752 | int sd AU = op[1] & 0x03; |
7951 | -#line 930 "rx-decode.opc" | |
10753 | +#line 945 "rx-decode.opc" | |
7952 | 10754 | int rsrc AU = (op[2] >> 4) & 0x0f; |
7953 | -#line 930 "rx-decode.opc" | |
10755 | +#line 945 "rx-decode.opc" | |
7954 | 10756 | int rdst AU = op[2] & 0x0f; |
7955 | 10757 | if (trace) |
7956 | 10758 | { |
7957 | 10759 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
7958 | - "/** 1111 1100 0100 01sd rsrc rdst itof %1%S1, %0 */", | |
10760 | + "/** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */", | |
7959 | 10761 | op[0], op[1], op[2]); |
7960 | 10762 | printf (" sd = 0x%x,", sd); |
7961 | 10763 | printf (" rsrc = 0x%x,", rsrc); |
7962 | 10764 | printf (" rdst = 0x%x\n", rdst); |
7963 | 10765 | } |
7964 | - SYNTAX("itof %1%S1, %0"); | |
7965 | -#line 930 "rx-decode.opc" | |
7966 | - ID(itof); DR (rdst); SP(sd, rsrc); F__SZ_; | |
10766 | + SYNTAX("fdiv %1%S1, %0"); | |
10767 | +#line 945 "rx-decode.opc" | |
10768 | + ID(fdiv); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
7967 | 10769 | |
7968 | 10770 | } |
7969 | 10771 | break; |
7970 | 10772 | } |
7971 | 10773 | break; |
7972 | - case 0x45: | |
10774 | + case 0x91: | |
7973 | 10775 | GETBYTE (); |
7974 | 10776 | switch (op[2] & 0x00) |
7975 | 10777 | { |
7976 | 10778 | case 0x00: |
7977 | - goto op_semantics_57; | |
10779 | + goto op_semantics_81; | |
7978 | 10780 | break; |
7979 | 10781 | } |
7980 | 10782 | break; |
7981 | - case 0x46: | |
10783 | + case 0x92: | |
7982 | 10784 | GETBYTE (); |
7983 | 10785 | switch (op[2] & 0x00) |
7984 | 10786 | { |
7985 | 10787 | case 0x00: |
7986 | - goto op_semantics_57; | |
10788 | + goto op_semantics_81; | |
7987 | 10789 | break; |
7988 | 10790 | } |
7989 | 10791 | break; |
7990 | - case 0x47: | |
10792 | + case 0x93: | |
7991 | 10793 | GETBYTE (); |
7992 | 10794 | switch (op[2] & 0x00) |
7993 | 10795 | { |
7994 | 10796 | case 0x00: |
7995 | - goto op_semantics_57; | |
10797 | + goto op_semantics_81; | |
7996 | 10798 | break; |
7997 | 10799 | } |
7998 | 10800 | break; |
7999 | - case 0x4b: | |
10801 | + case 0x94: | |
8000 | 10802 | GETBYTE (); |
8001 | 10803 | switch (op[2] & 0x00) |
8002 | 10804 | { |
8003 | 10805 | case 0x00: |
10806 | + op_semantics_82: | |
8004 | 10807 | { |
8005 | - /** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */ | |
8006 | -#line 1056 "rx-decode.opc" | |
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" | |
8007 | 10812 | int rsrc AU = (op[2] >> 4) & 0x0f; |
8008 | -#line 1056 "rx-decode.opc" | |
10813 | +#line 933 "rx-decode.opc" | |
8009 | 10814 | int rdst AU = op[2] & 0x0f; |
8010 | 10815 | if (trace) |
8011 | 10816 | { |
8012 | 10817 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8013 | - "/** 1111 1100 0100 1011 rsrc rdst stz %1, %0 */", | |
10818 | + "/** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */", | |
8014 | 10819 | op[0], op[1], op[2]); |
10820 | + printf (" sd = 0x%x,", sd); | |
8015 | 10821 | printf (" rsrc = 0x%x,", rsrc); |
8016 | 10822 | printf (" rdst = 0x%x\n", rdst); |
8017 | 10823 | } |
8018 | - SYNTAX("stz %1, %0"); | |
8019 | -#line 1056 "rx-decode.opc" | |
8020 | - ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_z); | |
10824 | + SYNTAX("ftoi %1%S1, %0"); | |
10825 | +#line 933 "rx-decode.opc" | |
10826 | + ID(ftoi); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8021 | 10827 | |
8022 | 10828 | } |
8023 | 10829 | break; |
8024 | 10830 | } |
8025 | 10831 | break; |
8026 | - case 0x4f: | |
10832 | + case 0x95: | |
8027 | 10833 | GETBYTE (); |
8028 | 10834 | switch (op[2] & 0x00) |
8029 | 10835 | { |
8030 | 10836 | case 0x00: |
8031 | - { | |
8032 | - /** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */ | |
8033 | -#line 1059 "rx-decode.opc" | |
8034 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8035 | -#line 1059 "rx-decode.opc" | |
8036 | - int rdst AU = op[2] & 0x0f; | |
8037 | - if (trace) | |
8038 | - { | |
8039 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8040 | - "/** 1111 1100 0100 1111 rsrc rdst stnz %1, %0 */", | |
8041 | - op[0], op[1], op[2]); | |
8042 | - printf (" rsrc = 0x%x,", rsrc); | |
8043 | - printf (" rdst = 0x%x\n", rdst); | |
8044 | - } | |
8045 | - SYNTAX("stnz %1, %0"); | |
8046 | -#line 1059 "rx-decode.opc" | |
8047 | - ID(stcc); SR(rsrc); DR(rdst); S2cc(RXC_nz); | |
8048 | - | |
8049 | - } | |
10837 | + goto op_semantics_82; | |
8050 | 10838 | break; |
8051 | 10839 | } |
8052 | 10840 | break; |
8053 | - case 0x54: | |
10841 | + case 0x96: | |
10842 | + GETBYTE (); | |
10843 | + switch (op[2] & 0x00) | |
10844 | + { | |
10845 | + case 0x00: | |
10846 | + goto op_semantics_82; | |
10847 | + break; | |
10848 | + } | |
10849 | + break; | |
10850 | + case 0x97: | |
10851 | + GETBYTE (); | |
10852 | + switch (op[2] & 0x00) | |
10853 | + { | |
10854 | + case 0x00: | |
10855 | + goto op_semantics_82; | |
10856 | + break; | |
10857 | + } | |
10858 | + break; | |
10859 | + case 0x98: | |
8054 | 10860 | GETBYTE (); |
8055 | 10861 | switch (op[2] & 0x00) |
8056 | 10862 | { |
8057 | 10863 | case 0x00: |
8058 | - op_semantics_58: | |
10864 | + op_semantics_83: | |
8059 | 10865 | { |
8060 | - /** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */ | |
8061 | -#line 1116 "rx-decode.opc" | |
10866 | + /** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */ | |
10867 | +#line 948 "rx-decode.opc" | |
8062 | 10868 | int sd AU = op[1] & 0x03; |
8063 | -#line 1116 "rx-decode.opc" | |
10869 | +#line 948 "rx-decode.opc" | |
8064 | 10870 | int rsrc AU = (op[2] >> 4) & 0x0f; |
8065 | -#line 1116 "rx-decode.opc" | |
10871 | +#line 948 "rx-decode.opc" | |
8066 | 10872 | int rdst AU = op[2] & 0x0f; |
8067 | 10873 | if (trace) |
8068 | 10874 | { |
8069 | 10875 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8070 | - "/** 1111 1100 0101 01sd rsrc rdst utof %1%S1, %0 */", | |
10876 | + "/** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */", | |
8071 | 10877 | op[0], op[1], op[2]); |
8072 | 10878 | printf (" sd = 0x%x,", sd); |
8073 | 10879 | printf (" rsrc = 0x%x,", rsrc); |
8074 | 10880 | printf (" rdst = 0x%x\n", rdst); |
8075 | 10881 | } |
8076 | - SYNTAX("utof %1%S1, %0"); | |
8077 | -#line 1116 "rx-decode.opc" | |
8078 | - ID(utof); DR (rdst); SP(sd, rsrc); F__SZ_; | |
10882 | + SYNTAX("round %1%S1, %0"); | |
10883 | +#line 948 "rx-decode.opc" | |
10884 | + ID(round); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8079 | 10885 | |
8080 | 10886 | } |
8081 | 10887 | break; |
8082 | 10888 | } |
8083 | 10889 | break; |
8084 | - case 0x55: | |
10890 | + case 0x99: | |
8085 | 10891 | GETBYTE (); |
8086 | 10892 | switch (op[2] & 0x00) |
8087 | 10893 | { |
8088 | 10894 | case 0x00: |
8089 | - goto op_semantics_58; | |
10895 | + goto op_semantics_83; | |
8090 | 10896 | break; |
8091 | 10897 | } |
8092 | 10898 | break; |
8093 | - case 0x56: | |
10899 | + case 0x9a: | |
8094 | 10900 | GETBYTE (); |
8095 | 10901 | switch (op[2] & 0x00) |
8096 | 10902 | { |
8097 | 10903 | case 0x00: |
8098 | - goto op_semantics_58; | |
10904 | + goto op_semantics_83; | |
8099 | 10905 | break; |
8100 | 10906 | } |
8101 | 10907 | break; |
8102 | - case 0x57: | |
10908 | + case 0x9b: | |
8103 | 10909 | GETBYTE (); |
8104 | 10910 | switch (op[2] & 0x00) |
8105 | 10911 | { |
8106 | 10912 | case 0x00: |
8107 | - goto op_semantics_58; | |
10913 | + goto op_semantics_83; | |
8108 | 10914 | break; |
8109 | 10915 | } |
8110 | 10916 | break; |
8111 | - case 0x60: | |
10917 | + case 0xa0: | |
8112 | 10918 | GETBYTE (); |
8113 | 10919 | switch (op[2] & 0x00) |
8114 | 10920 | { |
8115 | 10921 | case 0x00: |
8116 | - op_semantics_59: | |
10922 | + op_semantics_84: | |
8117 | 10923 | { |
8118 | - /** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */ | |
8119 | -#line 942 "rx-decode.opc" | |
10924 | + /** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */ | |
10925 | +#line 1131 "rx-decode.opc" | |
8120 | 10926 | int sd AU = op[1] & 0x03; |
8121 | -#line 942 "rx-decode.opc" | |
8122 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
8123 | -#line 942 "rx-decode.opc" | |
8124 | - int rsrc AU = op[2] & 0x0f; | |
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; | |
8125 | 10931 | if (trace) |
8126 | 10932 | { |
8127 | 10933 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8128 | - "/** 1111 1100 0110 00sd rdst rsrc bset %1, %0%S0 */", | |
10934 | + "/** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */", | |
8129 | 10935 | op[0], op[1], op[2]); |
8130 | 10936 | printf (" sd = 0x%x,", sd); |
8131 | - printf (" rdst = 0x%x,", rdst); | |
8132 | - printf (" rsrc = 0x%x\n", rsrc); | |
10937 | + printf (" rsrc = 0x%x,", rsrc); | |
10938 | + printf (" rdst = 0x%x\n", rdst); | |
8133 | 10939 | } |
8134 | - SYNTAX("bset %1, %0%S0"); | |
8135 | -#line 942 "rx-decode.opc" | |
8136 | - ID(bset); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____; | |
8137 | - if (sd == 3) /* bset reg,reg */ | |
8138 | - BWL(LSIZE); | |
10940 | + SYNTAX("fsqrt %1%S1, %0"); | |
10941 | +#line 1131 "rx-decode.opc" | |
10942 | + ID(fsqrt); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8139 | 10943 | |
8140 | 10944 | } |
8141 | 10945 | break; |
8142 | 10946 | } |
8143 | 10947 | break; |
8144 | - case 0x61: | |
10948 | + case 0xa1: | |
8145 | 10949 | GETBYTE (); |
8146 | 10950 | switch (op[2] & 0x00) |
8147 | 10951 | { |
8148 | 10952 | case 0x00: |
8149 | - goto op_semantics_59; | |
10953 | + goto op_semantics_84; | |
8150 | 10954 | break; |
8151 | 10955 | } |
8152 | 10956 | break; |
8153 | - case 0x62: | |
10957 | + case 0xa2: | |
8154 | 10958 | GETBYTE (); |
8155 | 10959 | switch (op[2] & 0x00) |
8156 | 10960 | { |
8157 | 10961 | case 0x00: |
8158 | - goto op_semantics_59; | |
10962 | + goto op_semantics_84; | |
8159 | 10963 | break; |
8160 | 10964 | } |
8161 | 10965 | break; |
8162 | - case 0x63: | |
10966 | + case 0xa3: | |
8163 | 10967 | GETBYTE (); |
8164 | 10968 | switch (op[2] & 0x00) |
8165 | 10969 | { |
8166 | 10970 | case 0x00: |
8167 | - goto op_semantics_59; | |
10971 | + goto op_semantics_84; | |
8168 | 10972 | break; |
8169 | 10973 | } |
8170 | 10974 | break; |
8171 | - case 0x64: | |
10975 | + case 0xa4: | |
8172 | 10976 | GETBYTE (); |
8173 | 10977 | switch (op[2] & 0x00) |
8174 | 10978 | { |
8175 | 10979 | case 0x00: |
8176 | - op_semantics_60: | |
10980 | + op_semantics_85: | |
8177 | 10981 | { |
8178 | - /** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */ | |
8179 | -#line 954 "rx-decode.opc" | |
10982 | + /** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */ | |
10983 | +#line 1134 "rx-decode.opc" | |
8180 | 10984 | int sd AU = op[1] & 0x03; |
8181 | -#line 954 "rx-decode.opc" | |
8182 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
8183 | -#line 954 "rx-decode.opc" | |
8184 | - int rsrc AU = op[2] & 0x0f; | |
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; | |
8185 | 10989 | if (trace) |
8186 | 10990 | { |
8187 | 10991 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8188 | - "/** 1111 1100 0110 01sd rdst rsrc bclr %1, %0%S0 */", | |
10992 | + "/** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */", | |
8189 | 10993 | op[0], op[1], op[2]); |
8190 | 10994 | printf (" sd = 0x%x,", sd); |
8191 | - printf (" rdst = 0x%x,", rdst); | |
8192 | - printf (" rsrc = 0x%x\n", rsrc); | |
10995 | + printf (" rsrc = 0x%x,", rsrc); | |
10996 | + printf (" rdst = 0x%x\n", rdst); | |
8193 | 10997 | } |
8194 | - SYNTAX("bclr %1, %0%S0"); | |
8195 | -#line 954 "rx-decode.opc" | |
8196 | - ID(bclr); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); F_____; | |
8197 | - if (sd == 3) /* bset reg,reg */ | |
8198 | - BWL(LSIZE); | |
10998 | + SYNTAX("ftou %1%S1, %0"); | |
10999 | +#line 1134 "rx-decode.opc" | |
11000 | + ID(ftou); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8199 | 11001 | |
8200 | 11002 | } |
8201 | 11003 | break; |
8202 | 11004 | } |
8203 | 11005 | break; |
8204 | - case 0x65: | |
11006 | + case 0xa5: | |
8205 | 11007 | GETBYTE (); |
8206 | 11008 | switch (op[2] & 0x00) |
8207 | 11009 | { |
8208 | 11010 | case 0x00: |
8209 | - goto op_semantics_60; | |
11011 | + goto op_semantics_85; | |
8210 | 11012 | break; |
8211 | 11013 | } |
8212 | 11014 | break; |
8213 | - case 0x66: | |
11015 | + case 0xa6: | |
8214 | 11016 | GETBYTE (); |
8215 | 11017 | switch (op[2] & 0x00) |
8216 | 11018 | { |
8217 | 11019 | case 0x00: |
8218 | - goto op_semantics_60; | |
11020 | + goto op_semantics_85; | |
8219 | 11021 | break; |
8220 | 11022 | } |
8221 | 11023 | break; |
8222 | - case 0x67: | |
11024 | + case 0xa7: | |
8223 | 11025 | GETBYTE (); |
8224 | 11026 | switch (op[2] & 0x00) |
8225 | 11027 | { |
8226 | 11028 | case 0x00: |
8227 | - goto op_semantics_60; | |
11029 | + goto op_semantics_85; | |
8228 | 11030 | break; |
8229 | 11031 | } |
8230 | 11032 | break; |
8231 | - case 0x68: | |
11033 | + case 0xc8: | |
8232 | 11034 | GETBYTE (); |
8233 | - switch (op[2] & 0x00) | |
11035 | + switch (op[2] & 0x0f) | |
8234 | 11036 | { |
8235 | - case 0x00: | |
8236 | - op_semantics_61: | |
11037 | + case 0x08: | |
11038 | + op_semantics_86: | |
8237 | 11039 | { |
8238 | - /** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */ | |
8239 | -#line 966 "rx-decode.opc" | |
8240 | - int sd AU = op[1] & 0x03; | |
8241 | -#line 966 "rx-decode.opc" | |
8242 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
8243 | -#line 966 "rx-decode.opc" | |
8244 | - int rsrc AU = 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; | |
8245 | 11045 | if (trace) |
8246 | 11046 | { |
8247 | 11047 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8248 | - "/** 1111 1100 0110 10sd rdst rsrc btst %2, %1%S1 */", | |
11048 | + "/** 1111 1100 1100 10sz rsrc 1000 dmov.d %1, %0 */", | |
8249 | 11049 | op[0], op[1], op[2]); |
8250 | - printf (" sd = 0x%x,", sd); | |
8251 | - printf (" rdst = 0x%x,", rdst); | |
11050 | + printf (" sz = 0x%x,", sz); | |
8252 | 11051 | printf (" rsrc = 0x%x\n", rsrc); |
8253 | 11052 | } |
8254 | - SYNTAX("btst %2, %1%S1"); | |
8255 | -#line 966 "rx-decode.opc" | |
8256 | - ID(btst); BWL(BSIZE); S2R(rsrc); SD(sd, rdst, BSIZE); F___ZC; | |
8257 | - if (sd == 3) /* bset reg,reg */ | |
8258 | - BWL(LSIZE); | |
11053 | + SYNTAX("dmov.d %1, %0"); | |
11054 | +#line 1198 "rx-decode.opc" | |
11055 | + int rdst; | |
11056 | + rx_disp(1, sz, rsrc, RX_Double, ld); | |
11057 | + rdst = GETBYTE(); | |
11058 | + if (rdst & 0x0f) | |
11059 | + UNSUPPORTED(); | |
11060 | + else { | |
11061 | + ID(dmov); DDR(rdst >> 4); F_____; | |
11062 | + } | |
8259 | 11063 | |
8260 | 11064 | } |
8261 | 11065 | break; |
11066 | + default: UNSUPPORTED(); break; | |
8262 | 11067 | } |
8263 | 11068 | break; |
8264 | - case 0x69: | |
8265 | - GETBYTE (); | |
8266 | - switch (op[2] & 0x00) | |
8267 | - { | |
8268 | - case 0x00: | |
8269 | - goto op_semantics_61; | |
8270 | - break; | |
8271 | - } | |
8272 | - break; | |
8273 | - case 0x6a: | |
11069 | + case 0xc9: | |
8274 | 11070 | GETBYTE (); |
8275 | - switch (op[2] & 0x00) | |
11071 | + switch (op[2] & 0x0f) | |
8276 | 11072 | { |
8277 | - case 0x00: | |
8278 | - goto op_semantics_61; | |
11073 | + case 0x08: | |
11074 | + goto op_semantics_86; | |
8279 | 11075 | break; |
11076 | + default: UNSUPPORTED(); break; | |
8280 | 11077 | } |
8281 | 11078 | break; |
8282 | - case 0x6b: | |
11079 | + case 0xca: | |
8283 | 11080 | GETBYTE (); |
8284 | - switch (op[2] & 0x00) | |
11081 | + switch (op[2] & 0x0f) | |
8285 | 11082 | { |
8286 | - case 0x00: | |
8287 | - goto op_semantics_61; | |
11083 | + case 0x08: | |
11084 | + goto op_semantics_86; | |
8288 | 11085 | break; |
11086 | + default: UNSUPPORTED(); break; | |
8289 | 11087 | } |
8290 | 11088 | break; |
8291 | - case 0x6c: | |
11089 | + case 0xd0: | |
8292 | 11090 | GETBYTE (); |
8293 | 11091 | switch (op[2] & 0x00) |
8294 | 11092 | { |
8295 | 11093 | case 0x00: |
8296 | - op_semantics_62: | |
11094 | + op_semantics_87: | |
8297 | 11095 | { |
8298 | - /** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */ | |
8299 | -#line 978 "rx-decode.opc" | |
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" | |
8300 | 11100 | int sd AU = op[1] & 0x03; |
8301 | -#line 978 "rx-decode.opc" | |
11101 | +#line 1065 "rx-decode.opc" | |
8302 | 11102 | int rdst AU = (op[2] >> 4) & 0x0f; |
8303 | -#line 978 "rx-decode.opc" | |
8304 | - int rsrc AU = op[2] & 0x0f; | |
11103 | +#line 1065 "rx-decode.opc" | |
11104 | + int cond AU = op[2] & 0x0f; | |
8305 | 11105 | if (trace) |
8306 | 11106 | { |
8307 | 11107 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8308 | - "/** 1111 1100 0110 11sd rdst rsrc bnot %1, %0%S0 */", | |
11108 | + "/** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */", | |
8309 | 11109 | op[0], op[1], op[2]); |
11110 | + printf (" sz = 0x%x,", sz); | |
8310 | 11111 | printf (" sd = 0x%x,", sd); |
8311 | 11112 | printf (" rdst = 0x%x,", rdst); |
8312 | - printf (" rsrc = 0x%x\n", rsrc); | |
11113 | + printf (" cond = 0x%x\n", cond); | |
8313 | 11114 | } |
8314 | - SYNTAX("bnot %1, %0%S0"); | |
8315 | -#line 978 "rx-decode.opc" | |
8316 | - ID(bnot); BWL(BSIZE); SR(rsrc); DD(sd, rdst, BSIZE); | |
8317 | - if (sd == 3) /* bset reg,reg */ | |
8318 | - BWL(LSIZE); | |
11115 | + SYNTAX("sc%1%s %0"); | |
11116 | +#line 1065 "rx-decode.opc" | |
11117 | + ID(sccnd); BWL(sz); DD (sd, rdst, sz); Scc(cond); | |
11118 | + | |
11119 | + /*----------------------------------------------------------------------*/ | |
11120 | + /* RXv2 enhanced */ | |
8319 | 11121 | |
8320 | 11122 | } |
8321 | 11123 | break; |
8322 | 11124 | } |
8323 | 11125 | break; |
8324 | - case 0x6d: | |
11126 | + case 0xd1: | |
8325 | 11127 | GETBYTE (); |
8326 | 11128 | switch (op[2] & 0x00) |
8327 | 11129 | { |
8328 | 11130 | case 0x00: |
8329 | - goto op_semantics_62; | |
11131 | + goto op_semantics_87; | |
8330 | 11132 | break; |
8331 | 11133 | } |
8332 | 11134 | break; |
8333 | - case 0x6e: | |
11135 | + case 0xd2: | |
8334 | 11136 | GETBYTE (); |
8335 | 11137 | switch (op[2] & 0x00) |
8336 | 11138 | { |
8337 | 11139 | case 0x00: |
8338 | - goto op_semantics_62; | |
11140 | + goto op_semantics_87; | |
8339 | 11141 | break; |
8340 | 11142 | } |
8341 | 11143 | break; |
8342 | - case 0x6f: | |
11144 | + case 0xd3: | |
8343 | 11145 | GETBYTE (); |
8344 | 11146 | switch (op[2] & 0x00) |
8345 | 11147 | { |
8346 | 11148 | case 0x00: |
8347 | - goto op_semantics_62; | |
11149 | + goto op_semantics_87; | |
8348 | 11150 | break; |
8349 | 11151 | } |
8350 | 11152 | break; |
8351 | - case 0x80: | |
11153 | + case 0xd4: | |
8352 | 11154 | GETBYTE (); |
8353 | 11155 | switch (op[2] & 0x00) |
8354 | 11156 | { |
8355 | 11157 | case 0x00: |
8356 | - op_semantics_63: | |
8357 | - { | |
8358 | - /** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */ | |
8359 | -#line 909 "rx-decode.opc" | |
8360 | - int sd AU = op[1] & 0x03; | |
8361 | -#line 909 "rx-decode.opc" | |
8362 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8363 | -#line 909 "rx-decode.opc" | |
8364 | - int rdst AU = op[2] & 0x0f; | |
8365 | - if (trace) | |
8366 | - { | |
8367 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8368 | - "/** 1111 1100 1000 00sd rsrc rdst fsub %1%S1, %0 */", | |
8369 | - op[0], op[1], op[2]); | |
8370 | - printf (" sd = 0x%x,", sd); | |
8371 | - printf (" rsrc = 0x%x,", rsrc); | |
8372 | - printf (" rdst = 0x%x\n", rdst); | |
8373 | - } | |
8374 | - SYNTAX("fsub %1%S1, %0"); | |
8375 | -#line 909 "rx-decode.opc" | |
8376 | - ID(fsub); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8377 | - | |
8378 | - } | |
11158 | + goto op_semantics_87; | |
8379 | 11159 | break; |
8380 | 11160 | } |
8381 | 11161 | break; |
8382 | - case 0x81: | |
11162 | + case 0xd5: | |
8383 | 11163 | GETBYTE (); |
8384 | 11164 | switch (op[2] & 0x00) |
8385 | 11165 | { |
8386 | 11166 | case 0x00: |
8387 | - goto op_semantics_63; | |
11167 | + goto op_semantics_87; | |
8388 | 11168 | break; |
8389 | 11169 | } |
8390 | 11170 | break; |
8391 | - case 0x82: | |
11171 | + case 0xd6: | |
8392 | 11172 | GETBYTE (); |
8393 | 11173 | switch (op[2] & 0x00) |
8394 | 11174 | { |
8395 | 11175 | case 0x00: |
8396 | - goto op_semantics_63; | |
11176 | + goto op_semantics_87; | |
8397 | 11177 | break; |
8398 | 11178 | } |
8399 | 11179 | break; |
8400 | - case 0x83: | |
11180 | + case 0xd7: | |
8401 | 11181 | GETBYTE (); |
8402 | 11182 | switch (op[2] & 0x00) |
8403 | 11183 | { |
8404 | 11184 | case 0x00: |
8405 | - goto op_semantics_63; | |
11185 | + goto op_semantics_87; | |
8406 | 11186 | break; |
8407 | 11187 | } |
8408 | 11188 | break; |
8409 | - case 0x84: | |
11189 | + case 0xd8: | |
8410 | 11190 | GETBYTE (); |
8411 | 11191 | switch (op[2] & 0x00) |
8412 | 11192 | { |
8413 | 11193 | case 0x00: |
8414 | - op_semantics_64: | |
8415 | - { | |
8416 | - /** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */ | |
8417 | -#line 903 "rx-decode.opc" | |
8418 | - int sd AU = op[1] & 0x03; | |
8419 | -#line 903 "rx-decode.opc" | |
8420 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8421 | -#line 903 "rx-decode.opc" | |
8422 | - int rdst AU = op[2] & 0x0f; | |
8423 | - if (trace) | |
8424 | - { | |
8425 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8426 | - "/** 1111 1100 1000 01sd rsrc rdst fcmp %1%S1, %0 */", | |
8427 | - op[0], op[1], op[2]); | |
8428 | - printf (" sd = 0x%x,", sd); | |
8429 | - printf (" rsrc = 0x%x,", rsrc); | |
8430 | - printf (" rdst = 0x%x\n", rdst); | |
8431 | - } | |
8432 | - SYNTAX("fcmp %1%S1, %0"); | |
8433 | -#line 903 "rx-decode.opc" | |
8434 | - ID(fcmp); DR(rdst); SD(sd, rsrc, LSIZE); F_OSZ_; | |
8435 | - | |
8436 | - } | |
11194 | + goto op_semantics_87; | |
8437 | 11195 | break; |
8438 | 11196 | } |
8439 | 11197 | break; |
8440 | - case 0x85: | |
11198 | + case 0xd9: | |
8441 | 11199 | GETBYTE (); |
8442 | 11200 | switch (op[2] & 0x00) |
8443 | 11201 | { |
8444 | 11202 | case 0x00: |
8445 | - goto op_semantics_64; | |
11203 | + goto op_semantics_87; | |
8446 | 11204 | break; |
8447 | 11205 | } |
8448 | 11206 | break; |
8449 | - case 0x86: | |
11207 | + case 0xda: | |
8450 | 11208 | GETBYTE (); |
8451 | 11209 | switch (op[2] & 0x00) |
8452 | 11210 | { |
8453 | 11211 | case 0x00: |
8454 | - goto op_semantics_64; | |
11212 | + goto op_semantics_87; | |
8455 | 11213 | break; |
8456 | 11214 | } |
8457 | 11215 | break; |
8458 | - case 0x87: | |
11216 | + case 0xdb: | |
8459 | 11217 | GETBYTE (); |
8460 | 11218 | switch (op[2] & 0x00) |
8461 | 11219 | { |
8462 | 11220 | case 0x00: |
8463 | - goto op_semantics_64; | |
11221 | + goto op_semantics_87; | |
8464 | 11222 | break; |
8465 | 11223 | } |
8466 | 11224 | break; |
8467 | - case 0x88: | |
11225 | + case 0xe0: | |
8468 | 11226 | GETBYTE (); |
8469 | - switch (op[2] & 0x00) | |
11227 | + switch (op[2] & 0x0f) | |
8470 | 11228 | { |
8471 | 11229 | case 0x00: |
8472 | - op_semantics_65: | |
11230 | + case 0x01: | |
11231 | + case 0x02: | |
11232 | + case 0x03: | |
11233 | + case 0x04: | |
11234 | + case 0x05: | |
11235 | + case 0x06: | |
11236 | + case 0x07: | |
11237 | + case 0x08: | |
11238 | + case 0x09: | |
11239 | + case 0x0a: | |
11240 | + case 0x0b: | |
11241 | + case 0x0c: | |
11242 | + case 0x0d: | |
11243 | + case 0x0e: | |
11244 | + op_semantics_88: | |
8473 | 11245 | { |
8474 | - /** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */ | |
8475 | -#line 897 "rx-decode.opc" | |
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" | |
8476 | 11250 | int sd AU = op[1] & 0x03; |
8477 | -#line 897 "rx-decode.opc" | |
8478 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8479 | -#line 897 "rx-decode.opc" | |
8480 | - int rdst AU = op[2] & 0x0f; | |
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; | |
8481 | 11255 | if (trace) |
8482 | 11256 | { |
8483 | 11257 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
8484 | - "/** 1111 1100 1000 10sd rsrc rdst fadd %1%S1, %0 */", | |
11258 | + "/** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */", | |
8485 | 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); | |
11264 | + } | |
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); | |
11268 | + | |
11269 | + } | |
11270 | + break; | |
11271 | + case 0x0f: | |
11272 | + op_semantics_89: | |
11273 | + { | |
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; | |
11281 | + if (trace) | |
11282 | + { | |
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); | |
8486 | 11287 | printf (" sd = 0x%x,", sd); |
8487 | - printf (" rsrc = 0x%x,", rsrc); | |
8488 | 11288 | printf (" rdst = 0x%x\n", rdst); |
8489 | 11289 | } |
8490 | - SYNTAX("fadd %1%S1, %0"); | |
8491 | -#line 897 "rx-decode.opc" | |
8492 | - ID(fadd); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
11290 | + SYNTAX("bnot #%1, %0%S0"); | |
11291 | +#line 996 "rx-decode.opc" | |
11292 | + ID(bnot); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); | |
8493 | 11293 | |
8494 | 11294 | } |
8495 | 11295 | break; |
8496 | 11296 | } |
8497 | 11297 | break; |
8498 | - case 0x89: | |
11298 | + case 0xe1: | |
8499 | 11299 | GETBYTE (); |
8500 | - switch (op[2] & 0x00) | |
11300 | + switch (op[2] & 0x0f) | |
8501 | 11301 | { |
8502 | 11302 | case 0x00: |
8503 | - goto op_semantics_65; | |
11303 | + case 0x01: | |
11304 | + case 0x02: | |
11305 | + case 0x03: | |
11306 | + case 0x04: | |
11307 | + case 0x05: | |
11308 | + case 0x06: | |
11309 | + case 0x07: | |
11310 | + case 0x08: | |
11311 | + case 0x09: | |
11312 | + case 0x0a: | |
11313 | + case 0x0b: | |
11314 | + case 0x0c: | |
11315 | + case 0x0d: | |
11316 | + case 0x0e: | |
11317 | + goto op_semantics_88; | |
11318 | + break; | |
11319 | + case 0x0f: | |
11320 | + goto op_semantics_89; | |
8504 | 11321 | break; |
8505 | 11322 | } |
8506 | 11323 | break; |
8507 | - case 0x8a: | |
11324 | + case 0xe2: | |
8508 | 11325 | GETBYTE (); |
8509 | - switch (op[2] & 0x00) | |
11326 | + switch (op[2] & 0x0f) | |
8510 | 11327 | { |
8511 | 11328 | case 0x00: |
8512 | - goto op_semantics_65; | |
11329 | + case 0x01: | |
11330 | + case 0x02: | |
11331 | + case 0x03: | |
11332 | + case 0x04: | |
11333 | + case 0x05: | |
11334 | + case 0x06: | |
11335 | + case 0x07: | |
11336 | + case 0x08: | |
11337 | + case 0x09: | |
11338 | + case 0x0a: | |
11339 | + case 0x0b: | |
11340 | + case 0x0c: | |
11341 | + case 0x0d: | |
11342 | + case 0x0e: | |
11343 | + goto op_semantics_88; | |
11344 | + break; | |
11345 | + case 0x0f: | |
11346 | + goto op_semantics_89; | |
8513 | 11347 | break; |
8514 | 11348 | } |
8515 | 11349 | break; |
8516 | - case 0x8b: | |
11350 | + case 0xe3: | |
8517 | 11351 | GETBYTE (); |
8518 | - switch (op[2] & 0x00) | |
11352 | + switch (op[2] & 0x0f) | |
8519 | 11353 | { |
8520 | 11354 | case 0x00: |
8521 | - goto op_semantics_65; | |
11355 | + case 0x01: | |
11356 | + case 0x02: | |
11357 | + case 0x03: | |
11358 | + case 0x04: | |
11359 | + case 0x05: | |
11360 | + case 0x06: | |
11361 | + case 0x07: | |
11362 | + case 0x08: | |
11363 | + case 0x09: | |
11364 | + case 0x0a: | |
11365 | + case 0x0b: | |
11366 | + case 0x0c: | |
11367 | + case 0x0d: | |
11368 | + case 0x0e: | |
11369 | + goto op_semantics_88; | |
11370 | + break; | |
11371 | + case 0x0f: | |
11372 | + goto op_semantics_89; | |
8522 | 11373 | break; |
8523 | 11374 | } |
8524 | 11375 | break; |
8525 | - case 0x8c: | |
11376 | + case 0xe4: | |
8526 | 11377 | GETBYTE (); |
8527 | - switch (op[2] & 0x00) | |
11378 | + switch (op[2] & 0x0f) | |
8528 | 11379 | { |
8529 | 11380 | case 0x00: |
8530 | - op_semantics_66: | |
8531 | - { | |
8532 | - /** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */ | |
8533 | -#line 918 "rx-decode.opc" | |
8534 | - int sd AU = op[1] & 0x03; | |
8535 | -#line 918 "rx-decode.opc" | |
8536 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8537 | -#line 918 "rx-decode.opc" | |
8538 | - int rdst AU = op[2] & 0x0f; | |
8539 | - if (trace) | |
8540 | - { | |
8541 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8542 | - "/** 1111 1100 1000 11sd rsrc rdst fmul %1%S1, %0 */", | |
8543 | - op[0], op[1], op[2]); | |
8544 | - printf (" sd = 0x%x,", sd); | |
8545 | - printf (" rsrc = 0x%x,", rsrc); | |
8546 | - printf (" rdst = 0x%x\n", rdst); | |
8547 | - } | |
8548 | - SYNTAX("fmul %1%S1, %0"); | |
8549 | -#line 918 "rx-decode.opc" | |
8550 | - ID(fmul); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8551 | - | |
8552 | - } | |
11381 | + case 0x01: | |
11382 | + case 0x02: | |
11383 | + case 0x03: | |
11384 | + case 0x04: | |
11385 | + case 0x05: | |
11386 | + case 0x06: | |
11387 | + case 0x07: | |
11388 | + case 0x08: | |
11389 | + case 0x09: | |
11390 | + case 0x0a: | |
11391 | + case 0x0b: | |
11392 | + case 0x0c: | |
11393 | + case 0x0d: | |
11394 | + case 0x0e: | |
11395 | + goto op_semantics_88; | |
11396 | + break; | |
11397 | + case 0x0f: | |
11398 | + goto op_semantics_89; | |
8553 | 11399 | break; |
8554 | 11400 | } |
8555 | 11401 | break; |
8556 | - case 0x8d: | |
11402 | + case 0xe5: | |
8557 | 11403 | GETBYTE (); |
8558 | - switch (op[2] & 0x00) | |
11404 | + switch (op[2] & 0x0f) | |
8559 | 11405 | { |
8560 | 11406 | case 0x00: |
8561 | - goto op_semantics_66; | |
11407 | + case 0x01: | |
11408 | + case 0x02: | |
11409 | + case 0x03: | |
11410 | + case 0x04: | |
11411 | + case 0x05: | |
11412 | + case 0x06: | |
11413 | + case 0x07: | |
11414 | + case 0x08: | |
11415 | + case 0x09: | |
11416 | + case 0x0a: | |
11417 | + case 0x0b: | |
11418 | + case 0x0c: | |
11419 | + case 0x0d: | |
11420 | + case 0x0e: | |
11421 | + goto op_semantics_88; | |
11422 | + break; | |
11423 | + case 0x0f: | |
11424 | + goto op_semantics_89; | |
8562 | 11425 | break; |
8563 | 11426 | } |
8564 | 11427 | break; |
8565 | - case 0x8e: | |
11428 | + case 0xe6: | |
8566 | 11429 | GETBYTE (); |
8567 | - switch (op[2] & 0x00) | |
11430 | + switch (op[2] & 0x0f) | |
8568 | 11431 | { |
8569 | 11432 | case 0x00: |
8570 | - goto op_semantics_66; | |
11433 | + case 0x01: | |
11434 | + case 0x02: | |
11435 | + case 0x03: | |
11436 | + case 0x04: | |
11437 | + case 0x05: | |
11438 | + case 0x06: | |
11439 | + case 0x07: | |
11440 | + case 0x08: | |
11441 | + case 0x09: | |
11442 | + case 0x0a: | |
11443 | + case 0x0b: | |
11444 | + case 0x0c: | |
11445 | + case 0x0d: | |
11446 | + case 0x0e: | |
11447 | + goto op_semantics_88; | |
11448 | + break; | |
11449 | + case 0x0f: | |
11450 | + goto op_semantics_89; | |
8571 | 11451 | break; |
8572 | 11452 | } |
8573 | 11453 | break; |
8574 | - case 0x8f: | |
11454 | + case 0xe7: | |
8575 | 11455 | GETBYTE (); |
8576 | - switch (op[2] & 0x00) | |
11456 | + switch (op[2] & 0x0f) | |
8577 | 11457 | { |
8578 | 11458 | case 0x00: |
8579 | - goto op_semantics_66; | |
11459 | + case 0x01: | |
11460 | + case 0x02: | |
11461 | + case 0x03: | |
11462 | + case 0x04: | |
11463 | + case 0x05: | |
11464 | + case 0x06: | |
11465 | + case 0x07: | |
11466 | + case 0x08: | |
11467 | + case 0x09: | |
11468 | + case 0x0a: | |
11469 | + case 0x0b: | |
11470 | + case 0x0c: | |
11471 | + case 0x0d: | |
11472 | + case 0x0e: | |
11473 | + goto op_semantics_88; | |
11474 | + break; | |
11475 | + case 0x0f: | |
11476 | + goto op_semantics_89; | |
8580 | 11477 | break; |
8581 | 11478 | } |
8582 | 11479 | break; |
8583 | - case 0x90: | |
11480 | + case 0xe8: | |
8584 | 11481 | GETBYTE (); |
8585 | - switch (op[2] & 0x00) | |
11482 | + switch (op[2] & 0x0f) | |
8586 | 11483 | { |
8587 | 11484 | case 0x00: |
8588 | - op_semantics_67: | |
8589 | - { | |
8590 | - /** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */ | |
8591 | -#line 924 "rx-decode.opc" | |
8592 | - int sd AU = op[1] & 0x03; | |
8593 | -#line 924 "rx-decode.opc" | |
8594 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8595 | -#line 924 "rx-decode.opc" | |
8596 | - int rdst AU = op[2] & 0x0f; | |
8597 | - if (trace) | |
8598 | - { | |
8599 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8600 | - "/** 1111 1100 1001 00sd rsrc rdst fdiv %1%S1, %0 */", | |
8601 | - op[0], op[1], op[2]); | |
8602 | - printf (" sd = 0x%x,", sd); | |
8603 | - printf (" rsrc = 0x%x,", rsrc); | |
8604 | - printf (" rdst = 0x%x\n", rdst); | |
8605 | - } | |
8606 | - SYNTAX("fdiv %1%S1, %0"); | |
8607 | -#line 924 "rx-decode.opc" | |
8608 | - ID(fdiv); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8609 | - | |
8610 | - } | |
11485 | + case 0x01: | |
11486 | + case 0x02: | |
11487 | + case 0x03: | |
11488 | + case 0x04: | |
11489 | + case 0x05: | |
11490 | + case 0x06: | |
11491 | + case 0x07: | |
11492 | + case 0x08: | |
11493 | + case 0x09: | |
11494 | + case 0x0a: | |
11495 | + case 0x0b: | |
11496 | + case 0x0c: | |
11497 | + case 0x0d: | |
11498 | + case 0x0e: | |
11499 | + goto op_semantics_88; | |
11500 | + break; | |
11501 | + case 0x0f: | |
11502 | + goto op_semantics_89; | |
8611 | 11503 | break; |
8612 | 11504 | } |
8613 | 11505 | break; |
8614 | - case 0x91: | |
11506 | + case 0xe9: | |
8615 | 11507 | GETBYTE (); |
8616 | - switch (op[2] & 0x00) | |
11508 | + switch (op[2] & 0x0f) | |
8617 | 11509 | { |
8618 | 11510 | case 0x00: |
8619 | - goto op_semantics_67; | |
11511 | + case 0x01: | |
11512 | + case 0x02: | |
11513 | + case 0x03: | |
11514 | + case 0x04: | |
11515 | + case 0x05: | |
11516 | + case 0x06: | |
11517 | + case 0x07: | |
11518 | + case 0x08: | |
11519 | + case 0x09: | |
11520 | + case 0x0a: | |
11521 | + case 0x0b: | |
11522 | + case 0x0c: | |
11523 | + case 0x0d: | |
11524 | + case 0x0e: | |
11525 | + goto op_semantics_88; | |
11526 | + break; | |
11527 | + case 0x0f: | |
11528 | + goto op_semantics_89; | |
8620 | 11529 | break; |
8621 | 11530 | } |
8622 | 11531 | break; |
8623 | - case 0x92: | |
11532 | + case 0xea: | |
8624 | 11533 | GETBYTE (); |
8625 | - switch (op[2] & 0x00) | |
11534 | + switch (op[2] & 0x0f) | |
8626 | 11535 | { |
8627 | 11536 | case 0x00: |
8628 | - goto op_semantics_67; | |
11537 | + case 0x01: | |
11538 | + case 0x02: | |
11539 | + case 0x03: | |
11540 | + case 0x04: | |
11541 | + case 0x05: | |
11542 | + case 0x06: | |
11543 | + case 0x07: | |
11544 | + case 0x08: | |
11545 | + case 0x09: | |
11546 | + case 0x0a: | |
11547 | + case 0x0b: | |
11548 | + case 0x0c: | |
11549 | + case 0x0d: | |
11550 | + case 0x0e: | |
11551 | + goto op_semantics_88; | |
11552 | + break; | |
11553 | + case 0x0f: | |
11554 | + goto op_semantics_89; | |
8629 | 11555 | break; |
8630 | 11556 | } |
8631 | 11557 | break; |
8632 | - case 0x93: | |
11558 | + case 0xeb: | |
8633 | 11559 | GETBYTE (); |
8634 | - switch (op[2] & 0x00) | |
11560 | + switch (op[2] & 0x0f) | |
8635 | 11561 | { |
8636 | 11562 | case 0x00: |
8637 | - goto op_semantics_67; | |
11563 | + case 0x01: | |
11564 | + case 0x02: | |
11565 | + case 0x03: | |
11566 | + case 0x04: | |
11567 | + case 0x05: | |
11568 | + case 0x06: | |
11569 | + case 0x07: | |
11570 | + case 0x08: | |
11571 | + case 0x09: | |
11572 | + case 0x0a: | |
11573 | + case 0x0b: | |
11574 | + case 0x0c: | |
11575 | + case 0x0d: | |
11576 | + case 0x0e: | |
11577 | + goto op_semantics_88; | |
11578 | + break; | |
11579 | + case 0x0f: | |
11580 | + goto op_semantics_89; | |
8638 | 11581 | break; |
8639 | 11582 | } |
8640 | 11583 | break; |
8641 | - case 0x94: | |
11584 | + case 0xec: | |
8642 | 11585 | GETBYTE (); |
8643 | - switch (op[2] & 0x00) | |
11586 | + switch (op[2] & 0x0f) | |
8644 | 11587 | { |
8645 | 11588 | case 0x00: |
8646 | - op_semantics_68: | |
8647 | - { | |
8648 | - /** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */ | |
8649 | -#line 912 "rx-decode.opc" | |
8650 | - int sd AU = op[1] & 0x03; | |
8651 | -#line 912 "rx-decode.opc" | |
8652 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8653 | -#line 912 "rx-decode.opc" | |
8654 | - int rdst AU = op[2] & 0x0f; | |
8655 | - if (trace) | |
8656 | - { | |
8657 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8658 | - "/** 1111 1100 1001 01sd rsrc rdst ftoi %1%S1, %0 */", | |
8659 | - op[0], op[1], op[2]); | |
8660 | - printf (" sd = 0x%x,", sd); | |
8661 | - printf (" rsrc = 0x%x,", rsrc); | |
8662 | - printf (" rdst = 0x%x\n", rdst); | |
8663 | - } | |
8664 | - SYNTAX("ftoi %1%S1, %0"); | |
8665 | -#line 912 "rx-decode.opc" | |
8666 | - ID(ftoi); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8667 | - | |
8668 | - } | |
11589 | + case 0x01: | |
11590 | + case 0x02: | |
11591 | + case 0x03: | |
11592 | + case 0x04: | |
11593 | + case 0x05: | |
11594 | + case 0x06: | |
11595 | + case 0x07: | |
11596 | + case 0x08: | |
11597 | + case 0x09: | |
11598 | + case 0x0a: | |
11599 | + case 0x0b: | |
11600 | + case 0x0c: | |
11601 | + case 0x0d: | |
11602 | + case 0x0e: | |
11603 | + goto op_semantics_88; | |
11604 | + break; | |
11605 | + case 0x0f: | |
11606 | + goto op_semantics_89; | |
8669 | 11607 | break; |
8670 | 11608 | } |
8671 | 11609 | break; |
8672 | - case 0x95: | |
11610 | + case 0xed: | |
8673 | 11611 | GETBYTE (); |
8674 | - switch (op[2] & 0x00) | |
11612 | + switch (op[2] & 0x0f) | |
8675 | 11613 | { |
8676 | 11614 | case 0x00: |
8677 | - goto op_semantics_68; | |
11615 | + case 0x01: | |
11616 | + case 0x02: | |
11617 | + case 0x03: | |
11618 | + case 0x04: | |
11619 | + case 0x05: | |
11620 | + case 0x06: | |
11621 | + case 0x07: | |
11622 | + case 0x08: | |
11623 | + case 0x09: | |
11624 | + case 0x0a: | |
11625 | + case 0x0b: | |
11626 | + case 0x0c: | |
11627 | + case 0x0d: | |
11628 | + case 0x0e: | |
11629 | + goto op_semantics_88; | |
11630 | + break; | |
11631 | + case 0x0f: | |
11632 | + goto op_semantics_89; | |
8678 | 11633 | break; |
8679 | 11634 | } |
8680 | 11635 | break; |
8681 | - case 0x96: | |
11636 | + case 0xee: | |
8682 | 11637 | GETBYTE (); |
8683 | - switch (op[2] & 0x00) | |
11638 | + switch (op[2] & 0x0f) | |
8684 | 11639 | { |
8685 | 11640 | case 0x00: |
8686 | - goto op_semantics_68; | |
11641 | + case 0x01: | |
11642 | + case 0x02: | |
11643 | + case 0x03: | |
11644 | + case 0x04: | |
11645 | + case 0x05: | |
11646 | + case 0x06: | |
11647 | + case 0x07: | |
11648 | + case 0x08: | |
11649 | + case 0x09: | |
11650 | + case 0x0a: | |
11651 | + case 0x0b: | |
11652 | + case 0x0c: | |
11653 | + case 0x0d: | |
11654 | + case 0x0e: | |
11655 | + goto op_semantics_88; | |
8687 | 11656 | break; |
8688 | - } | |
8689 | - break; | |
8690 | - case 0x97: | |
8691 | - GETBYTE (); | |
8692 | - switch (op[2] & 0x00) | |
8693 | - { | |
8694 | - case 0x00: | |
8695 | - goto op_semantics_68; | |
11657 | + case 0x0f: | |
11658 | + goto op_semantics_89; | |
8696 | 11659 | break; |
8697 | 11660 | } |
8698 | 11661 | break; |
8699 | - case 0x98: | |
11662 | + case 0xef: | |
8700 | 11663 | GETBYTE (); |
8701 | - switch (op[2] & 0x00) | |
11664 | + switch (op[2] & 0x0f) | |
8702 | 11665 | { |
8703 | 11666 | case 0x00: |
8704 | - op_semantics_69: | |
8705 | - { | |
8706 | - /** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */ | |
8707 | -#line 927 "rx-decode.opc" | |
8708 | - int sd AU = op[1] & 0x03; | |
8709 | -#line 927 "rx-decode.opc" | |
8710 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8711 | -#line 927 "rx-decode.opc" | |
8712 | - int rdst AU = op[2] & 0x0f; | |
8713 | - if (trace) | |
8714 | - { | |
8715 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8716 | - "/** 1111 1100 1001 10sd rsrc rdst round %1%S1, %0 */", | |
8717 | - op[0], op[1], op[2]); | |
8718 | - printf (" sd = 0x%x,", sd); | |
8719 | - printf (" rsrc = 0x%x,", rsrc); | |
8720 | - printf (" rdst = 0x%x\n", rdst); | |
8721 | - } | |
8722 | - SYNTAX("round %1%S1, %0"); | |
8723 | -#line 927 "rx-decode.opc" | |
8724 | - ID(round); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8725 | - | |
8726 | - } | |
11667 | + case 0x01: | |
11668 | + case 0x02: | |
11669 | + case 0x03: | |
11670 | + case 0x04: | |
11671 | + case 0x05: | |
11672 | + case 0x06: | |
11673 | + case 0x07: | |
11674 | + case 0x08: | |
11675 | + case 0x09: | |
11676 | + case 0x0a: | |
11677 | + case 0x0b: | |
11678 | + case 0x0c: | |
11679 | + case 0x0d: | |
11680 | + case 0x0e: | |
11681 | + goto op_semantics_88; | |
11682 | + break; | |
11683 | + case 0x0f: | |
11684 | + goto op_semantics_89; | |
8727 | 11685 | break; |
8728 | 11686 | } |
8729 | 11687 | break; |
8730 | - case 0x99: | |
11688 | + case 0xf0: | |
8731 | 11689 | GETBYTE (); |
8732 | - switch (op[2] & 0x00) | |
11690 | + switch (op[2] & 0x0f) | |
8733 | 11691 | { |
8734 | 11692 | case 0x00: |
8735 | - goto op_semantics_69; | |
11693 | + case 0x01: | |
11694 | + case 0x02: | |
11695 | + case 0x03: | |
11696 | + case 0x04: | |
11697 | + case 0x05: | |
11698 | + case 0x06: | |
11699 | + case 0x07: | |
11700 | + case 0x08: | |
11701 | + case 0x09: | |
11702 | + case 0x0a: | |
11703 | + case 0x0b: | |
11704 | + case 0x0c: | |
11705 | + case 0x0d: | |
11706 | + case 0x0e: | |
11707 | + goto op_semantics_88; | |
11708 | + break; | |
11709 | + case 0x0f: | |
11710 | + goto op_semantics_89; | |
8736 | 11711 | break; |
8737 | 11712 | } |
8738 | 11713 | break; |
8739 | - case 0x9a: | |
11714 | + case 0xf1: | |
8740 | 11715 | GETBYTE (); |
8741 | - switch (op[2] & 0x00) | |
11716 | + switch (op[2] & 0x0f) | |
8742 | 11717 | { |
8743 | 11718 | case 0x00: |
8744 | - goto op_semantics_69; | |
11719 | + case 0x01: | |
11720 | + case 0x02: | |
11721 | + case 0x03: | |
11722 | + case 0x04: | |
11723 | + case 0x05: | |
11724 | + case 0x06: | |
11725 | + case 0x07: | |
11726 | + case 0x08: | |
11727 | + case 0x09: | |
11728 | + case 0x0a: | |
11729 | + case 0x0b: | |
11730 | + case 0x0c: | |
11731 | + case 0x0d: | |
11732 | + case 0x0e: | |
11733 | + goto op_semantics_88; | |
11734 | + break; | |
11735 | + case 0x0f: | |
11736 | + goto op_semantics_89; | |
8745 | 11737 | break; |
8746 | 11738 | } |
8747 | 11739 | break; |
8748 | - case 0x9b: | |
11740 | + case 0xf2: | |
8749 | 11741 | GETBYTE (); |
8750 | - switch (op[2] & 0x00) | |
11742 | + switch (op[2] & 0x0f) | |
8751 | 11743 | { |
8752 | 11744 | case 0x00: |
8753 | - goto op_semantics_69; | |
11745 | + case 0x01: | |
11746 | + case 0x02: | |
11747 | + case 0x03: | |
11748 | + case 0x04: | |
11749 | + case 0x05: | |
11750 | + case 0x06: | |
11751 | + case 0x07: | |
11752 | + case 0x08: | |
11753 | + case 0x09: | |
11754 | + case 0x0a: | |
11755 | + case 0x0b: | |
11756 | + case 0x0c: | |
11757 | + case 0x0d: | |
11758 | + case 0x0e: | |
11759 | + goto op_semantics_88; | |
11760 | + break; | |
11761 | + case 0x0f: | |
11762 | + goto op_semantics_89; | |
8754 | 11763 | break; |
8755 | 11764 | } |
8756 | 11765 | break; |
8757 | - case 0xa0: | |
11766 | + case 0xf3: | |
8758 | 11767 | GETBYTE (); |
8759 | - switch (op[2] & 0x00) | |
11768 | + switch (op[2] & 0x0f) | |
8760 | 11769 | { |
8761 | 11770 | case 0x00: |
8762 | - op_semantics_70: | |
8763 | - { | |
8764 | - /** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */ | |
8765 | -#line 1110 "rx-decode.opc" | |
8766 | - int sd AU = op[1] & 0x03; | |
8767 | -#line 1110 "rx-decode.opc" | |
8768 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8769 | -#line 1110 "rx-decode.opc" | |
8770 | - int rdst AU = op[2] & 0x0f; | |
8771 | - if (trace) | |
8772 | - { | |
8773 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8774 | - "/** 1111 1100 1010 00sd rsrc rdst fsqrt %1%S1, %0 */", | |
8775 | - op[0], op[1], op[2]); | |
8776 | - printf (" sd = 0x%x,", sd); | |
8777 | - printf (" rsrc = 0x%x,", rsrc); | |
8778 | - printf (" rdst = 0x%x\n", rdst); | |
8779 | - } | |
8780 | - SYNTAX("fsqrt %1%S1, %0"); | |
8781 | -#line 1110 "rx-decode.opc" | |
8782 | - ID(fsqrt); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8783 | - | |
8784 | - } | |
11771 | + case 0x01: | |
11772 | + case 0x02: | |
11773 | + case 0x03: | |
11774 | + case 0x04: | |
11775 | + case 0x05: | |
11776 | + case 0x06: | |
11777 | + case 0x07: | |
11778 | + case 0x08: | |
11779 | + case 0x09: | |
11780 | + case 0x0a: | |
11781 | + case 0x0b: | |
11782 | + case 0x0c: | |
11783 | + case 0x0d: | |
11784 | + case 0x0e: | |
11785 | + goto op_semantics_88; | |
11786 | + break; | |
11787 | + case 0x0f: | |
11788 | + goto op_semantics_89; | |
8785 | 11789 | break; |
8786 | 11790 | } |
8787 | 11791 | break; |
8788 | - case 0xa1: | |
11792 | + case 0xf4: | |
8789 | 11793 | GETBYTE (); |
8790 | - switch (op[2] & 0x00) | |
11794 | + switch (op[2] & 0x0f) | |
8791 | 11795 | { |
8792 | 11796 | case 0x00: |
8793 | - goto op_semantics_70; | |
11797 | + case 0x01: | |
11798 | + case 0x02: | |
11799 | + case 0x03: | |
11800 | + case 0x04: | |
11801 | + case 0x05: | |
11802 | + case 0x06: | |
11803 | + case 0x07: | |
11804 | + case 0x08: | |
11805 | + case 0x09: | |
11806 | + case 0x0a: | |
11807 | + case 0x0b: | |
11808 | + case 0x0c: | |
11809 | + case 0x0d: | |
11810 | + case 0x0e: | |
11811 | + goto op_semantics_88; | |
11812 | + break; | |
11813 | + case 0x0f: | |
11814 | + goto op_semantics_89; | |
8794 | 11815 | break; |
8795 | 11816 | } |
8796 | 11817 | break; |
8797 | - case 0xa2: | |
11818 | + case 0xf5: | |
8798 | 11819 | GETBYTE (); |
8799 | - switch (op[2] & 0x00) | |
11820 | + switch (op[2] & 0x0f) | |
8800 | 11821 | { |
8801 | 11822 | case 0x00: |
8802 | - goto op_semantics_70; | |
11823 | + case 0x01: | |
11824 | + case 0x02: | |
11825 | + case 0x03: | |
11826 | + case 0x04: | |
11827 | + case 0x05: | |
11828 | + case 0x06: | |
11829 | + case 0x07: | |
11830 | + case 0x08: | |
11831 | + case 0x09: | |
11832 | + case 0x0a: | |
11833 | + case 0x0b: | |
11834 | + case 0x0c: | |
11835 | + case 0x0d: | |
11836 | + case 0x0e: | |
11837 | + goto op_semantics_88; | |
11838 | + break; | |
11839 | + case 0x0f: | |
11840 | + goto op_semantics_89; | |
8803 | 11841 | break; |
8804 | 11842 | } |
8805 | 11843 | break; |
8806 | - case 0xa3: | |
11844 | + case 0xf6: | |
8807 | 11845 | GETBYTE (); |
8808 | - switch (op[2] & 0x00) | |
11846 | + switch (op[2] & 0x0f) | |
8809 | 11847 | { |
8810 | 11848 | case 0x00: |
8811 | - goto op_semantics_70; | |
11849 | + case 0x01: | |
11850 | + case 0x02: | |
11851 | + case 0x03: | |
11852 | + case 0x04: | |
11853 | + case 0x05: | |
11854 | + case 0x06: | |
11855 | + case 0x07: | |
11856 | + case 0x08: | |
11857 | + case 0x09: | |
11858 | + case 0x0a: | |
11859 | + case 0x0b: | |
11860 | + case 0x0c: | |
11861 | + case 0x0d: | |
11862 | + case 0x0e: | |
11863 | + goto op_semantics_88; | |
11864 | + break; | |
11865 | + case 0x0f: | |
11866 | + goto op_semantics_89; | |
8812 | 11867 | break; |
8813 | 11868 | } |
8814 | 11869 | break; |
8815 | - case 0xa4: | |
11870 | + case 0xf7: | |
8816 | 11871 | GETBYTE (); |
8817 | - switch (op[2] & 0x00) | |
11872 | + switch (op[2] & 0x0f) | |
8818 | 11873 | { |
8819 | 11874 | case 0x00: |
8820 | - op_semantics_71: | |
8821 | - { | |
8822 | - /** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */ | |
8823 | -#line 1113 "rx-decode.opc" | |
8824 | - int sd AU = op[1] & 0x03; | |
8825 | -#line 1113 "rx-decode.opc" | |
8826 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
8827 | -#line 1113 "rx-decode.opc" | |
8828 | - int rdst AU = op[2] & 0x0f; | |
8829 | - if (trace) | |
8830 | - { | |
8831 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8832 | - "/** 1111 1100 1010 01sd rsrc rdst ftou %1%S1, %0 */", | |
8833 | - op[0], op[1], op[2]); | |
8834 | - printf (" sd = 0x%x,", sd); | |
8835 | - printf (" rsrc = 0x%x,", rsrc); | |
8836 | - printf (" rdst = 0x%x\n", rdst); | |
8837 | - } | |
8838 | - SYNTAX("ftou %1%S1, %0"); | |
8839 | -#line 1113 "rx-decode.opc" | |
8840 | - ID(ftou); DR(rdst); SD(sd, rsrc, LSIZE); F__SZ_; | |
8841 | - | |
8842 | - } | |
11875 | + case 0x01: | |
11876 | + case 0x02: | |
11877 | + case 0x03: | |
11878 | + case 0x04: | |
11879 | + case 0x05: | |
11880 | + case 0x06: | |
11881 | + case 0x07: | |
11882 | + case 0x08: | |
11883 | + case 0x09: | |
11884 | + case 0x0a: | |
11885 | + case 0x0b: | |
11886 | + case 0x0c: | |
11887 | + case 0x0d: | |
11888 | + case 0x0e: | |
11889 | + goto op_semantics_88; | |
11890 | + break; | |
11891 | + case 0x0f: | |
11892 | + goto op_semantics_89; | |
8843 | 11893 | break; |
8844 | 11894 | } |
8845 | 11895 | break; |
8846 | - case 0xa5: | |
11896 | + case 0xf8: | |
8847 | 11897 | GETBYTE (); |
8848 | - switch (op[2] & 0x00) | |
11898 | + switch (op[2] & 0x0f) | |
8849 | 11899 | { |
8850 | 11900 | case 0x00: |
8851 | - goto op_semantics_71; | |
11901 | + case 0x01: | |
11902 | + case 0x02: | |
11903 | + case 0x03: | |
11904 | + case 0x04: | |
11905 | + case 0x05: | |
11906 | + case 0x06: | |
11907 | + case 0x07: | |
11908 | + case 0x08: | |
11909 | + case 0x09: | |
11910 | + case 0x0a: | |
11911 | + case 0x0b: | |
11912 | + case 0x0c: | |
11913 | + case 0x0d: | |
11914 | + case 0x0e: | |
11915 | + goto op_semantics_88; | |
11916 | + break; | |
11917 | + case 0x0f: | |
11918 | + goto op_semantics_89; | |
8852 | 11919 | break; |
8853 | 11920 | } |
8854 | 11921 | break; |
8855 | - case 0xa6: | |
11922 | + case 0xf9: | |
8856 | 11923 | GETBYTE (); |
8857 | - switch (op[2] & 0x00) | |
11924 | + switch (op[2] & 0x0f) | |
8858 | 11925 | { |
8859 | 11926 | case 0x00: |
8860 | - goto op_semantics_71; | |
11927 | + case 0x01: | |
11928 | + case 0x02: | |
11929 | + case 0x03: | |
11930 | + case 0x04: | |
11931 | + case 0x05: | |
11932 | + case 0x06: | |
11933 | + case 0x07: | |
11934 | + case 0x08: | |
11935 | + case 0x09: | |
11936 | + case 0x0a: | |
11937 | + case 0x0b: | |
11938 | + case 0x0c: | |
11939 | + case 0x0d: | |
11940 | + case 0x0e: | |
11941 | + goto op_semantics_88; | |
11942 | + break; | |
11943 | + case 0x0f: | |
11944 | + goto op_semantics_89; | |
8861 | 11945 | break; |
8862 | 11946 | } |
8863 | 11947 | break; |
8864 | - case 0xa7: | |
11948 | + case 0xfa: | |
8865 | 11949 | GETBYTE (); |
8866 | - switch (op[2] & 0x00) | |
11950 | + switch (op[2] & 0x0f) | |
8867 | 11951 | { |
8868 | 11952 | case 0x00: |
8869 | - goto op_semantics_71; | |
11953 | + case 0x01: | |
11954 | + case 0x02: | |
11955 | + case 0x03: | |
11956 | + case 0x04: | |
11957 | + case 0x05: | |
11958 | + case 0x06: | |
11959 | + case 0x07: | |
11960 | + case 0x08: | |
11961 | + case 0x09: | |
11962 | + case 0x0a: | |
11963 | + case 0x0b: | |
11964 | + case 0x0c: | |
11965 | + case 0x0d: | |
11966 | + case 0x0e: | |
11967 | + goto op_semantics_88; | |
11968 | + break; | |
11969 | + case 0x0f: | |
11970 | + goto op_semantics_89; | |
8870 | 11971 | break; |
8871 | 11972 | } |
8872 | 11973 | break; |
8873 | - case 0xd0: | |
11974 | + case 0xfb: | |
8874 | 11975 | GETBYTE (); |
8875 | - switch (op[2] & 0x00) | |
11976 | + switch (op[2] & 0x0f) | |
8876 | 11977 | { |
8877 | 11978 | case 0x00: |
8878 | - op_semantics_72: | |
8879 | - { | |
8880 | - /** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */ | |
8881 | -#line 1044 "rx-decode.opc" | |
8882 | - int sz AU = (op[1] >> 2) & 0x03; | |
8883 | -#line 1044 "rx-decode.opc" | |
8884 | - int sd AU = op[1] & 0x03; | |
8885 | -#line 1044 "rx-decode.opc" | |
8886 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
8887 | -#line 1044 "rx-decode.opc" | |
8888 | - int cond AU = op[2] & 0x0f; | |
8889 | - if (trace) | |
8890 | - { | |
8891 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
8892 | - "/** 1111 1100 1101 sz sd rdst cond sc%1%s %0 */", | |
8893 | - op[0], op[1], op[2]); | |
8894 | - printf (" sz = 0x%x,", sz); | |
8895 | - printf (" sd = 0x%x,", sd); | |
8896 | - printf (" rdst = 0x%x,", rdst); | |
8897 | - printf (" cond = 0x%x\n", cond); | |
8898 | - } | |
8899 | - SYNTAX("sc%1%s %0"); | |
8900 | -#line 1044 "rx-decode.opc" | |
8901 | - ID(sccnd); BWL(sz); DD (sd, rdst, sz); Scc(cond); | |
8902 | - | |
8903 | - /*----------------------------------------------------------------------*/ | |
8904 | - /* RXv2 enhanced */ | |
8905 | - | |
8906 | - } | |
11979 | + case 0x01: | |
11980 | + case 0x02: | |
11981 | + case 0x03: | |
11982 | + case 0x04: | |
11983 | + case 0x05: | |
11984 | + case 0x06: | |
11985 | + case 0x07: | |
11986 | + case 0x08: | |
11987 | + case 0x09: | |
11988 | + case 0x0a: | |
11989 | + case 0x0b: | |
11990 | + case 0x0c: | |
11991 | + case 0x0d: | |
11992 | + case 0x0e: | |
11993 | + goto op_semantics_88; | |
11994 | + break; | |
11995 | + case 0x0f: | |
11996 | + goto op_semantics_89; | |
8907 | 11997 | break; |
8908 | 11998 | } |
8909 | 11999 | break; |
8910 | - case 0xd1: | |
12000 | + case 0xfc: | |
8911 | 12001 | GETBYTE (); |
8912 | - switch (op[2] & 0x00) | |
12002 | + switch (op[2] & 0x0f) | |
8913 | 12003 | { |
8914 | 12004 | case 0x00: |
8915 | - goto op_semantics_72; | |
12005 | + case 0x01: | |
12006 | + case 0x02: | |
12007 | + case 0x03: | |
12008 | + case 0x04: | |
12009 | + case 0x05: | |
12010 | + case 0x06: | |
12011 | + case 0x07: | |
12012 | + case 0x08: | |
12013 | + case 0x09: | |
12014 | + case 0x0a: | |
12015 | + case 0x0b: | |
12016 | + case 0x0c: | |
12017 | + case 0x0d: | |
12018 | + case 0x0e: | |
12019 | + goto op_semantics_88; | |
12020 | + break; | |
12021 | + case 0x0f: | |
12022 | + goto op_semantics_89; | |
8916 | 12023 | break; |
8917 | 12024 | } |
8918 | 12025 | break; |
8919 | - case 0xd2: | |
12026 | + case 0xfd: | |
8920 | 12027 | GETBYTE (); |
8921 | - switch (op[2] & 0x00) | |
12028 | + switch (op[2] & 0x0f) | |
8922 | 12029 | { |
8923 | 12030 | case 0x00: |
8924 | - goto op_semantics_72; | |
12031 | + case 0x01: | |
12032 | + case 0x02: | |
12033 | + case 0x03: | |
12034 | + case 0x04: | |
12035 | + case 0x05: | |
12036 | + case 0x06: | |
12037 | + case 0x07: | |
12038 | + case 0x08: | |
12039 | + case 0x09: | |
12040 | + case 0x0a: | |
12041 | + case 0x0b: | |
12042 | + case 0x0c: | |
12043 | + case 0x0d: | |
12044 | + case 0x0e: | |
12045 | + goto op_semantics_88; | |
12046 | + break; | |
12047 | + case 0x0f: | |
12048 | + goto op_semantics_89; | |
8925 | 12049 | break; |
8926 | 12050 | } |
8927 | 12051 | break; |
8928 | - case 0xd3: | |
12052 | + case 0xfe: | |
8929 | 12053 | GETBYTE (); |
8930 | - switch (op[2] & 0x00) | |
12054 | + switch (op[2] & 0x0f) | |
8931 | 12055 | { |
8932 | 12056 | case 0x00: |
8933 | - goto op_semantics_72; | |
12057 | + case 0x01: | |
12058 | + case 0x02: | |
12059 | + case 0x03: | |
12060 | + case 0x04: | |
12061 | + case 0x05: | |
12062 | + case 0x06: | |
12063 | + case 0x07: | |
12064 | + case 0x08: | |
12065 | + case 0x09: | |
12066 | + case 0x0a: | |
12067 | + case 0x0b: | |
12068 | + case 0x0c: | |
12069 | + case 0x0d: | |
12070 | + case 0x0e: | |
12071 | + goto op_semantics_88; | |
12072 | + break; | |
12073 | + case 0x0f: | |
12074 | + goto op_semantics_89; | |
8934 | 12075 | break; |
8935 | 12076 | } |
8936 | 12077 | break; |
8937 | - case 0xd4: | |
12078 | + case 0xff: | |
8938 | 12079 | GETBYTE (); |
8939 | - switch (op[2] & 0x00) | |
12080 | + switch (op[2] & 0x0f) | |
8940 | 12081 | { |
8941 | 12082 | case 0x00: |
8942 | - goto op_semantics_72; | |
12083 | + case 0x01: | |
12084 | + case 0x02: | |
12085 | + case 0x03: | |
12086 | + case 0x04: | |
12087 | + case 0x05: | |
12088 | + case 0x06: | |
12089 | + case 0x07: | |
12090 | + case 0x08: | |
12091 | + case 0x09: | |
12092 | + case 0x0a: | |
12093 | + case 0x0b: | |
12094 | + case 0x0c: | |
12095 | + case 0x0d: | |
12096 | + case 0x0e: | |
12097 | + goto op_semantics_88; | |
12098 | + break; | |
12099 | + case 0x0f: | |
12100 | + goto op_semantics_89; | |
8943 | 12101 | break; |
8944 | 12102 | } |
8945 | 12103 | break; |
8946 | - case 0xd5: | |
12104 | + default: UNSUPPORTED(); break; | |
12105 | + } | |
12106 | + break; | |
12107 | + case 0xfd: | |
12108 | + GETBYTE (); | |
12109 | + switch (op[1] & 0xff) | |
12110 | + { | |
12111 | + case 0x00: | |
8947 | 12112 | GETBYTE (); |
8948 | 12113 | switch (op[2] & 0x00) |
8949 | 12114 | { |
8950 | 12115 | case 0x00: |
8951 | - goto op_semantics_72; | |
12116 | + op_semantics_90: | |
12117 | + { | |
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; | |
12125 | + if (trace) | |
12126 | + { | |
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); | |
12133 | + } | |
12134 | + SYNTAX("mulhi %1, %2, %0"); | |
12135 | +#line 873 "rx-decode.opc" | |
12136 | + ID(mulhi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12137 | + | |
12138 | + } | |
8952 | 12139 | break; |
8953 | 12140 | } |
8954 | 12141 | break; |
8955 | - case 0xd6: | |
12142 | + case 0x01: | |
8956 | 12143 | GETBYTE (); |
8957 | 12144 | switch (op[2] & 0x00) |
8958 | 12145 | { |
8959 | 12146 | case 0x00: |
8960 | - goto op_semantics_72; | |
12147 | + op_semantics_91: | |
12148 | + { | |
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; | |
12156 | + if (trace) | |
12157 | + { | |
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); | |
12164 | + } | |
12165 | + SYNTAX("mullo %1, %2, %0"); | |
12166 | +#line 876 "rx-decode.opc" | |
12167 | + ID(mullo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12168 | + | |
12169 | + } | |
8961 | 12170 | break; |
8962 | 12171 | } |
8963 | 12172 | break; |
8964 | - case 0xd7: | |
12173 | + case 0x02: | |
8965 | 12174 | GETBYTE (); |
8966 | 12175 | switch (op[2] & 0x00) |
8967 | 12176 | { |
8968 | 12177 | case 0x00: |
8969 | - goto op_semantics_72; | |
12178 | + op_semantics_92: | |
12179 | + { | |
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; | |
12187 | + if (trace) | |
12188 | + { | |
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); | |
12195 | + } | |
12196 | + SYNTAX("mullh %1, %2, %0"); | |
12197 | +#line 1104 "rx-decode.opc" | |
12198 | + ID(mullh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12199 | + | |
12200 | + } | |
8970 | 12201 | break; |
8971 | 12202 | } |
8972 | 12203 | break; |
8973 | - case 0xd8: | |
12204 | + case 0x03: | |
8974 | 12205 | GETBYTE (); |
8975 | 12206 | switch (op[2] & 0x00) |
8976 | 12207 | { |
8977 | 12208 | case 0x00: |
8978 | - goto op_semantics_72; | |
12209 | + op_semantics_93: | |
12210 | + { | |
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; | |
12218 | + if (trace) | |
12219 | + { | |
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); | |
12226 | + } | |
12227 | + SYNTAX("emula %1, %2, %0"); | |
12228 | +#line 1089 "rx-decode.opc" | |
12229 | + ID(emula); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12230 | + | |
12231 | + } | |
8979 | 12232 | break; |
8980 | 12233 | } |
8981 | 12234 | break; |
8982 | - case 0xd9: | |
12235 | + case 0x04: | |
8983 | 12236 | GETBYTE (); |
8984 | 12237 | switch (op[2] & 0x00) |
8985 | 12238 | { |
8986 | 12239 | case 0x00: |
8987 | - goto op_semantics_72; | |
12240 | + op_semantics_94: | |
12241 | + { | |
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; | |
12249 | + if (trace) | |
12250 | + { | |
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); | |
12257 | + } | |
12258 | + SYNTAX("machi %1, %2, %0"); | |
12259 | +#line 879 "rx-decode.opc" | |
12260 | + ID(machi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12261 | + | |
12262 | + } | |
8988 | 12263 | break; |
8989 | 12264 | } |
8990 | 12265 | break; |
8991 | - case 0xda: | |
12266 | + case 0x05: | |
8992 | 12267 | GETBYTE (); |
8993 | 12268 | switch (op[2] & 0x00) |
8994 | 12269 | { |
8995 | 12270 | case 0x00: |
8996 | - goto op_semantics_72; | |
12271 | + op_semantics_95: | |
12272 | + { | |
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; | |
12280 | + if (trace) | |
12281 | + { | |
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); | |
12288 | + } | |
12289 | + SYNTAX("maclo %1, %2, %0"); | |
12290 | +#line 882 "rx-decode.opc" | |
12291 | + ID(maclo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
12292 | + | |
12293 | + } | |
8997 | 12294 | break; |
8998 | 12295 | } |
8999 | 12296 | break; |
9000 | - case 0xdb: | |
12297 | + case 0x06: | |
9001 | 12298 | GETBYTE (); |
9002 | 12299 | switch (op[2] & 0x00) |
9003 | 12300 | { |
9004 | 12301 | case 0x00: |
9005 | - goto op_semantics_72; | |
9006 | - break; | |
9007 | - } | |
9008 | - break; | |
9009 | - case 0xe0: | |
9010 | - GETBYTE (); | |
9011 | - switch (op[2] & 0x0f) | |
9012 | - { | |
9013 | - case 0x00: | |
9014 | - case 0x01: | |
9015 | - case 0x02: | |
9016 | - case 0x03: | |
9017 | - case 0x04: | |
9018 | - case 0x05: | |
9019 | - case 0x06: | |
9020 | - case 0x07: | |
9021 | - case 0x08: | |
9022 | - case 0x09: | |
9023 | - case 0x0a: | |
9024 | - case 0x0b: | |
9025 | - case 0x0c: | |
9026 | - case 0x0d: | |
9027 | - case 0x0e: | |
9028 | - op_semantics_73: | |
12302 | + op_semantics_96: | |
9029 | 12303 | { |
9030 | - /** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */ | |
9031 | -#line 987 "rx-decode.opc" | |
9032 | - int bit AU = (op[1] >> 2) & 0x07; | |
9033 | -#line 987 "rx-decode.opc" | |
9034 | - int sd AU = op[1] & 0x03; | |
9035 | -#line 987 "rx-decode.opc" | |
9036 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
9037 | -#line 987 "rx-decode.opc" | |
9038 | - int cond AU = op[2] & 0x0f; | |
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; | |
9039 | 12311 | if (trace) |
9040 | 12312 | { |
9041 | 12313 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
9042 | - "/** 1111 1100 111bit sd rdst cond bm%2 #%1, %0%S0 */", | |
12314 | + "/** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */", | |
9043 | 12315 | op[0], op[1], op[2]); |
9044 | - printf (" bit = 0x%x,", bit); | |
9045 | - printf (" sd = 0x%x,", sd); | |
9046 | - printf (" rdst = 0x%x,", rdst); | |
9047 | - printf (" cond = 0x%x\n", cond); | |
12316 | + printf (" a = 0x%x,", a); | |
12317 | + printf (" srca = 0x%x,", srca); | |
12318 | + printf (" srcb = 0x%x\n", srcb); | |
9048 | 12319 | } |
9049 | - SYNTAX("bm%2 #%1, %0%S0"); | |
9050 | -#line 987 "rx-decode.opc" | |
9051 | - ID(bmcc); BWL(BSIZE); S2cc(cond); SC(bit); DD(sd, rdst, BSIZE); | |
12320 | + SYNTAX("maclh %1, %2, %0"); | |
12321 | +#line 1092 "rx-decode.opc" | |
12322 | + ID(maclh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
9052 | 12323 | |
9053 | 12324 | } |
9054 | 12325 | break; |
9055 | - case 0x0f: | |
9056 | - op_semantics_74: | |
12326 | + } | |
12327 | + break; | |
12328 | + case 0x07: | |
12329 | + GETBYTE (); | |
12330 | + switch (op[2] & 0x00) | |
12331 | + { | |
12332 | + case 0x00: | |
12333 | + op_semantics_97: | |
9057 | 12334 | { |
9058 | - /** 1111 1100 111bit sd rdst 1111 bnot #%1, %0%S0 */ | |
9059 | -#line 975 "rx-decode.opc" | |
9060 | - int bit AU = (op[1] >> 2) & 0x07; | |
9061 | -#line 975 "rx-decode.opc" | |
9062 | - int sd AU = op[1] & 0x03; | |
9063 | -#line 975 "rx-decode.opc" | |
9064 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
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; | |
9065 | 12342 | if (trace) |
9066 | 12343 | { |
9067 | 12344 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
9068 | - "/** 1111 1100 111bit sd rdst 1111 bnot #%1, %0%S0 */", | |
12345 | + "/** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */", | |
9069 | 12346 | op[0], op[1], op[2]); |
9070 | - printf (" bit = 0x%x,", bit); | |
9071 | - printf (" sd = 0x%x,", sd); | |
9072 | - printf (" rdst = 0x%x\n", rdst); | |
12347 | + printf (" a = 0x%x,", a); | |
12348 | + printf (" srca = 0x%x,", srca); | |
12349 | + printf (" srcb = 0x%x\n", srcb); | |
9073 | 12350 | } |
9074 | - SYNTAX("bnot #%1, %0%S0"); | |
9075 | -#line 975 "rx-decode.opc" | |
9076 | - ID(bnot); BWL(BSIZE); SC(bit); DD(sd, rdst, BSIZE); | |
12351 | + SYNTAX("emaca %1, %2, %0"); | |
12352 | +#line 1083 "rx-decode.opc" | |
12353 | + ID(emaca); DR(a+32); SR(srca); S2R(srcb); F_____; | |
9077 | 12354 | |
9078 | 12355 | } |
9079 | 12356 | break; |
9080 | 12357 | } |
9081 | 12358 | break; |
9082 | - case 0xe1: | |
12359 | + case 0x08: | |
9083 | 12360 | GETBYTE (); |
9084 | - switch (op[2] & 0x0f) | |
12361 | + switch (op[2] & 0x00) | |
9085 | 12362 | { |
9086 | 12363 | case 0x00: |
9087 | - case 0x01: | |
9088 | - case 0x02: | |
9089 | - case 0x03: | |
9090 | - case 0x04: | |
9091 | - case 0x05: | |
9092 | - case 0x06: | |
9093 | - case 0x07: | |
9094 | - case 0x08: | |
9095 | - case 0x09: | |
9096 | - case 0x0a: | |
9097 | - case 0x0b: | |
9098 | - case 0x0c: | |
9099 | - case 0x0d: | |
9100 | - case 0x0e: | |
9101 | - goto op_semantics_73; | |
9102 | - break; | |
9103 | - case 0x0f: | |
9104 | - goto op_semantics_74; | |
12364 | + goto op_semantics_90; | |
9105 | 12365 | break; |
9106 | 12366 | } |
9107 | 12367 | break; |
9108 | - case 0xe2: | |
12368 | + case 0x09: | |
9109 | 12369 | GETBYTE (); |
9110 | - switch (op[2] & 0x0f) | |
12370 | + switch (op[2] & 0x00) | |
9111 | 12371 | { |
9112 | 12372 | case 0x00: |
9113 | - case 0x01: | |
9114 | - case 0x02: | |
9115 | - case 0x03: | |
9116 | - case 0x04: | |
9117 | - case 0x05: | |
9118 | - case 0x06: | |
9119 | - case 0x07: | |
9120 | - case 0x08: | |
9121 | - case 0x09: | |
9122 | - case 0x0a: | |
9123 | - case 0x0b: | |
9124 | - case 0x0c: | |
9125 | - case 0x0d: | |
9126 | - case 0x0e: | |
9127 | - goto op_semantics_73; | |
9128 | - break; | |
9129 | - case 0x0f: | |
9130 | - goto op_semantics_74; | |
12373 | + goto op_semantics_91; | |
9131 | 12374 | break; |
9132 | 12375 | } |
9133 | 12376 | break; |
9134 | - case 0xe3: | |
12377 | + case 0x0a: | |
9135 | 12378 | GETBYTE (); |
9136 | - switch (op[2] & 0x0f) | |
12379 | + switch (op[2] & 0x00) | |
9137 | 12380 | { |
9138 | 12381 | case 0x00: |
9139 | - case 0x01: | |
9140 | - case 0x02: | |
9141 | - case 0x03: | |
9142 | - case 0x04: | |
9143 | - case 0x05: | |
9144 | - case 0x06: | |
9145 | - case 0x07: | |
9146 | - case 0x08: | |
9147 | - case 0x09: | |
9148 | - case 0x0a: | |
9149 | - case 0x0b: | |
9150 | - case 0x0c: | |
9151 | - case 0x0d: | |
9152 | - case 0x0e: | |
9153 | - goto op_semantics_73; | |
12382 | + goto op_semantics_92; | |
9154 | 12383 | break; |
9155 | - case 0x0f: | |
9156 | - goto op_semantics_74; | |
12384 | + } | |
12385 | + break; | |
12386 | + case 0x0b: | |
12387 | + GETBYTE (); | |
12388 | + switch (op[2] & 0x00) | |
12389 | + { | |
12390 | + case 0x00: | |
12391 | + goto op_semantics_93; | |
9157 | 12392 | break; |
9158 | 12393 | } |
9159 | 12394 | break; |
9160 | - case 0xe4: | |
12395 | + case 0x0c: | |
9161 | 12396 | GETBYTE (); |
9162 | - switch (op[2] & 0x0f) | |
12397 | + switch (op[2] & 0x00) | |
9163 | 12398 | { |
9164 | 12399 | case 0x00: |
9165 | - case 0x01: | |
9166 | - case 0x02: | |
9167 | - case 0x03: | |
9168 | - case 0x04: | |
9169 | - case 0x05: | |
9170 | - case 0x06: | |
9171 | - case 0x07: | |
9172 | - case 0x08: | |
9173 | - case 0x09: | |
9174 | - case 0x0a: | |
9175 | - case 0x0b: | |
9176 | - case 0x0c: | |
9177 | - case 0x0d: | |
9178 | - case 0x0e: | |
9179 | - goto op_semantics_73; | |
12400 | + goto op_semantics_94; | |
9180 | 12401 | break; |
9181 | - case 0x0f: | |
9182 | - goto op_semantics_74; | |
12402 | + } | |
12403 | + break; | |
12404 | + case 0x0d: | |
12405 | + GETBYTE (); | |
12406 | + switch (op[2] & 0x00) | |
12407 | + { | |
12408 | + case 0x00: | |
12409 | + goto op_semantics_95; | |
9183 | 12410 | break; |
9184 | 12411 | } |
9185 | 12412 | break; |
9186 | - case 0xe5: | |
12413 | + case 0x0e: | |
9187 | 12414 | GETBYTE (); |
9188 | - switch (op[2] & 0x0f) | |
12415 | + switch (op[2] & 0x00) | |
9189 | 12416 | { |
9190 | 12417 | case 0x00: |
9191 | - case 0x01: | |
9192 | - case 0x02: | |
9193 | - case 0x03: | |
9194 | - case 0x04: | |
9195 | - case 0x05: | |
9196 | - case 0x06: | |
9197 | - case 0x07: | |
9198 | - case 0x08: | |
9199 | - case 0x09: | |
9200 | - case 0x0a: | |
9201 | - case 0x0b: | |
9202 | - case 0x0c: | |
9203 | - case 0x0d: | |
9204 | - case 0x0e: | |
9205 | - goto op_semantics_73; | |
12418 | + goto op_semantics_96; | |
9206 | 12419 | break; |
9207 | - case 0x0f: | |
9208 | - goto op_semantics_74; | |
12420 | + } | |
12421 | + break; | |
12422 | + case 0x0f: | |
12423 | + GETBYTE (); | |
12424 | + switch (op[2] & 0x00) | |
12425 | + { | |
12426 | + case 0x00: | |
12427 | + goto op_semantics_97; | |
9209 | 12428 | break; |
9210 | 12429 | } |
9211 | 12430 | break; |
9212 | - case 0xe6: | |
12431 | + case 0x17: | |
9213 | 12432 | GETBYTE (); |
9214 | - switch (op[2] & 0x0f) | |
12433 | + switch (op[2] & 0x70) | |
9215 | 12434 | { |
9216 | 12435 | case 0x00: |
9217 | - case 0x01: | |
9218 | - case 0x02: | |
9219 | - case 0x03: | |
9220 | - case 0x04: | |
9221 | - case 0x05: | |
9222 | - case 0x06: | |
9223 | - case 0x07: | |
9224 | - case 0x08: | |
9225 | - case 0x09: | |
9226 | - case 0x0a: | |
9227 | - case 0x0b: | |
9228 | - case 0x0c: | |
9229 | - case 0x0d: | |
9230 | - case 0x0e: | |
9231 | - goto op_semantics_73; | |
12436 | + { | |
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; | |
12442 | + if (trace) | |
12443 | + { | |
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); | |
12449 | + } | |
12450 | + SYNTAX("mvtachi %1, %0"); | |
12451 | +#line 885 "rx-decode.opc" | |
12452 | + ID(mvtachi); DR(a+32); SR(rsrc); F_____; | |
12453 | + | |
12454 | + } | |
9232 | 12455 | break; |
9233 | - case 0x0f: | |
9234 | - goto op_semantics_74; | |
12456 | + case 0x10: | |
12457 | + { | |
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; | |
12463 | + if (trace) | |
12464 | + { | |
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); | |
12470 | + } | |
12471 | + SYNTAX("mvtaclo %1, %0"); | |
12472 | +#line 888 "rx-decode.opc" | |
12473 | + ID(mvtaclo); DR(a+32); SR(rsrc); F_____; | |
12474 | + | |
12475 | + } | |
12476 | + break; | |
12477 | + case 0x30: | |
12478 | + { | |
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; | |
12484 | + if (trace) | |
12485 | + { | |
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); | |
12491 | + } | |
12492 | + SYNTAX("mvtacgu %0, %1"); | |
12493 | +#line 1110 "rx-decode.opc" | |
12494 | + ID(mvtacgu); DR(a+32); SR(rdst); F_____; | |
12495 | + | |
12496 | + } | |
9235 | 12497 | break; |
12498 | + default: UNSUPPORTED(); break; | |
9236 | 12499 | } |
9237 | 12500 | break; |
9238 | - case 0xe7: | |
12501 | + case 0x18: | |
9239 | 12502 | GETBYTE (); |
9240 | - switch (op[2] & 0x0f) | |
12503 | + switch (op[2] & 0x6f) | |
9241 | 12504 | { |
9242 | 12505 | case 0x00: |
9243 | - case 0x01: | |
9244 | - case 0x02: | |
9245 | - case 0x03: | |
9246 | - case 0x04: | |
9247 | - case 0x05: | |
9248 | - case 0x06: | |
9249 | - case 0x07: | |
9250 | - case 0x08: | |
9251 | - case 0x09: | |
9252 | - case 0x0a: | |
9253 | - case 0x0b: | |
9254 | - case 0x0c: | |
9255 | - case 0x0d: | |
9256 | - case 0x0e: | |
9257 | - goto op_semantics_73; | |
12506 | + { | |
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; | |
12512 | + if (trace) | |
12513 | + { | |
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); | |
12519 | + } | |
12520 | + SYNTAX("racw #%1, %0"); | |
12521 | +#line 900 "rx-decode.opc" | |
12522 | + ID(racw); SC(i+1); DR(a+32); F_____; | |
12523 | + | |
12524 | + /*----------------------------------------------------------------------*/ | |
12525 | + /* SAT */ | |
12526 | + | |
12527 | + } | |
9258 | 12528 | break; |
9259 | - case 0x0f: | |
9260 | - goto op_semantics_74; | |
12529 | + case 0x40: | |
12530 | + { | |
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; | |
12536 | + if (trace) | |
12537 | + { | |
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); | |
12543 | + } | |
12544 | + SYNTAX("rdacw #%1, %0"); | |
12545 | +#line 1119 "rx-decode.opc" | |
12546 | + ID(rdacw); SC(i+1); DR(a+32); F_____; | |
12547 | + | |
12548 | + } | |
9261 | 12549 | break; |
12550 | + default: UNSUPPORTED(); break; | |
9262 | 12551 | } |
9263 | 12552 | break; |
9264 | - case 0xe8: | |
12553 | + case 0x19: | |
9265 | 12554 | GETBYTE (); |
9266 | - switch (op[2] & 0x0f) | |
12555 | + switch (op[2] & 0x6f) | |
9267 | 12556 | { |
9268 | 12557 | case 0x00: |
9269 | - case 0x01: | |
9270 | - case 0x02: | |
9271 | - case 0x03: | |
9272 | - case 0x04: | |
9273 | - case 0x05: | |
9274 | - case 0x06: | |
9275 | - case 0x07: | |
9276 | - case 0x08: | |
9277 | - case 0x09: | |
9278 | - case 0x0a: | |
9279 | - case 0x0b: | |
9280 | - case 0x0c: | |
9281 | - case 0x0d: | |
9282 | - case 0x0e: | |
9283 | - goto op_semantics_73; | |
12558 | + { | |
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; | |
12564 | + if (trace) | |
12565 | + { | |
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); | |
12571 | + } | |
12572 | + SYNTAX("racl #%1, %0"); | |
12573 | +#line 1113 "rx-decode.opc" | |
12574 | + ID(racl); SC(i+1); DR(a+32); F_____; | |
12575 | + | |
12576 | + } | |
9284 | 12577 | break; |
9285 | - case 0x0f: | |
9286 | - goto op_semantics_74; | |
12578 | + case 0x40: | |
12579 | + { | |
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; | |
12585 | + if (trace) | |
12586 | + { | |
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); | |
12592 | + } | |
12593 | + SYNTAX("rdacl #%1, %0"); | |
12594 | +#line 1116 "rx-decode.opc" | |
12595 | + ID(rdacl); SC(i+1); DR(a+32); F_____; | |
12596 | + | |
12597 | + } | |
9287 | 12598 | break; |
12599 | + default: UNSUPPORTED(); break; | |
9288 | 12600 | } |
9289 | 12601 | break; |
9290 | - case 0xe9: | |
12602 | + case 0x1e: | |
9291 | 12603 | GETBYTE (); |
9292 | - switch (op[2] & 0x0f) | |
12604 | + switch (op[2] & 0x30) | |
9293 | 12605 | { |
9294 | 12606 | case 0x00: |
9295 | - case 0x01: | |
9296 | - case 0x02: | |
9297 | - case 0x03: | |
9298 | - case 0x04: | |
9299 | - case 0x05: | |
9300 | - case 0x06: | |
9301 | - case 0x07: | |
9302 | - case 0x08: | |
9303 | - case 0x09: | |
9304 | - case 0x0a: | |
9305 | - case 0x0b: | |
9306 | - case 0x0c: | |
9307 | - case 0x0d: | |
9308 | - case 0x0e: | |
9309 | - goto op_semantics_73; | |
12607 | + op_semantics_98: | |
12608 | + { | |
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; | |
12618 | + if (trace) | |
12619 | + { | |
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); | |
12627 | + } | |
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_____; | |
12631 | + | |
12632 | + } | |
9310 | 12633 | break; |
9311 | - case 0x0f: | |
9312 | - goto op_semantics_74; | |
12634 | + case 0x10: | |
12635 | + op_semantics_99: | |
12636 | + { | |
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; | |
12646 | + if (trace) | |
12647 | + { | |
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); | |
12655 | + } | |
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_____; | |
12659 | + | |
12660 | + } | |
9313 | 12661 | break; |
9314 | - } | |
9315 | - break; | |
9316 | - case 0xea: | |
9317 | - GETBYTE (); | |
9318 | - switch (op[2] & 0x0f) | |
9319 | - { | |
9320 | - case 0x00: | |
9321 | - case 0x01: | |
9322 | - case 0x02: | |
9323 | - case 0x03: | |
9324 | - case 0x04: | |
9325 | - case 0x05: | |
9326 | - case 0x06: | |
9327 | - case 0x07: | |
9328 | - case 0x08: | |
9329 | - case 0x09: | |
9330 | - case 0x0a: | |
9331 | - case 0x0b: | |
9332 | - case 0x0c: | |
9333 | - case 0x0d: | |
9334 | - case 0x0e: | |
9335 | - goto op_semantics_73; | |
12662 | + case 0x20: | |
12663 | + op_semantics_100: | |
12664 | + { | |
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; | |
12674 | + if (trace) | |
12675 | + { | |
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); | |
12683 | + } | |
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_____; | |
12687 | + | |
12688 | + } | |
9336 | 12689 | break; |
9337 | - case 0x0f: | |
9338 | - goto op_semantics_74; | |
12690 | + case 0x30: | |
12691 | + op_semantics_101: | |
12692 | + { | |
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; | |
12702 | + if (trace) | |
12703 | + { | |
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); | |
12711 | + } | |
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_____; | |
12715 | + | |
12716 | + } | |
9339 | 12717 | break; |
9340 | 12718 | } |
9341 | 12719 | break; |
9342 | - case 0xeb: | |
12720 | + case 0x1f: | |
9343 | 12721 | GETBYTE (); |
9344 | - switch (op[2] & 0x0f) | |
9345 | - { | |
9346 | - case 0x00: | |
9347 | - case 0x01: | |
9348 | - case 0x02: | |
9349 | - case 0x03: | |
9350 | - case 0x04: | |
9351 | - case 0x05: | |
9352 | - case 0x06: | |
9353 | - case 0x07: | |
9354 | - case 0x08: | |
9355 | - case 0x09: | |
9356 | - case 0x0a: | |
9357 | - case 0x0b: | |
9358 | - case 0x0c: | |
9359 | - case 0x0d: | |
9360 | - case 0x0e: | |
9361 | - goto op_semantics_73; | |
12722 | + switch (op[2] & 0x30) | |
12723 | + { | |
12724 | + case 0x00: | |
12725 | + goto op_semantics_98; | |
9362 | 12726 | break; |
9363 | - case 0x0f: | |
9364 | - goto op_semantics_74; | |
12727 | + case 0x10: | |
12728 | + goto op_semantics_99; | |
12729 | + break; | |
12730 | + case 0x20: | |
12731 | + goto op_semantics_100; | |
12732 | + break; | |
12733 | + case 0x30: | |
12734 | + goto op_semantics_101; | |
9365 | 12735 | break; |
9366 | 12736 | } |
9367 | 12737 | break; |
9368 | - case 0xec: | |
12738 | + case 0x20: | |
9369 | 12739 | GETBYTE (); |
9370 | - switch (op[2] & 0x0f) | |
12740 | + switch (op[2] & 0x00) | |
9371 | 12741 | { |
9372 | 12742 | case 0x00: |
9373 | - case 0x01: | |
9374 | - case 0x02: | |
9375 | - case 0x03: | |
9376 | - case 0x04: | |
9377 | - case 0x05: | |
9378 | - case 0x06: | |
9379 | - case 0x07: | |
9380 | - case 0x08: | |
9381 | - case 0x09: | |
9382 | - case 0x0a: | |
9383 | - case 0x0b: | |
9384 | - case 0x0c: | |
9385 | - case 0x0d: | |
9386 | - case 0x0e: | |
9387 | - goto op_semantics_73; | |
9388 | - break; | |
9389 | - case 0x0f: | |
9390 | - goto op_semantics_74; | |
12743 | + op_semantics_102: | |
12744 | + { | |
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; | |
12754 | + if (trace) | |
12755 | + { | |
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); | |
12763 | + } | |
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); | |
12768 | + | |
12769 | + } | |
9391 | 12770 | break; |
9392 | 12771 | } |
9393 | 12772 | break; |
9394 | - case 0xed: | |
12773 | + case 0x21: | |
9395 | 12774 | GETBYTE (); |
9396 | - switch (op[2] & 0x0f) | |
12775 | + switch (op[2] & 0x00) | |
9397 | 12776 | { |
9398 | 12777 | case 0x00: |
9399 | - case 0x01: | |
9400 | - case 0x02: | |
9401 | - case 0x03: | |
9402 | - case 0x04: | |
9403 | - case 0x05: | |
9404 | - case 0x06: | |
9405 | - case 0x07: | |
9406 | - case 0x08: | |
9407 | - case 0x09: | |
9408 | - case 0x0a: | |
9409 | - case 0x0b: | |
9410 | - case 0x0c: | |
9411 | - case 0x0d: | |
9412 | - case 0x0e: | |
9413 | - goto op_semantics_73; | |
9414 | - break; | |
9415 | - case 0x0f: | |
9416 | - goto op_semantics_74; | |
12778 | + goto op_semantics_102; | |
9417 | 12779 | break; |
9418 | 12780 | } |
9419 | 12781 | break; |
9420 | - case 0xee: | |
12782 | + case 0x22: | |
9421 | 12783 | GETBYTE (); |
9422 | - switch (op[2] & 0x0f) | |
12784 | + switch (op[2] & 0x00) | |
9423 | 12785 | { |
9424 | 12786 | case 0x00: |
9425 | - case 0x01: | |
9426 | - case 0x02: | |
9427 | - case 0x03: | |
9428 | - case 0x04: | |
9429 | - case 0x05: | |
9430 | - case 0x06: | |
9431 | - case 0x07: | |
9432 | - case 0x08: | |
9433 | - case 0x09: | |
9434 | - case 0x0a: | |
9435 | - case 0x0b: | |
9436 | - case 0x0c: | |
9437 | - case 0x0d: | |
9438 | - case 0x0e: | |
9439 | - goto op_semantics_73; | |
9440 | - break; | |
9441 | - case 0x0f: | |
9442 | - goto op_semantics_74; | |
12787 | + goto op_semantics_102; | |
9443 | 12788 | break; |
9444 | 12789 | } |
9445 | 12790 | break; |
9446 | - case 0xef: | |
12791 | + case 0x24: | |
9447 | 12792 | GETBYTE (); |
9448 | - switch (op[2] & 0x0f) | |
12793 | + switch (op[2] & 0x00) | |
9449 | 12794 | { |
9450 | 12795 | case 0x00: |
9451 | - case 0x01: | |
9452 | - case 0x02: | |
9453 | - case 0x03: | |
9454 | - case 0x04: | |
9455 | - case 0x05: | |
9456 | - case 0x06: | |
9457 | - case 0x07: | |
9458 | - case 0x08: | |
9459 | - case 0x09: | |
9460 | - case 0x0a: | |
9461 | - case 0x0b: | |
9462 | - case 0x0c: | |
9463 | - case 0x0d: | |
9464 | - case 0x0e: | |
9465 | - goto op_semantics_73; | |
9466 | - break; | |
9467 | - case 0x0f: | |
9468 | - goto op_semantics_74; | |
12796 | + goto op_semantics_102; | |
9469 | 12797 | break; |
9470 | 12798 | } |
9471 | 12799 | break; |
9472 | - case 0xf0: | |
12800 | + case 0x25: | |
9473 | 12801 | GETBYTE (); |
9474 | - switch (op[2] & 0x0f) | |
12802 | + switch (op[2] & 0x00) | |
9475 | 12803 | { |
9476 | 12804 | case 0x00: |
9477 | - case 0x01: | |
9478 | - case 0x02: | |
9479 | - case 0x03: | |
9480 | - case 0x04: | |
9481 | - case 0x05: | |
9482 | - case 0x06: | |
9483 | - case 0x07: | |
9484 | - case 0x08: | |
9485 | - case 0x09: | |
9486 | - case 0x0a: | |
9487 | - case 0x0b: | |
9488 | - case 0x0c: | |
9489 | - case 0x0d: | |
9490 | - case 0x0e: | |
9491 | - goto op_semantics_73; | |
9492 | - break; | |
9493 | - case 0x0f: | |
9494 | - goto op_semantics_74; | |
12805 | + goto op_semantics_102; | |
9495 | 12806 | break; |
9496 | 12807 | } |
9497 | 12808 | break; |
9498 | - case 0xf1: | |
12809 | + case 0x26: | |
9499 | 12810 | GETBYTE (); |
9500 | - switch (op[2] & 0x0f) | |
12811 | + switch (op[2] & 0x00) | |
9501 | 12812 | { |
9502 | 12813 | case 0x00: |
9503 | - case 0x01: | |
9504 | - case 0x02: | |
9505 | - case 0x03: | |
9506 | - case 0x04: | |
9507 | - case 0x05: | |
9508 | - case 0x06: | |
9509 | - case 0x07: | |
9510 | - case 0x08: | |
9511 | - case 0x09: | |
9512 | - case 0x0a: | |
9513 | - case 0x0b: | |
9514 | - case 0x0c: | |
9515 | - case 0x0d: | |
9516 | - case 0x0e: | |
9517 | - goto op_semantics_73; | |
9518 | - break; | |
9519 | - case 0x0f: | |
9520 | - goto op_semantics_74; | |
12814 | + goto op_semantics_102; | |
9521 | 12815 | break; |
9522 | 12816 | } |
9523 | 12817 | break; |
9524 | - case 0xf2: | |
12818 | + case 0x27: | |
9525 | 12819 | GETBYTE (); |
9526 | - switch (op[2] & 0x0f) | |
12820 | + switch (op[2] & 0x00) | |
9527 | 12821 | { |
9528 | 12822 | case 0x00: |
9529 | - case 0x01: | |
9530 | - case 0x02: | |
9531 | - case 0x03: | |
9532 | - case 0x04: | |
9533 | - case 0x05: | |
9534 | - case 0x06: | |
9535 | - case 0x07: | |
9536 | - case 0x08: | |
9537 | - case 0x09: | |
9538 | - case 0x0a: | |
9539 | - case 0x0b: | |
9540 | - case 0x0c: | |
9541 | - case 0x0d: | |
9542 | - case 0x0e: | |
9543 | - goto op_semantics_73; | |
9544 | - break; | |
9545 | - case 0x0f: | |
9546 | - goto op_semantics_74; | |
12823 | + { | |
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; | |
12829 | + if (trace) | |
12830 | + { | |
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); | |
12836 | + } | |
12837 | + SYNTAX("movco %1, [%0]"); | |
12838 | +#line 1071 "rx-decode.opc" | |
12839 | + ID(movco); SR(rsrc); DR(rdst); F_____; | |
12840 | + | |
12841 | + } | |
9547 | 12842 | break; |
9548 | 12843 | } |
9549 | 12844 | break; |
9550 | - case 0xf3: | |
12845 | + case 0x28: | |
9551 | 12846 | GETBYTE (); |
9552 | - switch (op[2] & 0x0f) | |
12847 | + switch (op[2] & 0x00) | |
9553 | 12848 | { |
9554 | 12849 | case 0x00: |
9555 | - case 0x01: | |
9556 | - case 0x02: | |
9557 | - case 0x03: | |
9558 | - case 0x04: | |
9559 | - case 0x05: | |
9560 | - case 0x06: | |
9561 | - case 0x07: | |
9562 | - case 0x08: | |
9563 | - case 0x09: | |
9564 | - case 0x0a: | |
9565 | - case 0x0b: | |
9566 | - case 0x0c: | |
9567 | - case 0x0d: | |
9568 | - case 0x0e: | |
9569 | - goto op_semantics_73; | |
9570 | - break; | |
9571 | - case 0x0f: | |
9572 | - goto op_semantics_74; | |
12850 | + op_semantics_103: | |
12851 | + { | |
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; | |
12861 | + if (trace) | |
12862 | + { | |
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); | |
12870 | + } | |
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); | |
12875 | + | |
12876 | + } | |
9573 | 12877 | break; |
9574 | 12878 | } |
9575 | 12879 | break; |
9576 | - case 0xf4: | |
12880 | + case 0x29: | |
9577 | 12881 | GETBYTE (); |
9578 | - switch (op[2] & 0x0f) | |
12882 | + switch (op[2] & 0x00) | |
9579 | 12883 | { |
9580 | 12884 | case 0x00: |
9581 | - case 0x01: | |
9582 | - case 0x02: | |
9583 | - case 0x03: | |
9584 | - case 0x04: | |
9585 | - case 0x05: | |
9586 | - case 0x06: | |
9587 | - case 0x07: | |
9588 | - case 0x08: | |
9589 | - case 0x09: | |
9590 | - case 0x0a: | |
9591 | - case 0x0b: | |
9592 | - case 0x0c: | |
9593 | - case 0x0d: | |
9594 | - case 0x0e: | |
9595 | - goto op_semantics_73; | |
9596 | - break; | |
9597 | - case 0x0f: | |
9598 | - goto op_semantics_74; | |
12885 | + goto op_semantics_103; | |
9599 | 12886 | break; |
9600 | 12887 | } |
9601 | 12888 | break; |
9602 | - case 0xf5: | |
12889 | + case 0x2a: | |
9603 | 12890 | GETBYTE (); |
9604 | - switch (op[2] & 0x0f) | |
12891 | + switch (op[2] & 0x00) | |
9605 | 12892 | { |
9606 | 12893 | case 0x00: |
9607 | - case 0x01: | |
9608 | - case 0x02: | |
9609 | - case 0x03: | |
9610 | - case 0x04: | |
9611 | - case 0x05: | |
9612 | - case 0x06: | |
9613 | - case 0x07: | |
9614 | - case 0x08: | |
9615 | - case 0x09: | |
9616 | - case 0x0a: | |
9617 | - case 0x0b: | |
9618 | - case 0x0c: | |
9619 | - case 0x0d: | |
9620 | - case 0x0e: | |
9621 | - goto op_semantics_73; | |
9622 | - break; | |
9623 | - case 0x0f: | |
9624 | - goto op_semantics_74; | |
12894 | + goto op_semantics_103; | |
9625 | 12895 | break; |
9626 | 12896 | } |
9627 | 12897 | break; |
9628 | - case 0xf6: | |
12898 | + case 0x2c: | |
9629 | 12899 | GETBYTE (); |
9630 | - switch (op[2] & 0x0f) | |
12900 | + switch (op[2] & 0x00) | |
9631 | 12901 | { |
9632 | 12902 | case 0x00: |
9633 | - case 0x01: | |
9634 | - case 0x02: | |
9635 | - case 0x03: | |
9636 | - case 0x04: | |
9637 | - case 0x05: | |
9638 | - case 0x06: | |
9639 | - case 0x07: | |
9640 | - case 0x08: | |
9641 | - case 0x09: | |
9642 | - case 0x0a: | |
9643 | - case 0x0b: | |
9644 | - case 0x0c: | |
9645 | - case 0x0d: | |
9646 | - case 0x0e: | |
9647 | - goto op_semantics_73; | |
9648 | - break; | |
9649 | - case 0x0f: | |
9650 | - goto op_semantics_74; | |
12903 | + goto op_semantics_103; | |
9651 | 12904 | break; |
9652 | 12905 | } |
9653 | 12906 | break; |
9654 | - case 0xf7: | |
12907 | + case 0x2d: | |
9655 | 12908 | GETBYTE (); |
9656 | - switch (op[2] & 0x0f) | |
12909 | + switch (op[2] & 0x00) | |
9657 | 12910 | { |
9658 | 12911 | case 0x00: |
9659 | - case 0x01: | |
9660 | - case 0x02: | |
9661 | - case 0x03: | |
9662 | - case 0x04: | |
9663 | - case 0x05: | |
9664 | - case 0x06: | |
9665 | - case 0x07: | |
9666 | - case 0x08: | |
9667 | - case 0x09: | |
9668 | - case 0x0a: | |
9669 | - case 0x0b: | |
9670 | - case 0x0c: | |
9671 | - case 0x0d: | |
9672 | - case 0x0e: | |
9673 | - goto op_semantics_73; | |
9674 | - break; | |
9675 | - case 0x0f: | |
9676 | - goto op_semantics_74; | |
12912 | + goto op_semantics_103; | |
9677 | 12913 | break; |
9678 | 12914 | } |
9679 | 12915 | break; |
9680 | - case 0xf8: | |
12916 | + case 0x2e: | |
9681 | 12917 | GETBYTE (); |
9682 | - switch (op[2] & 0x0f) | |
12918 | + switch (op[2] & 0x00) | |
9683 | 12919 | { |
9684 | 12920 | case 0x00: |
9685 | - case 0x01: | |
9686 | - case 0x02: | |
9687 | - case 0x03: | |
9688 | - case 0x04: | |
9689 | - case 0x05: | |
9690 | - case 0x06: | |
9691 | - case 0x07: | |
9692 | - case 0x08: | |
9693 | - case 0x09: | |
9694 | - case 0x0a: | |
9695 | - case 0x0b: | |
9696 | - case 0x0c: | |
9697 | - case 0x0d: | |
9698 | - case 0x0e: | |
9699 | - goto op_semantics_73; | |
9700 | - break; | |
9701 | - case 0x0f: | |
9702 | - goto op_semantics_74; | |
12921 | + goto op_semantics_103; | |
9703 | 12922 | break; |
9704 | 12923 | } |
9705 | 12924 | break; |
9706 | - case 0xf9: | |
12925 | + case 0x2f: | |
9707 | 12926 | GETBYTE (); |
9708 | - switch (op[2] & 0x0f) | |
12927 | + switch (op[2] & 0x00) | |
9709 | 12928 | { |
9710 | 12929 | case 0x00: |
9711 | - case 0x01: | |
9712 | - case 0x02: | |
9713 | - case 0x03: | |
9714 | - case 0x04: | |
9715 | - case 0x05: | |
9716 | - case 0x06: | |
9717 | - case 0x07: | |
9718 | - case 0x08: | |
9719 | - case 0x09: | |
9720 | - case 0x0a: | |
9721 | - case 0x0b: | |
9722 | - case 0x0c: | |
9723 | - case 0x0d: | |
9724 | - case 0x0e: | |
9725 | - goto op_semantics_73; | |
9726 | - break; | |
9727 | - case 0x0f: | |
9728 | - goto op_semantics_74; | |
12930 | + { | |
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; | |
12936 | + if (trace) | |
12937 | + { | |
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); | |
12943 | + } | |
12944 | + SYNTAX("movli [%1], %0"); | |
12945 | +#line 1074 "rx-decode.opc" | |
12946 | + ID(movli); SR(rsrc); DR(rdst); F_____; | |
12947 | + | |
12948 | + } | |
9729 | 12949 | break; |
9730 | 12950 | } |
9731 | 12951 | break; |
9732 | - case 0xfa: | |
12952 | + case 0x38: | |
9733 | 12953 | GETBYTE (); |
9734 | - switch (op[2] & 0x0f) | |
12954 | + switch (op[2] & 0x00) | |
9735 | 12955 | { |
9736 | 12956 | case 0x00: |
9737 | - case 0x01: | |
9738 | - case 0x02: | |
9739 | - case 0x03: | |
9740 | - case 0x04: | |
9741 | - case 0x05: | |
9742 | - case 0x06: | |
9743 | - case 0x07: | |
9744 | - case 0x08: | |
9745 | - case 0x09: | |
9746 | - case 0x0a: | |
9747 | - case 0x0b: | |
9748 | - case 0x0c: | |
9749 | - case 0x0d: | |
9750 | - case 0x0e: | |
9751 | - goto op_semantics_73; | |
9752 | - break; | |
9753 | - case 0x0f: | |
9754 | - goto op_semantics_74; | |
12957 | + op_semantics_104: | |
12958 | + { | |
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; | |
12968 | + if (trace) | |
12969 | + { | |
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); | |
12977 | + } | |
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); | |
12982 | + | |
12983 | + /*----------------------------------------------------------------------*/ | |
12984 | + /* PUSH/POP */ | |
12985 | + | |
12986 | + } | |
9755 | 12987 | break; |
9756 | 12988 | } |
9757 | 12989 | break; |
9758 | - case 0xfb: | |
12990 | + case 0x39: | |
9759 | 12991 | GETBYTE (); |
9760 | - switch (op[2] & 0x0f) | |
12992 | + switch (op[2] & 0x00) | |
9761 | 12993 | { |
9762 | 12994 | case 0x00: |
9763 | - case 0x01: | |
9764 | - case 0x02: | |
9765 | - case 0x03: | |
9766 | - case 0x04: | |
9767 | - case 0x05: | |
9768 | - case 0x06: | |
9769 | - case 0x07: | |
9770 | - case 0x08: | |
9771 | - case 0x09: | |
9772 | - case 0x0a: | |
9773 | - case 0x0b: | |
9774 | - case 0x0c: | |
9775 | - case 0x0d: | |
9776 | - case 0x0e: | |
9777 | - goto op_semantics_73; | |
9778 | - break; | |
9779 | - case 0x0f: | |
9780 | - goto op_semantics_74; | |
12995 | + goto op_semantics_104; | |
9781 | 12996 | break; |
9782 | 12997 | } |
9783 | 12998 | break; |
9784 | - case 0xfc: | |
12999 | + case 0x3a: | |
9785 | 13000 | GETBYTE (); |
9786 | - switch (op[2] & 0x0f) | |
9787 | - { | |
9788 | - case 0x00: | |
9789 | - case 0x01: | |
9790 | - case 0x02: | |
9791 | - case 0x03: | |
9792 | - case 0x04: | |
9793 | - case 0x05: | |
9794 | - case 0x06: | |
9795 | - case 0x07: | |
9796 | - case 0x08: | |
9797 | - case 0x09: | |
9798 | - case 0x0a: | |
9799 | - case 0x0b: | |
9800 | - case 0x0c: | |
9801 | - case 0x0d: | |
9802 | - case 0x0e: | |
9803 | - goto op_semantics_73; | |
9804 | - break; | |
9805 | - case 0x0f: | |
9806 | - goto op_semantics_74; | |
13001 | + switch (op[2] & 0x00) | |
13002 | + { | |
13003 | + case 0x00: | |
13004 | + goto op_semantics_104; | |
9807 | 13005 | break; |
9808 | 13006 | } |
9809 | 13007 | break; |
9810 | - case 0xfd: | |
13008 | + case 0x3c: | |
9811 | 13009 | GETBYTE (); |
9812 | - switch (op[2] & 0x0f) | |
13010 | + switch (op[2] & 0x00) | |
9813 | 13011 | { |
9814 | 13012 | case 0x00: |
9815 | - case 0x01: | |
9816 | - case 0x02: | |
9817 | - case 0x03: | |
9818 | - case 0x04: | |
9819 | - case 0x05: | |
9820 | - case 0x06: | |
9821 | - case 0x07: | |
9822 | - case 0x08: | |
9823 | - case 0x09: | |
9824 | - case 0x0a: | |
9825 | - case 0x0b: | |
9826 | - case 0x0c: | |
9827 | - case 0x0d: | |
9828 | - case 0x0e: | |
9829 | - goto op_semantics_73; | |
9830 | - break; | |
9831 | - case 0x0f: | |
9832 | - goto op_semantics_74; | |
13013 | + goto op_semantics_104; | |
9833 | 13014 | break; |
9834 | 13015 | } |
9835 | 13016 | break; |
9836 | - case 0xfe: | |
13017 | + case 0x3d: | |
9837 | 13018 | GETBYTE (); |
9838 | - switch (op[2] & 0x0f) | |
13019 | + switch (op[2] & 0x00) | |
9839 | 13020 | { |
9840 | 13021 | case 0x00: |
9841 | - case 0x01: | |
9842 | - case 0x02: | |
9843 | - case 0x03: | |
9844 | - case 0x04: | |
9845 | - case 0x05: | |
9846 | - case 0x06: | |
9847 | - case 0x07: | |
9848 | - case 0x08: | |
9849 | - case 0x09: | |
9850 | - case 0x0a: | |
9851 | - case 0x0b: | |
9852 | - case 0x0c: | |
9853 | - case 0x0d: | |
9854 | - case 0x0e: | |
9855 | - goto op_semantics_73; | |
9856 | - break; | |
9857 | - case 0x0f: | |
9858 | - goto op_semantics_74; | |
13022 | + goto op_semantics_104; | |
9859 | 13023 | break; |
9860 | 13024 | } |
9861 | 13025 | break; |
9862 | - case 0xff: | |
13026 | + case 0x3e: | |
9863 | 13027 | GETBYTE (); |
9864 | - switch (op[2] & 0x0f) | |
13028 | + switch (op[2] & 0x00) | |
9865 | 13029 | { |
9866 | 13030 | case 0x00: |
9867 | - case 0x01: | |
9868 | - case 0x02: | |
9869 | - case 0x03: | |
9870 | - case 0x04: | |
9871 | - case 0x05: | |
9872 | - case 0x06: | |
9873 | - case 0x07: | |
9874 | - case 0x08: | |
9875 | - case 0x09: | |
9876 | - case 0x0a: | |
9877 | - case 0x0b: | |
9878 | - case 0x0c: | |
9879 | - case 0x0d: | |
9880 | - case 0x0e: | |
9881 | - goto op_semantics_73; | |
13031 | + goto op_semantics_104; | |
9882 | 13032 | break; |
9883 | - case 0x0f: | |
9884 | - goto op_semantics_74; | |
13033 | + } | |
13034 | + break; | |
13035 | + case 0x44: | |
13036 | + GETBYTE (); | |
13037 | + switch (op[2] & 0x00) | |
13038 | + { | |
13039 | + case 0x00: | |
13040 | + op_semantics_105: | |
13041 | + { | |
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; | |
13049 | + if (trace) | |
13050 | + { | |
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); | |
13057 | + } | |
13058 | + SYNTAX("msbhi %1, %2, %0"); | |
13059 | +#line 1095 "rx-decode.opc" | |
13060 | + ID(msbhi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13061 | + | |
13062 | + } | |
9885 | 13063 | break; |
9886 | 13064 | } |
9887 | 13065 | break; |
9888 | - default: UNSUPPORTED(); break; | |
9889 | - } | |
9890 | - break; | |
9891 | - case 0xfd: | |
9892 | - GETBYTE (); | |
9893 | - switch (op[1] & 0xff) | |
9894 | - { | |
9895 | - case 0x00: | |
13066 | + case 0x45: | |
9896 | 13067 | GETBYTE (); |
9897 | 13068 | switch (op[2] & 0x00) |
9898 | 13069 | { |
9899 | 13070 | case 0x00: |
9900 | - op_semantics_75: | |
13071 | + op_semantics_106: | |
9901 | 13072 | { |
9902 | - /** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */ | |
9903 | -#line 852 "rx-decode.opc" | |
13073 | + /** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */ | |
13074 | +#line 1101 "rx-decode.opc" | |
9904 | 13075 | int a AU = (op[1] >> 3) & 0x01; |
9905 | -#line 852 "rx-decode.opc" | |
13076 | +#line 1101 "rx-decode.opc" | |
9906 | 13077 | int srca AU = (op[2] >> 4) & 0x0f; |
9907 | -#line 852 "rx-decode.opc" | |
13078 | +#line 1101 "rx-decode.opc" | |
9908 | 13079 | int srcb AU = op[2] & 0x0f; |
9909 | 13080 | if (trace) |
9910 | 13081 | { |
9911 | 13082 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
9912 | - "/** 1111 1101 0000 a000 srca srcb mulhi %1, %2, %0 */", | |
13083 | + "/** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */", | |
9913 | 13084 | op[0], op[1], op[2]); |
9914 | 13085 | printf (" a = 0x%x,", a); |
9915 | 13086 | printf (" srca = 0x%x,", srca); |
9916 | 13087 | printf (" srcb = 0x%x\n", srcb); |
9917 | 13088 | } |
9918 | - SYNTAX("mulhi %1, %2, %0"); | |
9919 | -#line 852 "rx-decode.opc" | |
9920 | - ID(mulhi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13089 | + SYNTAX("msblo %1, %2, %0"); | |
13090 | +#line 1101 "rx-decode.opc" | |
13091 | + ID(msblo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
9921 | 13092 | |
9922 | 13093 | } |
9923 | 13094 | break; |
9924 | 13095 | } |
9925 | 13096 | break; |
9926 | - case 0x01: | |
13097 | + case 0x46: | |
9927 | 13098 | GETBYTE (); |
9928 | 13099 | switch (op[2] & 0x00) |
9929 | 13100 | { |
9930 | 13101 | case 0x00: |
9931 | - op_semantics_76: | |
13102 | + op_semantics_107: | |
9932 | 13103 | { |
9933 | - /** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */ | |
9934 | -#line 855 "rx-decode.opc" | |
13104 | + /** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */ | |
13105 | +#line 1098 "rx-decode.opc" | |
9935 | 13106 | int a AU = (op[1] >> 3) & 0x01; |
9936 | -#line 855 "rx-decode.opc" | |
13107 | +#line 1098 "rx-decode.opc" | |
9937 | 13108 | int srca AU = (op[2] >> 4) & 0x0f; |
9938 | -#line 855 "rx-decode.opc" | |
13109 | +#line 1098 "rx-decode.opc" | |
9939 | 13110 | int srcb AU = op[2] & 0x0f; |
9940 | 13111 | if (trace) |
9941 | 13112 | { |
9942 | 13113 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
9943 | - "/** 1111 1101 0000 a001 srca srcb mullo %1, %2, %0 */", | |
13114 | + "/** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */", | |
9944 | 13115 | op[0], op[1], op[2]); |
9945 | 13116 | printf (" a = 0x%x,", a); |
9946 | 13117 | printf (" srca = 0x%x,", srca); |
9947 | 13118 | printf (" srcb = 0x%x\n", srcb); |
9948 | 13119 | } |
9949 | - SYNTAX("mullo %1, %2, %0"); | |
9950 | -#line 855 "rx-decode.opc" | |
9951 | - ID(mullo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13120 | + SYNTAX("msblh %1, %2, %0"); | |
13121 | +#line 1098 "rx-decode.opc" | |
13122 | + ID(msblh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
9952 | 13123 | |
9953 | 13124 | } |
9954 | 13125 | break; |
9955 | 13126 | } |
9956 | 13127 | break; |
9957 | - case 0x02: | |
13128 | + case 0x47: | |
9958 | 13129 | GETBYTE (); |
9959 | 13130 | switch (op[2] & 0x00) |
9960 | 13131 | { |
9961 | 13132 | case 0x00: |
9962 | - op_semantics_77: | |
13133 | + op_semantics_108: | |
9963 | 13134 | { |
9964 | - /** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */ | |
9965 | -#line 1083 "rx-decode.opc" | |
13135 | + /** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */ | |
13136 | +#line 1086 "rx-decode.opc" | |
9966 | 13137 | int a AU = (op[1] >> 3) & 0x01; |
9967 | -#line 1083 "rx-decode.opc" | |
13138 | +#line 1086 "rx-decode.opc" | |
9968 | 13139 | int srca AU = (op[2] >> 4) & 0x0f; |
9969 | -#line 1083 "rx-decode.opc" | |
13140 | +#line 1086 "rx-decode.opc" | |
9970 | 13141 | int srcb AU = op[2] & 0x0f; |
9971 | 13142 | if (trace) |
9972 | 13143 | { |
9973 | 13144 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
9974 | - "/** 1111 1101 0000 a010 srca srcb mullh %1, %2, %0 */", | |
13145 | + "/** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */", | |
9975 | 13146 | op[0], op[1], op[2]); |
9976 | 13147 | printf (" a = 0x%x,", a); |
9977 | 13148 | printf (" srca = 0x%x,", srca); |
9978 | 13149 | printf (" srcb = 0x%x\n", srcb); |
9979 | 13150 | } |
9980 | - SYNTAX("mullh %1, %2, %0"); | |
9981 | -#line 1083 "rx-decode.opc" | |
9982 | - ID(mullh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13151 | + SYNTAX("emsba %1, %2, %0"); | |
13152 | +#line 1086 "rx-decode.opc" | |
13153 | + ID(emsba); DR(a+32); SR(srca); S2R(srcb); F_____; | |
9983 | 13154 | |
9984 | 13155 | } |
9985 | 13156 | break; |
9986 | 13157 | } |
9987 | 13158 | break; |
9988 | - case 0x03: | |
13159 | + case 0x4c: | |
13160 | + GETBYTE (); | |
13161 | + switch (op[2] & 0x00) | |
13162 | + { | |
13163 | + case 0x00: | |
13164 | + goto op_semantics_105; | |
13165 | + break; | |
13166 | + } | |
13167 | + break; | |
13168 | + case 0x4d: | |
13169 | + GETBYTE (); | |
13170 | + switch (op[2] & 0x00) | |
13171 | + { | |
13172 | + case 0x00: | |
13173 | + goto op_semantics_106; | |
13174 | + break; | |
13175 | + } | |
13176 | + break; | |
13177 | + case 0x4e: | |
13178 | + GETBYTE (); | |
13179 | + switch (op[2] & 0x00) | |
13180 | + { | |
13181 | + case 0x00: | |
13182 | + goto op_semantics_107; | |
13183 | + break; | |
13184 | + } | |
13185 | + break; | |
13186 | + case 0x4f: | |
13187 | + GETBYTE (); | |
13188 | + switch (op[2] & 0x00) | |
13189 | + { | |
13190 | + case 0x00: | |
13191 | + goto op_semantics_108; | |
13192 | + break; | |
13193 | + } | |
13194 | + break; | |
13195 | + case 0x60: | |
13196 | + GETBYTE (); | |
13197 | + switch (op[2] & 0x00) | |
13198 | + { | |
13199 | + case 0x00: | |
13200 | + { | |
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; | |
13206 | + if (trace) | |
13207 | + { | |
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); | |
13213 | + } | |
13214 | + SYNTAX("shlr %2, %0"); | |
13215 | +#line 754 "rx-decode.opc" | |
13216 | + ID(shlr); S2R(rsrc); SR(rdst); DR(rdst); F__SZC; | |
13217 | + | |
13218 | + } | |
13219 | + break; | |
13220 | + } | |
13221 | + break; | |
13222 | + case 0x61: | |
13223 | + GETBYTE (); | |
13224 | + switch (op[2] & 0x00) | |
13225 | + { | |
13226 | + case 0x00: | |
13227 | + { | |
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; | |
13233 | + if (trace) | |
13234 | + { | |
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); | |
13240 | + } | |
13241 | + SYNTAX("shar %2, %0"); | |
13242 | +#line 744 "rx-decode.opc" | |
13243 | + ID(shar); S2R(rsrc); SR(rdst); DR(rdst); F_0SZC; | |
13244 | + | |
13245 | + } | |
13246 | + break; | |
13247 | + } | |
13248 | + break; | |
13249 | + case 0x62: | |
9989 | 13250 | GETBYTE (); |
9990 | 13251 | switch (op[2] & 0x00) |
9991 | 13252 | { |
9992 | 13253 | case 0x00: |
9993 | - op_semantics_78: | |
9994 | 13254 | { |
9995 | - /** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */ | |
9996 | -#line 1068 "rx-decode.opc" | |
9997 | - int a AU = (op[1] >> 3) & 0x01; | |
9998 | -#line 1068 "rx-decode.opc" | |
9999 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10000 | -#line 1068 "rx-decode.opc" | |
10001 | - int srcb AU = op[2] & 0x0f; | |
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; | |
10002 | 13260 | if (trace) |
10003 | 13261 | { |
10004 | 13262 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10005 | - "/** 1111 1101 0000 a011 srca srcb emula %1, %2, %0 */", | |
13263 | + "/** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */", | |
10006 | 13264 | op[0], op[1], op[2]); |
10007 | - printf (" a = 0x%x,", a); | |
10008 | - printf (" srca = 0x%x,", srca); | |
10009 | - printf (" srcb = 0x%x\n", srcb); | |
13265 | + printf (" rsrc = 0x%x,", rsrc); | |
13266 | + printf (" rdst = 0x%x\n", rdst); | |
10010 | 13267 | } |
10011 | - SYNTAX("emula %1, %2, %0"); | |
10012 | -#line 1068 "rx-decode.opc" | |
10013 | - ID(emula); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13268 | + SYNTAX("shll %2, %0"); | |
13269 | +#line 734 "rx-decode.opc" | |
13270 | + ID(shll); S2R(rsrc); SR(rdst); DR(rdst); F_OSZC; | |
10014 | 13271 | |
10015 | 13272 | } |
10016 | 13273 | break; |
10017 | 13274 | } |
10018 | 13275 | break; |
10019 | - case 0x04: | |
13276 | + case 0x64: | |
10020 | 13277 | GETBYTE (); |
10021 | 13278 | switch (op[2] & 0x00) |
10022 | 13279 | { |
10023 | 13280 | case 0x00: |
10024 | - op_semantics_79: | |
10025 | 13281 | { |
10026 | - /** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */ | |
10027 | -#line 858 "rx-decode.opc" | |
10028 | - int a AU = (op[1] >> 3) & 0x01; | |
10029 | -#line 858 "rx-decode.opc" | |
10030 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10031 | -#line 858 "rx-decode.opc" | |
10032 | - int srcb AU = op[2] & 0x0f; | |
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; | |
10033 | 13287 | if (trace) |
10034 | 13288 | { |
10035 | 13289 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10036 | - "/** 1111 1101 0000 a100 srca srcb machi %1, %2, %0 */", | |
13290 | + "/** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */", | |
10037 | 13291 | op[0], op[1], op[2]); |
10038 | - printf (" a = 0x%x,", a); | |
10039 | - printf (" srca = 0x%x,", srca); | |
10040 | - printf (" srcb = 0x%x\n", srcb); | |
13292 | + printf (" rsrc = 0x%x,", rsrc); | |
13293 | + printf (" rdst = 0x%x\n", rdst); | |
10041 | 13294 | } |
10042 | - SYNTAX("machi %1, %2, %0"); | |
10043 | -#line 858 "rx-decode.opc" | |
10044 | - ID(machi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13295 | + SYNTAX("rotr %1, %0"); | |
13296 | +#line 778 "rx-decode.opc" | |
13297 | + ID(rotr); SR(rsrc); DR(rdst); F__SZC; | |
10045 | 13298 | |
10046 | 13299 | } |
10047 | 13300 | break; |
10048 | 13301 | } |
10049 | 13302 | break; |
10050 | - case 0x05: | |
13303 | + case 0x65: | |
10051 | 13304 | GETBYTE (); |
10052 | 13305 | switch (op[2] & 0x00) |
10053 | 13306 | { |
10054 | 13307 | case 0x00: |
10055 | - op_semantics_80: | |
10056 | 13308 | { |
10057 | - /** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */ | |
10058 | -#line 861 "rx-decode.opc" | |
10059 | - int a AU = (op[1] >> 3) & 0x01; | |
10060 | -#line 861 "rx-decode.opc" | |
10061 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10062 | -#line 861 "rx-decode.opc" | |
10063 | - int srcb AU = op[2] & 0x0f; | |
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; | |
10064 | 13314 | if (trace) |
10065 | 13315 | { |
10066 | 13316 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10067 | - "/** 1111 1101 0000 a101 srca srcb maclo %1, %2, %0 */", | |
13317 | + "/** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */", | |
10068 | 13318 | op[0], op[1], op[2]); |
10069 | - printf (" a = 0x%x,", a); | |
10070 | - printf (" srca = 0x%x,", srca); | |
10071 | - printf (" srcb = 0x%x\n", srcb); | |
13319 | + printf (" rsrc = 0x%x,", rsrc); | |
13320 | + printf (" rdst = 0x%x\n", rdst); | |
10072 | 13321 | } |
10073 | - SYNTAX("maclo %1, %2, %0"); | |
10074 | -#line 861 "rx-decode.opc" | |
10075 | - ID(maclo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13322 | + SYNTAX("revw %1, %0"); | |
13323 | +#line 781 "rx-decode.opc" | |
13324 | + ID(revw); SR(rsrc); DR(rdst); | |
10076 | 13325 | |
10077 | 13326 | } |
10078 | 13327 | break; |
10079 | 13328 | } |
10080 | 13329 | break; |
10081 | - case 0x06: | |
13330 | + case 0x66: | |
10082 | 13331 | GETBYTE (); |
10083 | 13332 | switch (op[2] & 0x00) |
10084 | 13333 | { |
10085 | 13334 | case 0x00: |
10086 | - op_semantics_81: | |
10087 | 13335 | { |
10088 | - /** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */ | |
10089 | -#line 1071 "rx-decode.opc" | |
10090 | - int a AU = (op[1] >> 3) & 0x01; | |
10091 | -#line 1071 "rx-decode.opc" | |
10092 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10093 | -#line 1071 "rx-decode.opc" | |
10094 | - int srcb AU = op[2] & 0x0f; | |
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; | |
10095 | 13341 | if (trace) |
10096 | 13342 | { |
10097 | 13343 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10098 | - "/** 1111 1101 0000 a110 srca srcb maclh %1, %2, %0 */", | |
13344 | + "/** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */", | |
10099 | 13345 | op[0], op[1], op[2]); |
10100 | - printf (" a = 0x%x,", a); | |
10101 | - printf (" srca = 0x%x,", srca); | |
10102 | - printf (" srcb = 0x%x\n", srcb); | |
13346 | + printf (" rsrc = 0x%x,", rsrc); | |
13347 | + printf (" rdst = 0x%x\n", rdst); | |
10103 | 13348 | } |
10104 | - SYNTAX("maclh %1, %2, %0"); | |
10105 | -#line 1071 "rx-decode.opc" | |
10106 | - ID(maclh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13349 | + SYNTAX("rotl %1, %0"); | |
13350 | +#line 772 "rx-decode.opc" | |
13351 | + ID(rotl); SR(rsrc); DR(rdst); F__SZC; | |
10107 | 13352 | |
10108 | 13353 | } |
10109 | 13354 | break; |
10110 | 13355 | } |
10111 | 13356 | break; |
10112 | - case 0x07: | |
13357 | + case 0x67: | |
10113 | 13358 | GETBYTE (); |
10114 | 13359 | switch (op[2] & 0x00) |
10115 | 13360 | { |
10116 | 13361 | case 0x00: |
10117 | - op_semantics_82: | |
10118 | 13362 | { |
10119 | - /** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */ | |
10120 | -#line 1062 "rx-decode.opc" | |
10121 | - int a AU = (op[1] >> 3) & 0x01; | |
10122 | -#line 1062 "rx-decode.opc" | |
10123 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10124 | -#line 1062 "rx-decode.opc" | |
10125 | - int srcb AU = op[2] & 0x0f; | |
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; | |
10126 | 13368 | if (trace) |
10127 | 13369 | { |
10128 | 13370 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10129 | - "/** 1111 1101 0000 a111 srca srcb emaca %1, %2, %0 */", | |
13371 | + "/** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */", | |
10130 | 13372 | op[0], op[1], op[2]); |
10131 | - printf (" a = 0x%x,", a); | |
10132 | - printf (" srca = 0x%x,", srca); | |
10133 | - printf (" srcb = 0x%x\n", srcb); | |
13373 | + printf (" rsrc = 0x%x,", rsrc); | |
13374 | + printf (" rdst = 0x%x\n", rdst); | |
10134 | 13375 | } |
10135 | - SYNTAX("emaca %1, %2, %0"); | |
10136 | -#line 1062 "rx-decode.opc" | |
10137 | - ID(emaca); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13376 | + SYNTAX("revl %1, %0"); | |
13377 | +#line 784 "rx-decode.opc" | |
13378 | + ID(revl); SR(rsrc); DR(rdst); | |
13379 | + | |
13380 | + /*----------------------------------------------------------------------*/ | |
13381 | + /* BRANCH */ | |
10138 | 13382 | |
10139 | 13383 | } |
10140 | 13384 | break; |
10141 | 13385 | } |
10142 | 13386 | break; |
10143 | - case 0x08: | |
13387 | + case 0x68: | |
10144 | 13388 | GETBYTE (); |
10145 | 13389 | switch (op[2] & 0x00) |
10146 | 13390 | { |
10147 | 13391 | case 0x00: |
10148 | - goto op_semantics_75; | |
13392 | + op_semantics_109: | |
13393 | + { | |
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; | |
13401 | + if (trace) | |
13402 | + { | |
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); | |
13409 | + } | |
13410 | + SYNTAX("mvtc %1, %0"); | |
13411 | +#line 1035 "rx-decode.opc" | |
13412 | + ID(mov); SR(rsrc); DR(c*16+rdst + 16); | |
13413 | + | |
13414 | + } | |
10149 | 13415 | break; |
10150 | 13416 | } |
10151 | 13417 | break; |
10152 | - case 0x09: | |
13418 | + case 0x69: | |
10153 | 13419 | GETBYTE (); |
10154 | 13420 | switch (op[2] & 0x00) |
10155 | 13421 | { |
10156 | 13422 | case 0x00: |
10157 | - goto op_semantics_76; | |
13423 | + goto op_semantics_109; | |
10158 | 13424 | break; |
10159 | 13425 | } |
10160 | 13426 | break; |
10161 | - case 0x0a: | |
13427 | + case 0x6a: | |
10162 | 13428 | GETBYTE (); |
10163 | 13429 | switch (op[2] & 0x00) |
10164 | 13430 | { |
10165 | 13431 | case 0x00: |
10166 | - goto op_semantics_77; | |
13432 | + op_semantics_110: | |
13433 | + { | |
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; | |
13441 | + if (trace) | |
13442 | + { | |
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); | |
13449 | + } | |
13450 | + SYNTAX("mvfc %1, %0"); | |
13451 | +#line 1038 "rx-decode.opc" | |
13452 | + ID(mov); SR((s*16+rsrc) + 16); DR(rdst); | |
13453 | + | |
13454 | + /*----------------------------------------------------------------------*/ | |
13455 | + /* INTERRUPTS */ | |
13456 | + | |
13457 | + } | |
10167 | 13458 | break; |
10168 | 13459 | } |
10169 | 13460 | break; |
10170 | - case 0x0b: | |
13461 | + case 0x6b: | |
10171 | 13462 | GETBYTE (); |
10172 | 13463 | switch (op[2] & 0x00) |
10173 | 13464 | { |
10174 | 13465 | case 0x00: |
10175 | - goto op_semantics_78; | |
13466 | + goto op_semantics_110; | |
10176 | 13467 | break; |
10177 | 13468 | } |
10178 | 13469 | break; |
10179 | - case 0x0c: | |
13470 | + case 0x6c: | |
10180 | 13471 | GETBYTE (); |
10181 | 13472 | switch (op[2] & 0x00) |
10182 | 13473 | { |
10183 | 13474 | case 0x00: |
10184 | - goto op_semantics_79; | |
13475 | + op_semantics_111: | |
13476 | + { | |
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; | |
13484 | + if (trace) | |
13485 | + { | |
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); | |
13492 | + } | |
13493 | + SYNTAX("rotr #%1, %0"); | |
13494 | +#line 775 "rx-decode.opc" | |
13495 | + ID(rotr); SC(i*16+mmmm); DR(rdst); F__SZC; | |
13496 | + | |
13497 | + } | |
10185 | 13498 | break; |
10186 | 13499 | } |
10187 | 13500 | break; |
10188 | - case 0x0d: | |
13501 | + case 0x6d: | |
10189 | 13502 | GETBYTE (); |
10190 | 13503 | switch (op[2] & 0x00) |
10191 | 13504 | { |
10192 | 13505 | case 0x00: |
10193 | - goto op_semantics_80; | |
13506 | + goto op_semantics_111; | |
10194 | 13507 | break; |
10195 | 13508 | } |
10196 | 13509 | break; |
10197 | - case 0x0e: | |
13510 | + case 0x6e: | |
10198 | 13511 | GETBYTE (); |
10199 | 13512 | switch (op[2] & 0x00) |
10200 | 13513 | { |
10201 | 13514 | case 0x00: |
10202 | - goto op_semantics_81; | |
13515 | + op_semantics_112: | |
13516 | + { | |
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; | |
13524 | + if (trace) | |
13525 | + { | |
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); | |
13532 | + } | |
13533 | + SYNTAX("rotl #%1, %0"); | |
13534 | +#line 769 "rx-decode.opc" | |
13535 | + ID(rotl); SC(i*16+mmmm); DR(rdst); F__SZC; | |
13536 | + | |
13537 | + } | |
10203 | 13538 | break; |
10204 | 13539 | } |
10205 | 13540 | break; |
10206 | - case 0x0f: | |
13541 | + case 0x6f: | |
10207 | 13542 | GETBYTE (); |
10208 | 13543 | switch (op[2] & 0x00) |
10209 | 13544 | { |
10210 | 13545 | case 0x00: |
10211 | - goto op_semantics_82; | |
13546 | + goto op_semantics_112; | |
10212 | 13547 | break; |
10213 | 13548 | } |
10214 | 13549 | break; |
10215 | - case 0x17: | |
13550 | + case 0x70: | |
10216 | 13551 | GETBYTE (); |
10217 | - switch (op[2] & 0x70) | |
13552 | + switch (op[2] & 0xf0) | |
10218 | 13553 | { |
10219 | - case 0x00: | |
13554 | + case 0x20: | |
13555 | + op_semantics_113: | |
10220 | 13556 | { |
10221 | - /** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */ | |
10222 | -#line 864 "rx-decode.opc" | |
10223 | - int a AU = (op[2] >> 7) & 0x01; | |
10224 | -#line 864 "rx-decode.opc" | |
10225 | - int rsrc AU = op[2] & 0x0f; | |
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; | |
10226 | 13562 | if (trace) |
10227 | 13563 | { |
10228 | 13564 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10229 | - "/** 1111 1101 0001 0111 a000 rsrc mvtachi %1, %0 */", | |
13565 | + "/** 1111 1101 0111 im00 0010rdst adc #%1, %0 */", | |
10230 | 13566 | op[0], op[1], op[2]); |
10231 | - printf (" a = 0x%x,", a); | |
10232 | - printf (" rsrc = 0x%x\n", rsrc); | |
13567 | + printf (" im = 0x%x,", im); | |
13568 | + printf (" rdst = 0x%x\n", rdst); | |
10233 | 13569 | } |
10234 | - SYNTAX("mvtachi %1, %0"); | |
10235 | -#line 864 "rx-decode.opc" | |
10236 | - ID(mvtachi); DR(a+32); SR(rsrc); F_____; | |
13570 | + SYNTAX("adc #%1, %0"); | |
13571 | +#line 513 "rx-decode.opc" | |
13572 | + ID(adc); SC(IMMex(im)); DR(rdst); F_OSZC; | |
10237 | 13573 | |
10238 | 13574 | } |
10239 | 13575 | break; |
10240 | - case 0x10: | |
13576 | + case 0x40: | |
13577 | + op_semantics_114: | |
10241 | 13578 | { |
10242 | - /** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */ | |
10243 | -#line 867 "rx-decode.opc" | |
10244 | - int a AU = (op[2] >> 7) & 0x01; | |
10245 | -#line 867 "rx-decode.opc" | |
10246 | - int rsrc AU = op[2] & 0x0f; | |
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; | |
10247 | 13584 | if (trace) |
10248 | 13585 | { |
10249 | 13586 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10250 | - "/** 1111 1101 0001 0111 a001 rsrc mvtaclo %1, %0 */", | |
13587 | + "/** 1111 1101 0111 im00 0100rdst max #%1, %0 */", | |
10251 | 13588 | op[0], op[1], op[2]); |
10252 | - printf (" a = 0x%x,", a); | |
10253 | - printf (" rsrc = 0x%x\n", rsrc); | |
13589 | + printf (" im = 0x%x,", im); | |
13590 | + printf (" rdst = 0x%x\n", rdst); | |
10254 | 13591 | } |
10255 | - SYNTAX("mvtaclo %1, %0"); | |
10256 | -#line 867 "rx-decode.opc" | |
10257 | - ID(mvtaclo); DR(a+32); SR(rsrc); F_____; | |
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) | |
13596 | + { | |
13597 | + ID (nop7); | |
13598 | + SYNTAX("nop\t; max\t#0x80000000, r0"); | |
13599 | + } | |
13600 | + else | |
13601 | + { | |
13602 | + ID(max); | |
13603 | + } | |
13604 | + DR(rdst); SC(val); | |
10258 | 13605 | |
10259 | 13606 | } |
10260 | 13607 | break; |
10261 | - case 0x30: | |
13608 | + case 0x50: | |
13609 | + op_semantics_115: | |
10262 | 13610 | { |
10263 | - /** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */ | |
10264 | -#line 1089 "rx-decode.opc" | |
10265 | - int a AU = (op[2] >> 7) & 0x01; | |
10266 | -#line 1089 "rx-decode.opc" | |
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" | |
10267 | 13615 | int rdst AU = op[2] & 0x0f; |
10268 | 13616 | if (trace) |
10269 | 13617 | { |
10270 | 13618 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10271 | - "/** 1111 1101 0001 0111 a011 rdst mvtacgu %0, %1 */", | |
13619 | + "/** 1111 1101 0111 im00 0101rdst min #%1, %0 */", | |
10272 | 13620 | op[0], op[1], op[2]); |
10273 | - printf (" a = 0x%x,", a); | |
13621 | + printf (" im = 0x%x,", im); | |
10274 | 13622 | printf (" rdst = 0x%x\n", rdst); |
10275 | 13623 | } |
10276 | - SYNTAX("mvtacgu %0, %1"); | |
10277 | -#line 1089 "rx-decode.opc" | |
10278 | - ID(mvtacgu); DR(a+32); SR(rdst); F_____; | |
13624 | + SYNTAX("min #%1, %0"); | |
13625 | +#line 625 "rx-decode.opc" | |
13626 | + ID(min); DR(rdst); SC(IMMex(im)); | |
10279 | 13627 | |
10280 | 13628 | } |
10281 | 13629 | break; |
10282 | - default: UNSUPPORTED(); break; | |
10283 | - } | |
10284 | - break; | |
10285 | - case 0x18: | |
10286 | - GETBYTE (); | |
10287 | - switch (op[2] & 0x6f) | |
10288 | - { | |
10289 | - case 0x00: | |
13630 | + case 0x60: | |
13631 | + op_semantics_116: | |
10290 | 13632 | { |
10291 | - /** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */ | |
10292 | -#line 879 "rx-decode.opc" | |
10293 | - int a AU = (op[2] >> 7) & 0x01; | |
10294 | -#line 879 "rx-decode.opc" | |
10295 | - int i AU = (op[2] >> 4) & 0x01; | |
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; | |
10296 | 13638 | if (trace) |
10297 | 13639 | { |
10298 | 13640 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10299 | - "/** 1111 1101 0001 1000 a00i 0000 racw #%1, %0 */", | |
13641 | + "/** 1111 1101 0111 im00 0110rdst emul #%1, %0 */", | |
10300 | 13642 | op[0], op[1], op[2]); |
10301 | - printf (" a = 0x%x,", a); | |
10302 | - printf (" i = 0x%x\n", i); | |
13643 | + printf (" im = 0x%x,", im); | |
13644 | + printf (" rdst = 0x%x\n", rdst); | |
10303 | 13645 | } |
10304 | - SYNTAX("racw #%1, %0"); | |
10305 | -#line 879 "rx-decode.opc" | |
10306 | - ID(racw); SC(i+1); DR(a+32); F_____; | |
10307 | - | |
10308 | - /*----------------------------------------------------------------------*/ | |
10309 | - /* SAT */ | |
13646 | + SYNTAX("emul #%1, %0"); | |
13647 | +#line 683 "rx-decode.opc" | |
13648 | + ID(emul); DR(rdst); SC(IMMex(im)); | |
10310 | 13649 | |
10311 | 13650 | } |
10312 | 13651 | break; |
10313 | - case 0x40: | |
13652 | + case 0x70: | |
13653 | + op_semantics_117: | |
10314 | 13654 | { |
10315 | - /** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */ | |
10316 | -#line 1098 "rx-decode.opc" | |
10317 | - int a AU = (op[2] >> 7) & 0x01; | |
10318 | -#line 1098 "rx-decode.opc" | |
10319 | - int i AU = (op[2] >> 4) & 0x01; | |
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; | |
10320 | 13660 | if (trace) |
10321 | 13661 | { |
10322 | 13662 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10323 | - "/** 1111 1101 0001 1000 a10i 0000 rdacw #%1, %0 */", | |
13663 | + "/** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */", | |
10324 | 13664 | op[0], op[1], op[2]); |
10325 | - printf (" a = 0x%x,", a); | |
10326 | - printf (" i = 0x%x\n", i); | |
13665 | + printf (" im = 0x%x,", im); | |
13666 | + printf (" rdst = 0x%x\n", rdst); | |
10327 | 13667 | } |
10328 | - SYNTAX("rdacw #%1, %0"); | |
10329 | -#line 1098 "rx-decode.opc" | |
10330 | - ID(rdacw); SC(i+1); DR(a+32); F_____; | |
13668 | + SYNTAX("emulu #%1, %0"); | |
13669 | +#line 695 "rx-decode.opc" | |
13670 | + ID(emulu); DR(rdst); SC(IMMex(im)); | |
10331 | 13671 | |
10332 | 13672 | } |
10333 | 13673 | break; |
10334 | - default: UNSUPPORTED(); break; | |
10335 | - } | |
10336 | - break; | |
10337 | - case 0x19: | |
10338 | - GETBYTE (); | |
10339 | - switch (op[2] & 0x6f) | |
10340 | - { | |
10341 | - case 0x00: | |
13674 | + case 0x80: | |
13675 | + op_semantics_118: | |
10342 | 13676 | { |
10343 | - /** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */ | |
10344 | -#line 1092 "rx-decode.opc" | |
10345 | - int a AU = (op[2] >> 7) & 0x01; | |
10346 | -#line 1092 "rx-decode.opc" | |
10347 | - int i AU = (op[2] >> 4) & 0x01; | |
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; | |
10348 | 13682 | if (trace) |
10349 | 13683 | { |
10350 | 13684 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10351 | - "/** 1111 1101 0001 1001 a00i 0000 racl #%1, %0 */", | |
13685 | + "/** 1111 1101 0111 im00 1000rdst div #%1, %0 */", | |
10352 | 13686 | op[0], op[1], op[2]); |
10353 | - printf (" a = 0x%x,", a); | |
10354 | - printf (" i = 0x%x\n", i); | |
13687 | + printf (" im = 0x%x,", im); | |
13688 | + printf (" rdst = 0x%x\n", rdst); | |
10355 | 13689 | } |
10356 | - SYNTAX("racl #%1, %0"); | |
10357 | -#line 1092 "rx-decode.opc" | |
10358 | - ID(racl); SC(i+1); DR(a+32); F_____; | |
13690 | + SYNTAX("div #%1, %0"); | |
13691 | +#line 707 "rx-decode.opc" | |
13692 | + ID(div); DR(rdst); SC(IMMex(im)); F_O___; | |
10359 | 13693 | |
10360 | 13694 | } |
10361 | 13695 | break; |
10362 | - case 0x40: | |
13696 | + case 0x90: | |
13697 | + op_semantics_119: | |
10363 | 13698 | { |
10364 | - /** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */ | |
10365 | -#line 1095 "rx-decode.opc" | |
10366 | - int a AU = (op[2] >> 7) & 0x01; | |
10367 | -#line 1095 "rx-decode.opc" | |
10368 | - int i AU = (op[2] >> 4) & 0x01; | |
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; | |
10369 | 13704 | if (trace) |
10370 | 13705 | { |
10371 | 13706 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10372 | - "/** 1111 1101 0001 1001 a10i 0000 rdacl #%1, %0 */", | |
13707 | + "/** 1111 1101 0111 im00 1001rdst divu #%1, %0 */", | |
10373 | 13708 | op[0], op[1], op[2]); |
10374 | - printf (" a = 0x%x,", a); | |
10375 | - printf (" i = 0x%x\n", i); | |
13709 | + printf (" im = 0x%x,", im); | |
13710 | + printf (" rdst = 0x%x\n", rdst); | |
10376 | 13711 | } |
10377 | - SYNTAX("rdacl #%1, %0"); | |
10378 | -#line 1095 "rx-decode.opc" | |
10379 | - ID(rdacl); SC(i+1); DR(a+32); F_____; | |
13712 | + SYNTAX("divu #%1, %0"); | |
13713 | +#line 719 "rx-decode.opc" | |
13714 | + ID(divu); DR(rdst); SC(IMMex(im)); F_O___; | |
10380 | 13715 | |
10381 | 13716 | } |
10382 | 13717 | break; |
10383 | - default: UNSUPPORTED(); break; | |
10384 | - } | |
10385 | - break; | |
10386 | - case 0x1e: | |
10387 | - GETBYTE (); | |
10388 | - switch (op[2] & 0x30) | |
10389 | - { | |
10390 | - case 0x00: | |
10391 | - op_semantics_83: | |
13718 | + case 0xc0: | |
13719 | + op_semantics_120: | |
10392 | 13720 | { |
10393 | - /** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */ | |
10394 | -#line 870 "rx-decode.opc" | |
10395 | - int i AU = op[1] & 0x01; | |
10396 | -#line 870 "rx-decode.opc" | |
10397 | - int a AU = (op[2] >> 7) & 0x01; | |
10398 | -#line 870 "rx-decode.opc" | |
10399 | - int m AU = (op[2] >> 6) & 0x01; | |
10400 | -#line 870 "rx-decode.opc" | |
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" | |
10401 | 13725 | int rdst AU = op[2] & 0x0f; |
10402 | 13726 | if (trace) |
10403 | 13727 | { |
10404 | 13728 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10405 | - "/** 1111 1101 0001 111i a m00 rdst mvfachi #%2, %1, %0 */", | |
13729 | + "/** 1111 1101 0111 im00 1100rdst tst #%1, %2 */", | |
10406 | 13730 | op[0], op[1], op[2]); |
10407 | - printf (" i = 0x%x,", i); | |
10408 | - printf (" a = 0x%x,", a); | |
10409 | - printf (" m = 0x%x,", m); | |
13731 | + printf (" im = 0x%x,", im); | |
10410 | 13732 | printf (" rdst = 0x%x\n", rdst); |
10411 | 13733 | } |
10412 | - SYNTAX("mvfachi #%2, %1, %0"); | |
10413 | -#line 870 "rx-decode.opc" | |
10414 | - ID(mvfachi); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____; | |
13734 | + SYNTAX("tst #%1, %2"); | |
13735 | +#line 492 "rx-decode.opc" | |
13736 | + ID(and); SC(IMMex(im)); S2R(rdst); F__SZ_; | |
10415 | 13737 | |
10416 | 13738 | } |
10417 | 13739 | break; |
10418 | - case 0x10: | |
10419 | - op_semantics_84: | |
13740 | + case 0xd0: | |
13741 | + op_semantics_121: | |
10420 | 13742 | { |
10421 | - /** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */ | |
10422 | -#line 876 "rx-decode.opc" | |
10423 | - int i AU = op[1] & 0x01; | |
10424 | -#line 876 "rx-decode.opc" | |
10425 | - int a AU = (op[2] >> 7) & 0x01; | |
10426 | -#line 876 "rx-decode.opc" | |
10427 | - int m AU = (op[2] >> 6) & 0x01; | |
10428 | -#line 876 "rx-decode.opc" | |
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" | |
10429 | 13747 | int rdst AU = op[2] & 0x0f; |
10430 | 13748 | if (trace) |
10431 | 13749 | { |
10432 | 13750 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10433 | - "/** 1111 1101 0001 111i a m01 rdst mvfaclo #%2, %1, %0 */", | |
13751 | + "/** 1111 1101 0111 im00 1101rdst xor #%1, %0 */", | |
10434 | 13752 | op[0], op[1], op[2]); |
10435 | - printf (" i = 0x%x,", i); | |
10436 | - printf (" a = 0x%x,", a); | |
10437 | - printf (" m = 0x%x,", m); | |
13753 | + printf (" im = 0x%x,", im); | |
10438 | 13754 | printf (" rdst = 0x%x\n", rdst); |
10439 | 13755 | } |
10440 | - SYNTAX("mvfaclo #%2, %1, %0"); | |
10441 | -#line 876 "rx-decode.opc" | |
10442 | - ID(mvfaclo); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____; | |
13756 | + SYNTAX("xor #%1, %0"); | |
13757 | +#line 471 "rx-decode.opc" | |
13758 | + ID(xor); SC(IMMex(im)); DR(rdst); F__SZ_; | |
10443 | 13759 | |
10444 | 13760 | } |
10445 | 13761 | break; |
10446 | - case 0x20: | |
10447 | - op_semantics_85: | |
13762 | + case 0xe0: | |
13763 | + op_semantics_122: | |
10448 | 13764 | { |
10449 | - /** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */ | |
10450 | -#line 873 "rx-decode.opc" | |
10451 | - int i AU = op[1] & 0x01; | |
10452 | -#line 873 "rx-decode.opc" | |
10453 | - int a AU = (op[2] >> 7) & 0x01; | |
10454 | -#line 873 "rx-decode.opc" | |
10455 | - int m AU = (op[2] >> 6) & 0x01; | |
10456 | -#line 873 "rx-decode.opc" | |
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" | |
10457 | 13769 | int rdst AU = op[2] & 0x0f; |
10458 | 13770 | if (trace) |
10459 | 13771 | { |
10460 | 13772 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10461 | - "/** 1111 1101 0001 111i a m10 rdst mvfacmi #%2, %1, %0 */", | |
13773 | + "/** 1111 1101 0111 im00 1110rdst stz #%1, %0 */", | |
10462 | 13774 | op[0], op[1], op[2]); |
10463 | - printf (" i = 0x%x,", i); | |
10464 | - printf (" a = 0x%x,", a); | |
10465 | - printf (" m = 0x%x,", m); | |
13775 | + printf (" im = 0x%x,", im); | |
10466 | 13776 | printf (" rdst = 0x%x\n", rdst); |
10467 | 13777 | } |
10468 | - SYNTAX("mvfacmi #%2, %1, %0"); | |
10469 | -#line 873 "rx-decode.opc" | |
10470 | - ID(mvfacmi); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____; | |
13778 | + SYNTAX("stz #%1, %0"); | |
13779 | +#line 417 "rx-decode.opc" | |
13780 | + ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_z); | |
10471 | 13781 | |
10472 | 13782 | } |
10473 | 13783 | break; |
10474 | - case 0x30: | |
10475 | - op_semantics_86: | |
13784 | + case 0xf0: | |
13785 | + op_semantics_123: | |
10476 | 13786 | { |
10477 | - /** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */ | |
10478 | -#line 1086 "rx-decode.opc" | |
10479 | - int i AU = op[1] & 0x01; | |
10480 | -#line 1086 "rx-decode.opc" | |
10481 | - int a AU = (op[2] >> 7) & 0x01; | |
10482 | -#line 1086 "rx-decode.opc" | |
10483 | - int m AU = (op[2] >> 6) & 0x01; | |
10484 | -#line 1086 "rx-decode.opc" | |
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" | |
10485 | 13791 | int rdst AU = op[2] & 0x0f; |
10486 | 13792 | if (trace) |
10487 | 13793 | { |
10488 | 13794 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10489 | - "/** 1111 1101 0001 111i a m11 rdst mvfacgu #%2, %1, %0 */", | |
13795 | + "/** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */", | |
10490 | 13796 | op[0], op[1], op[2]); |
10491 | - printf (" i = 0x%x,", i); | |
10492 | - printf (" a = 0x%x,", a); | |
10493 | - printf (" m = 0x%x,", m); | |
13797 | + printf (" im = 0x%x,", im); | |
10494 | 13798 | printf (" rdst = 0x%x\n", rdst); |
10495 | 13799 | } |
10496 | - SYNTAX("mvfacgu #%2, %1, %0"); | |
10497 | -#line 1086 "rx-decode.opc" | |
10498 | - ID(mvfacgu); S2C(((i^1)<<1)|m); SR(a+32); DR(rdst); F_____; | |
13800 | + SYNTAX("stnz #%1, %0"); | |
13801 | +#line 420 "rx-decode.opc" | |
13802 | + ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_nz); | |
13803 | + | |
13804 | + /*----------------------------------------------------------------------*/ | |
13805 | + /* RTSD */ | |
10499 | 13806 | |
10500 | 13807 | } |
10501 | 13808 | break; |
13809 | + default: UNSUPPORTED(); break; | |
10502 | 13810 | } |
10503 | 13811 | break; |
10504 | - case 0x1f: | |
13812 | + case 0x72: | |
10505 | 13813 | GETBYTE (); |
10506 | - switch (op[2] & 0x30) | |
13814 | + switch (op[2] & 0xf0) | |
10507 | 13815 | { |
10508 | 13816 | case 0x00: |
10509 | - goto op_semantics_83; | |
13817 | + { | |
13818 | + /** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */ | |
13819 | +#line 927 "rx-decode.opc" | |
13820 | + int rdst AU = op[2] & 0x0f; | |
13821 | + if (trace) | |
13822 | + { | |
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); | |
13827 | + } | |
13828 | + SYNTAX("fsub #%1, %0"); | |
13829 | +#line 927 "rx-decode.opc" | |
13830 | + ID(fsub); DR(rdst); SC(IMM(0)); F__SZ_; | |
13831 | + | |
13832 | + } | |
10510 | 13833 | break; |
10511 | 13834 | case 0x10: |
10512 | - goto op_semantics_84; | |
10513 | - break; | |
10514 | - case 0x20: | |
10515 | - goto op_semantics_85; | |
10516 | - break; | |
10517 | - case 0x30: | |
10518 | - goto op_semantics_86; | |
10519 | - break; | |
10520 | - } | |
10521 | - break; | |
10522 | - case 0x20: | |
10523 | - GETBYTE (); | |
10524 | - switch (op[2] & 0x00) | |
10525 | - { | |
10526 | - case 0x00: | |
10527 | - op_semantics_87: | |
10528 | 13835 | { |
10529 | - /** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */ | |
10530 | -#line 348 "rx-decode.opc" | |
10531 | - int p AU = (op[1] >> 2) & 0x01; | |
10532 | -#line 348 "rx-decode.opc" | |
10533 | - int sz AU = op[1] & 0x03; | |
10534 | -#line 348 "rx-decode.opc" | |
10535 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
10536 | -#line 348 "rx-decode.opc" | |
10537 | - int rsrc AU = op[2] & 0x0f; | |
13836 | + /** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */ | |
13837 | +#line 921 "rx-decode.opc" | |
13838 | + int rdst AU = op[2] & 0x0f; | |
10538 | 13839 | if (trace) |
10539 | 13840 | { |
10540 | 13841 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10541 | - "/** 1111 1101 0010 0p sz rdst rsrc mov%s %1, %0 */", | |
13842 | + "/** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */", | |
10542 | 13843 | op[0], op[1], op[2]); |
10543 | - printf (" p = 0x%x,", p); | |
10544 | - printf (" sz = 0x%x,", sz); | |
10545 | - printf (" rdst = 0x%x,", rdst); | |
10546 | - printf (" rsrc = 0x%x\n", rsrc); | |
13844 | + printf (" rdst = 0x%x\n", rdst); | |
10547 | 13845 | } |
10548 | - SYNTAX("mov%s %1, %0"); | |
10549 | -#line 348 "rx-decode.opc" | |
10550 | - ID(mov); sBWL (sz); SR(rsrc); F_____; | |
10551 | - OP(0, p ? RX_Operand_Predec : RX_Operand_Postinc, rdst, 0); | |
13846 | + SYNTAX("fcmp #%1, %0"); | |
13847 | +#line 921 "rx-decode.opc" | |
13848 | + ID(fcmp); DR(rdst); SC(IMM(0)); F_OSZ_; | |
10552 | 13849 | |
10553 | 13850 | } |
10554 | 13851 | break; |
10555 | - } | |
10556 | - break; | |
10557 | - case 0x21: | |
10558 | - GETBYTE (); | |
10559 | - switch (op[2] & 0x00) | |
10560 | - { | |
10561 | - case 0x00: | |
10562 | - goto op_semantics_87; | |
10563 | - break; | |
10564 | - } | |
10565 | - break; | |
10566 | - case 0x22: | |
10567 | - GETBYTE (); | |
10568 | - switch (op[2] & 0x00) | |
10569 | - { | |
10570 | - case 0x00: | |
10571 | - goto op_semantics_87; | |
10572 | - break; | |
10573 | - } | |
10574 | - break; | |
10575 | - case 0x24: | |
10576 | - GETBYTE (); | |
10577 | - switch (op[2] & 0x00) | |
10578 | - { | |
10579 | - case 0x00: | |
10580 | - goto op_semantics_87; | |
10581 | - break; | |
10582 | - } | |
10583 | - break; | |
10584 | - case 0x25: | |
10585 | - GETBYTE (); | |
10586 | - switch (op[2] & 0x00) | |
10587 | - { | |
10588 | - case 0x00: | |
10589 | - goto op_semantics_87; | |
10590 | - break; | |
10591 | - } | |
10592 | - break; | |
10593 | - case 0x26: | |
10594 | - GETBYTE (); | |
10595 | - switch (op[2] & 0x00) | |
10596 | - { | |
10597 | - case 0x00: | |
10598 | - goto op_semantics_87; | |
10599 | - break; | |
10600 | - } | |
10601 | - break; | |
10602 | - case 0x27: | |
10603 | - GETBYTE (); | |
10604 | - switch (op[2] & 0x00) | |
10605 | - { | |
10606 | - case 0x00: | |
13852 | + case 0x20: | |
10607 | 13853 | { |
10608 | - /** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */ | |
10609 | -#line 1050 "rx-decode.opc" | |
10610 | - int rdst AU = (op[2] >> 4) & 0x0f; | |
10611 | -#line 1050 "rx-decode.opc" | |
10612 | - int rsrc AU = op[2] & 0x0f; | |
13854 | + /** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */ | |
13855 | +#line 915 "rx-decode.opc" | |
13856 | + int rdst AU = op[2] & 0x0f; | |
10613 | 13857 | if (trace) |
10614 | 13858 | { |
10615 | 13859 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10616 | - "/** 1111 1101 0010 0111 rdst rsrc movco %1, [%0] */", | |
13860 | + "/** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */", | |
10617 | 13861 | op[0], op[1], op[2]); |
10618 | - printf (" rdst = 0x%x,", rdst); | |
10619 | - printf (" rsrc = 0x%x\n", rsrc); | |
13862 | + printf (" rdst = 0x%x\n", rdst); | |
10620 | 13863 | } |
10621 | - SYNTAX("movco %1, [%0]"); | |
10622 | -#line 1050 "rx-decode.opc" | |
10623 | - ID(movco); SR(rsrc); DR(rdst); F_____; | |
13864 | + SYNTAX("fadd #%1, %0"); | |
13865 | +#line 915 "rx-decode.opc" | |
13866 | + ID(fadd); DR(rdst); SC(IMM(0)); F__SZ_; | |
10624 | 13867 | |
10625 | 13868 | } |
10626 | 13869 | break; |
10627 | - } | |
10628 | - break; | |
10629 | - case 0x28: | |
10630 | - GETBYTE (); | |
10631 | - switch (op[2] & 0x00) | |
10632 | - { | |
10633 | - case 0x00: | |
10634 | - op_semantics_88: | |
13870 | + case 0x30: | |
10635 | 13871 | { |
10636 | - /** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */ | |
10637 | -#line 352 "rx-decode.opc" | |
10638 | - int p AU = (op[1] >> 2) & 0x01; | |
10639 | -#line 352 "rx-decode.opc" | |
10640 | - int sz AU = op[1] & 0x03; | |
10641 | -#line 352 "rx-decode.opc" | |
10642 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
10643 | -#line 352 "rx-decode.opc" | |
13872 | + /** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */ | |
13873 | +#line 936 "rx-decode.opc" | |
10644 | 13874 | int rdst AU = op[2] & 0x0f; |
10645 | 13875 | if (trace) |
10646 | 13876 | { |
10647 | 13877 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10648 | - "/** 1111 1101 0010 1p sz rsrc rdst mov%s %1, %0 */", | |
13878 | + "/** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */", | |
10649 | 13879 | op[0], op[1], op[2]); |
10650 | - printf (" p = 0x%x,", p); | |
10651 | - printf (" sz = 0x%x,", sz); | |
10652 | - printf (" rsrc = 0x%x,", rsrc); | |
10653 | 13880 | printf (" rdst = 0x%x\n", rdst); |
10654 | 13881 | } |
10655 | - SYNTAX("mov%s %1, %0"); | |
10656 | -#line 352 "rx-decode.opc" | |
10657 | - ID(mov); sBWL (sz); DR(rdst); F_____; | |
10658 | - OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0); | |
13882 | + SYNTAX("fmul #%1, %0"); | |
13883 | +#line 936 "rx-decode.opc" | |
13884 | + ID(fmul); DR(rdst); SC(IMM(0)); F__SZ_; | |
10659 | 13885 | |
10660 | 13886 | } |
10661 | 13887 | break; |
10662 | - } | |
10663 | - break; | |
10664 | - case 0x29: | |
10665 | - GETBYTE (); | |
10666 | - switch (op[2] & 0x00) | |
10667 | - { | |
10668 | - case 0x00: | |
10669 | - goto op_semantics_88; | |
10670 | - break; | |
10671 | - } | |
10672 | - break; | |
10673 | - case 0x2a: | |
10674 | - GETBYTE (); | |
10675 | - switch (op[2] & 0x00) | |
10676 | - { | |
10677 | - case 0x00: | |
10678 | - goto op_semantics_88; | |
10679 | - break; | |
10680 | - } | |
10681 | - break; | |
10682 | - case 0x2c: | |
10683 | - GETBYTE (); | |
10684 | - switch (op[2] & 0x00) | |
10685 | - { | |
10686 | - case 0x00: | |
10687 | - goto op_semantics_88; | |
10688 | - break; | |
10689 | - } | |
10690 | - break; | |
10691 | - case 0x2d: | |
10692 | - GETBYTE (); | |
10693 | - switch (op[2] & 0x00) | |
10694 | - { | |
10695 | - case 0x00: | |
10696 | - goto op_semantics_88; | |
10697 | - break; | |
10698 | - } | |
10699 | - break; | |
10700 | - case 0x2e: | |
10701 | - GETBYTE (); | |
10702 | - switch (op[2] & 0x00) | |
10703 | - { | |
10704 | - case 0x00: | |
10705 | - goto op_semantics_88; | |
10706 | - break; | |
10707 | - } | |
10708 | - break; | |
10709 | - case 0x2f: | |
10710 | - GETBYTE (); | |
10711 | - switch (op[2] & 0x00) | |
10712 | - { | |
10713 | - case 0x00: | |
13888 | + case 0x40: | |
10714 | 13889 | { |
10715 | - /** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */ | |
10716 | -#line 1053 "rx-decode.opc" | |
10717 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
10718 | -#line 1053 "rx-decode.opc" | |
13890 | + /** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */ | |
13891 | +#line 942 "rx-decode.opc" | |
10719 | 13892 | int rdst AU = op[2] & 0x0f; |
10720 | 13893 | if (trace) |
10721 | 13894 | { |
10722 | 13895 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10723 | - "/** 1111 1101 0010 1111 rsrc rdst movli [%1], %0 */", | |
13896 | + "/** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */", | |
10724 | 13897 | op[0], op[1], op[2]); |
10725 | - printf (" rsrc = 0x%x,", rsrc); | |
10726 | 13898 | printf (" rdst = 0x%x\n", rdst); |
10727 | 13899 | } |
10728 | - SYNTAX("movli [%1], %0"); | |
10729 | -#line 1053 "rx-decode.opc" | |
10730 | - ID(movli); SR(rsrc); DR(rdst); F_____; | |
13900 | + SYNTAX("fdiv #%1, %0"); | |
13901 | +#line 942 "rx-decode.opc" | |
13902 | + ID(fdiv); DR(rdst); SC(IMM(0)); F__SZ_; | |
10731 | 13903 | |
10732 | 13904 | } |
10733 | 13905 | break; |
13906 | + default: UNSUPPORTED(); break; | |
10734 | 13907 | } |
10735 | 13908 | break; |
10736 | - case 0x38: | |
13909 | + case 0x73: | |
10737 | 13910 | GETBYTE (); |
10738 | - switch (op[2] & 0x00) | |
13911 | + switch (op[2] & 0xe0) | |
10739 | 13912 | { |
10740 | 13913 | case 0x00: |
10741 | - op_semantics_89: | |
13914 | + op_semantics_124: | |
10742 | 13915 | { |
10743 | - /** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */ | |
10744 | -#line 362 "rx-decode.opc" | |
10745 | - int p AU = (op[1] >> 2) & 0x01; | |
10746 | -#line 362 "rx-decode.opc" | |
10747 | - int sz AU = op[1] & 0x03; | |
10748 | -#line 362 "rx-decode.opc" | |
10749 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
10750 | -#line 362 "rx-decode.opc" | |
10751 | - int rdst AU = op[2] & 0x0f; | |
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; | |
10752 | 13921 | if (trace) |
10753 | 13922 | { |
10754 | 13923 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
10755 | - "/** 1111 1101 0011 1p sz rsrc rdst movu%s %1, %0 */", | |
13924 | + "/** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */", | |
10756 | 13925 | op[0], op[1], op[2]); |
10757 | - printf (" p = 0x%x,", p); | |
10758 | - printf (" sz = 0x%x,", sz); | |
10759 | - printf (" rsrc = 0x%x,", rsrc); | |
10760 | - printf (" rdst = 0x%x\n", rdst); | |
13926 | + printf (" im = 0x%x,", im); | |
13927 | + printf (" crdst = 0x%x\n", crdst); | |
10761 | 13928 | } |
10762 | - SYNTAX("movu%s %1, %0"); | |
10763 | -#line 362 "rx-decode.opc" | |
10764 | - ID(mov); uBW (sz); DR(rdst); F_____; | |
10765 | - OP(1, p ? RX_Operand_Predec : RX_Operand_Postinc, rsrc, 0); | |
10766 | - | |
10767 | - /*----------------------------------------------------------------------*/ | |
10768 | - /* PUSH/POP */ | |
13929 | + SYNTAX("mvtc #%1, %0"); | |
13930 | +#line 1032 "rx-decode.opc" | |
13931 | + ID(mov); SC(IMMex(im)); DR(crdst + 16); | |
10769 | 13932 | |
10770 | 13933 | } |
10771 | 13934 | break; |
13935 | + default: UNSUPPORTED(); break; | |
10772 | 13936 | } |
10773 | 13937 | break; |
10774 | - case 0x39: | |
13938 | + case 0x74: | |
10775 | 13939 | GETBYTE (); |
10776 | - switch (op[2] & 0x00) | |
13940 | + switch (op[2] & 0xf0) | |
10777 | 13941 | { |
10778 | - case 0x00: | |
10779 | - goto op_semantics_89; | |
13942 | + case 0x20: | |
13943 | + goto op_semantics_113; | |
10780 | 13944 | break; |
10781 | - } | |
10782 | - break; | |
10783 | - case 0x3a: | |
10784 | - GETBYTE (); | |
10785 | - switch (op[2] & 0x00) | |
10786 | - { | |
10787 | - case 0x00: | |
10788 | - goto op_semantics_89; | |
13945 | + case 0x40: | |
13946 | + goto op_semantics_114; | |
10789 | 13947 | break; |
10790 | - } | |
10791 | - break; | |
10792 | - case 0x3c: | |
10793 | - GETBYTE (); | |
10794 | - switch (op[2] & 0x00) | |
10795 | - { | |
10796 | - case 0x00: | |
10797 | - goto op_semantics_89; | |
13948 | + case 0x50: | |
13949 | + goto op_semantics_115; | |
10798 | 13950 | break; |
10799 | - } | |
10800 | - break; | |
10801 | - case 0x3d: | |
10802 | - GETBYTE (); | |
10803 | - switch (op[2] & 0x00) | |
10804 | - { | |
10805 | - case 0x00: | |
10806 | - goto op_semantics_89; | |
13951 | + case 0x60: | |
13952 | + goto op_semantics_116; | |
10807 | 13953 | break; |
10808 | - } | |
10809 | - break; | |
10810 | - case 0x3e: | |
10811 | - GETBYTE (); | |
10812 | - switch (op[2] & 0x00) | |
10813 | - { | |
10814 | - case 0x00: | |
10815 | - goto op_semantics_89; | |
13954 | + case 0x70: | |
13955 | + goto op_semantics_117; | |
13956 | + break; | |
13957 | + case 0x80: | |
13958 | + goto op_semantics_118; | |
13959 | + break; | |
13960 | + case 0x90: | |
13961 | + goto op_semantics_119; | |
13962 | + break; | |
13963 | + case 0xc0: | |
13964 | + goto op_semantics_120; | |
13965 | + break; | |
13966 | + case 0xd0: | |
13967 | + goto op_semantics_121; | |
13968 | + break; | |
13969 | + case 0xe0: | |
13970 | + goto op_semantics_122; | |
10816 | 13971 | break; |
13972 | + case 0xf0: | |
13973 | + goto op_semantics_123; | |
13974 | + break; | |
13975 | + default: UNSUPPORTED(); break; | |
10817 | 13976 | } |
10818 | 13977 | break; |
10819 | - case 0x44: | |
13978 | + case 0x75: | |
10820 | 13979 | GETBYTE (); |
10821 | - switch (op[2] & 0x00) | |
13980 | + switch (op[2] & 0xff) | |
10822 | 13981 | { |
10823 | - case 0x00: | |
10824 | - op_semantics_90: | |
13982 | + case 0x80: | |
13983 | + GETBYTE (); | |
13984 | + switch (op[3] & 0x0f) | |
10825 | 13985 | { |
10826 | - /** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */ | |
10827 | -#line 1074 "rx-decode.opc" | |
10828 | - int a AU = (op[1] >> 3) & 0x01; | |
10829 | -#line 1074 "rx-decode.opc" | |
10830 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10831 | -#line 1074 "rx-decode.opc" | |
10832 | - int srcb AU = op[2] & 0x0f; | |
10833 | - if (trace) | |
10834 | - { | |
10835 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
10836 | - "/** 1111 1101 0100 a100 srca srcb msbhi %1, %2, %0 */", | |
10837 | - op[0], op[1], op[2]); | |
10838 | - printf (" a = 0x%x,", a); | |
10839 | - printf (" srca = 0x%x,", srca); | |
10840 | - printf (" srcb = 0x%x\n", srcb); | |
10841 | - } | |
10842 | - SYNTAX("msbhi %1, %2, %0"); | |
10843 | -#line 1074 "rx-decode.opc" | |
10844 | - ID(msbhi); DR(a+32); SR(srca); S2R(srcb); F_____; | |
13986 | + case 0x00: | |
13987 | + op_semantics_125: | |
13988 | + { | |
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; | |
13994 | + if (trace) | |
13995 | + { | |
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); | |
14001 | + } | |
14002 | + SYNTAX("dmov.l %1, %0"); | |
14003 | +#line 1176 "rx-decode.opc" | |
14004 | + ID(dmov); DR(rdst); SDRL(rsrc); F_____; | |
14005 | + | |
14006 | + } | |
14007 | + break; | |
14008 | + case 0x02: | |
14009 | + op_semantics_126: | |
14010 | + { | |
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; | |
14016 | + if (trace) | |
14017 | + { | |
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); | |
14023 | + } | |
14024 | + SYNTAX("dmov.l %1, %0"); | |
14025 | +#line 1173 "rx-decode.opc" | |
14026 | + ID(dmov); DR(rdst); SDRH(rsrc); F_____; | |
10845 | 14027 | |
14028 | + } | |
14029 | + break; | |
14030 | + case 0x04: | |
14031 | + op_semantics_127: | |
14032 | + { | |
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; | |
14038 | + if (trace) | |
14039 | + { | |
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); | |
14045 | + } | |
14046 | + SYNTAX("mvfdc %1, %0"); | |
14047 | +#line 1226 "rx-decode.opc" | |
14048 | + ID(mvfdc); DR(rdst); SCR(rsrc); F_____; | |
14049 | + | |
14050 | + } | |
14051 | + break; | |
14052 | + default: UNSUPPORTED(); break; | |
10846 | 14053 | } |
10847 | 14054 | break; |
10848 | - } | |
10849 | - break; | |
10850 | - case 0x45: | |
10851 | - GETBYTE (); | |
10852 | - switch (op[2] & 0x00) | |
10853 | - { | |
10854 | - case 0x00: | |
10855 | - op_semantics_91: | |
14055 | + case 0x81: | |
14056 | + GETBYTE (); | |
14057 | + switch (op[3] & 0x0f) | |
10856 | 14058 | { |
10857 | - /** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */ | |
10858 | -#line 1080 "rx-decode.opc" | |
10859 | - int a AU = (op[1] >> 3) & 0x01; | |
10860 | -#line 1080 "rx-decode.opc" | |
10861 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10862 | -#line 1080 "rx-decode.opc" | |
10863 | - int srcb AU = op[2] & 0x0f; | |
10864 | - if (trace) | |
10865 | - { | |
10866 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
10867 | - "/** 1111 1101 0100 a101 srca srcb msblo %1, %2, %0 */", | |
10868 | - op[0], op[1], op[2]); | |
10869 | - printf (" a = 0x%x,", a); | |
10870 | - printf (" srca = 0x%x,", srca); | |
10871 | - printf (" srcb = 0x%x\n", srcb); | |
10872 | - } | |
10873 | - SYNTAX("msblo %1, %2, %0"); | |
10874 | -#line 1080 "rx-decode.opc" | |
10875 | - ID(msblo); DR(a+32); SR(srca); S2R(srcb); F_____; | |
10876 | - | |
14059 | + case 0x00: | |
14060 | + goto op_semantics_125; | |
14061 | + break; | |
14062 | + case 0x02: | |
14063 | + goto op_semantics_126; | |
14064 | + break; | |
14065 | + case 0x04: | |
14066 | + goto op_semantics_127; | |
14067 | + break; | |
14068 | + default: UNSUPPORTED(); break; | |
14069 | + } | |
14070 | + break; | |
14071 | + case 0x82: | |
14072 | + GETBYTE (); | |
14073 | + switch (op[3] & 0x0f) | |
14074 | + { | |
14075 | + case 0x00: | |
14076 | + goto op_semantics_125; | |
14077 | + break; | |
14078 | + case 0x02: | |
14079 | + goto op_semantics_126; | |
14080 | + break; | |
14081 | + case 0x04: | |
14082 | + goto op_semantics_127; | |
14083 | + break; | |
14084 | + default: UNSUPPORTED(); break; | |
14085 | + } | |
14086 | + break; | |
14087 | + case 0x83: | |
14088 | + GETBYTE (); | |
14089 | + switch (op[3] & 0x0f) | |
14090 | + { | |
14091 | + case 0x00: | |
14092 | + goto op_semantics_125; | |
14093 | + break; | |
14094 | + case 0x02: | |
14095 | + goto op_semantics_126; | |
14096 | + break; | |
14097 | + case 0x04: | |
14098 | + goto op_semantics_127; | |
14099 | + break; | |
14100 | + default: UNSUPPORTED(); break; | |
14101 | + } | |
14102 | + break; | |
14103 | + case 0x84: | |
14104 | + GETBYTE (); | |
14105 | + switch (op[3] & 0x0f) | |
14106 | + { | |
14107 | + case 0x00: | |
14108 | + goto op_semantics_125; | |
14109 | + break; | |
14110 | + case 0x02: | |
14111 | + goto op_semantics_126; | |
14112 | + break; | |
14113 | + case 0x04: | |
14114 | + goto op_semantics_127; | |
14115 | + break; | |
14116 | + default: UNSUPPORTED(); break; | |
14117 | + } | |
14118 | + break; | |
14119 | + case 0x85: | |
14120 | + GETBYTE (); | |
14121 | + switch (op[3] & 0x0f) | |
14122 | + { | |
14123 | + case 0x00: | |
14124 | + goto op_semantics_125; | |
14125 | + break; | |
14126 | + case 0x02: | |
14127 | + goto op_semantics_126; | |
14128 | + break; | |
14129 | + case 0x04: | |
14130 | + goto op_semantics_127; | |
14131 | + break; | |
14132 | + default: UNSUPPORTED(); break; | |
14133 | + } | |
14134 | + break; | |
14135 | + case 0x86: | |
14136 | + GETBYTE (); | |
14137 | + switch (op[3] & 0x0f) | |
14138 | + { | |
14139 | + case 0x00: | |
14140 | + goto op_semantics_125; | |
14141 | + break; | |
14142 | + case 0x02: | |
14143 | + goto op_semantics_126; | |
14144 | + break; | |
14145 | + case 0x04: | |
14146 | + goto op_semantics_127; | |
14147 | + break; | |
14148 | + default: UNSUPPORTED(); break; | |
14149 | + } | |
14150 | + break; | |
14151 | + case 0x87: | |
14152 | + GETBYTE (); | |
14153 | + switch (op[3] & 0x0f) | |
14154 | + { | |
14155 | + case 0x00: | |
14156 | + goto op_semantics_125; | |
14157 | + break; | |
14158 | + case 0x02: | |
14159 | + goto op_semantics_126; | |
14160 | + break; | |
14161 | + case 0x04: | |
14162 | + goto op_semantics_127; | |
14163 | + break; | |
14164 | + default: UNSUPPORTED(); break; | |
14165 | + } | |
14166 | + break; | |
14167 | + case 0x88: | |
14168 | + GETBYTE (); | |
14169 | + switch (op[3] & 0x0f) | |
14170 | + { | |
14171 | + case 0x00: | |
14172 | + goto op_semantics_125; | |
14173 | + break; | |
14174 | + case 0x02: | |
14175 | + goto op_semantics_126; | |
14176 | + break; | |
14177 | + case 0x04: | |
14178 | + goto op_semantics_127; | |
14179 | + break; | |
14180 | + default: UNSUPPORTED(); break; | |
14181 | + } | |
14182 | + break; | |
14183 | + case 0x89: | |
14184 | + GETBYTE (); | |
14185 | + switch (op[3] & 0x0f) | |
14186 | + { | |
14187 | + case 0x00: | |
14188 | + goto op_semantics_125; | |
14189 | + break; | |
14190 | + case 0x02: | |
14191 | + goto op_semantics_126; | |
14192 | + break; | |
14193 | + case 0x04: | |
14194 | + goto op_semantics_127; | |
14195 | + break; | |
14196 | + default: UNSUPPORTED(); break; | |
14197 | + } | |
14198 | + break; | |
14199 | + case 0x8a: | |
14200 | + GETBYTE (); | |
14201 | + switch (op[3] & 0x0f) | |
14202 | + { | |
14203 | + case 0x00: | |
14204 | + goto op_semantics_125; | |
14205 | + break; | |
14206 | + case 0x02: | |
14207 | + goto op_semantics_126; | |
14208 | + break; | |
14209 | + case 0x04: | |
14210 | + goto op_semantics_127; | |
14211 | + break; | |
14212 | + default: UNSUPPORTED(); break; | |
10877 | 14213 | } |
10878 | 14214 | break; |
10879 | - } | |
10880 | - break; | |
10881 | - case 0x46: | |
10882 | - GETBYTE (); | |
10883 | - switch (op[2] & 0x00) | |
10884 | - { | |
10885 | - case 0x00: | |
10886 | - op_semantics_92: | |
14215 | + case 0x8b: | |
14216 | + GETBYTE (); | |
14217 | + switch (op[3] & 0x0f) | |
10887 | 14218 | { |
10888 | - /** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */ | |
10889 | -#line 1077 "rx-decode.opc" | |
10890 | - int a AU = (op[1] >> 3) & 0x01; | |
10891 | -#line 1077 "rx-decode.opc" | |
10892 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10893 | -#line 1077 "rx-decode.opc" | |
10894 | - int srcb AU = op[2] & 0x0f; | |
10895 | - if (trace) | |
10896 | - { | |
10897 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
10898 | - "/** 1111 1101 0100 a110 srca srcb msblh %1, %2, %0 */", | |
10899 | - op[0], op[1], op[2]); | |
10900 | - printf (" a = 0x%x,", a); | |
10901 | - printf (" srca = 0x%x,", srca); | |
10902 | - printf (" srcb = 0x%x\n", srcb); | |
10903 | - } | |
10904 | - SYNTAX("msblh %1, %2, %0"); | |
10905 | -#line 1077 "rx-decode.opc" | |
10906 | - ID(msblh); DR(a+32); SR(srca); S2R(srcb); F_____; | |
10907 | - | |
14219 | + case 0x00: | |
14220 | + goto op_semantics_125; | |
14221 | + break; | |
14222 | + case 0x02: | |
14223 | + goto op_semantics_126; | |
14224 | + break; | |
14225 | + case 0x04: | |
14226 | + goto op_semantics_127; | |
14227 | + break; | |
14228 | + default: UNSUPPORTED(); break; | |
10908 | 14229 | } |
10909 | 14230 | break; |
10910 | - } | |
10911 | - break; | |
10912 | - case 0x47: | |
10913 | - GETBYTE (); | |
10914 | - switch (op[2] & 0x00) | |
10915 | - { | |
10916 | - case 0x00: | |
10917 | - op_semantics_93: | |
14231 | + case 0x8c: | |
14232 | + GETBYTE (); | |
14233 | + switch (op[3] & 0x0f) | |
10918 | 14234 | { |
10919 | - /** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */ | |
10920 | -#line 1065 "rx-decode.opc" | |
10921 | - int a AU = (op[1] >> 3) & 0x01; | |
10922 | -#line 1065 "rx-decode.opc" | |
10923 | - int srca AU = (op[2] >> 4) & 0x0f; | |
10924 | -#line 1065 "rx-decode.opc" | |
10925 | - int srcb AU = op[2] & 0x0f; | |
10926 | - if (trace) | |
10927 | - { | |
10928 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
10929 | - "/** 1111 1101 0100 a111 srca srcb emsba %1, %2, %0 */", | |
10930 | - op[0], op[1], op[2]); | |
10931 | - printf (" a = 0x%x,", a); | |
10932 | - printf (" srca = 0x%x,", srca); | |
10933 | - printf (" srcb = 0x%x\n", srcb); | |
10934 | - } | |
10935 | - SYNTAX("emsba %1, %2, %0"); | |
10936 | -#line 1065 "rx-decode.opc" | |
10937 | - ID(emsba); DR(a+32); SR(srca); S2R(srcb); F_____; | |
10938 | - | |
14235 | + case 0x00: | |
14236 | + goto op_semantics_125; | |
14237 | + break; | |
14238 | + case 0x02: | |
14239 | + goto op_semantics_126; | |
14240 | + break; | |
14241 | + case 0x04: | |
14242 | + goto op_semantics_127; | |
14243 | + break; | |
14244 | + default: UNSUPPORTED(); break; | |
10939 | 14245 | } |
10940 | 14246 | break; |
10941 | - } | |
10942 | - break; | |
10943 | - case 0x4c: | |
10944 | - GETBYTE (); | |
10945 | - switch (op[2] & 0x00) | |
10946 | - { | |
10947 | - case 0x00: | |
10948 | - goto op_semantics_90; | |
10949 | - break; | |
10950 | - } | |
10951 | - break; | |
10952 | - case 0x4d: | |
10953 | - GETBYTE (); | |
10954 | - switch (op[2] & 0x00) | |
10955 | - { | |
10956 | - case 0x00: | |
10957 | - goto op_semantics_91; | |
14247 | + case 0x8d: | |
14248 | + GETBYTE (); | |
14249 | + switch (op[3] & 0x0f) | |
14250 | + { | |
14251 | + case 0x00: | |
14252 | + goto op_semantics_125; | |
14253 | + break; | |
14254 | + case 0x02: | |
14255 | + goto op_semantics_126; | |
14256 | + break; | |
14257 | + case 0x04: | |
14258 | + goto op_semantics_127; | |
14259 | + break; | |
14260 | + default: UNSUPPORTED(); break; | |
14261 | + } | |
10958 | 14262 | break; |
10959 | - } | |
10960 | - break; | |
10961 | - case 0x4e: | |
10962 | - GETBYTE (); | |
10963 | - switch (op[2] & 0x00) | |
10964 | - { | |
10965 | - case 0x00: | |
10966 | - goto op_semantics_92; | |
14263 | + case 0x8e: | |
14264 | + GETBYTE (); | |
14265 | + switch (op[3] & 0x0f) | |
14266 | + { | |
14267 | + case 0x00: | |
14268 | + goto op_semantics_125; | |
14269 | + break; | |
14270 | + case 0x02: | |
14271 | + goto op_semantics_126; | |
14272 | + break; | |
14273 | + case 0x04: | |
14274 | + goto op_semantics_127; | |
14275 | + break; | |
14276 | + default: UNSUPPORTED(); break; | |
14277 | + } | |
10967 | 14278 | break; |
10968 | - } | |
10969 | - break; | |
10970 | - case 0x4f: | |
10971 | - GETBYTE (); | |
10972 | - switch (op[2] & 0x00) | |
10973 | - { | |
10974 | - case 0x00: | |
10975 | - goto op_semantics_93; | |
14279 | + case 0x8f: | |
14280 | + GETBYTE (); | |
14281 | + switch (op[3] & 0x0f) | |
14282 | + { | |
14283 | + case 0x00: | |
14284 | + goto op_semantics_125; | |
14285 | + break; | |
14286 | + case 0x02: | |
14287 | + goto op_semantics_126; | |
14288 | + break; | |
14289 | + case 0x04: | |
14290 | + goto op_semantics_127; | |
14291 | + break; | |
14292 | + default: UNSUPPORTED(); break; | |
14293 | + } | |
10976 | 14294 | break; |
14295 | + default: UNSUPPORTED(); break; | |
10977 | 14296 | } |
10978 | 14297 | break; |
10979 | - case 0x60: | |
14298 | + case 0x76: | |
10980 | 14299 | GETBYTE (); |
10981 | - switch (op[2] & 0x00) | |
14300 | + switch (op[2] & 0xff) | |
10982 | 14301 | { |
10983 | - case 0x00: | |
14302 | + case 0xc0: | |
14303 | + GETBYTE (); | |
14304 | + switch (op[3] & 0xff) | |
10984 | 14305 | { |
10985 | - /** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */ | |
10986 | -#line 733 "rx-decode.opc" | |
10987 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
10988 | -#line 733 "rx-decode.opc" | |
10989 | - int rdst AU = op[2] & 0x0f; | |
10990 | - if (trace) | |
10991 | - { | |
10992 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
10993 | - "/** 1111 1101 0110 0000 rsrc rdst shlr %2, %0 */", | |
10994 | - op[0], op[1], op[2]); | |
10995 | - printf (" rsrc = 0x%x,", rsrc); | |
10996 | - printf (" rdst = 0x%x\n", rdst); | |
10997 | - } | |
10998 | - SYNTAX("shlr %2, %0"); | |
10999 | -#line 733 "rx-decode.opc" | |
11000 | - ID(shlr); S2R(rsrc); SR(rdst); DR(rdst); F__SZC; | |
14306 | + case 0x00: | |
14307 | + op_semantics_128: | |
14308 | + { | |
14309 | + /** 1111 1101 0111 0110 1100 rsrc 0000 0000 save %1 */ | |
14310 | +#line 1161 "rx-decode.opc" | |
14311 | + int rsrc AU = op[2] & 0x0f; | |
14312 | + if (trace) | |
14313 | + { | |
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); | |
14318 | + } | |
14319 | + SYNTAX("save %1"); | |
14320 | +#line 1161 "rx-decode.opc" | |
14321 | + ID(save); SR(rsrc); F_____; | |
11001 | 14322 | |
14323 | + } | |
14324 | + break; | |
14325 | + default: UNSUPPORTED(); break; | |
11002 | 14326 | } |
11003 | 14327 | break; |
11004 | - } | |
11005 | - break; | |
11006 | - case 0x61: | |
11007 | - GETBYTE (); | |
11008 | - switch (op[2] & 0x00) | |
11009 | - { | |
11010 | - case 0x00: | |
14328 | + case 0xc1: | |
14329 | + GETBYTE (); | |
14330 | + switch (op[3] & 0xff) | |
11011 | 14331 | { |
11012 | - /** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */ | |
11013 | -#line 723 "rx-decode.opc" | |
11014 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11015 | -#line 723 "rx-decode.opc" | |
11016 | - int rdst AU = op[2] & 0x0f; | |
11017 | - if (trace) | |
11018 | - { | |
11019 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11020 | - "/** 1111 1101 0110 0001 rsrc rdst shar %2, %0 */", | |
11021 | - op[0], op[1], op[2]); | |
11022 | - printf (" rsrc = 0x%x,", rsrc); | |
11023 | - printf (" rdst = 0x%x\n", rdst); | |
11024 | - } | |
11025 | - SYNTAX("shar %2, %0"); | |
11026 | -#line 723 "rx-decode.opc" | |
11027 | - ID(shar); S2R(rsrc); SR(rdst); DR(rdst); F_0SZC; | |
11028 | - | |
14332 | + case 0x00: | |
14333 | + goto op_semantics_128; | |
14334 | + break; | |
14335 | + default: UNSUPPORTED(); break; | |
11029 | 14336 | } |
11030 | 14337 | break; |
11031 | - } | |
11032 | - break; | |
11033 | - case 0x62: | |
11034 | - GETBYTE (); | |
11035 | - switch (op[2] & 0x00) | |
11036 | - { | |
11037 | - case 0x00: | |
14338 | + case 0xc2: | |
14339 | + GETBYTE (); | |
14340 | + switch (op[3] & 0xff) | |
11038 | 14341 | { |
11039 | - /** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */ | |
11040 | -#line 713 "rx-decode.opc" | |
11041 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11042 | -#line 713 "rx-decode.opc" | |
11043 | - int rdst AU = op[2] & 0x0f; | |
11044 | - if (trace) | |
11045 | - { | |
11046 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11047 | - "/** 1111 1101 0110 0010 rsrc rdst shll %2, %0 */", | |
11048 | - op[0], op[1], op[2]); | |
11049 | - printf (" rsrc = 0x%x,", rsrc); | |
11050 | - printf (" rdst = 0x%x\n", rdst); | |
11051 | - } | |
11052 | - SYNTAX("shll %2, %0"); | |
11053 | -#line 713 "rx-decode.opc" | |
11054 | - ID(shll); S2R(rsrc); SR(rdst); DR(rdst); F_OSZC; | |
11055 | - | |
14342 | + case 0x00: | |
14343 | + goto op_semantics_128; | |
14344 | + break; | |
14345 | + default: UNSUPPORTED(); break; | |
11056 | 14346 | } |
11057 | 14347 | break; |
11058 | - } | |
11059 | - break; | |
11060 | - case 0x64: | |
11061 | - GETBYTE (); | |
11062 | - switch (op[2] & 0x00) | |
11063 | - { | |
11064 | - case 0x00: | |
14348 | + case 0xc3: | |
14349 | + GETBYTE (); | |
14350 | + switch (op[3] & 0xff) | |
11065 | 14351 | { |
11066 | - /** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */ | |
11067 | -#line 757 "rx-decode.opc" | |
11068 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11069 | -#line 757 "rx-decode.opc" | |
11070 | - int rdst AU = op[2] & 0x0f; | |
11071 | - if (trace) | |
11072 | - { | |
11073 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11074 | - "/** 1111 1101 0110 0100 rsrc rdst rotr %1, %0 */", | |
11075 | - op[0], op[1], op[2]); | |
11076 | - printf (" rsrc = 0x%x,", rsrc); | |
11077 | - printf (" rdst = 0x%x\n", rdst); | |
11078 | - } | |
11079 | - SYNTAX("rotr %1, %0"); | |
11080 | -#line 757 "rx-decode.opc" | |
11081 | - ID(rotr); SR(rsrc); DR(rdst); F__SZC; | |
11082 | - | |
14352 | + case 0x00: | |
14353 | + goto op_semantics_128; | |
14354 | + break; | |
14355 | + default: UNSUPPORTED(); break; | |
11083 | 14356 | } |
11084 | 14357 | break; |
11085 | - } | |
11086 | - break; | |
11087 | - case 0x65: | |
11088 | - GETBYTE (); | |
11089 | - switch (op[2] & 0x00) | |
11090 | - { | |
11091 | - case 0x00: | |
14358 | + case 0xc4: | |
14359 | + GETBYTE (); | |
14360 | + switch (op[3] & 0xff) | |
11092 | 14361 | { |
11093 | - /** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */ | |
11094 | -#line 760 "rx-decode.opc" | |
11095 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11096 | -#line 760 "rx-decode.opc" | |
11097 | - int rdst AU = op[2] & 0x0f; | |
11098 | - if (trace) | |
11099 | - { | |
11100 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11101 | - "/** 1111 1101 0110 0101 rsrc rdst revw %1, %0 */", | |
11102 | - op[0], op[1], op[2]); | |
11103 | - printf (" rsrc = 0x%x,", rsrc); | |
11104 | - printf (" rdst = 0x%x\n", rdst); | |
11105 | - } | |
11106 | - SYNTAX("revw %1, %0"); | |
11107 | -#line 760 "rx-decode.opc" | |
11108 | - ID(revw); SR(rsrc); DR(rdst); | |
11109 | - | |
14362 | + case 0x00: | |
14363 | + goto op_semantics_128; | |
14364 | + break; | |
14365 | + default: UNSUPPORTED(); break; | |
11110 | 14366 | } |
11111 | 14367 | break; |
11112 | - } | |
11113 | - break; | |
11114 | - case 0x66: | |
11115 | - GETBYTE (); | |
11116 | - switch (op[2] & 0x00) | |
11117 | - { | |
11118 | - case 0x00: | |
14368 | + case 0xc5: | |
14369 | + GETBYTE (); | |
14370 | + switch (op[3] & 0xff) | |
11119 | 14371 | { |
11120 | - /** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */ | |
11121 | -#line 751 "rx-decode.opc" | |
11122 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11123 | -#line 751 "rx-decode.opc" | |
11124 | - int rdst AU = op[2] & 0x0f; | |
11125 | - if (trace) | |
11126 | - { | |
11127 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11128 | - "/** 1111 1101 0110 0110 rsrc rdst rotl %1, %0 */", | |
11129 | - op[0], op[1], op[2]); | |
11130 | - printf (" rsrc = 0x%x,", rsrc); | |
11131 | - printf (" rdst = 0x%x\n", rdst); | |
11132 | - } | |
11133 | - SYNTAX("rotl %1, %0"); | |
11134 | -#line 751 "rx-decode.opc" | |
11135 | - ID(rotl); SR(rsrc); DR(rdst); F__SZC; | |
11136 | - | |
14372 | + case 0x00: | |
14373 | + goto op_semantics_128; | |
14374 | + break; | |
14375 | + default: UNSUPPORTED(); break; | |
11137 | 14376 | } |
11138 | 14377 | break; |
11139 | - } | |
11140 | - break; | |
11141 | - case 0x67: | |
11142 | - GETBYTE (); | |
11143 | - switch (op[2] & 0x00) | |
11144 | - { | |
11145 | - case 0x00: | |
14378 | + case 0xc6: | |
14379 | + GETBYTE (); | |
14380 | + switch (op[3] & 0xff) | |
11146 | 14381 | { |
11147 | - /** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */ | |
11148 | -#line 763 "rx-decode.opc" | |
11149 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11150 | -#line 763 "rx-decode.opc" | |
11151 | - int rdst AU = op[2] & 0x0f; | |
11152 | - if (trace) | |
11153 | - { | |
11154 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11155 | - "/** 1111 1101 0110 0111 rsrc rdst revl %1, %0 */", | |
11156 | - op[0], op[1], op[2]); | |
11157 | - printf (" rsrc = 0x%x,", rsrc); | |
11158 | - printf (" rdst = 0x%x\n", rdst); | |
11159 | - } | |
11160 | - SYNTAX("revl %1, %0"); | |
11161 | -#line 763 "rx-decode.opc" | |
11162 | - ID(revl); SR(rsrc); DR(rdst); | |
11163 | - | |
11164 | - /*----------------------------------------------------------------------*/ | |
11165 | - /* BRANCH */ | |
11166 | - | |
14382 | + case 0x00: | |
14383 | + goto op_semantics_128; | |
14384 | + break; | |
14385 | + default: UNSUPPORTED(); break; | |
11167 | 14386 | } |
11168 | 14387 | break; |
11169 | - } | |
11170 | - break; | |
11171 | - case 0x68: | |
11172 | - GETBYTE (); | |
11173 | - switch (op[2] & 0x00) | |
11174 | - { | |
11175 | - case 0x00: | |
11176 | - op_semantics_94: | |
14388 | + case 0xc7: | |
14389 | + GETBYTE (); | |
14390 | + switch (op[3] & 0xff) | |
11177 | 14391 | { |
11178 | - /** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */ | |
11179 | -#line 1014 "rx-decode.opc" | |
11180 | - int c AU = op[1] & 0x01; | |
11181 | -#line 1014 "rx-decode.opc" | |
11182 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11183 | -#line 1014 "rx-decode.opc" | |
11184 | - int rdst AU = op[2] & 0x0f; | |
11185 | - if (trace) | |
11186 | - { | |
11187 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11188 | - "/** 1111 1101 0110 100c rsrc rdst mvtc %1, %0 */", | |
11189 | - op[0], op[1], op[2]); | |
11190 | - printf (" c = 0x%x,", c); | |
11191 | - printf (" rsrc = 0x%x,", rsrc); | |
11192 | - printf (" rdst = 0x%x\n", rdst); | |
11193 | - } | |
11194 | - SYNTAX("mvtc %1, %0"); | |
11195 | -#line 1014 "rx-decode.opc" | |
11196 | - ID(mov); SR(rsrc); DR(c*16+rdst + 16); | |
11197 | - | |
14392 | + case 0x00: | |
14393 | + goto op_semantics_128; | |
14394 | + break; | |
14395 | + default: UNSUPPORTED(); break; | |
11198 | 14396 | } |
11199 | 14397 | break; |
11200 | - } | |
11201 | - break; | |
11202 | - case 0x69: | |
11203 | - GETBYTE (); | |
11204 | - switch (op[2] & 0x00) | |
11205 | - { | |
11206 | - case 0x00: | |
11207 | - goto op_semantics_94; | |
14398 | + case 0xc8: | |
14399 | + GETBYTE (); | |
14400 | + switch (op[3] & 0xff) | |
14401 | + { | |
14402 | + case 0x00: | |
14403 | + goto op_semantics_128; | |
14404 | + break; | |
14405 | + default: UNSUPPORTED(); break; | |
14406 | + } | |
11208 | 14407 | break; |
11209 | - } | |
11210 | - break; | |
11211 | - case 0x6a: | |
11212 | - GETBYTE (); | |
11213 | - switch (op[2] & 0x00) | |
11214 | - { | |
11215 | - case 0x00: | |
11216 | - op_semantics_95: | |
14408 | + case 0xc9: | |
14409 | + GETBYTE (); | |
14410 | + switch (op[3] & 0xff) | |
11217 | 14411 | { |
11218 | - /** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */ | |
11219 | -#line 1017 "rx-decode.opc" | |
11220 | - int s AU = op[1] & 0x01; | |
11221 | -#line 1017 "rx-decode.opc" | |
11222 | - int rsrc AU = (op[2] >> 4) & 0x0f; | |
11223 | -#line 1017 "rx-decode.opc" | |
11224 | - int rdst AU = op[2] & 0x0f; | |
11225 | - if (trace) | |
11226 | - { | |
11227 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11228 | - "/** 1111 1101 0110 101s rsrc rdst mvfc %1, %0 */", | |
11229 | - op[0], op[1], op[2]); | |
11230 | - printf (" s = 0x%x,", s); | |
11231 | - printf (" rsrc = 0x%x,", rsrc); | |
11232 | - printf (" rdst = 0x%x\n", rdst); | |
11233 | - } | |
11234 | - SYNTAX("mvfc %1, %0"); | |
11235 | -#line 1017 "rx-decode.opc" | |
11236 | - ID(mov); SR((s*16+rsrc) + 16); DR(rdst); | |
11237 | - | |
11238 | - /*----------------------------------------------------------------------*/ | |
11239 | - /* INTERRUPTS */ | |
11240 | - | |
14412 | + case 0x00: | |
14413 | + goto op_semantics_128; | |
14414 | + break; | |
14415 | + default: UNSUPPORTED(); break; | |
11241 | 14416 | } |
11242 | 14417 | break; |
11243 | - } | |
11244 | - break; | |
11245 | - case 0x6b: | |
11246 | - GETBYTE (); | |
11247 | - switch (op[2] & 0x00) | |
11248 | - { | |
11249 | - case 0x00: | |
11250 | - goto op_semantics_95; | |
14418 | + case 0xca: | |
14419 | + GETBYTE (); | |
14420 | + switch (op[3] & 0xff) | |
14421 | + { | |
14422 | + case 0x00: | |
14423 | + goto op_semantics_128; | |
14424 | + break; | |
14425 | + default: UNSUPPORTED(); break; | |
14426 | + } | |
11251 | 14427 | break; |
11252 | - } | |
11253 | - break; | |
11254 | - case 0x6c: | |
11255 | - GETBYTE (); | |
11256 | - switch (op[2] & 0x00) | |
11257 | - { | |
11258 | - case 0x00: | |
11259 | - op_semantics_96: | |
14428 | + case 0xcb: | |
14429 | + GETBYTE (); | |
14430 | + switch (op[3] & 0xff) | |
11260 | 14431 | { |
11261 | - /** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */ | |
11262 | -#line 754 "rx-decode.opc" | |
11263 | - int i AU = op[1] & 0x01; | |
11264 | -#line 754 "rx-decode.opc" | |
11265 | - int mmmm AU = (op[2] >> 4) & 0x0f; | |
11266 | -#line 754 "rx-decode.opc" | |
11267 | - int rdst AU = op[2] & 0x0f; | |
11268 | - if (trace) | |
11269 | - { | |
11270 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11271 | - "/** 1111 1101 0110 110i mmmm rdst rotr #%1, %0 */", | |
11272 | - op[0], op[1], op[2]); | |
11273 | - printf (" i = 0x%x,", i); | |
11274 | - printf (" mmmm = 0x%x,", mmmm); | |
11275 | - printf (" rdst = 0x%x\n", rdst); | |
11276 | - } | |
11277 | - SYNTAX("rotr #%1, %0"); | |
11278 | -#line 754 "rx-decode.opc" | |
11279 | - ID(rotr); SC(i*16+mmmm); DR(rdst); F__SZC; | |
11280 | - | |
14432 | + case 0x00: | |
14433 | + goto op_semantics_128; | |
14434 | + break; | |
14435 | + default: UNSUPPORTED(); break; | |
11281 | 14436 | } |
11282 | 14437 | break; |
11283 | - } | |
11284 | - break; | |
11285 | - case 0x6d: | |
11286 | - GETBYTE (); | |
11287 | - switch (op[2] & 0x00) | |
11288 | - { | |
11289 | - case 0x00: | |
11290 | - goto op_semantics_96; | |
14438 | + case 0xcc: | |
14439 | + GETBYTE (); | |
14440 | + switch (op[3] & 0xff) | |
14441 | + { | |
14442 | + case 0x00: | |
14443 | + goto op_semantics_128; | |
14444 | + break; | |
14445 | + default: UNSUPPORTED(); break; | |
14446 | + } | |
11291 | 14447 | break; |
11292 | - } | |
11293 | - break; | |
11294 | - case 0x6e: | |
11295 | - GETBYTE (); | |
11296 | - switch (op[2] & 0x00) | |
11297 | - { | |
11298 | - case 0x00: | |
11299 | - op_semantics_97: | |
14448 | + case 0xcd: | |
14449 | + GETBYTE (); | |
14450 | + switch (op[3] & 0xff) | |
11300 | 14451 | { |
11301 | - /** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */ | |
11302 | -#line 748 "rx-decode.opc" | |
11303 | - int i AU = op[1] & 0x01; | |
11304 | -#line 748 "rx-decode.opc" | |
11305 | - int mmmm AU = (op[2] >> 4) & 0x0f; | |
11306 | -#line 748 "rx-decode.opc" | |
11307 | - int rdst AU = op[2] & 0x0f; | |
11308 | - if (trace) | |
11309 | - { | |
11310 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11311 | - "/** 1111 1101 0110 111i mmmm rdst rotl #%1, %0 */", | |
11312 | - op[0], op[1], op[2]); | |
11313 | - printf (" i = 0x%x,", i); | |
11314 | - printf (" mmmm = 0x%x,", mmmm); | |
11315 | - printf (" rdst = 0x%x\n", rdst); | |
11316 | - } | |
11317 | - SYNTAX("rotl #%1, %0"); | |
11318 | -#line 748 "rx-decode.opc" | |
11319 | - ID(rotl); SC(i*16+mmmm); DR(rdst); F__SZC; | |
11320 | - | |
14452 | + case 0x00: | |
14453 | + goto op_semantics_128; | |
14454 | + break; | |
14455 | + default: UNSUPPORTED(); break; | |
11321 | 14456 | } |
11322 | 14457 | break; |
11323 | - } | |
11324 | - break; | |
11325 | - case 0x6f: | |
11326 | - GETBYTE (); | |
11327 | - switch (op[2] & 0x00) | |
11328 | - { | |
11329 | - case 0x00: | |
11330 | - goto op_semantics_97; | |
14458 | + case 0xce: | |
14459 | + GETBYTE (); | |
14460 | + switch (op[3] & 0xff) | |
14461 | + { | |
14462 | + case 0x00: | |
14463 | + goto op_semantics_128; | |
14464 | + break; | |
14465 | + default: UNSUPPORTED(); break; | |
14466 | + } | |
11331 | 14467 | break; |
11332 | - } | |
11333 | - break; | |
11334 | - case 0x70: | |
11335 | - GETBYTE (); | |
11336 | - switch (op[2] & 0xf0) | |
11337 | - { | |
11338 | - case 0x20: | |
11339 | - op_semantics_98: | |
14468 | + case 0xcf: | |
14469 | + GETBYTE (); | |
14470 | + switch (op[3] & 0xff) | |
11340 | 14471 | { |
11341 | - /** 1111 1101 0111 im00 0010rdst adc #%1, %0 */ | |
11342 | -#line 492 "rx-decode.opc" | |
11343 | - int im AU = (op[1] >> 2) & 0x03; | |
11344 | -#line 492 "rx-decode.opc" | |
11345 | - int rdst AU = op[2] & 0x0f; | |
11346 | - if (trace) | |
11347 | - { | |
11348 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11349 | - "/** 1111 1101 0111 im00 0010rdst adc #%1, %0 */", | |
11350 | - op[0], op[1], op[2]); | |
11351 | - printf (" im = 0x%x,", im); | |
11352 | - printf (" rdst = 0x%x\n", rdst); | |
11353 | - } | |
11354 | - SYNTAX("adc #%1, %0"); | |
11355 | -#line 492 "rx-decode.opc" | |
11356 | - ID(adc); SC(IMMex(im)); DR(rdst); F_OSZC; | |
11357 | - | |
14472 | + case 0x00: | |
14473 | + goto op_semantics_128; | |
14474 | + break; | |
14475 | + default: UNSUPPORTED(); break; | |
11358 | 14476 | } |
11359 | 14477 | break; |
11360 | - case 0x40: | |
11361 | - op_semantics_99: | |
14478 | + case 0xd0: | |
14479 | + GETBYTE (); | |
14480 | + switch (op[3] & 0xff) | |
11362 | 14481 | { |
11363 | - /** 1111 1101 0111 im00 0100rdst max #%1, %0 */ | |
11364 | -#line 574 "rx-decode.opc" | |
11365 | - int im AU = (op[1] >> 2) & 0x03; | |
11366 | -#line 574 "rx-decode.opc" | |
11367 | - int rdst AU = op[2] & 0x0f; | |
11368 | - if (trace) | |
11369 | - { | |
11370 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11371 | - "/** 1111 1101 0111 im00 0100rdst max #%1, %0 */", | |
11372 | - op[0], op[1], op[2]); | |
11373 | - printf (" im = 0x%x,", im); | |
11374 | - printf (" rdst = 0x%x\n", rdst); | |
11375 | - } | |
11376 | - SYNTAX("max #%1, %0"); | |
11377 | -#line 574 "rx-decode.opc" | |
11378 | - int val = IMMex (im); | |
11379 | - if (im == 0 && (unsigned) val == 0x80000000 && rdst == 0) | |
11380 | - { | |
11381 | - ID (nop7); | |
11382 | - SYNTAX("nop\t; max\t#0x80000000, r0"); | |
11383 | - } | |
11384 | - else | |
11385 | - { | |
11386 | - ID(max); | |
11387 | - } | |
11388 | - DR(rdst); SC(val); | |
14482 | + case 0x00: | |
14483 | + op_semantics_129: | |
14484 | + { | |
14485 | + /** 1111 1101 0111 0110 1101 rsrc 0000 0000 rstr %1 */ | |
14486 | +#line 1155 "rx-decode.opc" | |
14487 | + int rsrc AU = op[2] & 0x0f; | |
14488 | + if (trace) | |
14489 | + { | |
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); | |
14494 | + } | |
14495 | + SYNTAX("rstr %1"); | |
14496 | +#line 1155 "rx-decode.opc" | |
14497 | + ID(rstr); SR(rsrc); F_____; | |
11389 | 14498 | |
14499 | + } | |
14500 | + break; | |
14501 | + default: UNSUPPORTED(); break; | |
11390 | 14502 | } |
11391 | 14503 | break; |
11392 | - case 0x50: | |
11393 | - op_semantics_100: | |
14504 | + case 0xd1: | |
14505 | + GETBYTE (); | |
14506 | + switch (op[3] & 0xff) | |
11394 | 14507 | { |
11395 | - /** 1111 1101 0111 im00 0101rdst min #%1, %0 */ | |
11396 | -#line 604 "rx-decode.opc" | |
11397 | - int im AU = (op[1] >> 2) & 0x03; | |
11398 | -#line 604 "rx-decode.opc" | |
11399 | - int rdst AU = op[2] & 0x0f; | |
11400 | - if (trace) | |
11401 | - { | |
11402 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11403 | - "/** 1111 1101 0111 im00 0101rdst min #%1, %0 */", | |
11404 | - op[0], op[1], op[2]); | |
11405 | - printf (" im = 0x%x,", im); | |
11406 | - printf (" rdst = 0x%x\n", rdst); | |
11407 | - } | |
11408 | - SYNTAX("min #%1, %0"); | |
11409 | -#line 604 "rx-decode.opc" | |
11410 | - ID(min); DR(rdst); SC(IMMex(im)); | |
11411 | - | |
14508 | + case 0x00: | |
14509 | + goto op_semantics_129; | |
14510 | + break; | |
14511 | + default: UNSUPPORTED(); break; | |
11412 | 14512 | } |
11413 | 14513 | break; |
11414 | - case 0x60: | |
11415 | - op_semantics_101: | |
14514 | + case 0xd2: | |
14515 | + GETBYTE (); | |
14516 | + switch (op[3] & 0xff) | |
11416 | 14517 | { |
11417 | - /** 1111 1101 0111 im00 0110rdst emul #%1, %0 */ | |
11418 | -#line 662 "rx-decode.opc" | |
11419 | - int im AU = (op[1] >> 2) & 0x03; | |
11420 | -#line 662 "rx-decode.opc" | |
11421 | - int rdst AU = op[2] & 0x0f; | |
11422 | - if (trace) | |
11423 | - { | |
11424 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11425 | - "/** 1111 1101 0111 im00 0110rdst emul #%1, %0 */", | |
11426 | - op[0], op[1], op[2]); | |
11427 | - printf (" im = 0x%x,", im); | |
11428 | - printf (" rdst = 0x%x\n", rdst); | |
11429 | - } | |
11430 | - SYNTAX("emul #%1, %0"); | |
11431 | -#line 662 "rx-decode.opc" | |
11432 | - ID(emul); DR(rdst); SC(IMMex(im)); | |
11433 | - | |
14518 | + case 0x00: | |
14519 | + goto op_semantics_129; | |
14520 | + break; | |
14521 | + default: UNSUPPORTED(); break; | |
11434 | 14522 | } |
11435 | 14523 | break; |
11436 | - case 0x70: | |
11437 | - op_semantics_102: | |
14524 | + case 0xd3: | |
14525 | + GETBYTE (); | |
14526 | + switch (op[3] & 0xff) | |
11438 | 14527 | { |
11439 | - /** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */ | |
11440 | -#line 674 "rx-decode.opc" | |
11441 | - int im AU = (op[1] >> 2) & 0x03; | |
11442 | -#line 674 "rx-decode.opc" | |
11443 | - int rdst AU = op[2] & 0x0f; | |
11444 | - if (trace) | |
11445 | - { | |
11446 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11447 | - "/** 1111 1101 0111 im00 0111rdst emulu #%1, %0 */", | |
11448 | - op[0], op[1], op[2]); | |
11449 | - printf (" im = 0x%x,", im); | |
11450 | - printf (" rdst = 0x%x\n", rdst); | |
11451 | - } | |
11452 | - SYNTAX("emulu #%1, %0"); | |
11453 | -#line 674 "rx-decode.opc" | |
11454 | - ID(emulu); DR(rdst); SC(IMMex(im)); | |
11455 | - | |
14528 | + case 0x00: | |
14529 | + goto op_semantics_129; | |
14530 | + break; | |
14531 | + default: UNSUPPORTED(); break; | |
11456 | 14532 | } |
11457 | 14533 | break; |
11458 | - case 0x80: | |
11459 | - op_semantics_103: | |
14534 | + case 0xd4: | |
14535 | + GETBYTE (); | |
14536 | + switch (op[3] & 0xff) | |
11460 | 14537 | { |
11461 | - /** 1111 1101 0111 im00 1000rdst div #%1, %0 */ | |
11462 | -#line 686 "rx-decode.opc" | |
11463 | - int im AU = (op[1] >> 2) & 0x03; | |
11464 | -#line 686 "rx-decode.opc" | |
11465 | - int rdst AU = op[2] & 0x0f; | |
11466 | - if (trace) | |
11467 | - { | |
11468 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11469 | - "/** 1111 1101 0111 im00 1000rdst div #%1, %0 */", | |
11470 | - op[0], op[1], op[2]); | |
11471 | - printf (" im = 0x%x,", im); | |
11472 | - printf (" rdst = 0x%x\n", rdst); | |
11473 | - } | |
11474 | - SYNTAX("div #%1, %0"); | |
11475 | -#line 686 "rx-decode.opc" | |
11476 | - ID(div); DR(rdst); SC(IMMex(im)); F_O___; | |
11477 | - | |
14538 | + case 0x00: | |
14539 | + goto op_semantics_129; | |
14540 | + break; | |
14541 | + default: UNSUPPORTED(); break; | |
11478 | 14542 | } |
11479 | 14543 | break; |
11480 | - case 0x90: | |
11481 | - op_semantics_104: | |
14544 | + case 0xd5: | |
14545 | + GETBYTE (); | |
14546 | + switch (op[3] & 0xff) | |
11482 | 14547 | { |
11483 | - /** 1111 1101 0111 im00 1001rdst divu #%1, %0 */ | |
11484 | -#line 698 "rx-decode.opc" | |
11485 | - int im AU = (op[1] >> 2) & 0x03; | |
11486 | -#line 698 "rx-decode.opc" | |
11487 | - int rdst AU = op[2] & 0x0f; | |
11488 | - if (trace) | |
11489 | - { | |
11490 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11491 | - "/** 1111 1101 0111 im00 1001rdst divu #%1, %0 */", | |
11492 | - op[0], op[1], op[2]); | |
11493 | - printf (" im = 0x%x,", im); | |
11494 | - printf (" rdst = 0x%x\n", rdst); | |
11495 | - } | |
11496 | - SYNTAX("divu #%1, %0"); | |
11497 | -#line 698 "rx-decode.opc" | |
11498 | - ID(divu); DR(rdst); SC(IMMex(im)); F_O___; | |
11499 | - | |
14548 | + case 0x00: | |
14549 | + goto op_semantics_129; | |
14550 | + break; | |
14551 | + default: UNSUPPORTED(); break; | |
11500 | 14552 | } |
11501 | 14553 | break; |
11502 | - case 0xc0: | |
11503 | - op_semantics_105: | |
14554 | + case 0xd6: | |
14555 | + GETBYTE (); | |
14556 | + switch (op[3] & 0xff) | |
11504 | 14557 | { |
11505 | - /** 1111 1101 0111 im00 1100rdst tst #%1, %2 */ | |
11506 | -#line 471 "rx-decode.opc" | |
11507 | - int im AU = (op[1] >> 2) & 0x03; | |
11508 | -#line 471 "rx-decode.opc" | |
11509 | - int rdst AU = op[2] & 0x0f; | |
11510 | - if (trace) | |
11511 | - { | |
11512 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11513 | - "/** 1111 1101 0111 im00 1100rdst tst #%1, %2 */", | |
11514 | - op[0], op[1], op[2]); | |
11515 | - printf (" im = 0x%x,", im); | |
11516 | - printf (" rdst = 0x%x\n", rdst); | |
11517 | - } | |
11518 | - SYNTAX("tst #%1, %2"); | |
11519 | -#line 471 "rx-decode.opc" | |
11520 | - ID(and); SC(IMMex(im)); S2R(rdst); F__SZ_; | |
11521 | - | |
14558 | + case 0x00: | |
14559 | + goto op_semantics_129; | |
14560 | + break; | |
14561 | + default: UNSUPPORTED(); break; | |
11522 | 14562 | } |
11523 | 14563 | break; |
11524 | - case 0xd0: | |
11525 | - op_semantics_106: | |
14564 | + case 0xd7: | |
14565 | + GETBYTE (); | |
14566 | + switch (op[3] & 0xff) | |
11526 | 14567 | { |
11527 | - /** 1111 1101 0111 im00 1101rdst xor #%1, %0 */ | |
11528 | -#line 450 "rx-decode.opc" | |
11529 | - int im AU = (op[1] >> 2) & 0x03; | |
11530 | -#line 450 "rx-decode.opc" | |
11531 | - int rdst AU = op[2] & 0x0f; | |
11532 | - if (trace) | |
11533 | - { | |
11534 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11535 | - "/** 1111 1101 0111 im00 1101rdst xor #%1, %0 */", | |
11536 | - op[0], op[1], op[2]); | |
11537 | - printf (" im = 0x%x,", im); | |
11538 | - printf (" rdst = 0x%x\n", rdst); | |
11539 | - } | |
11540 | - SYNTAX("xor #%1, %0"); | |
11541 | -#line 450 "rx-decode.opc" | |
11542 | - ID(xor); SC(IMMex(im)); DR(rdst); F__SZ_; | |
11543 | - | |
14568 | + case 0x00: | |
14569 | + goto op_semantics_129; | |
14570 | + break; | |
14571 | + default: UNSUPPORTED(); break; | |
11544 | 14572 | } |
11545 | 14573 | break; |
11546 | - case 0xe0: | |
11547 | - op_semantics_107: | |
14574 | + case 0xd8: | |
14575 | + GETBYTE (); | |
14576 | + switch (op[3] & 0xff) | |
11548 | 14577 | { |
11549 | - /** 1111 1101 0111 im00 1110rdst stz #%1, %0 */ | |
11550 | -#line 396 "rx-decode.opc" | |
11551 | - int im AU = (op[1] >> 2) & 0x03; | |
11552 | -#line 396 "rx-decode.opc" | |
11553 | - int rdst AU = op[2] & 0x0f; | |
11554 | - if (trace) | |
11555 | - { | |
11556 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11557 | - "/** 1111 1101 0111 im00 1110rdst stz #%1, %0 */", | |
11558 | - op[0], op[1], op[2]); | |
11559 | - printf (" im = 0x%x,", im); | |
11560 | - printf (" rdst = 0x%x\n", rdst); | |
11561 | - } | |
11562 | - SYNTAX("stz #%1, %0"); | |
11563 | -#line 396 "rx-decode.opc" | |
11564 | - ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_z); | |
11565 | - | |
14578 | + case 0x00: | |
14579 | + goto op_semantics_129; | |
14580 | + break; | |
14581 | + default: UNSUPPORTED(); break; | |
11566 | 14582 | } |
11567 | 14583 | break; |
11568 | - case 0xf0: | |
11569 | - op_semantics_108: | |
14584 | + case 0xd9: | |
14585 | + GETBYTE (); | |
14586 | + switch (op[3] & 0xff) | |
11570 | 14587 | { |
11571 | - /** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */ | |
11572 | -#line 399 "rx-decode.opc" | |
11573 | - int im AU = (op[1] >> 2) & 0x03; | |
11574 | -#line 399 "rx-decode.opc" | |
11575 | - int rdst AU = op[2] & 0x0f; | |
11576 | - if (trace) | |
11577 | - { | |
11578 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11579 | - "/** 1111 1101 0111 im00 1111rdst stnz #%1, %0 */", | |
11580 | - op[0], op[1], op[2]); | |
11581 | - printf (" im = 0x%x,", im); | |
11582 | - printf (" rdst = 0x%x\n", rdst); | |
11583 | - } | |
11584 | - SYNTAX("stnz #%1, %0"); | |
11585 | -#line 399 "rx-decode.opc" | |
11586 | - ID(stcc); SC(IMMex(im)); DR(rdst); S2cc(RXC_nz); | |
11587 | - | |
11588 | - /*----------------------------------------------------------------------*/ | |
11589 | - /* RTSD */ | |
11590 | - | |
14588 | + case 0x00: | |
14589 | + goto op_semantics_129; | |
14590 | + break; | |
14591 | + default: UNSUPPORTED(); break; | |
11591 | 14592 | } |
11592 | 14593 | break; |
11593 | - default: UNSUPPORTED(); break; | |
11594 | - } | |
11595 | - break; | |
11596 | - case 0x72: | |
11597 | - GETBYTE (); | |
11598 | - switch (op[2] & 0xf0) | |
11599 | - { | |
11600 | - case 0x00: | |
14594 | + case 0xda: | |
14595 | + GETBYTE (); | |
14596 | + switch (op[3] & 0xff) | |
11601 | 14597 | { |
11602 | - /** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */ | |
11603 | -#line 906 "rx-decode.opc" | |
11604 | - int rdst AU = op[2] & 0x0f; | |
11605 | - if (trace) | |
11606 | - { | |
11607 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11608 | - "/** 1111 1101 0111 0010 0000 rdst fsub #%1, %0 */", | |
11609 | - op[0], op[1], op[2]); | |
11610 | - printf (" rdst = 0x%x\n", rdst); | |
11611 | - } | |
11612 | - SYNTAX("fsub #%1, %0"); | |
11613 | -#line 906 "rx-decode.opc" | |
11614 | - ID(fsub); DR(rdst); SC(IMM(0)); F__SZ_; | |
11615 | - | |
14598 | + case 0x00: | |
14599 | + goto op_semantics_129; | |
14600 | + break; | |
14601 | + default: UNSUPPORTED(); break; | |
14602 | + } | |
14603 | + break; | |
14604 | + case 0xdb: | |
14605 | + GETBYTE (); | |
14606 | + switch (op[3] & 0xff) | |
14607 | + { | |
14608 | + case 0x00: | |
14609 | + goto op_semantics_129; | |
14610 | + break; | |
14611 | + default: UNSUPPORTED(); break; | |
11616 | 14612 | } |
11617 | 14613 | break; |
11618 | - case 0x10: | |
14614 | + case 0xdc: | |
14615 | + GETBYTE (); | |
14616 | + switch (op[3] & 0xff) | |
11619 | 14617 | { |
11620 | - /** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */ | |
11621 | -#line 900 "rx-decode.opc" | |
11622 | - int rdst AU = op[2] & 0x0f; | |
11623 | - if (trace) | |
11624 | - { | |
11625 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11626 | - "/** 1111 1101 0111 0010 0001 rdst fcmp #%1, %0 */", | |
11627 | - op[0], op[1], op[2]); | |
11628 | - printf (" rdst = 0x%x\n", rdst); | |
11629 | - } | |
11630 | - SYNTAX("fcmp #%1, %0"); | |
11631 | -#line 900 "rx-decode.opc" | |
11632 | - ID(fcmp); DR(rdst); SC(IMM(0)); F_OSZ_; | |
11633 | - | |
14618 | + case 0x00: | |
14619 | + goto op_semantics_129; | |
14620 | + break; | |
14621 | + default: UNSUPPORTED(); break; | |
11634 | 14622 | } |
11635 | 14623 | break; |
11636 | - case 0x20: | |
14624 | + case 0xdd: | |
14625 | + GETBYTE (); | |
14626 | + switch (op[3] & 0xff) | |
11637 | 14627 | { |
11638 | - /** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */ | |
11639 | -#line 894 "rx-decode.opc" | |
11640 | - int rdst AU = op[2] & 0x0f; | |
11641 | - if (trace) | |
11642 | - { | |
11643 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11644 | - "/** 1111 1101 0111 0010 0010 rdst fadd #%1, %0 */", | |
11645 | - op[0], op[1], op[2]); | |
11646 | - printf (" rdst = 0x%x\n", rdst); | |
11647 | - } | |
11648 | - SYNTAX("fadd #%1, %0"); | |
11649 | -#line 894 "rx-decode.opc" | |
11650 | - ID(fadd); DR(rdst); SC(IMM(0)); F__SZ_; | |
11651 | - | |
14628 | + case 0x00: | |
14629 | + goto op_semantics_129; | |
14630 | + break; | |
14631 | + default: UNSUPPORTED(); break; | |
11652 | 14632 | } |
11653 | 14633 | break; |
11654 | - case 0x30: | |
14634 | + case 0xde: | |
14635 | + GETBYTE (); | |
14636 | + switch (op[3] & 0xff) | |
11655 | 14637 | { |
11656 | - /** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */ | |
11657 | -#line 915 "rx-decode.opc" | |
11658 | - int rdst AU = op[2] & 0x0f; | |
14638 | + case 0x00: | |
14639 | + goto op_semantics_129; | |
14640 | + break; | |
14641 | + default: UNSUPPORTED(); break; | |
14642 | + } | |
14643 | + break; | |
14644 | + case 0xdf: | |
14645 | + GETBYTE (); | |
14646 | + switch (op[3] & 0xff) | |
14647 | + { | |
14648 | + case 0x00: | |
14649 | + goto op_semantics_129; | |
14650 | + break; | |
14651 | + default: UNSUPPORTED(); break; | |
14652 | + } | |
14653 | + break; | |
14654 | + case 0xe0: | |
14655 | + { | |
14656 | + /** 1111 1101 0111 0110 1110 0000 save #%1 */ | |
11659 | 14657 | if (trace) |
11660 | 14658 | { |
11661 | 14659 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
11662 | - "/** 1111 1101 0111 0010 0011 rdst fmul #%1, %0 */", | |
14660 | + "/** 1111 1101 0111 0110 1110 0000 save #%1 */", | |
11663 | 14661 | op[0], op[1], op[2]); |
11664 | - printf (" rdst = 0x%x\n", rdst); | |
11665 | 14662 | } |
11666 | - SYNTAX("fmul #%1, %0"); | |
11667 | -#line 915 "rx-decode.opc" | |
11668 | - ID(fmul); DR(rdst); SC(IMM(0)); F__SZ_; | |
14663 | + SYNTAX("save #%1"); | |
14664 | +#line 1164 "rx-decode.opc" | |
14665 | + ID(save); SC(IMM(1)); F_____; | |
11669 | 14666 | |
11670 | 14667 | } |
11671 | 14668 | break; |
11672 | - case 0x40: | |
14669 | + case 0xf0: | |
11673 | 14670 | { |
11674 | - /** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */ | |
11675 | -#line 921 "rx-decode.opc" | |
11676 | - int rdst AU = op[2] & 0x0f; | |
14671 | + /** 1111 1101 0111 0110 1111 0000 rstr #%1 */ | |
11677 | 14672 | if (trace) |
11678 | 14673 | { |
11679 | 14674 | printf ("\033[33m%s\033[0m %02x %02x %02x\n", |
11680 | - "/** 1111 1101 0111 0010 0100 rdst fdiv #%1, %0 */", | |
14675 | + "/** 1111 1101 0111 0110 1111 0000 rstr #%1 */", | |
11681 | 14676 | op[0], op[1], op[2]); |
11682 | - printf (" rdst = 0x%x\n", rdst); | |
11683 | 14677 | } |
11684 | - SYNTAX("fdiv #%1, %0"); | |
11685 | -#line 921 "rx-decode.opc" | |
11686 | - ID(fdiv); DR(rdst); SC(IMM(0)); F__SZ_; | |
14678 | + SYNTAX("rstr #%1"); | |
14679 | +#line 1158 "rx-decode.opc" | |
14680 | + ID(rstr); SC(IMM(1)); F_____; | |
11687 | 14681 | |
11688 | 14682 | } |
11689 | 14683 | break; |
11690 | 14684 | default: UNSUPPORTED(); break; |
11691 | 14685 | } |
11692 | 14686 | break; |
11693 | - case 0x73: | |
14687 | + case 0x77: | |
11694 | 14688 | GETBYTE (); |
11695 | - switch (op[2] & 0xe0) | |
14689 | + switch (op[2] & 0xff) | |
11696 | 14690 | { |
11697 | 14691 | case 0x00: |
11698 | - op_semantics_109: | |
14692 | + case 0x01: | |
14693 | + case 0x02: | |
14694 | + case 0x03: | |
14695 | + case 0x04: | |
14696 | + case 0x05: | |
14697 | + case 0x06: | |
14698 | + case 0x07: | |
14699 | + case 0x08: | |
14700 | + case 0x09: | |
14701 | + case 0x0a: | |
14702 | + case 0x0b: | |
14703 | + case 0x0c: | |
14704 | + case 0x0d: | |
14705 | + case 0x0e: | |
14706 | + case 0x0f: | |
14707 | + case 0x10: | |
14708 | + case 0x11: | |
14709 | + case 0x12: | |
14710 | + case 0x13: | |
14711 | + case 0x14: | |
14712 | + case 0x15: | |
14713 | + case 0x16: | |
14714 | + case 0x17: | |
14715 | + case 0x18: | |
14716 | + case 0x19: | |
14717 | + case 0x1a: | |
14718 | + case 0x1b: | |
14719 | + case 0x1c: | |
14720 | + case 0x1d: | |
14721 | + case 0x1e: | |
14722 | + case 0x1f: | |
14723 | + goto op_semantics_124; | |
14724 | + break; | |
14725 | + case 0x80: | |
14726 | + GETBYTE (); | |
14727 | + switch (op[3] & 0x0f) | |
11699 | 14728 | { |
11700 | - /** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */ | |
11701 | -#line 1011 "rx-decode.opc" | |
11702 | - int im AU = (op[1] >> 2) & 0x03; | |
11703 | -#line 1011 "rx-decode.opc" | |
11704 | - int crdst AU = op[2] & 0x1f; | |
11705 | - if (trace) | |
11706 | - { | |
11707 | - printf ("\033[33m%s\033[0m %02x %02x %02x\n", | |
11708 | - "/** 1111 1101 0111 im11 000crdst mvtc #%1, %0 */", | |
11709 | - op[0], op[1], op[2]); | |
11710 | - printf (" im = 0x%x,", im); | |
11711 | - printf (" crdst = 0x%x\n", crdst); | |
11712 | - } | |
11713 | - SYNTAX("mvtc #%1, %0"); | |
11714 | -#line 1011 "rx-decode.opc" | |
11715 | - ID(mov); SC(IMMex(im)); DR(crdst + 16); | |
14729 | + case 0x00: | |
14730 | + op_semantics_130: | |
14731 | + { | |
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; | |
14737 | + if (trace) | |
14738 | + { | |
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); | |
14744 | + } | |
14745 | + SYNTAX("dmov.l %1, %0"); | |
14746 | +#line 1170 "rx-decode.opc" | |
14747 | + ID(dmov); DDRL(rdst); SR(rsrc); F_____; | |
14748 | + | |
14749 | + } | |
14750 | + break; | |
14751 | + case 0x02: | |
14752 | + case 0x03: | |
14753 | + op_semantics_131: | |
14754 | + { | |
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; | |
14762 | + if (trace) | |
14763 | + { | |
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); | |
14770 | + } | |
14771 | + SYNTAX("dmov%s %1, %0"); | |
14772 | +#line 1167 "rx-decode.opc" | |
14773 | + ID(dmov); DDRH(rdst); SR(rsrc); DL(s); F_____; | |
14774 | + | |
14775 | + } | |
14776 | + break; | |
14777 | + case 0x04: | |
14778 | + op_semantics_132: | |
14779 | + { | |
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; | |
14785 | + if (trace) | |
14786 | + { | |
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); | |
14792 | + } | |
14793 | + SYNTAX("mvtdc %1, %0"); | |
14794 | +#line 1232 "rx-decode.opc" | |
14795 | + ID(mvtdc); DCR(rdst); SR(rsrc); F_____; | |
14796 | + | |
14797 | + } | |
14798 | + break; | |
14799 | + case 0x09: | |
14800 | + op_semantics_133: | |
14801 | + { | |
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; | |
14807 | + if (trace) | |
14808 | + { | |
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); | |
14814 | + } | |
14815 | + SYNTAX("itod %1, %0"); | |
14816 | +#line 1274 "rx-decode.opc" | |
14817 | + ID(itod); DDR(rdst); SR(rsrc); F_____; | |
14818 | + | |
14819 | + } | |
14820 | + break; | |
14821 | + case 0x0a: | |
14822 | + op_semantics_134: | |
14823 | + { | |
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; | |
14829 | + if (trace) | |
14830 | + { | |
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 | + |
Part of diff was cut off due to size limit. Use your local client to view the full diff.