Previous 199869 Revisions Next

r33747 Monday 8th December, 2014 at 19:37:58 UTC by David Haywood
(nw)
[src/emu/cpu/arcompact]arcompactdasm.c

trunk/src/emu/cpu/arcompact/arcompactdasm.c
r242258r242259
9292int arcompact_handle04_3e_dasm(DASM_OPS_32);
9393int arcompact_handle04_3f_dasm(DASM_OPS_32);
9494
95int arcompact_handle04_2f_00_dasm(DASM_OPS_32);
96int arcompact_handle04_2f_01_dasm(DASM_OPS_32);
97int arcompact_handle04_2f_02_dasm(DASM_OPS_32);
98int arcompact_handle04_2f_03_dasm(DASM_OPS_32);
99int arcompact_handle04_2f_04_dasm(DASM_OPS_32);
100int arcompact_handle04_2f_05_dasm(DASM_OPS_32);
101int arcompact_handle04_2f_06_dasm(DASM_OPS_32);
102int arcompact_handle04_2f_07_dasm(DASM_OPS_32);
103int arcompact_handle04_2f_08_dasm(DASM_OPS_32);
104int arcompact_handle04_2f_09_dasm(DASM_OPS_32);
105int arcompact_handle04_2f_0a_dasm(DASM_OPS_32);
106int arcompact_handle04_2f_0b_dasm(DASM_OPS_32);
107int arcompact_handle04_2f_0c_dasm(DASM_OPS_32);
108int arcompact_handle04_2f_0d_dasm(DASM_OPS_32);
109int arcompact_handle04_2f_0e_dasm(DASM_OPS_32);
110int arcompact_handle04_2f_0f_dasm(DASM_OPS_32);
111int arcompact_handle04_2f_10_dasm(DASM_OPS_32);
112int arcompact_handle04_2f_11_dasm(DASM_OPS_32);
113int arcompact_handle04_2f_12_dasm(DASM_OPS_32);
114int arcompact_handle04_2f_13_dasm(DASM_OPS_32);
115int arcompact_handle04_2f_14_dasm(DASM_OPS_32);
116int arcompact_handle04_2f_15_dasm(DASM_OPS_32);
117int arcompact_handle04_2f_16_dasm(DASM_OPS_32);
118int arcompact_handle04_2f_17_dasm(DASM_OPS_32);
119int arcompact_handle04_2f_18_dasm(DASM_OPS_32);
120int arcompact_handle04_2f_19_dasm(DASM_OPS_32);
121int arcompact_handle04_2f_1a_dasm(DASM_OPS_32);
122int arcompact_handle04_2f_1b_dasm(DASM_OPS_32);
123int arcompact_handle04_2f_1c_dasm(DASM_OPS_32);
124int arcompact_handle04_2f_1d_dasm(DASM_OPS_32);
125int arcompact_handle04_2f_1e_dasm(DASM_OPS_32);
126int arcompact_handle04_2f_1f_dasm(DASM_OPS_32);
127int arcompact_handle04_2f_20_dasm(DASM_OPS_32);
128int arcompact_handle04_2f_21_dasm(DASM_OPS_32);
129int arcompact_handle04_2f_22_dasm(DASM_OPS_32);
130int arcompact_handle04_2f_23_dasm(DASM_OPS_32);
131int arcompact_handle04_2f_24_dasm(DASM_OPS_32);
132int arcompact_handle04_2f_25_dasm(DASM_OPS_32);
133int arcompact_handle04_2f_26_dasm(DASM_OPS_32);
134int arcompact_handle04_2f_27_dasm(DASM_OPS_32);
135int arcompact_handle04_2f_28_dasm(DASM_OPS_32);
136int arcompact_handle04_2f_29_dasm(DASM_OPS_32);
137int arcompact_handle04_2f_2a_dasm(DASM_OPS_32);
138int arcompact_handle04_2f_2b_dasm(DASM_OPS_32);
139int arcompact_handle04_2f_2c_dasm(DASM_OPS_32);
140int arcompact_handle04_2f_2d_dasm(DASM_OPS_32);
141int arcompact_handle04_2f_2e_dasm(DASM_OPS_32);
142int arcompact_handle04_2f_2f_dasm(DASM_OPS_32);
143int arcompact_handle04_2f_30_dasm(DASM_OPS_32);
144int arcompact_handle04_2f_31_dasm(DASM_OPS_32);
145int arcompact_handle04_2f_32_dasm(DASM_OPS_32);
146int arcompact_handle04_2f_33_dasm(DASM_OPS_32);
147int arcompact_handle04_2f_34_dasm(DASM_OPS_32);
148int arcompact_handle04_2f_35_dasm(DASM_OPS_32);
149int arcompact_handle04_2f_36_dasm(DASM_OPS_32);
150int arcompact_handle04_2f_37_dasm(DASM_OPS_32);
151int arcompact_handle04_2f_38_dasm(DASM_OPS_32);
152int arcompact_handle04_2f_39_dasm(DASM_OPS_32);
153int arcompact_handle04_2f_3a_dasm(DASM_OPS_32);
154int arcompact_handle04_2f_3b_dasm(DASM_OPS_32);
155int arcompact_handle04_2f_3c_dasm(DASM_OPS_32);
156int arcompact_handle04_2f_3d_dasm(DASM_OPS_32);
157int arcompact_handle04_2f_3e_dasm(DASM_OPS_32);
158int arcompact_handle04_2f_3f_dasm(DASM_OPS_32);
95159
96160int arcompact_handle18_00_dasm(DASM_OPS_16);
97161int arcompact_handle18_01_dasm(DASM_OPS_16);
r242258r242259
560624int arcompact_handle04_2c_dasm(DASM_OPS_32)  { print("<illegal 0x04_2c> (%08x)", op); return 4;}
561625int arcompact_handle04_2d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2d> (%08x)", op); return 4;}
562626int arcompact_handle04_2e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2e> (%08x)", op); return 4;}
563int arcompact_handle04_2f_dasm(DASM_OPS_32)  { print("SOP (another subcode) (%08x)", op); return 4;}
627
628int arcompact_handle04_2f_dasm(DASM_OPS_32)
629{
630   int size = 4;
631   UINT8 subinstr2 = (op & 0x0000003f) >> 0;
632   op &= ~0x0000003f;
633
634   switch (subinstr2)
635   {
636      case 0x00: size = arcompact_handle04_2f_00_dasm(output, pc, op, oprom); break; // ASL
637      case 0x01: size = arcompact_handle04_2f_01_dasm(output, pc, op, oprom); break; // ASR
638      case 0x02: size = arcompact_handle04_2f_02_dasm(output, pc, op, oprom); break; // LSR
639      case 0x03: size = arcompact_handle04_2f_03_dasm(output, pc, op, oprom); break; // ROR
640      case 0x04: size = arcompact_handle04_2f_04_dasm(output, pc, op, oprom); break; // RCC
641      case 0x05: size = arcompact_handle04_2f_05_dasm(output, pc, op, oprom); break; // SEXB
642      case 0x06: size = arcompact_handle04_2f_06_dasm(output, pc, op, oprom); break; // SEXW
643      case 0x07: size = arcompact_handle04_2f_07_dasm(output, pc, op, oprom); break; // EXTB
644      case 0x08: size = arcompact_handle04_2f_08_dasm(output, pc, op, oprom); break; // EXTW
645      case 0x09: size = arcompact_handle04_2f_09_dasm(output, pc, op, oprom); break; // ABS
646      case 0x0a: size = arcompact_handle04_2f_0a_dasm(output, pc, op, oprom); break; // NOT
647      case 0x0b: size = arcompact_handle04_2f_0b_dasm(output, pc, op, oprom); break; // RLC
648      case 0x0c: size = arcompact_handle04_2f_0c_dasm(output, pc, op, oprom); break; // EX
649      case 0x0d: size = arcompact_handle04_2f_0d_dasm(output, pc, op, oprom); break; // illegal
650      case 0x0e: size = arcompact_handle04_2f_0e_dasm(output, pc, op, oprom); break; // illegal
651      case 0x0f: size = arcompact_handle04_2f_0f_dasm(output, pc, op, oprom); break; // illegal
652      case 0x10: size = arcompact_handle04_2f_10_dasm(output, pc, op, oprom); break; // illegal
653      case 0x11: size = arcompact_handle04_2f_11_dasm(output, pc, op, oprom); break; // illegal
654      case 0x12: size = arcompact_handle04_2f_12_dasm(output, pc, op, oprom); break; // illegal
655      case 0x13: size = arcompact_handle04_2f_13_dasm(output, pc, op, oprom); break; // illegal
656      case 0x14: size = arcompact_handle04_2f_14_dasm(output, pc, op, oprom); break; // illegal
657      case 0x15: size = arcompact_handle04_2f_15_dasm(output, pc, op, oprom); break; // illegal
658      case 0x16: size = arcompact_handle04_2f_16_dasm(output, pc, op, oprom); break; // illegal
659      case 0x17: size = arcompact_handle04_2f_17_dasm(output, pc, op, oprom); break; // illegal
660      case 0x18: size = arcompact_handle04_2f_18_dasm(output, pc, op, oprom); break; // illegal
661      case 0x19: size = arcompact_handle04_2f_19_dasm(output, pc, op, oprom); break; // illegal
662      case 0x1a: size = arcompact_handle04_2f_1a_dasm(output, pc, op, oprom); break; // illegal
663      case 0x1b: size = arcompact_handle04_2f_1b_dasm(output, pc, op, oprom); break; // illegal
664      case 0x1c: size = arcompact_handle04_2f_1c_dasm(output, pc, op, oprom); break; // illegal
665      case 0x1d: size = arcompact_handle04_2f_1d_dasm(output, pc, op, oprom); break; // illegal
666      case 0x1e: size = arcompact_handle04_2f_1e_dasm(output, pc, op, oprom); break; // illegal
667      case 0x1f: size = arcompact_handle04_2f_1f_dasm(output, pc, op, oprom); break; // illegal
668      case 0x20: size = arcompact_handle04_2f_20_dasm(output, pc, op, oprom); break; // illegal
669      case 0x21: size = arcompact_handle04_2f_21_dasm(output, pc, op, oprom); break; // illegal
670      case 0x22: size = arcompact_handle04_2f_22_dasm(output, pc, op, oprom); break; // illegal
671      case 0x23: size = arcompact_handle04_2f_23_dasm(output, pc, op, oprom); break; // illegal
672      case 0x24: size = arcompact_handle04_2f_24_dasm(output, pc, op, oprom); break; // illegal
673      case 0x25: size = arcompact_handle04_2f_25_dasm(output, pc, op, oprom); break; // illegal
674      case 0x26: size = arcompact_handle04_2f_26_dasm(output, pc, op, oprom); break; // illegal
675      case 0x27: size = arcompact_handle04_2f_27_dasm(output, pc, op, oprom); break; // illegal
676      case 0x28: size = arcompact_handle04_2f_28_dasm(output, pc, op, oprom); break; // illegal
677      case 0x29: size = arcompact_handle04_2f_29_dasm(output, pc, op, oprom); break; // illegal
678      case 0x2a: size = arcompact_handle04_2f_2a_dasm(output, pc, op, oprom); break; // illegal
679      case 0x2b: size = arcompact_handle04_2f_2b_dasm(output, pc, op, oprom); break; // illegal
680      case 0x2c: size = arcompact_handle04_2f_2c_dasm(output, pc, op, oprom); break; // illegal
681      case 0x2d: size = arcompact_handle04_2f_2d_dasm(output, pc, op, oprom); break; // illegal
682      case 0x2e: size = arcompact_handle04_2f_2e_dasm(output, pc, op, oprom); break; // illegal
683      case 0x2f: size = arcompact_handle04_2f_2f_dasm(output, pc, op, oprom); break; // illegal
684      case 0x30: size = arcompact_handle04_2f_30_dasm(output, pc, op, oprom); break; // illegal
685      case 0x31: size = arcompact_handle04_2f_31_dasm(output, pc, op, oprom); break; // illegal
686      case 0x32: size = arcompact_handle04_2f_32_dasm(output, pc, op, oprom); break; // illegal
687      case 0x33: size = arcompact_handle04_2f_33_dasm(output, pc, op, oprom); break; // illegal
688      case 0x34: size = arcompact_handle04_2f_34_dasm(output, pc, op, oprom); break; // illegal
689      case 0x35: size = arcompact_handle04_2f_35_dasm(output, pc, op, oprom); break; // illegal
690      case 0x36: size = arcompact_handle04_2f_36_dasm(output, pc, op, oprom); break; // illegal
691      case 0x37: size = arcompact_handle04_2f_37_dasm(output, pc, op, oprom); break; // illegal
692      case 0x38: size = arcompact_handle04_2f_38_dasm(output, pc, op, oprom); break; // illegal
693      case 0x39: size = arcompact_handle04_2f_39_dasm(output, pc, op, oprom); break; // illegal
694      case 0x3a: size = arcompact_handle04_2f_3a_dasm(output, pc, op, oprom); break; // illegal
695      case 0x3b: size = arcompact_handle04_2f_3b_dasm(output, pc, op, oprom); break; // illegal
696      case 0x3c: size = arcompact_handle04_2f_3c_dasm(output, pc, op, oprom); break; // illegal
697      case 0x3d: size = arcompact_handle04_2f_3d_dasm(output, pc, op, oprom); break; // illegal
698      case 0x3e: size = arcompact_handle04_2f_3e_dasm(output, pc, op, oprom); break; // illegal
699      case 0x3f: size = arcompact_handle04_2f_3f_dasm(output, pc, op, oprom); break; // ZOPs (Zero Operand Opcodes)
700   }
701
702   return size;
703}
704
705
706int arcompact_handle04_2f_00_dasm(DASM_OPS_32)  { print("ASL (%08x)", op); return 4;} // ASL
707int arcompact_handle04_2f_01_dasm(DASM_OPS_32)  { print("ASR (%08x)", op); return 4;} // ASR
708int arcompact_handle04_2f_02_dasm(DASM_OPS_32)  { print("LSR (%08x)", op); return 4;} // LSR
709int arcompact_handle04_2f_03_dasm(DASM_OPS_32)  { print("ROR (%08x)", op); return 4;} // ROR
710int arcompact_handle04_2f_04_dasm(DASM_OPS_32)  { print("RCC (%08x)", op); return 4;} // RCC
711int arcompact_handle04_2f_05_dasm(DASM_OPS_32)  { print("SEXB (%08x)", op); return 4;} // SEXB
712int arcompact_handle04_2f_06_dasm(DASM_OPS_32)  { print("SEXW (%08x)", op); return 4;} // SEXW
713int arcompact_handle04_2f_07_dasm(DASM_OPS_32)  { print("EXTB (%08x)", op); return 4;} // EXTB
714int arcompact_handle04_2f_08_dasm(DASM_OPS_32)  { print("EXTW (%08x)", op); return 4;} // EXTW
715int arcompact_handle04_2f_09_dasm(DASM_OPS_32)  { print("ABS (%08x)", op); return 4;} // ABS
716int arcompact_handle04_2f_0a_dasm(DASM_OPS_32)  { print("NOT (%08x)", op); return 4;} // NOT
717int arcompact_handle04_2f_0b_dasm(DASM_OPS_32)  { print("RLC (%08x)", op); return 4;} // RLC
718int arcompact_handle04_2f_0c_dasm(DASM_OPS_32)  { print("EX (%08x)", op); return 4;} // EX
719int arcompact_handle04_2f_0d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_0d> (%08x)", op); return 4;}
720int arcompact_handle04_2f_0e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_0e> (%08x)", op); return 4;}
721int arcompact_handle04_2f_0f_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_0f> (%08x)", op); return 4;}
722int arcompact_handle04_2f_10_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_10> (%08x)", op); return 4;}
723int arcompact_handle04_2f_11_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_11> (%08x)", op); return 4;}
724int arcompact_handle04_2f_12_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_12> (%08x)", op); return 4;}
725int arcompact_handle04_2f_13_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_13> (%08x)", op); return 4;}
726int arcompact_handle04_2f_14_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_14> (%08x)", op); return 4;}
727int arcompact_handle04_2f_15_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_15> (%08x)", op); return 4;}
728int arcompact_handle04_2f_16_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_16> (%08x)", op); return 4;}
729int arcompact_handle04_2f_17_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_17> (%08x)", op); return 4;}
730int arcompact_handle04_2f_18_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_18> (%08x)", op); return 4;}
731int arcompact_handle04_2f_19_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_19> (%08x)", op); return 4;}
732int arcompact_handle04_2f_1a_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1a> (%08x)", op); return 4;}
733int arcompact_handle04_2f_1b_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1b> (%08x)", op); return 4;}
734int arcompact_handle04_2f_1c_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1c> (%08x)", op); return 4;}
735int arcompact_handle04_2f_1d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1d> (%08x)", op); return 4;}
736int arcompact_handle04_2f_1e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1e> (%08x)", op); return 4;}
737int arcompact_handle04_2f_1f_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_1f> (%08x)", op); return 4;}
738int arcompact_handle04_2f_20_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_20> (%08x)", op); return 4;}
739int arcompact_handle04_2f_21_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_21> (%08x)", op); return 4;}
740int arcompact_handle04_2f_22_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_22> (%08x)", op); return 4;}
741int arcompact_handle04_2f_23_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_23> (%08x)", op); return 4;}
742int arcompact_handle04_2f_24_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_24> (%08x)", op); return 4;}
743int arcompact_handle04_2f_25_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_25> (%08x)", op); return 4;}
744int arcompact_handle04_2f_26_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_26> (%08x)", op); return 4;}
745int arcompact_handle04_2f_27_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_27> (%08x)", op); return 4;}
746int arcompact_handle04_2f_28_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_28> (%08x)", op); return 4;}
747int arcompact_handle04_2f_29_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_29> (%08x)", op); return 4;}
748int arcompact_handle04_2f_2a_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2a> (%08x)", op); return 4;}
749int arcompact_handle04_2f_2b_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2b> (%08x)", op); return 4;}
750int arcompact_handle04_2f_2c_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2c> (%08x)", op); return 4;}
751int arcompact_handle04_2f_2d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2d> (%08x)", op); return 4;}
752int arcompact_handle04_2f_2e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2e> (%08x)", op); return 4;}
753int arcompact_handle04_2f_2f_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_2f> (%08x)", op); return 4;}
754int arcompact_handle04_2f_30_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_30> (%08x)", op); return 4;}
755int arcompact_handle04_2f_31_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_31> (%08x)", op); return 4;}
756int arcompact_handle04_2f_32_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_32> (%08x)", op); return 4;}
757int arcompact_handle04_2f_33_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_33> (%08x)", op); return 4;}
758int arcompact_handle04_2f_34_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_34> (%08x)", op); return 4;}
759int arcompact_handle04_2f_35_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_35> (%08x)", op); return 4;}
760int arcompact_handle04_2f_36_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_36> (%08x)", op); return 4;}
761int arcompact_handle04_2f_37_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_37> (%08x)", op); return 4;}
762int arcompact_handle04_2f_38_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_38> (%08x)", op); return 4;}
763int arcompact_handle04_2f_39_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_39> (%08x)", op); return 4;}
764int arcompact_handle04_2f_3a_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3a> (%08x)", op); return 4;}
765int arcompact_handle04_2f_3b_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3b> (%08x)", op); return 4;}
766int arcompact_handle04_2f_3c_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3c> (%08x)", op); return 4;}
767int arcompact_handle04_2f_3d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3d> (%08x)", op); return 4;}
768int arcompact_handle04_2f_3e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3e> (%08x)", op); return 4;}
769int arcompact_handle04_2f_3f_dasm(DASM_OPS_32)  { print("ZOPs (another table) (%08x)", op); return 4;}
770
771
772
773
774
564775int arcompact_handle04_30_dasm(DASM_OPS_32)  { print("LD r-r (basecase 0x30) (%08x)", op); return 4;}
565776int arcompact_handle04_31_dasm(DASM_OPS_32)  { print("LD r-r (basecase 0x31) (%08x)", op); return 4;}
566777int arcompact_handle04_32_dasm(DASM_OPS_32)  { print("LD r-r (basecase 0x32) (%08x)", op); return 4;}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team