0
|
1 /*
|
|
2 * instab.c
|
|
3 *
|
|
4 * instruction table for assembling
|
|
5 */
|
|
6
|
|
7 #include <stdlib.h>
|
|
8
|
|
9 #define __instab_c_seen__
|
|
10 #include "instab.h"
|
|
11
|
|
12 extern void insn_gen(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
13 extern void insn_inh(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
14 extern void insn_indexed(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
15 extern void insn_rtor(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
16 extern void insn_rlist(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
17 extern void insn_logicmem(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
18 extern void insn_bitbit(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
19 extern void insn_tfm(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
20 extern void insn_rel8(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
21 extern void insn_rel16(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
22 extern void pseudo_org(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
23 extern void pseudo_equ(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
24 extern void pseudo_setdp(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
25 extern void pseudo_fcb(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
26 extern void pseudo_fdb(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
27 extern void pseudo_fqb(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
28 extern void pseudo_fcc(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
29 extern void pseudo_fcs(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
30 extern void pseudo_fcn(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
31 extern void pseudo_rmb(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
32 extern void pseudo_rmd(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
33 extern void pseudo_rmq(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
34 extern void pseudo_zmb(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
35 extern void pseudo_zmd(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
36 extern void pseudo_zmq(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
37 extern void pseudo_align(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
38 extern void pseudo_end(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
39 extern void pseudo_include(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
40 extern void pseudo_macro(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
41 extern void pseudo_endm(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
42 extern void pseudo_cond(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
43 extern void pseudo_else(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
44 extern void pseudo_endc(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
45 extern void pseudo_ifne(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
46 extern void pseudo_ifeq(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
47 extern void pseudo_ifge(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
48 extern void pseudo_ifgt(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
49 extern void pseudo_ifle(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
50 extern void pseudo_iflt(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
51 extern void pseudo_error(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
52 extern void pseudo_set(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
53 extern void pseudo_pragma(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
54 extern void pseudo_starpragma(asmstate_t *as, sourceline_t *cl, char **optr);
|
|
55
|
|
56 instab_t instab[] =
|
|
57 {
|
|
58 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
59 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, INSTYPE_GEN8, 0, insn_gen },
|
|
60 { "adcb", { 0xd9, 0xe9, 0xf9, 0xc9 }, INSTYPE_GEN8, 0, insn_gen },
|
|
61 { "adcd", { 0x1099, 0x10a9, 0x10b9, 0x1089 }, INSTYPE_GEN, 0, insn_gen },
|
|
62 { "adcr", { 0x1031, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
63 { "adda", { 0x9b, 0xab, 0xbb, 0x8b }, INSTYPE_GEN8, 0, insn_gen },
|
|
64 { "addb", { 0xdb, 0xeb, 0xfb, 0xcb }, INSTYPE_GEN8, 0, insn_gen },
|
|
65 { "addd", { 0xd3, 0xe3, 0xf3, 0xc3 }, INSTYPE_GEN, 0, insn_gen },
|
|
66 { "adde", { 0x119b, 0x11ab, 0x11bb, 0x118b }, INSTYPE_GEN8, 0, insn_gen },
|
|
67 { "addf", { 0x11db, 0x11eb, 0x11fb, 0x11cb }, INSTYPE_GEN8, 0, insn_gen },
|
|
68 { "addr", { 0x1030, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
69 { "addw", { 0x109b, 0x10ab, 0x10bb, 0x108b }, INSTYPE_GEN, 0, insn_gen },
|
|
70 { "aim", { 0x02, 0x62, 0x72, -0x1 }, INSTYPE_LOGICMEM, 0, insn_logicmem },
|
|
71 { "anda", { 0x94, 0xa4, 0xb4, 0x84 }, INSTYPE_GEN8, 0, insn_gen },
|
|
72 { "andb", { 0xd4, 0xe4, 0xf4, 0xc4 }, INSTYPE_GEN8, 0, insn_gen },
|
|
73 { "andcc", { 0x1c, -0x1, -0x1, 0x1c }, INSTYPE_IMM8, 0, insn_gen },
|
|
74 { "andd", { 0x1094, 0x10a4, 0x10b4, 0x1084 }, INSTYPE_GEN, 0, insn_gen },
|
|
75 { "andr", { 0x1034, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
76 { "asl", { 0x08, 0x68, 0x78, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
77 { "asla", { 0x48, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
78 { "aslb", { 0x58, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
79 { "asld", { 0x1048, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
80 { "asr", { 0x07, 0x67, 0x77, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
81 { "asra", { 0x47, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
82 { "asrb", { 0x57, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
83 { "asrd", { 0x1047, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
84
|
|
85 { "band", { 0x1130, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
86 { "bcc", { 0x24, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
87 { "bcs", { 0x25, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
88 { "beor", { 0x1134, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
89 { "beq", { 0x27, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
90 { "bge", { 0x2c, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
91 { "bgt", { 0x2e, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
92 { "bhi", { 0x22, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
93 { "bhs", { 0x24, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
94 { "biand", { 0x1131, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
95 { "bieor", { 0x1135, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
96 { "bior", { 0x1133, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
97 { "bita", { 0x95, 0xa5, 0xb5, 0x85 }, INSTYPE_GEN8, 0, insn_gen },
|
|
98 { "bitb", { 0xd5, 0xe5, 0xf5, 0xc5 }, INSTYPE_GEN8, 0, insn_gen },
|
|
99 { "bitd", { 0x1095, 0x10a5, 0x10b5, 0x1085 }, INSTYPE_GEN, 0, insn_gen },
|
|
100 { "bitmd", { 0x113c, -0x1, -0x1, 0x113c }, INSTYPE_IMM8, 0, insn_gen },
|
|
101 { "ble", { 0x2f, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
102 { "blo", { 0x25, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
103 { "bls", { 0x23, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
104 { "blt", { 0x2d, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
105 { "bmi", { 0x2b, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
106 { "bne", { 0x26, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
107 { "bor", { 0x1132, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
108 { "bpl", { 0x2a, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
109 { "bra", { 0x20, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
110 { "brn", { 0x21, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
111 { "bsr", { 0x8d, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
112 { "bvc", { 0x28, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
113 { "bvs", { 0x29, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
114
|
|
115 { "clr", { 0x0f, 0x6f, 0x7f, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
116 { "clra", { 0x4f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
117 { "clrb", { 0x5f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
118 { "clrd", { 0x104f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
119 { "clre", { 0x114f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
120 { "clrf", { 0x115f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
121 { "clrw", { 0x105f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
122 { "cmpa", { 0x91, 0xa1, 0xb1, 0x81 }, INSTYPE_GEN8, 0, insn_gen },
|
|
123 { "cmpb", { 0xd1, 0xe1, 0xf1, 0xc1 }, INSTYPE_GEN8, 0, insn_gen },
|
|
124 { "cmpd", { 0x1093, 0x10a3, 0x10b3, 0x1083 }, INSTYPE_GEN, 0, insn_gen },
|
|
125 { "cmpe", { 0x1191, 0x11a1, 0x11b1, 0x1181 }, INSTYPE_GEN8, 0, insn_gen },
|
|
126 { "cmpf", { 0x11d1, 0x11e1, 0x11f1, 0x11c1 }, INSTYPE_GEN8, 0, insn_gen },
|
|
127 { "cmpr", { 0x1037, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
128 { "cmps", { 0x119c, 0x11ac, 0x11bc, 0x118c }, INSTYPE_GEN, 0, insn_gen },
|
|
129 { "cmpu", { 0x1193, 0x11a3, 0x11b3, 0x1183 }, INSTYPE_GEN, 0, insn_gen },
|
|
130 { "cmpw", { 0x1091, 0x10a1, 0x10b1, 0x1081 }, INSTYPE_GEN, 0, insn_gen },
|
|
131 { "cmpx", { 0x9c, 0xac, 0xbc, 0x8c }, INSTYPE_GEN, 0, insn_gen },
|
|
132 { "cmpy", { 0x109c, 0x10ac, 0x10bc, 0x108c }, INSTYPE_GEN, 0, insn_gen },
|
|
133 { "com", { 0x03, 0x63, 0x73, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
134 { "coma", { 0x43, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
135 { "comb", { 0x53, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
136 { "comd", { 0x1043, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
137 { "come", { 0x1143, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
138 { "comf", { 0x1153, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
139 { "comw", { 0x1053, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
140 { "cwai", { 0x3c, -0x1, -0x1, -0x1 }, INSTYPE_IMM8, 0, insn_gen },
|
|
141
|
|
142 { "daa", { 0x19, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
143 { "dec", { 0x0a, 0x6a, 0x7a, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
144 { "deca", { 0x4a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
145 { "decb", { 0x5a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
146 { "decd", { 0x104a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
147 { "dece", { 0x114a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
148 { "decf", { 0x115a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
149 { "decw", { 0x105a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
150 { "divd", { 0x118d, 0x119d, 0x11ad, 0x11bd }, INSTYPE_GEN8, 0, insn_gen },
|
|
151 { "divq", { 0x118e, 0x119e, 0x11ae, 0x11be }, INSTYPE_GEN, 0, insn_gen },
|
|
152
|
|
153 { "eim", { 0x05, 0x65, 0x75, -0x1 }, INSTYPE_LOGICMEM, 0, insn_logicmem },
|
|
154 { "eora", { 0x98, 0xa8, 0xb8, 0x88 }, INSTYPE_GEN8, 0, insn_gen },
|
|
155 { "eorb", { 0xd8, 0xe9, 0xf9, 0xc8 }, INSTYPE_GEN8, 0, insn_gen },
|
|
156 { "eord", { 0x1098, 0x10a8, 0x10b8, 0x1088 }, INSTYPE_GEN, 0, insn_gen },
|
|
157 { "eorr", { 0x1036, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
158 { "exg", { 0x1e, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
159
|
|
160 { "inc", { 0x0c, 0x6c, 0x7c, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
161 { "inca", { 0x4c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
162 { "incb", { 0x5c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
163 { "incd", { 0x104c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
164 { "ince", { 0x114c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
165 { "incf", { 0x115c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
166 { "incw", { 0x105c, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
167
|
|
168 { "jmp", { 0x0e, 0x6e, 0x7e, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
169 { "jsr", { 0x9d, 0xad, 0xbd, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
170
|
|
171 { "lbcc", { 0x1024, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
172 { "lbcs", { 0x1025, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
173 { "lbeq", { 0x1027, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
174 { "lbge", { 0x102c, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
175 { "lbgt", { 0x102e, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
176 { "lbhi", { 0x1022, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
177 { "lbhs", { 0x1024, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
178 { "lble", { 0x102f, -0x1, -0x1, -0x1 }, INSTYPE_REL8, 0, insn_rel8 },
|
|
179 { "lblo", { 0x1025, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
180 { "lbls", { 0x1023, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
181 { "lblt", { 0x102d, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
182 { "lbmi", { 0x102b, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
183 { "lbne", { 0x1026, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
184 { "lbpl", { 0x102a, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
185 { "lbra", { 0x16, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
186 { "lbrn", { 0x1021, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
187 { "lbsr", { 0x17, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
188 { "lbvc", { 0x1028, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
189 { "lbvs", { 0x1029, -0x1, -0x1, -0x1 }, INSTYPE_REL16, 0, insn_rel16 },
|
|
190 { "lda", { 0x96, 0xa6, 0xb6, 0x86 }, INSTYPE_GEN8, 0, insn_gen },
|
|
191 { "ldb", { 0xd6, 0xe6, 0xf6, 0xc6 }, INSTYPE_GEN8, 0, insn_gen },
|
|
192 { "ldbt", { 0x1136, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
193 { "ldd", { 0xdc, 0xec, 0xfc, 0xcc }, INSTYPE_GEN, 0, insn_gen },
|
|
194 { "lde", { 0x1196, 0x11a6, 0x11b6, 0x1186 }, INSTYPE_GEN8, 0, insn_gen },
|
|
195 { "ldf", { 0x11d6, 0x11e6, 0x11f6, 0x11c6 }, INSTYPE_GEN8, 0, insn_gen },
|
|
196 { "ldq", { 0x10dc, 0x10ec, 0x10fc, 0xcd }, INSTYPE_GEN32, 0, insn_gen },
|
|
197 { "lds", { 0x10de, 0x10ee, 0x10fe, 0x10ce }, INSTYPE_GEN, 0, insn_gen },
|
|
198 { "ldu", { 0xde, 0xee, 0xfe, 0xce }, INSTYPE_GEN, 0, insn_gen },
|
|
199 { "ldw", { 0x1096, 0x10a6, 0x10b6, 0x1086 }, INSTYPE_GEN, 0, insn_gen },
|
|
200 { "ldx", { 0x9e, 0xae, 0xbe, 0x8e }, INSTYPE_GEN, 0, insn_gen },
|
|
201 { "ldy", { 0x109e, 0x10ae, 0x10be, 0x108e }, INSTYPE_GEN, 0, insn_gen },
|
|
202 { "ldmd", { 0x113d, -0x1, -0x1, 0x113d }, INSTYPE_IMM8, 0, insn_gen },
|
|
203 { "leas", { 0x32, -0x1, -0x1, -0x1 }, INSTYPE_INDEX, 0, insn_indexed },
|
|
204 { "leau", { 0x33, -0x1, -0x1, -0x1 }, INSTYPE_INDEX, 0, insn_indexed },
|
|
205 { "leax", { 0x30, -0x1, -0x1, -0x1 }, INSTYPE_INDEX, 0, insn_indexed },
|
|
206 { "leay", { 0x31, -0x1, -0x1, -0x1 }, INSTYPE_INDEX, 0, insn_indexed },
|
|
207 { "lsl", { 0x08, 0x68, 0x78, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
208 { "lsla", { 0x48, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
209 { "lslb", { 0x58, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
210 { "lsld", { 0x1048, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
211 { "lsr", { 0x04, 0x64, 0x74, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
212 { "lsra", { 0x44, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
213 { "lsrb", { 0x54, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
214 { "lsrd", { 0x1044, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
215 { "lsrw", { 0x1054, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
216
|
|
217 { "mul", { 0x3d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
218 { "muld", { 0x118f, 0x119f, 0x11af, 0x11bf }, INSTYPE_GEN, 0, insn_gen },
|
|
219
|
|
220 { "neg", { 0x00, 0x60, 0x70, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
221 { "nega", { 0x40, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
222 { "negb", { 0x50, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
223 { "negd", { 0x1040, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
224 { "nop", { 0x12, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
225
|
|
226 { "oim", { 0x01, 0x61, 0x71, -0x1 }, INSTYPE_LOGICMEM, 0, insn_logicmem },
|
|
227 { "ora", { 0x9a, 0xaa, 0xba, 0x8a }, INSTYPE_GEN8, 0, insn_gen },
|
|
228 { "orb", { 0xda, 0xea, 0xfa, 0xca }, INSTYPE_GEN8, 0, insn_gen },
|
|
229 { "orcc", { 0x1a, -0x1, -0x1, 0x1a }, INSTYPE_IMM8, 0, insn_gen },
|
|
230 { "ord", { 0x109a, 0x10aa, 0x10ba, 0x108a }, INSTYPE_GEN, 0, insn_gen },
|
|
231 { "orr", { 0x1035, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
232
|
|
233 { "pshs", { 0x34, -0x1, -0x1, -0x1 }, INSTYPE_RLIST, 0, insn_rlist },
|
|
234 { "pshsw", { 0x1038, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
235 { "pshu", { 0x36, -0x1, -0x1, -0x1 }, INSTYPE_RLIST, 0, insn_rlist },
|
|
236 { "pshuw", { 0x103a, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
237 { "puls", { 0x35, -0x1, -0x1, -0x1 }, INSTYPE_RLIST, 0, insn_rlist },
|
|
238 { "pulsw", { 0x1039, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
239 { "pulu", { 0x37, -0x1, -0x1, -0x1 }, INSTYPE_RLIST, 0, insn_rlist },
|
|
240 { "puluw", { 0x103b, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
241
|
|
242 { "rol", { 0x09, 0x69, 0x79, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
243 { "rola", { 0x49, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
244 { "rolb", { 0x59, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
245 { "rold", { 0x1049, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
246 { "rolw", { 0x1059, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
247 { "ror", { 0x06, 0x66, 0x76, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
248 { "rora", { 0x46, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
249 { "rorb", { 0x56, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
250 { "rord", { 0x1046, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
251 { "rorw", { 0x1056, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
252 { "rti", { 0x3b, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
253 { "rts", { 0x39, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
254
|
|
255 { "sbca", { 0x92, 0xa2, 0xb2, 0x82 }, INSTYPE_GEN8, 0, insn_gen },
|
|
256 { "sbcb", { 0xd2, 0xe2, 0xf2, 0xc2 }, INSTYPE_GEN8, 0, insn_gen },
|
|
257 { "sbcd", { 0x1092, 0x10a2, 0x10b2, 0x1082 }, INSTYPE_GEN, 0, insn_gen },
|
|
258 { "sbcr", { 0x1033, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
259 { "sex", { 0x1d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
260 { "sexw", { 0x14, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
261 { "sta", { 0x97, 0xa7, 0xb7, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
262 { "stb", { 0xd7, 0xe7, 0xf7, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
263 { "stbt", { 0x1137, -0x1, -0x1, -0x1 }, INSTYPE_BITBIT, 0, insn_bitbit },
|
|
264 { "std", { 0xdd, 0xed, 0xfd, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
265 { "ste", { 0x1197, 0x11a7, 0x11b7, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
266 { "stf", { 0x11d7, 0x11e7, 0x11f7, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
267 { "stq", { 0x10dd, 0x10ed, 0x10fd, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
268 { "sts", { 0x10df, 0x10ef, 0x10ff, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
269 { "stu", { 0xdf, 0xef, 0xff, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
270 { "stw", { 0x1097, 0x10a7, 0x10b7, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
271 { "stx", { 0x9f, 0xaf, 0xbf, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
272 { "sty", { 0x109f, 0x10af, 0x10bf, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
273 { "suba", { 0x90, 0xa0, 0xb0, 0x80 }, INSTYPE_GEN8, 0, insn_gen },
|
|
274 { "subb", { 0xd0, 0xe0, 0xf0, 0xc0 }, INSTYPE_GEN8, 0, insn_gen },
|
|
275 { "subd", { 0x93, 0xa3, 0xb3, 0x83 }, INSTYPE_GEN, 0, insn_gen },
|
|
276 { "sube", { 0x1190, 0x11a0, 0x11b0, 0x1180 }, INSTYPE_GEN8, 0, insn_gen },
|
|
277 { "subf", { 0x11d0, 0x11e0, 0x11f0, 0x11c0 }, INSTYPE_GEN8, 0, insn_gen },
|
|
278 { "subr", { 0x1032, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
279 { "subw", { 0x1090, 0x10a0, 0x1090, 0x1080 }, INSTYPE_GEN8, 0, insn_gen },
|
|
280 { "swi", { 0x3f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
281 { "swi2", { 0x103f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
282 { "swi3", { 0x113f, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
283 { "sync", { 0x13, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
284
|
|
285 // note: r+,r+ r-,r- r+,r r,r+
|
|
286 { "tfm", { 0x1138, 0x1139, 0x113a, 0x113b }, INSTYPE_TFM, 0, insn_tfm },
|
|
287
|
|
288 { "tfr", { 0x1f, -0x1, -0x1, -0x1 }, INSTYPE_RTOR, 0, insn_rtor },
|
|
289 { "tim", { 0x0b, 0x6b, 0x7b, -0x1 }, INSTYPE_LOGICMEM, 0, insn_logicmem },
|
|
290 { "tst", { 0x0d, 0x6d, 0x7d, -0x1 }, INSTYPE_GENNOIMM, 0, insn_gen },
|
|
291 { "tsta", { 0x4d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
292 { "tstb", { 0x5d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
293 { "tstd", { 0x104d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
294 { "tste", { 0x114d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
295 { "tstf", { 0x115d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
296 { "tstw", { 0x105d, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh },
|
|
297
|
|
298 // pseudo ops are here
|
|
299 { "org", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ORG, pseudo_org },
|
|
300 { "equ", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_EQU, pseudo_equ },
|
|
301 { "=", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_EQU, pseudo_equ },
|
|
302 { "setdp", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_SETDP, pseudo_setdp },
|
|
303 { "fcb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FCB, pseudo_fcb },
|
|
304 { "fdb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FDB, pseudo_fdb },
|
|
305 { "fqb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FQB, pseudo_fqb },
|
|
306 { "fcc", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FCC, pseudo_fcc },
|
|
307 { "fcs", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FCS, pseudo_fcs },
|
|
308 { "fcn", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_FCN, pseudo_fcn },
|
|
309 { "rmb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_RMB, pseudo_rmb },
|
|
310 { "align", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ALIGN, pseudo_align },
|
|
311 { "end", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_END, pseudo_end },
|
|
312 { "include",{ -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_INCLUDE, pseudo_include },
|
|
313 // { "absolute", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
314 // { "bsz", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
315 // { "byte", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_fcb },
|
|
316 // { "cond", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_cond },
|
|
317 // { "db", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_fcb },
|
|
318 // { "ds", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_rmb },
|
|
319 // { "dtb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
320 // { "dts", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
321 // { "dw", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_fdb },
|
|
322 // { "dword", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_fqb },
|
|
323 { "else", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ELSE, pseudo_else },
|
|
324 // { "emod", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
325 { "endc", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ENDC, pseudo_endc },
|
|
326 { "endif", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ENDC, pseudo_endc },
|
|
327 // { "even", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
328 // { "fcr", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
329 // { "fill", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
330 // { "fzb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
331 // { "fzd", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
332 // { "fzq", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
333 { "if", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifne },
|
|
334 { "ifeq", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifeq },
|
|
335 { "ifge", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifge },
|
|
336 { "ifgt", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifgt },
|
|
337 { "ifle", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifle },
|
|
338 { "iflt", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_iflt },
|
|
339 { "ifne", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_COND, pseudo_ifne },
|
|
340 // { "ifp1", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
341 // { "ifp2", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
342 // { "lib", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
343 // { "mod", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
344 // { "nam", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
345 // { "name", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
346 // { "nam", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
347 // { "odd", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
348 // { "opt", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
349 // { "pag", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
350 // { "page", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
351 // { "page0", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
352 // { "page1", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
353 { "rmd", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_rmd },
|
|
354 { "rmq", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_rmq },
|
|
355 // { "set", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
356 // { "spc", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
357 // { "title", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
358 // { "ttl", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
359 // { "use", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
360 // { "word", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_fdb },
|
|
361 { "zmb", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_zmb },
|
|
362 { "zmd", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_zmd },
|
|
363 { "zmq", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_zmq },
|
|
364
|
|
365 { "macro", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_MACRO, pseudo_macro },
|
|
366 { "endm", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, SPECIAL_ENDM, pseudo_endm },
|
|
367 // { "struct", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
368 // { "endstruct", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, NULL },
|
|
369
|
|
370 // { "namespace", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_namespace },
|
|
371 // { "endnamespace", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_endnamespace },
|
|
372 // { "endname", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_endnamespace },
|
|
373 { "error", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_error },
|
|
374
|
|
375 { "set", { -1, -1, -1, -1 }, INSTYPE_PSEUDO, 0, pseudo_set },
|
|
376
|
|
377 { "pragma", { -1, -1, -1, -1}, INSTYPE_PSEUDO, 0, pseudo_pragma },
|
|
378 { "*pragma", { -1, -1, -1, -1}, INSTYPE_PSEUDO, 0, pseudo_starpragma },
|
|
379
|
|
380 /* flag end of table */
|
|
381 { NULL, { -0x1, -0x1, -0x1, -0x1 }, INSTYPE_INH, 0, insn_inh }
|
|
382 };
|