annotate old-trunk/lwasm/old/instab.c @ 339:eb230fa7d28e

Prepare for migration to hg
author lost
date Fri, 19 Mar 2010 02:54:14 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
339
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
1 /*
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
2 instab.c
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
3 Copyright © 2008 William Astle
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
4
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
5 This file is part of LWASM.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
6
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
7 LWASM is free software: you can redistribute it and/or modify it under the
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
8 terms of the GNU General Public License as published by the Free Software
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
10 version.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
11
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
15 more details.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
16
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
17 You should have received a copy of the GNU General Public License along with
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
19
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
20
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
21 Contains the instruction table for assembling code
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
22 */
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
23 #include <config.h>
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
24
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
25 #include <stdlib.h>
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
26 #define __instab_c_seen__
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
27 #include "instab.h"
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
28
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
29 extern OPFUNC(insn_inh);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
30 extern OPFUNC(insn_gen8);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
31 extern OPFUNC(insn_gen16);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
32 extern OPFUNC(insn_gen32);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
33 extern OPFUNC(insn_gen0);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
34 extern OPFUNC(insn_rtor);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
35 extern OPFUNC(insn_imm8);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
36 extern OPFUNC(insn_rel8);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
37 extern OPFUNC(insn_rel16);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
38 extern OPFUNC(insn_rlist);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
39 extern OPFUNC(insn_bitbit);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
40 extern OPFUNC(insn_logicmem);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
41 extern OPFUNC(insn_tfm);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
42 extern OPFUNC(insn_tfmrtor);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
43 extern OPFUNC(insn_indexed);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
44
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
45 extern OPFUNC(pseudo_org);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
46 extern OPFUNC(pseudo_equ);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
47 extern OPFUNC(pseudo_rmb);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
48 extern OPFUNC(pseudo_rmd);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
49 extern OPFUNC(pseudo_rmq);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
50 extern OPFUNC(pseudo_zmb);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
51 extern OPFUNC(pseudo_zmd);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
52 extern OPFUNC(pseudo_zmq);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
53 extern OPFUNC(pseudo_include);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
54 extern OPFUNC(pseudo_end);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
55 extern OPFUNC(pseudo_align);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
56 extern OPFUNC(pseudo_error);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
57 extern OPFUNC(pseudo_fcc);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
58 extern OPFUNC(pseudo_fcs);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
59 extern OPFUNC(pseudo_fcn);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
60 extern OPFUNC(pseudo_fcb);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
61 extern OPFUNC(pseudo_fdb);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
62 extern OPFUNC(pseudo_fqb);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
63 extern OPFUNC(pseudo_ifne);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
64 extern OPFUNC(pseudo_ifeq);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
65 extern OPFUNC(pseudo_ifgt);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
66 extern OPFUNC(pseudo_ifge);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
67 extern OPFUNC(pseudo_iflt);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
68 extern OPFUNC(pseudo_ifle);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
69 extern OPFUNC(pseudo_ifp1);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
70 extern OPFUNC(pseudo_ifp2);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
71 extern OPFUNC(pseudo_else);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
72 extern OPFUNC(pseudo_endc);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
73 extern OPFUNC(pseudo_macro);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
74 extern OPFUNC(pseudo_endm);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
75 extern OPFUNC(pseudo_setdp);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
76 extern OPFUNC(pseudo_set);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
77 extern OPFUNC(pseudo_section);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
78 extern OPFUNC(pseudo_endsection);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
79 extern OPFUNC(pseudo_pragma);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
80 extern OPFUNC(pseudo_starpragma);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
81 extern OPFUNC(pseudo_extern);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
82 extern OPFUNC(pseudo_export);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
83 extern OPFUNC(pseudo_ifdef);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
84 extern OPFUNC(pseudo_ifndef);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
85 extern OPFUNC(pseudo_noop);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
86 extern OPFUNC(pseudo_includebin);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
87
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
88 extern OPFUNC(pseudo_os9);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
89 extern OPFUNC(pseudo_mod);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
90 extern OPFUNC(pseudo_emod);
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
91
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
92 instab_t instab[] =
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
93 {
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
94 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
95 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
96 { "adcb", { 0xd9, 0xe9, 0xf9, 0xc9 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
97 { "adcd", { 0x1099, 0x10a9, 0x10b9, 0x1089 }, insn_gen16 , 0, 0, 0, 1},
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
98 { "adcr", { 0x1031, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
99 { "adda", { 0x9b, 0xab, 0xbb, 0x8b }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
100 { "addb", { 0xdb, 0xeb, 0xfb, 0xcb }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
101 { "addd", { 0xd3, 0xe3, 0xf3, 0xc3 }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
102 { "adde", { 0x119b, 0x11ab, 0x11bb, 0x118b }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
103 { "addf", { 0x11db, 0x11eb, 0x11fb, 0x11cb }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
104 { "addr", { 0x1030, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
105 { "addw", { 0x109b, 0x10ab, 0x10bb, 0x108b }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
106 { "aim", { 0x02, 0x62, 0x72, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
107 { "anda", { 0x94, 0xa4, 0xb4, 0x84 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
108 { "andb", { 0xd4, 0xe4, 0xf4, 0xc4 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
109 { "andcc", { 0x1c, -0x1, -0x1, 0x1c }, insn_imm8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
110 { "andd", { 0x1094, 0x10a4, 0x10b4, 0x1084 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
111 { "andr", { 0x1034, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
112 { "asl", { 0x08, 0x68, 0x78, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
113 { "asla", { 0x48, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
114 { "aslb", { 0x58, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
115 { "asld", { 0x1048, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
116 { "asr", { 0x07, 0x67, 0x77, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
117 { "asra", { 0x47, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
118 { "asrb", { 0x57, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
119 { "asrd", { 0x1047, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
120
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
121 { "band", { 0x1130, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
122 { "bcc", { 0x24, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
123 { "bcs", { 0x25, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
124 { "beor", { 0x1134, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
125 { "beq", { 0x27, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
126 { "bge", { 0x2c, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
127 { "bgt", { 0x2e, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
128 { "bhi", { 0x22, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
129 { "bhs", { 0x24, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
130 { "biand", { 0x1131, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
131 { "bieor", { 0x1135, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
132 { "bior", { 0x1133, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
133 { "bita", { 0x95, 0xa5, 0xb5, 0x85 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
134 { "bitb", { 0xd5, 0xe5, 0xf5, 0xc5 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
135 { "bitd", { 0x1095, 0x10a5, 0x10b5, 0x1085 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
136 { "bitmd", { 0x113c, -0x1, -0x1, 0x113c }, insn_imm8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
137 { "ble", { 0x2f, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
138 { "blo", { 0x25, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
139 { "bls", { 0x23, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
140 { "blt", { 0x2d, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
141 { "bmi", { 0x2b, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
142 { "bne", { 0x26, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
143 { "bor", { 0x1132, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
144 { "bpl", { 0x2a, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
145 { "bra", { 0x20, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
146 { "brn", { 0x21, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
147 { "bsr", { 0x8d, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
148 { "bvc", { 0x28, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
149 { "bvs", { 0x29, -0x1, -0x1, -0x1 }, insn_rel8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
150
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
151 { "clr", { 0x0f, 0x6f, 0x7f, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
152 { "clra", { 0x4f, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
153 { "clrb", { 0x5f, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
154 { "clrd", { 0x104f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
155 { "clre", { 0x114f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
156 { "clrf", { 0x115f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
157 { "clrw", { 0x105f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
158 { "cmpa", { 0x91, 0xa1, 0xb1, 0x81 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
159 { "cmpb", { 0xd1, 0xe1, 0xf1, 0xc1 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
160 { "cmpd", { 0x1093, 0x10a3, 0x10b3, 0x1083 }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
161 { "cmpe", { 0x1191, 0x11a1, 0x11b1, 0x1181 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
162 { "cmpf", { 0x11d1, 0x11e1, 0x11f1, 0x11c1 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
163 { "cmpr", { 0x1037, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
164 { "cmps", { 0x119c, 0x11ac, 0x11bc, 0x118c }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
165 { "cmpu", { 0x1193, 0x11a3, 0x11b3, 0x1183 }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
166 { "cmpw", { 0x1091, 0x10a1, 0x10b1, 0x1081 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
167 { "cmpx", { 0x9c, 0xac, 0xbc, 0x8c }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
168 { "cmpy", { 0x109c, 0x10ac, 0x10bc, 0x108c }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
169 { "com", { 0x03, 0x63, 0x73, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
170 { "coma", { 0x43, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
171 { "comb", { 0x53, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
172 { "comd", { 0x1043, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
173 { "come", { 0x1143, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
174 { "comf", { 0x1153, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
175 { "comw", { 0x1053, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
176 { "cwai", { 0x3c, -0x1, -0x1, -0x1 }, insn_imm8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
177
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
178 { "daa", { 0x19, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
179 { "dec", { 0x0a, 0x6a, 0x7a, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
180 { "deca", { 0x4a, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
181 { "decb", { 0x5a, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
182 { "decd", { 0x104a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
183 { "dece", { 0x114a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
184 { "decf", { 0x115a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
185 { "decw", { 0x105a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
186 { "divd", { 0x118d, 0x119d, 0x11ad, 0x11bd }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
187 { "divq", { 0x118e, 0x119e, 0x11ae, 0x11be }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
188
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
189 { "eim", { 0x05, 0x65, 0x75, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
190 { "eora", { 0x98, 0xa8, 0xb8, 0x88 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
191 { "eorb", { 0xd8, 0xe9, 0xf9, 0xc8 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
192 { "eord", { 0x1098, 0x10a8, 0x10b8, 0x1088 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
193 { "eorr", { 0x1036, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
194 { "exg", { 0x1e, -0x1, -0x1, -0x1 }, insn_rtor },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
195
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
196 { "inc", { 0x0c, 0x6c, 0x7c, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
197 { "inca", { 0x4c, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
198 { "incb", { 0x5c, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
199 { "incd", { 0x104c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
200 { "ince", { 0x114c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
201 { "incf", { 0x115c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
202 { "incw", { 0x105c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
203
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
204 { "jmp", { 0x0e, 0x6e, 0x7e, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
205 { "jsr", { 0x9d, 0xad, 0xbd, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
206
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
207 { "lbcc", { 0x1024, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
208 { "lbcs", { 0x1025, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
209 { "lbeq", { 0x1027, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
210 { "lbge", { 0x102c, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
211 { "lbgt", { 0x102e, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
212 { "lbhi", { 0x1022, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
213 { "lbhs", { 0x1024, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
214 { "lble", { 0x102f, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
215 { "lblo", { 0x1025, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
216 { "lbls", { 0x1023, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
217 { "lblt", { 0x102d, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
218 { "lbmi", { 0x102b, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
219 { "lbne", { 0x1026, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
220 { "lbpl", { 0x102a, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
221 { "lbra", { 0x16, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
222 { "lbrn", { 0x1021, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
223 { "lbsr", { 0x17, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
224 { "lbvc", { 0x1028, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
225 { "lbvs", { 0x1029, -0x1, -0x1, -0x1 }, insn_rel16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
226 { "lda", { 0x96, 0xa6, 0xb6, 0x86 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
227 { "ldb", { 0xd6, 0xe6, 0xf6, 0xc6 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
228 { "ldbt", { 0x1136, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
229 { "ldd", { 0xdc, 0xec, 0xfc, 0xcc }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
230 { "lde", { 0x1196, 0x11a6, 0x11b6, 0x1186 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
231 { "ldf", { 0x11d6, 0x11e6, 0x11f6, 0x11c6 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
232 { "ldq", { 0x10dc, 0x10ec, 0x10fc, 0xcd }, insn_gen32, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
233 { "lds", { 0x10de, 0x10ee, 0x10fe, 0x10ce }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
234 { "ldu", { 0xde, 0xee, 0xfe, 0xce }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
235 { "ldw", { 0x1096, 0x10a6, 0x10b6, 0x1086 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
236 { "ldx", { 0x9e, 0xae, 0xbe, 0x8e }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
237 { "ldy", { 0x109e, 0x10ae, 0x10be, 0x108e }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
238 { "ldmd", { 0x113d, -0x1, -0x1, 0x113d }, insn_imm8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
239 { "leas", { 0x32, -0x1, -0x1, -0x1 }, insn_indexed },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
240 { "leau", { 0x33, -0x1, -0x1, -0x1 }, insn_indexed },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
241 { "leax", { 0x30, -0x1, -0x1, -0x1 }, insn_indexed },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
242 { "leay", { 0x31, -0x1, -0x1, -0x1 }, insn_indexed },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
243 { "lsl", { 0x08, 0x68, 0x78, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
244 { "lsla", { 0x48, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
245 { "lslb", { 0x58, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
246 { "lsld", { 0x1048, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
247 { "lsr", { 0x04, 0x64, 0x74, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
248 { "lsra", { 0x44, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
249 { "lsrb", { 0x54, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
250 { "lsrd", { 0x1044, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
251 { "lsrw", { 0x1054, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
252
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
253 { "mul", { 0x3d, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
254 { "muld", { 0x118f, 0x119f, 0x11af, 0x11bf }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
255
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
256 { "neg", { 0x00, 0x60, 0x70, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
257 { "nega", { 0x40, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
258 { "negb", { 0x50, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
259 { "negd", { 0x1040, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
260 { "nop", { 0x12, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
261
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
262 { "oim", { 0x01, 0x61, 0x71, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
263 { "ora", { 0x9a, 0xaa, 0xba, 0x8a }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
264 { "orb", { 0xda, 0xea, 0xfa, 0xca }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
265 { "orcc", { 0x1a, -0x1, -0x1, 0x1a }, insn_imm8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
266 { "ord", { 0x109a, 0x10aa, 0x10ba, 0x108a }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
267 { "orr", { 0x1035, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
268
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
269 { "pshs", { 0x34, -0x1, -0x1, -0x1 }, insn_rlist },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
270 { "pshsw", { 0x1038, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
271 { "pshu", { 0x36, -0x1, -0x1, -0x1 }, insn_rlist },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
272 { "pshuw", { 0x103a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
273 { "puls", { 0x35, -0x1, -0x1, -0x1 }, insn_rlist },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
274 { "pulsw", { 0x1039, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
275 { "pulu", { 0x37, -0x1, -0x1, -0x1 }, insn_rlist },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
276 { "puluw", { 0x103b, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
277
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
278 { "rol", { 0x09, 0x69, 0x79, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
279 { "rola", { 0x49, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
280 { "rolb", { 0x59, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
281 { "rold", { 0x1049, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
282 { "rolw", { 0x1059, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
283 { "ror", { 0x06, 0x66, 0x76, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
284 { "rora", { 0x46, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
285 { "rorb", { 0x56, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
286 { "rord", { 0x1046, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
287 { "rorw", { 0x1056, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
288 { "rti", { 0x3b, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
289 { "rts", { 0x39, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
290
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
291 { "sbca", { 0x92, 0xa2, 0xb2, 0x82 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
292 { "sbcb", { 0xd2, 0xe2, 0xf2, 0xc2 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
293 { "sbcd", { 0x1092, 0x10a2, 0x10b2, 0x1082 }, insn_gen16, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
294 { "sbcr", { 0x1033, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
295 { "sex", { 0x1d, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
296 { "sexw", { 0x14, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
297 { "sta", { 0x97, 0xa7, 0xb7, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
298 { "stb", { 0xd7, 0xe7, 0xf7, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
299 { "stbt", { 0x1137, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
300 { "std", { 0xdd, 0xed, 0xfd, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
301 { "ste", { 0x1197, 0x11a7, 0x11b7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
302 { "stf", { 0x11d7, 0x11e7, 0x11f7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
303 { "stq", { 0x10dd, 0x10ed, 0x10fd, -0x1 }, insn_gen0, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
304 { "sts", { 0x10df, 0x10ef, 0x10ff, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
305 { "stu", { 0xdf, 0xef, 0xff, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
306 { "stw", { 0x1097, 0x10a7, 0x10b7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
307 { "stx", { 0x9f, 0xaf, 0xbf, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
308 { "sty", { 0x109f, 0x10af, 0x10bf, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
309 { "suba", { 0x90, 0xa0, 0xb0, 0x80 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
310 { "subb", { 0xd0, 0xe0, 0xf0, 0xc0 }, insn_gen8 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
311 { "subd", { 0x93, 0xa3, 0xb3, 0x83 }, insn_gen16 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
312 { "sube", { 0x1190, 0x11a0, 0x11b0, 0x1180 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
313 { "subf", { 0x11d0, 0x11e0, 0x11f0, 0x11c0 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
314 { "subr", { 0x1032, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
315 { "subw", { 0x1090, 0x10a0, 0x1090, 0x1080 }, insn_gen8, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
316 { "swi", { 0x3f, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
317 { "swi2", { 0x103f, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
318 { "swi3", { 0x113f, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
319 { "sync", { 0x13, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
320
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
321 // note: r+,r+ r-,r- r+,r r,r+
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
322 { "tfm", { 0x1138, 0x1139, 0x113a, 0x113b }, insn_tfm, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
323
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
324 // compatibility opcodes for tfm in other assemblers
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
325 { "copy", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
326 { "copy+", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
327 { "tfrp", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
328
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
329 { "copy-", { 0x1139, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
330 { "tfrm", { 0x1139, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
331
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
332 { "imp", { 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
333 { "implode",{ 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
334 { "tfrs", { 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
335
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
336 { "exp", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
337 { "expand", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
338 { "tfrr", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
339
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
340 { "tfr", { 0x1f, -0x1, -0x1, -0x1 }, insn_rtor },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
341 { "tim", { 0x0b, 0x6b, 0x7b, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
342 { "tst", { 0x0d, 0x6d, 0x7d, -0x1 }, insn_gen0 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
343 { "tsta", { 0x4d, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
344 { "tstb", { 0x5d, -0x1, -0x1, -0x1 }, insn_inh },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
345 { "tstd", { 0x104d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
346 { "tste", { 0x114d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
347 { "tstf", { 0x115d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
348 { "tstw", { 0x105d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
349
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
350 { "org", { -1, -1, -1, -1 }, pseudo_org },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
351
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
352 { "equ", { -1, -1, -1, -1 }, pseudo_equ, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
353 { "=", { -1, -1, -1, -1 }, pseudo_equ, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
354 { "extern", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
355 { "external", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
356 { "import", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
357 { "export", { -1, -1, -1, -1 }, pseudo_export, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
358
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
359
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
360 { "rmb", { -1, -1, -1, -1 }, pseudo_rmb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
361 { "rmd", { -1, -1, -1, -1 }, pseudo_rmd },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
362 { "rmq", { -1, -1, -1, -1 }, pseudo_rmq },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
363
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
364 { "zmb", { -1, -1, -1, -1 }, pseudo_zmb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
365 { "zmd", { -1, -1, -1, -1 }, pseudo_zmd },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
366 { "zmq", { -1, -1, -1, -1 }, pseudo_zmq },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
367
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
368 { "fcc", { -1, -1, -1, -1 }, pseudo_fcc },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
369 { "fcn", { -1, -1, -1, -1 }, pseudo_fcn },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
370 { "fcs", { -1, -1, -1, -1 }, pseudo_fcs },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
371
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
372 { "fcb", { -1, -1, -1, -1 }, pseudo_fcb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
373 { "fdb", { -1, -1, -1, -1 }, pseudo_fdb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
374 { "fqb", { -1, -1, -1, -1 }, pseudo_fqb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
375
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
376 { "end", { -1, -1, -1, -1 }, pseudo_end },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
377
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
378 { "includebin", { -1, -1, -1, -1}, pseudo_includebin },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
379 { "include", { -1, -1, -1, -1 }, pseudo_include },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
380 { "use", { -1, -1, -1, -1 }, pseudo_include },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
381
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
382 { "align", { -1, -1, -1, -1 }, pseudo_align },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
383
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
384 { "error", { -1, -1, -1, -1}, pseudo_error },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
385
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
386 // these are *dangerous*
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
387 { "ifp1", { -1, -1, -1, -1}, pseudo_ifp1, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
388 { "ifp2", { -1, -1, -1, -1}, pseudo_ifp2, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
389
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
390 { "ifeq", { -1, -1, -1, -1}, pseudo_ifeq, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
391 { "ifne", { -1, -1, -1, -1}, pseudo_ifne, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
392 { "if", { -1, -1, -1, -1}, pseudo_ifne, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
393 { "ifgt", { -1, -1, -1, -1}, pseudo_ifgt, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
394 { "ifge", { -1, -1, -1, -1}, pseudo_ifge, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
395 { "iflt", { -1, -1, -1, -1}, pseudo_iflt, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
396 { "ifle", { -1, -1, -1, -1}, pseudo_ifle, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
397 { "endc", { -1, -1, -1, -1}, pseudo_endc, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
398 { "else", { -1, -1, -1, -1}, pseudo_else, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
399 { "ifdef", { -1, -1, -1, -1}, pseudo_ifdef, 1},
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
400 { "ifndef", { -1, -1, -1, -1}, pseudo_ifndef, 1},
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
401
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
402 { "macro", { -1, -1, -1, -1}, pseudo_macro, 1, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
403 { "endm", { -1, -1, -1, -1}, pseudo_endm, 1, 1, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
404
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
405 { "setdp", { -1, -1, -1, -1}, pseudo_setdp },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
406 { "set", { -1, -1, -1, -1}, pseudo_set, 0, 0, 1 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
407
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
408 { "section", { -1, -1, -1, -1}, pseudo_section },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
409 { "sect", { -1, -1, -1, -1}, pseudo_section },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
410 { "ends", { -1, -1, -1, -1}, pseudo_endsection },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
411 { "endsect", { -1, -1, -1, -1}, pseudo_endsection },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
412 { "endsection", { -1, -1, -1, -1}, pseudo_endsection },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
413
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
414 { "pragma", { -1, -1, -1, -1}, pseudo_pragma },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
415 { "*pragma", { -1, -1, -1, -1}, pseudo_starpragma },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
416
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
417 // for os9 target
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
418 { "os9", { -1, -1, -1, -1 }, pseudo_os9 },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
419 { "mod", { -1, -1, -1, -1 }, pseudo_mod },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
420 { "emod", { -1, -1, -1, -1 }, pseudo_emod },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
421
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
422 /* for compatibility with gcc6809 output... */
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
423 { ".area", { -1, -1, -1, -1}, pseudo_section },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
424 { ".globl", { -1, -1, -1, -1}, pseudo_export },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
425 { ".module", { -1, -1, -1, -1}, pseudo_noop },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
426
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
427 { ".4byte", { -1, -1, -1, -1}, pseudo_fqb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
428 { ".quad", { -1, -1, -1, -1}, pseudo_fqb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
429
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
430 { ".word", { -1, -1, -1, -1}, pseudo_fdb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
431 { ".dw", { -1, -1, -1, -1}, pseudo_fdb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
432
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
433 { ".byte", { -1, -1, -1, -1}, pseudo_fcb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
434 { ".db", { -1, -1, -1, -1}, pseudo_fcb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
435
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
436 { ".ascii", { -1, -1, -1, -1}, pseudo_fcc },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
437 { ".str", { -1, -1, -1, -1}, pseudo_fcc },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
438
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
439 { ".ascis", { -1, -1, -1, -1}, pseudo_fcs },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
440 { ".strs", { -1, -1, -1, -1}, pseudo_fcs },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
441
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
442 { ".asciz", { -1, -1, -1, -1}, pseudo_fcn },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
443 { ".strz", { -1, -1, -1, -1}, pseudo_fcn },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
444
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
445 { ".blkb", { -1, -1, -1, -1}, pseudo_rmb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
446 { ".ds", { -1, -1, -1, -1}, pseudo_rmb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
447 { ".rs", { -1, -1, -1, -1}, pseudo_rmb },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
448
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
449 // needs to handle C escapes maybe?
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
450 // { ".ascii", { -1, -1, -1, -1}, pseudo_ascii },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
451
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
452 // for compatibility
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
453 { ".end", { -1, -1, -1, -1 }, pseudo_end },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
454
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
455 // extra ops that are ignored because they are generally only for
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
456 // pretty printing the listing
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
457 { "nam", { -1, -1, -1, -1 }, pseudo_noop },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
458 { "pag", { -1, -1, -1, -1 }, pseudo_noop },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
459 { "ttl", { -1, -1, -1, -1 }, pseudo_noop },
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
460
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
461 /* flag end of table */
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
462 { NULL, { -0x1, -0x1, -0x1, -0x1 }, insn_inh }
eb230fa7d28e Prepare for migration to hg
lost
parents:
diff changeset
463 };