1 /* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
2 /* Instruction opcode table for xc16x.
4 THIS FILE IS MACHINE GENERATED WITH CGEN.
6 Copyright (C) 1996-2020 Free Software Foundation, Inc.
8 This file is part of the GNU Binutils and/or GDB, the GNU debugger.
10 This file is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3, or (at your option)
15 It is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 License for more details.
20 You should have received a copy of the GNU General Public License along
21 with this program; if not, write to the Free Software Foundation, Inc.,
22 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
30 #include "xc16x-desc.h"
31 #include "xc16x-opc.h"
32 #include "libiberty.h"
37 /* The hash functions are recorded here to help keep assembler code out of
38 the disassembler and vice versa. */
40 static int asm_hash_insn_p (const CGEN_INSN
*);
41 static unsigned int asm_hash_insn (const char *);
42 static int dis_hash_insn_p (const CGEN_INSN
*);
43 static unsigned int dis_hash_insn (const char *, CGEN_INSN_INT
);
45 /* Instruction formats. */
47 #define F(f) & xc16x_cgen_ifld_table[XC16X_##f]
48 static const CGEN_IFMT ifmt_empty ATTRIBUTE_UNUSED
= {
52 static const CGEN_IFMT ifmt_addrpof ATTRIBUTE_UNUSED
= {
53 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
56 static const CGEN_IFMT ifmt_addbrpof ATTRIBUTE_UNUSED
= {
57 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REGB8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
60 static const CGEN_IFMT ifmt_addrpag ATTRIBUTE_UNUSED
= {
61 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
64 static const CGEN_IFMT ifmt_addbrpag ATTRIBUTE_UNUSED
= {
65 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_REGB8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
68 static const CGEN_IFMT ifmt_addrhpof ATTRIBUTE_UNUSED
= {
69 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
72 static const CGEN_IFMT ifmt_addrhpof3 ATTRIBUTE_UNUSED
= {
73 16, 16, 0x8ff, { { F (F_R1
) }, { F (F_OP_BIT1
) }, { F (F_UIMM3
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
76 static const CGEN_IFMT ifmt_addbrhpag3 ATTRIBUTE_UNUSED
= {
77 16, 16, 0x8ff, { { F (F_R1
) }, { F (F_OP_BIT1
) }, { F (F_UIMM3
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
80 static const CGEN_IFMT ifmt_addrbhpof ATTRIBUTE_UNUSED
= {
81 32, 32, 0xff0000ff, { { F (F_OP_BIT8
) }, { F (F_UIMM8
) }, { F (F_REGB8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
84 static const CGEN_IFMT ifmt_addr ATTRIBUTE_UNUSED
= {
85 16, 16, 0xff, { { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
88 static const CGEN_IFMT ifmt_addbr ATTRIBUTE_UNUSED
= {
89 16, 16, 0xff, { { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
92 static const CGEN_IFMT ifmt_add2 ATTRIBUTE_UNUSED
= {
93 16, 16, 0xcff, { { F (F_R1
) }, { F (F_OP_BIT2
) }, { F (F_R0
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
96 static const CGEN_IFMT ifmt_addb2 ATTRIBUTE_UNUSED
= {
97 16, 16, 0xcff, { { F (F_R1
) }, { F (F_OP_BIT2
) }, { F (F_R0
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
100 static const CGEN_IFMT ifmt_addrm2 ATTRIBUTE_UNUSED
= {
101 32, 32, 0xff, { { F (F_MEMGR8
) }, { F (F_REGMEM8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
104 static const CGEN_IFMT ifmt_addrm ATTRIBUTE_UNUSED
= {
105 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
108 static const CGEN_IFMT ifmt_addbrm2 ATTRIBUTE_UNUSED
= {
109 32, 32, 0xff, { { F (F_MEMGR8
) }, { F (F_REGMEM8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
112 static const CGEN_IFMT ifmt_addbrm ATTRIBUTE_UNUSED
= {
113 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REGB8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
116 static const CGEN_IFMT ifmt_muls ATTRIBUTE_UNUSED
= {
117 16, 16, 0xff, { { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
120 static const CGEN_IFMT ifmt_div ATTRIBUTE_UNUSED
= {
121 16, 16, 0xff, { { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
124 static const CGEN_IFMT ifmt_cpl ATTRIBUTE_UNUSED
= {
125 16, 16, 0xfff, { { F (F_R1
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
128 static const CGEN_IFMT ifmt_cplb ATTRIBUTE_UNUSED
= {
129 16, 16, 0xfff, { { F (F_R1
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
132 static const CGEN_IFMT ifmt_movri ATTRIBUTE_UNUSED
= {
133 16, 16, 0xff, { { F (F_UIMM4
) }, { F (F_R4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
136 static const CGEN_IFMT ifmt_movbri ATTRIBUTE_UNUSED
= {
137 16, 16, 0xff, { { F (F_UIMM4
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
140 static const CGEN_IFMT ifmt_movbr2 ATTRIBUTE_UNUSED
= {
141 16, 16, 0xff, { { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
144 static const CGEN_IFMT ifmt_mov9i ATTRIBUTE_UNUSED
= {
145 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
148 static const CGEN_IFMT ifmt_movb9i ATTRIBUTE_UNUSED
= {
149 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_R1
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
152 static const CGEN_IFMT ifmt_movri11 ATTRIBUTE_UNUSED
= {
153 32, 32, 0xf0ff, { { F (F_MEMORY
) }, { F (F_OP_LBIT4
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
156 static const CGEN_IFMT ifmt_movehm5 ATTRIBUTE_UNUSED
= {
157 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REGOFF8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
160 static const CGEN_IFMT ifmt_movehm6 ATTRIBUTE_UNUSED
= {
161 32, 32, 0xff, { { F (F_UIMM16
) }, { F (F_REGOFF8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
164 static const CGEN_IFMT ifmt_movehm7 ATTRIBUTE_UNUSED
= {
165 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_REGOFF8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
168 static const CGEN_IFMT ifmt_movehm8 ATTRIBUTE_UNUSED
= {
169 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_REGOFF8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
172 static const CGEN_IFMT ifmt_movehm10 ATTRIBUTE_UNUSED
= {
173 32, 32, 0xff0000ff, { { F (F_OP_BIT8
) }, { F (F_UIMM8
) }, { F (F_REGOFF8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
176 static const CGEN_IFMT ifmt_movbsrpofm ATTRIBUTE_UNUSED
= {
177 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REGMEM8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
180 static const CGEN_IFMT ifmt_movbspofmr ATTRIBUTE_UNUSED
= {
181 32, 32, 0xff, { { F (F_MEMORY
) }, { F (F_REGMEM8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
184 static const CGEN_IFMT ifmt_jmpa0 ATTRIBUTE_UNUSED
= {
185 32, 32, 0x4ff, { { F (F_OFFSET16
) }, { F (F_EXTCCODE
) }, { F (F_OP_BITONE
) }, { F (F_OP_ONEBIT
) }, { F (F_OP_1BIT
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
188 static const CGEN_IFMT ifmt_jmpa_ ATTRIBUTE_UNUSED
= {
189 32, 32, 0x5ff, { { F (F_OFFSET16
) }, { F (F_EXTCCODE
) }, { F (F_OP_BITONE
) }, { F (F_OP_ONEBIT
) }, { F (F_OP_1BIT
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
192 static const CGEN_IFMT ifmt_jmpi ATTRIBUTE_UNUSED
= {
193 16, 16, 0xff, { { F (F_ICONDCODE
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
196 static const CGEN_IFMT ifmt_jmpr_nenz ATTRIBUTE_UNUSED
= {
197 16, 16, 0xff, { { F (F_REL8
) }, { F (F_RCOND
) }, { F (F_OP2
) }, { 0 } }
200 static const CGEN_IFMT ifmt_jmpseg ATTRIBUTE_UNUSED
= {
201 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_SEG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
204 static const CGEN_IFMT ifmt_jmps ATTRIBUTE_UNUSED
= {
205 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_SEG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
208 static const CGEN_IFMT ifmt_jb ATTRIBUTE_UNUSED
= {
209 32, 32, 0xf0000ff, { { F (F_QLOBIT
) }, { F (F_QHIBIT
) }, { F (F_RELHI8
) }, { F (F_REGB8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
212 static const CGEN_IFMT ifmt_calla0 ATTRIBUTE_UNUSED
= {
213 32, 32, 0x6ff, { { F (F_OFFSET16
) }, { F (F_EXTCCODE
) }, { F (F_OP_2BIT
) }, { F (F_OP_1BIT
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
216 static const CGEN_IFMT ifmt_calla_ ATTRIBUTE_UNUSED
= {
217 32, 32, 0x7ff, { { F (F_OFFSET16
) }, { F (F_EXTCCODE
) }, { F (F_OP_BIT3
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
220 static const CGEN_IFMT ifmt_callr ATTRIBUTE_UNUSED
= {
221 16, 16, 0xff, { { F (F_REL8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
224 static const CGEN_IFMT ifmt_callseg ATTRIBUTE_UNUSED
= {
225 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_SEG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
228 static const CGEN_IFMT ifmt_pcall ATTRIBUTE_UNUSED
= {
229 32, 32, 0xff, { { F (F_OFFSET16
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
232 static const CGEN_IFMT ifmt_trap ATTRIBUTE_UNUSED
= {
233 16, 16, 0x1ff, { { F (F_UIMM7
) }, { F (F_OP_1BIT
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
236 static const CGEN_IFMT ifmt_ret ATTRIBUTE_UNUSED
= {
237 16, 16, 0xff0000ff, { { F (F_OP_BIT8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
240 static const CGEN_IFMT ifmt_retp ATTRIBUTE_UNUSED
= {
241 16, 16, 0xff, { { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
244 static const CGEN_IFMT ifmt_reti ATTRIBUTE_UNUSED
= {
245 16, 16, 0xffff, { { F (F_OP_LBIT4
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
248 static const CGEN_IFMT ifmt_srstm ATTRIBUTE_UNUSED
= {
249 32, 32, 0xffffffff, { { F (F_OP_BIT8
) }, { F (F_DATA8
) }, { F (F_OP_LBIT4
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
252 static const CGEN_IFMT ifmt_atomic ATTRIBUTE_UNUSED
= {
253 16, 16, 0xcfff, { { F (F_OP_LBIT2
) }, { F (F_UIMM2
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
256 static const CGEN_IFMT ifmt_extp ATTRIBUTE_UNUSED
= {
257 16, 16, 0xc0ff, { { F (F_OP_LBIT2
) }, { F (F_UIMM2
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
260 static const CGEN_IFMT ifmt_extp1 ATTRIBUTE_UNUSED
= {
261 32, 32, 0xfc00cfff, { { F (F_QLOBIT
) }, { F (F_QLOBIT2
) }, { F (F_PAGENUM
) }, { F (F_OP_LBIT2
) }, { F (F_UIMM2
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
264 static const CGEN_IFMT ifmt_extpg1 ATTRIBUTE_UNUSED
= {
265 32, 32, 0xcfff, { { F (F_UIMM16
) }, { F (F_OP_LBIT2
) }, { F (F_UIMM2
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
268 static const CGEN_IFMT ifmt_exts1 ATTRIBUTE_UNUSED
= {
269 32, 32, 0xff00cfff, { { F (F_OP_BIT8
) }, { F (F_SEGNUM8
) }, { F (F_OP_LBIT2
) }, { F (F_UIMM2
) }, { F (F_OP_BIT4
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
272 static const CGEN_IFMT ifmt_bclr18 ATTRIBUTE_UNUSED
= {
273 16, 16, 0xff, { { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
276 static const CGEN_IFMT ifmt_bclr0 ATTRIBUTE_UNUSED
= {
277 16, 16, 0xff, { { F (F_REG8
) }, { F (F_QCOND
) }, { F (F_OP2
) }, { 0 } }
280 static const CGEN_IFMT ifmt_bmov ATTRIBUTE_UNUSED
= {
281 32, 32, 0xff, { { F (F_QLOBIT
) }, { F (F_QHIBIT
) }, { F (F_REGHI8
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
284 static const CGEN_IFMT ifmt_bfldl ATTRIBUTE_UNUSED
= {
285 32, 32, 0xff, { { F (F_DATAHI8
) }, { F (F_MASK8
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
288 static const CGEN_IFMT ifmt_bfldh ATTRIBUTE_UNUSED
= {
289 32, 32, 0xff, { { F (F_DATAHI8
) }, { F (F_DATA8
) }, { F (F_REG8
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
292 static const CGEN_IFMT ifmt_cmpri ATTRIBUTE_UNUSED
= {
293 16, 16, 0x8ff, { { F (F_R1
) }, { F (F_OP_BIT1
) }, { F (F_UIMM3
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
296 static const CGEN_IFMT ifmt_cmpd1ri ATTRIBUTE_UNUSED
= {
297 16, 16, 0xff, { { F (F_UIMM4
) }, { F (F_R2
) }, { F (F_OP1
) }, { F (F_OP2
) }, { 0 } }
302 #define A(a) (1 << CGEN_INSN_##a)
303 #define OPERAND(op) XC16X_OPERAND_##op
304 #define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
305 #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
307 /* The instruction table. */
309 static const CGEN_OPCODE xc16x_cgen_insn_opcode_table
[MAX_INSNS
] =
311 /* Special null first entry.
312 A `num' value of zero is thus invalid.
313 Also, the special `invalid' insn resides here. */
314 { { 0, 0, 0, 0 }, {{0}}, 0, {0}},
315 /* add $reg8,$pof$upof16 */
318 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
319 & ifmt_addrpof
, { 0x2 }
321 /* sub $reg8,$pof$upof16 */
324 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
325 & ifmt_addrpof
, { 0x22 }
327 /* addb $regb8,$pof$upof16 */
330 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
331 & ifmt_addbrpof
, { 0x3 }
333 /* subb $regb8,$pof$upof16 */
336 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
337 & ifmt_addbrpof
, { 0x23 }
339 /* add $reg8,$pag$upag16 */
342 { { MNEM
, ' ', OP (REG8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
343 & ifmt_addrpag
, { 0x2 }
345 /* sub $reg8,$pag$upag16 */
348 { { MNEM
, ' ', OP (REG8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
349 & ifmt_addrpag
, { 0x22 }
351 /* addb $regb8,$pag$upag16 */
354 { { MNEM
, ' ', OP (REGB8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
355 & ifmt_addbrpag
, { 0x3 }
357 /* subb $regb8,$pag$upag16 */
360 { { MNEM
, ' ', OP (REGB8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
361 & ifmt_addbrpag
, { 0x23 }
363 /* addc $reg8,$pof$upof16 */
366 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
367 & ifmt_addrpof
, { 0x12 }
369 /* subc $reg8,$pof$upof16 */
372 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
373 & ifmt_addrpof
, { 0x32 }
375 /* addcb $regb8,$pof$upof16 */
378 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
379 & ifmt_addbrpof
, { 0x13 }
381 /* subcb $regb8,$pof$upof16 */
384 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
385 & ifmt_addbrpof
, { 0x33 }
387 /* addc $reg8,$pag$upag16 */
390 { { MNEM
, ' ', OP (REG8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
391 & ifmt_addrpag
, { 0x12 }
393 /* subc $reg8,$pag$upag16 */
396 { { MNEM
, ' ', OP (REG8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
397 & ifmt_addrpag
, { 0x32 }
399 /* addcb $regb8,$pag$upag16 */
402 { { MNEM
, ' ', OP (REGB8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
403 & ifmt_addbrpag
, { 0x13 }
405 /* subcb $regb8,$pag$upag16 */
408 { { MNEM
, ' ', OP (REGB8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
409 & ifmt_addbrpag
, { 0x33 }
411 /* add $pof$upof16,$reg8 */
414 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
415 & ifmt_addrpof
, { 0x4 }
417 /* sub $pof$upof16,$reg8 */
420 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
421 & ifmt_addrpof
, { 0x24 }
423 /* addb $pof$upof16,$regb8 */
426 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
427 & ifmt_addbrpof
, { 0x5 }
429 /* subb $pof$upof16,$regb8 */
432 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
433 & ifmt_addbrpof
, { 0x25 }
435 /* addc $pof$upof16,$reg8 */
438 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
439 & ifmt_addrpof
, { 0x14 }
441 /* subc $pof$upof16,$reg8 */
444 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
445 & ifmt_addrpof
, { 0x34 }
447 /* addcb $pof$upof16,$regb8 */
450 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
451 & ifmt_addbrpof
, { 0x15 }
453 /* subcb $pof$upof16,$regb8 */
456 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
457 & ifmt_addbrpof
, { 0x35 }
459 /* add $reg8,$hash$pof$uimm16 */
462 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (POF
), OP (UIMM16
), 0 } },
463 & ifmt_addrhpof
, { 0x6 }
465 /* sub $reg8,$hash$pof$uimm16 */
468 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (POF
), OP (UIMM16
), 0 } },
469 & ifmt_addrhpof
, { 0x26 }
471 /* add $reg8,$hash$pag$uimm16 */
474 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (PAG
), OP (UIMM16
), 0 } },
475 & ifmt_addrhpof
, { 0x6 }
477 /* sub $reg8,$hash$pag$uimm16 */
480 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (PAG
), OP (UIMM16
), 0 } },
481 & ifmt_addrhpof
, { 0x26 }
483 /* add $dr,$hash$pof$uimm3 */
486 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
487 & ifmt_addrhpof3
, { 0x8 }
489 /* sub $dr,$hash$pof$uimm3 */
492 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
493 & ifmt_addrhpof3
, { 0x28 }
495 /* addb $drb,$hash$pag$uimm3 */
498 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
499 & ifmt_addbrhpag3
, { 0x9 }
501 /* subb $drb,$hash$pag$uimm3 */
504 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
505 & ifmt_addbrhpag3
, { 0x29 }
507 /* add $dr,$hash$pag$uimm3 */
510 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
511 & ifmt_addrhpof3
, { 0x8 }
513 /* sub $dr,$hash$pag$uimm3 */
516 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
517 & ifmt_addrhpof3
, { 0x28 }
519 /* addb $drb,$hash$pof$uimm3 */
522 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
523 & ifmt_addbrhpag3
, { 0x9 }
525 /* subb $drb,$hash$pof$uimm3 */
528 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
529 & ifmt_addbrhpag3
, { 0x29 }
531 /* addb $regb8,$hash$pof$uimm8 */
534 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (POF
), OP (UIMM8
), 0 } },
535 & ifmt_addrbhpof
, { 0x7 }
537 /* subb $regb8,$hash$pof$uimm8 */
540 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (POF
), OP (UIMM8
), 0 } },
541 & ifmt_addrbhpof
, { 0x27 }
543 /* addb $regb8,$hash$pag$uimm8 */
546 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (PAG
), OP (UIMM8
), 0 } },
547 & ifmt_addrbhpof
, { 0x7 }
549 /* subb $regb8,$hash$pag$uimm8 */
552 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (PAG
), OP (UIMM8
), 0 } },
553 & ifmt_addrbhpof
, { 0x27 }
555 /* addc $reg8,$hash$pof$uimm16 */
558 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (POF
), OP (UIMM16
), 0 } },
559 & ifmt_addrhpof
, { 0x16 }
561 /* subc $reg8,$hash$pof$uimm16 */
564 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (POF
), OP (UIMM16
), 0 } },
565 & ifmt_addrhpof
, { 0x36 }
567 /* addc $reg8,$hash$pag$uimm16 */
570 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (PAG
), OP (UIMM16
), 0 } },
571 & ifmt_addrhpof
, { 0x16 }
573 /* subc $reg8,$hash$pag$uimm16 */
576 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (PAG
), OP (UIMM16
), 0 } },
577 & ifmt_addrhpof
, { 0x36 }
579 /* addc $dr,$hash$pof$uimm3 */
582 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
583 & ifmt_addrhpof3
, { 0x18 }
585 /* subc $dr,$hash$pof$uimm3 */
588 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
589 & ifmt_addrhpof3
, { 0x38 }
591 /* addcb $drb,$hash$pag$uimm3 */
594 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
595 & ifmt_addbrhpag3
, { 0x19 }
597 /* subcb $drb,$hash$pag$uimm3 */
600 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
601 & ifmt_addbrhpag3
, { 0x39 }
603 /* addc $dr,$hash$pag$uimm3 */
606 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
607 & ifmt_addrhpof3
, { 0x18 }
609 /* subc $dr,$hash$pag$uimm3 */
612 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (PAG
), OP (UIMM3
), 0 } },
613 & ifmt_addrhpof3
, { 0x38 }
615 /* addcb $drb,$hash$pof$uimm3 */
618 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
619 & ifmt_addbrhpag3
, { 0x19 }
621 /* subcb $drb,$hash$pof$uimm3 */
624 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (POF
), OP (UIMM3
), 0 } },
625 & ifmt_addbrhpag3
, { 0x39 }
627 /* addcb $regb8,$hash$pof$uimm8 */
630 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (POF
), OP (UIMM8
), 0 } },
631 & ifmt_addrbhpof
, { 0x17 }
633 /* subcb $regb8,$hash$pof$uimm8 */
636 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (POF
), OP (UIMM8
), 0 } },
637 & ifmt_addrbhpof
, { 0x37 }
639 /* addcb $regb8,$hash$pag$uimm8 */
642 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (PAG
), OP (UIMM8
), 0 } },
643 & ifmt_addrbhpof
, { 0x17 }
645 /* subcb $regb8,$hash$pag$uimm8 */
648 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (PAG
), OP (UIMM8
), 0 } },
649 & ifmt_addrbhpof
, { 0x37 }
651 /* add $dr,$hash$uimm3 */
654 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
655 & ifmt_addrhpof3
, { 0x8 }
657 /* sub $dr,$hash$uimm3 */
660 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
661 & ifmt_addrhpof3
, { 0x28 }
663 /* addb $drb,$hash$uimm3 */
666 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
667 & ifmt_addbrhpag3
, { 0x9 }
669 /* subb $drb,$hash$uimm3 */
672 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
673 & ifmt_addbrhpag3
, { 0x29 }
675 /* add $reg8,$hash$uimm16 */
678 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
679 & ifmt_addrhpof
, { 0x6 }
681 /* sub $reg8,$hash$uimm16 */
684 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
685 & ifmt_addrhpof
, { 0x26 }
687 /* addb $regb8,$hash$uimm8 */
690 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
691 & ifmt_addrbhpof
, { 0x7 }
693 /* subb $regb8,$hash$uimm8 */
696 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
697 & ifmt_addrbhpof
, { 0x27 }
699 /* addc $dr,$hash$uimm3 */
702 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
703 & ifmt_addrhpof3
, { 0x18 }
705 /* subc $dr,$hash$uimm3 */
708 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
709 & ifmt_addrhpof3
, { 0x38 }
711 /* addcb $drb,$hash$uimm3 */
714 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
715 & ifmt_addbrhpag3
, { 0x19 }
717 /* subcb $drb,$hash$uimm3 */
720 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
721 & ifmt_addbrhpag3
, { 0x39 }
723 /* addc $reg8,$hash$uimm16 */
726 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
727 & ifmt_addrhpof
, { 0x16 }
729 /* subc $reg8,$hash$uimm16 */
732 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
733 & ifmt_addrhpof
, { 0x36 }
735 /* addcb $regb8,$hash$uimm8 */
738 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
739 & ifmt_addrbhpof
, { 0x17 }
741 /* subcb $regb8,$hash$uimm8 */
744 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
745 & ifmt_addrbhpof
, { 0x37 }
750 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
756 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
757 & ifmt_addr
, { 0x20 }
762 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
763 & ifmt_addbr
, { 0x1 }
768 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
769 & ifmt_addbr
, { 0x21 }
774 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
775 & ifmt_add2
, { 0x808 }
780 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
781 & ifmt_add2
, { 0x828 }
783 /* addb $drb,[$sr2] */
786 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
787 & ifmt_addb2
, { 0x809 }
789 /* subb $drb,[$sr2] */
792 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
793 & ifmt_addb2
, { 0x829 }
795 /* add $dr,[$sr2+] */
798 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
799 & ifmt_add2
, { 0xc08 }
801 /* sub $dr,[$sr2+] */
804 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
805 & ifmt_add2
, { 0xc28 }
807 /* addb $drb,[$sr2+] */
810 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
811 & ifmt_addb2
, { 0xc09 }
813 /* subb $drb,[$sr2+] */
816 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
817 & ifmt_addb2
, { 0xc29 }
822 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
823 & ifmt_addr
, { 0x10 }
828 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
829 & ifmt_addr
, { 0x30 }
831 /* addcb $drb,$srb */
834 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
835 & ifmt_addbr
, { 0x11 }
837 /* subcb $drb,$srb */
840 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
841 & ifmt_addbr
, { 0x31 }
843 /* addc $dr,[$sr2] */
846 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
847 & ifmt_add2
, { 0x818 }
849 /* subc $dr,[$sr2] */
852 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
853 & ifmt_add2
, { 0x838 }
855 /* addcb $drb,[$sr2] */
858 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
859 & ifmt_addb2
, { 0x819 }
861 /* subcb $drb,[$sr2] */
864 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
865 & ifmt_addb2
, { 0x839 }
867 /* addc $dr,[$sr2+] */
870 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
871 & ifmt_add2
, { 0xc18 }
873 /* subc $dr,[$sr2+] */
876 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
877 & ifmt_add2
, { 0xc38 }
879 /* addcb $drb,[$sr2+] */
882 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
883 & ifmt_addb2
, { 0xc19 }
885 /* subcb $drb,[$sr2+] */
888 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
889 & ifmt_addb2
, { 0xc39 }
891 /* add $regmem8,$memgr8 */
894 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
895 & ifmt_addrm2
, { 0x2 }
897 /* add $memgr8,$regmem8 */
900 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
901 & ifmt_addrm2
, { 0x4 }
903 /* add $reg8,$memory */
906 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
907 & ifmt_addrm
, { 0x2 }
909 /* add $memory,$reg8 */
912 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
913 & ifmt_addrm
, { 0x4 }
915 /* sub $regmem8,$memgr8 */
918 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
919 & ifmt_addrm2
, { 0x22 }
921 /* sub $memgr8,$regmem8 */
924 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
925 & ifmt_addrm2
, { 0x24 }
927 /* sub $reg8,$memory */
930 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
931 & ifmt_addrm
, { 0x22 }
933 /* sub $memory,$reg8 */
936 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
937 & ifmt_addrm
, { 0x24 }
939 /* addb $regbmem8,$memgr8 */
942 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
943 & ifmt_addbrm2
, { 0x3 }
945 /* addb $memgr8,$regbmem8 */
948 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
949 & ifmt_addbrm2
, { 0x5 }
951 /* addb $regb8,$memory */
954 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
955 & ifmt_addbrm
, { 0x3 }
957 /* addb $memory,$regb8 */
960 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
961 & ifmt_addbrm
, { 0x5 }
963 /* subb $regbmem8,$memgr8 */
966 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
967 & ifmt_addbrm2
, { 0x23 }
969 /* subb $memgr8,$regbmem8 */
972 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
973 & ifmt_addbrm2
, { 0x25 }
975 /* subb $regb8,$memory */
978 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
979 & ifmt_addbrm
, { 0x23 }
981 /* subb $memory,$regb8 */
984 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
985 & ifmt_addbrm
, { 0x25 }
987 /* addc $regmem8,$memgr8 */
990 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
991 & ifmt_addrm2
, { 0x12 }
993 /* addc $memgr8,$regmem8 */
996 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
997 & ifmt_addrm2
, { 0x14 }
999 /* addc $reg8,$memory */
1002 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1003 & ifmt_addrm
, { 0x12 }
1005 /* addc $memory,$reg8 */
1008 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1009 & ifmt_addrm
, { 0x14 }
1011 /* subc $regmem8,$memgr8 */
1014 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1015 & ifmt_addrm2
, { 0x32 }
1017 /* subc $memgr8,$regmem8 */
1020 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
1021 & ifmt_addrm2
, { 0x34 }
1023 /* subc $reg8,$memory */
1026 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1027 & ifmt_addrm
, { 0x32 }
1029 /* subc $memory,$reg8 */
1032 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1033 & ifmt_addrm
, { 0x34 }
1035 /* addcb $regbmem8,$memgr8 */
1038 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1039 & ifmt_addbrm2
, { 0x13 }
1041 /* addcb $memgr8,$regbmem8 */
1044 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1045 & ifmt_addbrm2
, { 0x15 }
1047 /* addcb $regb8,$memory */
1050 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1051 & ifmt_addbrm
, { 0x13 }
1053 /* addcb $memory,$regb8 */
1056 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1057 & ifmt_addbrm
, { 0x15 }
1059 /* subcb $regbmem8,$memgr8 */
1062 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1063 & ifmt_addbrm2
, { 0x33 }
1065 /* subcb $memgr8,$regbmem8 */
1068 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1069 & ifmt_addbrm2
, { 0x35 }
1071 /* subcb $regb8,$memory */
1074 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1075 & ifmt_addbrm
, { 0x33 }
1077 /* subcb $memory,$regb8 */
1080 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1081 & ifmt_addbrm
, { 0x35 }
1083 /* mul $src1,$src2 */
1086 { { MNEM
, ' ', OP (SRC1
), ',', OP (SRC2
), 0 } },
1087 & ifmt_muls
, { 0xb }
1089 /* mulu $src1,$src2 */
1092 { { MNEM
, ' ', OP (SRC1
), ',', OP (SRC2
), 0 } },
1093 & ifmt_muls
, { 0x1b }
1098 { { MNEM
, ' ', OP (SRDIV
), 0 } },
1099 & ifmt_div
, { 0x4b }
1104 { { MNEM
, ' ', OP (SRDIV
), 0 } },
1105 & ifmt_div
, { 0x6b }
1110 { { MNEM
, ' ', OP (SRDIV
), 0 } },
1111 & ifmt_div
, { 0x7b }
1116 { { MNEM
, ' ', OP (SRDIV
), 0 } },
1117 & ifmt_div
, { 0x5b }
1122 { { MNEM
, ' ', OP (DR
), 0 } },
1123 & ifmt_cpl
, { 0x91 }
1128 { { MNEM
, ' ', OP (DRB
), 0 } },
1129 & ifmt_cplb
, { 0xb1 }
1134 { { MNEM
, ' ', OP (DR
), 0 } },
1135 & ifmt_cpl
, { 0x81 }
1140 { { MNEM
, ' ', OP (DRB
), 0 } },
1141 & ifmt_cplb
, { 0xa1 }
1146 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
1147 & ifmt_addr
, { 0x60 }
1152 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
1153 & ifmt_addr
, { 0x70 }
1158 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
1159 & ifmt_addr
, { 0x50 }
1161 /* andb $drb,$srb */
1164 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
1165 & ifmt_addbr
, { 0x61 }
1170 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
1171 & ifmt_addbr
, { 0x71 }
1173 /* xorb $drb,$srb */
1176 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
1177 & ifmt_addbr
, { 0x51 }
1179 /* and $dr,$hash$uimm3 */
1182 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1183 & ifmt_addrhpof3
, { 0x68 }
1185 /* or $dr,$hash$uimm3 */
1188 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1189 & ifmt_addrhpof3
, { 0x78 }
1191 /* xor $dr,$hash$uimm3 */
1194 { { MNEM
, ' ', OP (DR
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1195 & ifmt_addrhpof3
, { 0x58 }
1197 /* andb $drb,$hash$uimm3 */
1200 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1201 & ifmt_addbrhpag3
, { 0x69 }
1203 /* orb $drb,$hash$uimm3 */
1206 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1207 & ifmt_addbrhpag3
, { 0x79 }
1209 /* xorb $drb,$hash$uimm3 */
1212 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
1213 & ifmt_addbrhpag3
, { 0x59 }
1215 /* and $reg8,$hash$uimm16 */
1218 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
1219 & ifmt_addrhpof
, { 0x66 }
1221 /* or $reg8,$hash$uimm16 */
1224 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
1225 & ifmt_addrhpof
, { 0x76 }
1227 /* xor $reg8,$hash$uimm16 */
1230 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
1231 & ifmt_addrhpof
, { 0x56 }
1233 /* andb $regb8,$hash$uimm8 */
1236 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
1237 & ifmt_addrbhpof
, { 0x67 }
1239 /* orb $regb8,$hash$uimm8 */
1242 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
1243 & ifmt_addrbhpof
, { 0x77 }
1245 /* xorb $regb8,$hash$uimm8 */
1248 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
1249 & ifmt_addrbhpof
, { 0x57 }
1251 /* and $dr,[$sr2] */
1254 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
1255 & ifmt_add2
, { 0x868 }
1260 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
1261 & ifmt_add2
, { 0x878 }
1263 /* xor $dr,[$sr2] */
1266 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
1267 & ifmt_add2
, { 0x858 }
1269 /* andb $drb,[$sr2] */
1272 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
1273 & ifmt_addb2
, { 0x869 }
1275 /* orb $drb,[$sr2] */
1278 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
1279 & ifmt_addb2
, { 0x879 }
1281 /* xorb $drb,[$sr2] */
1284 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
1285 & ifmt_addb2
, { 0x859 }
1287 /* and $dr,[$sr2+] */
1290 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
1291 & ifmt_add2
, { 0xc68 }
1293 /* or $dr,[$sr2+] */
1296 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
1297 & ifmt_add2
, { 0xc78 }
1299 /* xor $dr,[$sr2+] */
1302 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
1303 & ifmt_add2
, { 0xc58 }
1305 /* andb $drb,[$sr2+] */
1308 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
1309 & ifmt_addb2
, { 0xc69 }
1311 /* orb $drb,[$sr2+] */
1314 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
1315 & ifmt_addb2
, { 0xc79 }
1317 /* xorb $drb,[$sr2+] */
1320 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
1321 & ifmt_addb2
, { 0xc59 }
1323 /* and $pof$reg8,$upof16 */
1326 { { MNEM
, ' ', OP (POF
), OP (REG8
), ',', OP (UPOF16
), 0 } },
1327 & ifmt_addrpof
, { 0x62 }
1329 /* or $pof$reg8,$upof16 */
1332 { { MNEM
, ' ', OP (POF
), OP (REG8
), ',', OP (UPOF16
), 0 } },
1333 & ifmt_addrpof
, { 0x72 }
1335 /* xor $pof$reg8,$upof16 */
1338 { { MNEM
, ' ', OP (POF
), OP (REG8
), ',', OP (UPOF16
), 0 } },
1339 & ifmt_addrpof
, { 0x52 }
1341 /* andb $pof$regb8,$upof16 */
1344 { { MNEM
, ' ', OP (POF
), OP (REGB8
), ',', OP (UPOF16
), 0 } },
1345 & ifmt_addbrpof
, { 0x63 }
1347 /* orb $pof$regb8,$upof16 */
1350 { { MNEM
, ' ', OP (POF
), OP (REGB8
), ',', OP (UPOF16
), 0 } },
1351 & ifmt_addbrpof
, { 0x73 }
1353 /* xorb $pof$regb8,$upof16 */
1356 { { MNEM
, ' ', OP (POF
), OP (REGB8
), ',', OP (UPOF16
), 0 } },
1357 & ifmt_addbrpof
, { 0x53 }
1359 /* and $pof$upof16,$reg8 */
1362 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
1363 & ifmt_addrpof
, { 0x64 }
1365 /* or $pof$upof16,$reg8 */
1368 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
1369 & ifmt_addrpof
, { 0x74 }
1371 /* xor $pof$upof16,$reg8 */
1374 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REG8
), 0 } },
1375 & ifmt_addrpof
, { 0x54 }
1377 /* andb $pof$upof16,$regb8 */
1380 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
1381 & ifmt_addbrpof
, { 0x65 }
1383 /* orb $pof$upof16,$regb8 */
1386 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
1387 & ifmt_addbrpof
, { 0x75 }
1389 /* xorb $pof$upof16,$regb8 */
1392 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
1393 & ifmt_addbrpof
, { 0x55 }
1395 /* and $regmem8,$memgr8 */
1398 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1399 & ifmt_addrm2
, { 0x62 }
1401 /* and $memgr8,$regmem8 */
1404 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
1405 & ifmt_addrm2
, { 0x64 }
1407 /* and $reg8,$memory */
1410 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1411 & ifmt_addrm
, { 0x62 }
1413 /* and $memory,$reg8 */
1416 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1417 & ifmt_addrm
, { 0x64 }
1419 /* or $regmem8,$memgr8 */
1422 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1423 & ifmt_addrm2
, { 0x72 }
1425 /* or $memgr8,$regmem8 */
1428 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
1429 & ifmt_addrm2
, { 0x74 }
1431 /* or $reg8,$memory */
1434 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1435 & ifmt_addrm
, { 0x72 }
1437 /* or $memory,$reg8 */
1440 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1441 & ifmt_addrm
, { 0x74 }
1443 /* xor $regmem8,$memgr8 */
1446 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1447 & ifmt_addrm2
, { 0x52 }
1449 /* xor $memgr8,$regmem8 */
1452 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
1453 & ifmt_addrm2
, { 0x54 }
1455 /* xor $reg8,$memory */
1458 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1459 & ifmt_addrm
, { 0x52 }
1461 /* xor $memory,$reg8 */
1464 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1465 & ifmt_addrm
, { 0x54 }
1467 /* andb $regbmem8,$memgr8 */
1470 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1471 & ifmt_addbrm2
, { 0x63 }
1473 /* andb $memgr8,$regbmem8 */
1476 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1477 & ifmt_addbrm2
, { 0x65 }
1479 /* andb $regb8,$memory */
1482 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1483 & ifmt_addbrm
, { 0x63 }
1485 /* andb $memory,$regb8 */
1488 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1489 & ifmt_addbrm
, { 0x65 }
1491 /* orb $regbmem8,$memgr8 */
1494 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1495 & ifmt_addbrm2
, { 0x73 }
1497 /* orb $memgr8,$regbmem8 */
1500 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1501 & ifmt_addbrm2
, { 0x75 }
1503 /* orb $regb8,$memory */
1506 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1507 & ifmt_addbrm
, { 0x73 }
1509 /* orb $memory,$regb8 */
1512 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1513 & ifmt_addbrm
, { 0x75 }
1515 /* xorb $regbmem8,$memgr8 */
1518 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1519 & ifmt_addbrm2
, { 0x53 }
1521 /* xorb $memgr8,$regbmem8 */
1524 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1525 & ifmt_addbrm2
, { 0x55 }
1527 /* xorb $regb8,$memory */
1530 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1531 & ifmt_addbrm
, { 0x53 }
1533 /* xorb $memory,$regb8 */
1536 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1537 & ifmt_addbrm
, { 0x55 }
1542 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
1543 & ifmt_addr
, { 0xf0 }
1545 /* movb $drb,$srb */
1548 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
1549 & ifmt_addbr
, { 0xf1 }
1551 /* mov $dri,$hash$u4 */
1554 { { MNEM
, ' ', OP (DRI
), ',', OP (HASH
), OP (U4
), 0 } },
1555 & ifmt_movri
, { 0xe0 }
1557 /* movb $srb,$hash$u4 */
1560 { { MNEM
, ' ', OP (SRB
), ',', OP (HASH
), OP (U4
), 0 } },
1561 & ifmt_movbri
, { 0xe1 }
1563 /* mov $reg8,$hash$uimm16 */
1566 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
1567 & ifmt_addrhpof
, { 0xe6 }
1569 /* movb $regb8,$hash$uimm8 */
1572 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
1573 & ifmt_addrbhpof
, { 0xe7 }
1578 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR
), ']', 0 } },
1579 & ifmt_addr
, { 0xa8 }
1581 /* movb $drb,[$sr] */
1584 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR
), ']', 0 } },
1585 & ifmt_movbr2
, { 0xa9 }
1590 { { MNEM
, ' ', '[', OP (SR
), ']', ',', OP (DR
), 0 } },
1591 & ifmt_addr
, { 0xb8 }
1593 /* movb [$sr],$drb */
1596 { { MNEM
, ' ', '[', OP (SR
), ']', ',', OP (DRB
), 0 } },
1597 & ifmt_movbr2
, { 0xb9 }
1599 /* mov [-$sr],$dr */
1602 { { MNEM
, ' ', '[', '-', OP (SR
), ']', ',', OP (DR
), 0 } },
1603 & ifmt_addr
, { 0x88 }
1605 /* movb [-$sr],$drb */
1608 { { MNEM
, ' ', '[', '-', OP (SR
), ']', ',', OP (DRB
), 0 } },
1609 & ifmt_movbr2
, { 0x89 }
1611 /* mov $dr,[$sr+] */
1614 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR
), '+', ']', 0 } },
1615 & ifmt_addr
, { 0x98 }
1617 /* movb $drb,[$sr+] */
1620 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR
), '+', ']', 0 } },
1621 & ifmt_movbr2
, { 0x99 }
1623 /* mov [$dr],[$sr] */
1626 { { MNEM
, ' ', '[', OP (DR
), ']', ',', '[', OP (SR
), ']', 0 } },
1627 & ifmt_addr
, { 0xc8 }
1629 /* movb [$dr],[$sr] */
1632 { { MNEM
, ' ', '[', OP (DR
), ']', ',', '[', OP (SR
), ']', 0 } },
1633 & ifmt_addr
, { 0xc9 }
1635 /* mov [$dr+],[$sr] */
1638 { { MNEM
, ' ', '[', OP (DR
), '+', ']', ',', '[', OP (SR
), ']', 0 } },
1639 & ifmt_addr
, { 0xd8 }
1641 /* movb [$dr+],[$sr] */
1644 { { MNEM
, ' ', '[', OP (DR
), '+', ']', ',', '[', OP (SR
), ']', 0 } },
1645 & ifmt_addr
, { 0xd9 }
1647 /* mov [$dr],[$sr+] */
1650 { { MNEM
, ' ', '[', OP (DR
), ']', ',', '[', OP (SR
), '+', ']', 0 } },
1651 & ifmt_addr
, { 0xe8 }
1653 /* movb [$dr],[$sr+] */
1656 { { MNEM
, ' ', '[', OP (DR
), ']', ',', '[', OP (SR
), '+', ']', 0 } },
1657 & ifmt_addr
, { 0xe9 }
1659 /* mov $dr,[$sr+$hash$uimm16] */
1662 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR
), '+', OP (HASH
), OP (UIMM16
), ']', 0 } },
1663 & ifmt_mov9i
, { 0xd4 }
1665 /* movb $drb,[$sr+$hash$uimm16] */
1668 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR
), '+', OP (HASH
), OP (UIMM16
), ']', 0 } },
1669 & ifmt_movb9i
, { 0xf4 }
1671 /* mov [$sr+$hash$uimm16],$dr */
1674 { { MNEM
, ' ', '[', OP (SR
), '+', OP (HASH
), OP (UIMM16
), ']', ',', OP (DR
), 0 } },
1675 & ifmt_mov9i
, { 0xc4 }
1677 /* movb [$sr+$hash$uimm16],$drb */
1680 { { MNEM
, ' ', '[', OP (SR
), '+', OP (HASH
), OP (UIMM16
), ']', ',', OP (DRB
), 0 } },
1681 & ifmt_movb9i
, { 0xe4 }
1683 /* mov [$src2],$memory */
1686 { { MNEM
, ' ', '[', OP (SRC2
), ']', ',', OP (MEMORY
), 0 } },
1687 & ifmt_movri11
, { 0x84 }
1689 /* movb [$src2],$memory */
1692 { { MNEM
, ' ', '[', OP (SRC2
), ']', ',', OP (MEMORY
), 0 } },
1693 & ifmt_movri11
, { 0xa4 }
1695 /* mov $memory,[$src2] */
1698 { { MNEM
, ' ', OP (MEMORY
), ',', '[', OP (SRC2
), ']', 0 } },
1699 & ifmt_movri11
, { 0x94 }
1701 /* movb $memory,[$src2] */
1704 { { MNEM
, ' ', OP (MEMORY
), ',', '[', OP (SRC2
), ']', 0 } },
1705 & ifmt_movri11
, { 0xb4 }
1707 /* mov $regoff8,$hash$pof$upof16 */
1710 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (HASH
), OP (POF
), OP (UPOF16
), 0 } },
1711 & ifmt_movehm5
, { 0xe6 }
1713 /* mov $regoff8,$hash$pag$upag16 */
1716 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (HASH
), OP (PAG
), OP (UPAG16
), 0 } },
1717 & ifmt_movehm6
, { 0xe6 }
1719 /* mov $regoff8,$hash$segm$useg16 */
1722 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (HASH
), OP (SEGM
), OP (USEG16
), 0 } },
1723 & ifmt_movehm7
, { 0xe6 }
1725 /* mov $regoff8,$hash$sof$usof16 */
1728 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (HASH
), OP (SOF
), OP (USOF16
), 0 } },
1729 & ifmt_movehm8
, { 0xe6 }
1731 /* movb $regb8,$hash$pof$uimm8 */
1734 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (POF
), OP (UIMM8
), 0 } },
1735 & ifmt_addrbhpof
, { 0xe7 }
1737 /* movb $regoff8,$hash$pag$uimm8 */
1740 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (HASH
), OP (PAG
), OP (UIMM8
), 0 } },
1741 & ifmt_movehm10
, { 0xe7 }
1743 /* mov $regoff8,$pof$upof16 */
1746 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (POF
), OP (UPOF16
), 0 } },
1747 & ifmt_movehm5
, { 0xf2 }
1749 /* movb $regb8,$pof$upof16 */
1752 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
1753 & ifmt_addbrpof
, { 0xf3 }
1755 /* mov $regoff8,$pag$upag16 */
1758 { { MNEM
, ' ', OP (REGOFF8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
1759 & ifmt_movehm6
, { 0xf2 }
1761 /* movb $regb8,$pag$upag16 */
1764 { { MNEM
, ' ', OP (REGB8
), ',', OP (PAG
), OP (UPAG16
), 0 } },
1765 & ifmt_addbrpag
, { 0xf3 }
1767 /* mov $pof$upof16,$regoff8 */
1770 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGOFF8
), 0 } },
1771 & ifmt_movehm5
, { 0xf6 }
1773 /* movb $pof$upof16,$regb8 */
1776 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
1777 & ifmt_addbrpof
, { 0xf7 }
1779 /* mov $dri,$hash$pof$u4 */
1782 { { MNEM
, ' ', OP (DRI
), ',', OP (HASH
), OP (POF
), OP (U4
), 0 } },
1783 & ifmt_movri
, { 0xe0 }
1785 /* movb $srb,$hash$pof$u4 */
1788 { { MNEM
, ' ', OP (SRB
), ',', OP (HASH
), OP (POF
), OP (U4
), 0 } },
1789 & ifmt_movbri
, { 0xe1 }
1791 /* mov $dri,$hash$pag$u4 */
1794 { { MNEM
, ' ', OP (DRI
), ',', OP (HASH
), OP (PAG
), OP (U4
), 0 } },
1795 & ifmt_movri
, { 0xe0 }
1797 /* movb $srb,$hash$pag$u4 */
1800 { { MNEM
, ' ', OP (SRB
), ',', OP (HASH
), OP (PAG
), OP (U4
), 0 } },
1801 & ifmt_movbri
, { 0xe1 }
1803 /* mov $regmem8,$memgr8 */
1806 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1807 & ifmt_addrm2
, { 0xf2 }
1809 /* mov $memgr8,$regmem8 */
1812 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGMEM8
), 0 } },
1813 & ifmt_addrm2
, { 0xf6 }
1815 /* mov $reg8,$memory */
1818 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1819 & ifmt_addrm
, { 0xf2 }
1821 /* mov $memory,$reg8 */
1824 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REG8
), 0 } },
1825 & ifmt_addrm
, { 0xf6 }
1827 /* movb $regbmem8,$memgr8 */
1830 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
1831 & ifmt_addbrm2
, { 0xf3 }
1833 /* movb $memgr8,$regbmem8 */
1836 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1837 & ifmt_addbrm2
, { 0xf7 }
1839 /* movb $regb8,$memory */
1842 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
1843 & ifmt_addbrm
, { 0xf3 }
1845 /* movb $memory,$regb8 */
1848 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1849 & ifmt_addbrm
, { 0xf7 }
1851 /* movbs $sr,$drb */
1854 { { MNEM
, ' ', OP (SR
), ',', OP (DRB
), 0 } },
1855 & ifmt_movbr2
, { 0xd0 }
1857 /* movbz $sr,$drb */
1860 { { MNEM
, ' ', OP (SR
), ',', OP (DRB
), 0 } },
1861 & ifmt_movbr2
, { 0xc0 }
1863 /* movbs $regmem8,$pof$upof16 */
1866 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (POF
), OP (UPOF16
), 0 } },
1867 & ifmt_movbsrpofm
, { 0xd2 }
1869 /* movbs $pof$upof16,$regbmem8 */
1872 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGBMEM8
), 0 } },
1873 & ifmt_movbspofmr
, { 0xd5 }
1875 /* movbz $reg8,$pof$upof16 */
1878 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
1879 & ifmt_addrpof
, { 0xc2 }
1881 /* movbz $pof$upof16,$regb8 */
1884 { { MNEM
, ' ', OP (POF
), OP (UPOF16
), ',', OP (REGB8
), 0 } },
1885 & ifmt_addbrpof
, { 0xc5 }
1887 /* movbs $regmem8,$memgr8 */
1890 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1891 & ifmt_addrm2
, { 0xd2 }
1893 /* movbs $memgr8,$regbmem8 */
1896 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1897 & ifmt_addbrm2
, { 0xd5 }
1899 /* movbs $reg8,$memory */
1902 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1903 & ifmt_addrm
, { 0xd2 }
1905 /* movbs $memory,$regb8 */
1908 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1909 & ifmt_addbrm
, { 0xd5 }
1911 /* movbz $regmem8,$memgr8 */
1914 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
1915 & ifmt_addrm2
, { 0xc2 }
1917 /* movbz $memgr8,$regbmem8 */
1920 { { MNEM
, ' ', OP (MEMGR8
), ',', OP (REGBMEM8
), 0 } },
1921 & ifmt_addbrm2
, { 0xc5 }
1923 /* movbz $reg8,$memory */
1926 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
1927 & ifmt_addrm
, { 0xc2 }
1929 /* movbz $memory,$regb8 */
1932 { { MNEM
, ' ', OP (MEMORY
), ',', OP (REGB8
), 0 } },
1933 & ifmt_addbrm
, { 0xc5 }
1935 /* movbs $sr,$drb */
1938 { { MNEM
, ' ', OP (SR
), ',', OP (DRB
), 0 } },
1939 & ifmt_movbr2
, { 0xd0 }
1941 /* movbz $sr,$drb */
1944 { { MNEM
, ' ', OP (SR
), ',', OP (DRB
), 0 } },
1945 & ifmt_movbr2
, { 0xc0 }
1947 /* jmpa+ $extcond,$caddr */
1950 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
1951 & ifmt_jmpa0
, { 0xea }
1953 /* jmpa $extcond,$caddr */
1956 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
1957 & ifmt_jmpa0
, { 0xea }
1959 /* jmpa- $extcond,$caddr */
1962 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
1963 & ifmt_jmpa_
, { 0x1ea }
1965 /* jmpi $icond,[$sr] */
1968 { { MNEM
, ' ', OP (ICOND
), ',', '[', OP (SR
), ']', 0 } },
1969 & ifmt_jmpi
, { 0x9c }
1971 /* jmpr $cond,$rel */
1974 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
1975 & ifmt_jmpr_nenz
, { 0x3d }
1977 /* jmpr $cond,$rel */
1980 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
1981 & ifmt_jmpr_nenz
, { 0xad }
1983 /* jmpr $cond,$rel */
1986 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
1987 & ifmt_jmpr_nenz
, { 0x2d }
1989 /* jmpr $cond,$rel */
1992 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
1993 & ifmt_jmpr_nenz
, { 0x4d }
1995 /* jmpr $cond,$rel */
1998 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
1999 & ifmt_jmpr_nenz
, { 0x5d }
2001 /* jmpr $cond,$rel */
2004 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2005 & ifmt_jmpr_nenz
, { 0x6d }
2007 /* jmpr $cond,$rel */
2010 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2011 & ifmt_jmpr_nenz
, { 0x7d }
2013 /* jmpr $cond,$rel */
2016 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2017 & ifmt_jmpr_nenz
, { 0x8d }
2019 /* jmpr $cond,$rel */
2022 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2023 & ifmt_jmpr_nenz
, { 0x9d }
2025 /* jmpr $cond,$rel */
2028 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2029 & ifmt_jmpr_nenz
, { 0x2d }
2031 /* jmpr $cond,$rel */
2034 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2035 & ifmt_jmpr_nenz
, { 0x3d }
2037 /* jmpr $cond,$rel */
2040 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2041 & ifmt_jmpr_nenz
, { 0x8d }
2043 /* jmpr $cond,$rel */
2046 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2047 & ifmt_jmpr_nenz
, { 0xfd }
2049 /* jmpr $cond,$rel */
2052 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2053 & ifmt_jmpr_nenz
, { 0x9d }
2055 /* jmpr $cond,$rel */
2058 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2059 & ifmt_jmpr_nenz
, { 0xed }
2061 /* jmpr $cond,$rel */
2064 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2065 & ifmt_jmpr_nenz
, { 0xbd }
2067 /* jmpr $cond,$rel */
2070 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2071 & ifmt_jmpr_nenz
, { 0xdd }
2073 /* jmpr $cond,$rel */
2076 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2077 & ifmt_jmpr_nenz
, { 0x1d }
2079 /* jmpr $cond,$rel */
2082 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2083 & ifmt_jmpr_nenz
, { 0xd }
2085 /* jmpr $cond,$rel */
2088 { { MNEM
, ' ', OP (COND
), ',', OP (REL
), 0 } },
2089 & ifmt_jmpr_nenz
, { 0xcd }
2091 /* jmps $hash$segm$useg8,$hash$sof$usof16 */
2094 { { MNEM
, ' ', OP (HASH
), OP (SEGM
), OP (USEG8
), ',', OP (HASH
), OP (SOF
), OP (USOF16
), 0 } },
2095 & ifmt_jmpseg
, { 0xfa }
2097 /* jmps $seg,$caddr */
2100 { { MNEM
, ' ', OP (SEG
), ',', OP (CADDR
), 0 } },
2101 & ifmt_jmps
, { 0xfa }
2103 /* jb $genreg$dot$qlobit,$relhi */
2106 { { MNEM
, ' ', OP (GENREG
), OP (DOT
), OP (QLOBIT
), ',', OP (RELHI
), 0 } },
2109 /* jbc $genreg$dot$qlobit,$relhi */
2112 { { MNEM
, ' ', OP (GENREG
), OP (DOT
), OP (QLOBIT
), ',', OP (RELHI
), 0 } },
2115 /* jnb $genreg$dot$qlobit,$relhi */
2118 { { MNEM
, ' ', OP (GENREG
), OP (DOT
), OP (QLOBIT
), ',', OP (RELHI
), 0 } },
2121 /* jnbs $genreg$dot$qlobit,$relhi */
2124 { { MNEM
, ' ', OP (GENREG
), OP (DOT
), OP (QLOBIT
), ',', OP (RELHI
), 0 } },
2127 /* calla+ $extcond,$caddr */
2130 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
2131 & ifmt_calla0
, { 0xca }
2133 /* calla $extcond,$caddr */
2136 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
2137 & ifmt_calla0
, { 0xca }
2139 /* calla- $extcond,$caddr */
2142 { { MNEM
, ' ', OP (EXTCOND
), ',', OP (CADDR
), 0 } },
2143 & ifmt_calla_
, { 0x1ca }
2145 /* calli $icond,[$sr] */
2148 { { MNEM
, ' ', OP (ICOND
), ',', '[', OP (SR
), ']', 0 } },
2149 & ifmt_jmpi
, { 0xab }
2154 { { MNEM
, ' ', OP (REL
), 0 } },
2155 & ifmt_callr
, { 0xbb }
2157 /* calls $hash$segm$useg8,$hash$sof$usof16 */
2160 { { MNEM
, ' ', OP (HASH
), OP (SEGM
), OP (USEG8
), ',', OP (HASH
), OP (SOF
), OP (USOF16
), 0 } },
2161 & ifmt_callseg
, { 0xda }
2163 /* calls $seg,$caddr */
2166 { { MNEM
, ' ', OP (SEG
), ',', OP (CADDR
), 0 } },
2167 & ifmt_jmps
, { 0xda }
2169 /* pcall $reg8,$caddr */
2172 { { MNEM
, ' ', OP (REG8
), ',', OP (CADDR
), 0 } },
2173 & ifmt_pcall
, { 0xe2 }
2175 /* trap $hash$uimm7 */
2178 { { MNEM
, ' ', OP (HASH
), OP (UIMM7
), 0 } },
2179 & ifmt_trap
, { 0x9b }
2185 & ifmt_ret
, { 0xcb }
2191 & ifmt_ret
, { 0xdb }
2196 { { MNEM
, ' ', OP (REG8
), 0 } },
2197 & ifmt_retp
, { 0xeb }
2203 & ifmt_reti
, { 0x88fb }
2208 { { MNEM
, ' ', OP (REG8
), 0 } },
2209 & ifmt_retp
, { 0xfc }
2214 { { MNEM
, ' ', OP (REG8
), 0 } },
2215 & ifmt_retp
, { 0xec }
2217 /* scxt $reg8,$hash$uimm16 */
2220 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2221 & ifmt_addrhpof
, { 0xc6 }
2223 /* scxt $reg8,$pof$upof16 */
2226 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2227 & ifmt_addrpof
, { 0xd6 }
2229 /* scxt $regmem8,$memgr8 */
2232 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2233 & ifmt_addrm2
, { 0xd6 }
2235 /* scxt $reg8,$memory */
2238 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2239 & ifmt_addrm
, { 0xd6 }
2245 & ifmt_ret
, { 0xcc }
2251 & ifmt_srstm
, { 0xb7b748b7 }
2257 & ifmt_srstm
, { 0x87877887 }
2263 & ifmt_srstm
, { 0x97976897 }
2269 & ifmt_srstm
, { 0xa5a55aa5 }
2275 & ifmt_srstm
, { 0x85857a85 }
2281 & ifmt_srstm
, { 0xb5b54ab5 }
2287 & ifmt_srstm
, { 0xa7a758a7 }
2293 & ifmt_ret
, { 0x8c }
2295 /* atomic $hash$uimm2 */
2298 { { MNEM
, ' ', OP (HASH
), OP (UIMM2
), 0 } },
2299 & ifmt_atomic
, { 0xd1 }
2301 /* extr $hash$uimm2 */
2304 { { MNEM
, ' ', OP (HASH
), OP (UIMM2
), 0 } },
2305 & ifmt_atomic
, { 0x80d1 }
2307 /* extp $sr,$hash$uimm2 */
2310 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2311 & ifmt_extp
, { 0x40dc }
2313 /* extp $hash$pagenum,$hash$uimm2 */
2316 { { MNEM
, ' ', OP (HASH
), OP (PAGENUM
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2317 & ifmt_extp1
, { 0x40d7 }
2319 /* extp $hash$pag$upag16,$hash$uimm2 */
2322 { { MNEM
, ' ', OP (HASH
), OP (PAG
), OP (UPAG16
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2323 & ifmt_extpg1
, { 0x40d7 }
2325 /* extpr $sr,$hash$uimm2 */
2328 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2329 & ifmt_extp
, { 0xc0dc }
2331 /* extpr $hash$pagenum,$hash$uimm2 */
2334 { { MNEM
, ' ', OP (HASH
), OP (PAGENUM
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2335 & ifmt_extp1
, { 0xc0d7 }
2337 /* exts $sr,$hash$uimm2 */
2340 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2341 & ifmt_extp
, { 0xdc }
2343 /* exts $hash$seghi8,$hash$uimm2 */
2346 { { MNEM
, ' ', OP (HASH
), OP (SEGHI8
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2347 & ifmt_exts1
, { 0xd7 }
2349 /* extsr $sr,$hash$uimm2 */
2352 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2353 & ifmt_extp
, { 0x80dc }
2355 /* extsr $hash$seghi8,$hash$uimm2 */
2358 { { MNEM
, ' ', OP (HASH
), OP (SEGHI8
), ',', OP (HASH
), OP (UIMM2
), 0 } },
2359 & ifmt_exts1
, { 0x80d7 }
2364 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2365 & ifmt_addr
, { 0x2b }
2370 { { MNEM
, ' ', OP (REGNAM
), 0 } },
2371 & ifmt_bclr18
, { 0xbe }
2373 /* bclr $reg8$dot$qbit */
2376 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2377 & ifmt_bclr0
, { 0xe }
2379 /* bclr $reg8$dot$qbit */
2382 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2383 & ifmt_bclr0
, { 0x1e }
2385 /* bclr $reg8$dot$qbit */
2388 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2389 & ifmt_bclr0
, { 0x2e }
2391 /* bclr $reg8$dot$qbit */
2394 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2395 & ifmt_bclr0
, { 0x3e }
2397 /* bclr $reg8$dot$qbit */
2400 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2401 & ifmt_bclr0
, { 0x4e }
2403 /* bclr $reg8$dot$qbit */
2406 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2407 & ifmt_bclr0
, { 0x5e }
2409 /* bclr $reg8$dot$qbit */
2412 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2413 & ifmt_bclr0
, { 0x6e }
2415 /* bclr $reg8$dot$qbit */
2418 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2419 & ifmt_bclr0
, { 0x7e }
2421 /* bclr $reg8$dot$qbit */
2424 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2425 & ifmt_bclr0
, { 0x8e }
2427 /* bclr $reg8$dot$qbit */
2430 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2431 & ifmt_bclr0
, { 0x9e }
2433 /* bclr $reg8$dot$qbit */
2436 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2437 & ifmt_bclr0
, { 0xae }
2439 /* bclr $reg8$dot$qbit */
2442 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2443 & ifmt_bclr0
, { 0xbe }
2445 /* bclr $reg8$dot$qbit */
2448 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2449 & ifmt_bclr0
, { 0xce }
2451 /* bclr $reg8$dot$qbit */
2454 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2455 & ifmt_bclr0
, { 0xde }
2457 /* bclr $reg8$dot$qbit */
2460 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2461 & ifmt_bclr0
, { 0xee }
2463 /* bclr $reg8$dot$qbit */
2466 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2467 & ifmt_bclr0
, { 0xfe }
2472 { { MNEM
, ' ', OP (REGNAM
), 0 } },
2473 & ifmt_bclr18
, { 0xbf }
2475 /* bset $reg8$dot$qbit */
2478 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2479 & ifmt_bclr0
, { 0xf }
2481 /* bset $reg8$dot$qbit */
2484 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2485 & ifmt_bclr0
, { 0x1f }
2487 /* bset $reg8$dot$qbit */
2490 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2491 & ifmt_bclr0
, { 0x2f }
2493 /* bset $reg8$dot$qbit */
2496 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2497 & ifmt_bclr0
, { 0x3f }
2499 /* bset $reg8$dot$qbit */
2502 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2503 & ifmt_bclr0
, { 0x4f }
2505 /* bset $reg8$dot$qbit */
2508 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2509 & ifmt_bclr0
, { 0x5f }
2511 /* bset $reg8$dot$qbit */
2514 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2515 & ifmt_bclr0
, { 0x6f }
2517 /* bset $reg8$dot$qbit */
2520 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2521 & ifmt_bclr0
, { 0x7f }
2523 /* bset $reg8$dot$qbit */
2526 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2527 & ifmt_bclr0
, { 0x8f }
2529 /* bset $reg8$dot$qbit */
2532 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2533 & ifmt_bclr0
, { 0x9f }
2535 /* bset $reg8$dot$qbit */
2538 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2539 & ifmt_bclr0
, { 0xaf }
2541 /* bset $reg8$dot$qbit */
2544 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2545 & ifmt_bclr0
, { 0xbf }
2547 /* bset $reg8$dot$qbit */
2550 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2551 & ifmt_bclr0
, { 0xcf }
2553 /* bset $reg8$dot$qbit */
2556 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2557 & ifmt_bclr0
, { 0xdf }
2559 /* bset $reg8$dot$qbit */
2562 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2563 & ifmt_bclr0
, { 0xef }
2565 /* bset $reg8$dot$qbit */
2568 { { MNEM
, ' ', OP (REG8
), OP (DOT
), OP (QBIT
), 0 } },
2569 & ifmt_bclr0
, { 0xff }
2571 /* bmov $reghi8$dot$qhibit,$reg8$dot$qlobit */
2574 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2575 & ifmt_bmov
, { 0x4a }
2577 /* bmovn $reghi8$dot$qhibit,$reg8$dot$qlobit */
2580 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2581 & ifmt_bmov
, { 0x3a }
2583 /* band $reghi8$dot$qhibit,$reg8$dot$qlobit */
2586 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2587 & ifmt_bmov
, { 0x6a }
2589 /* bor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2592 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2593 & ifmt_bmov
, { 0x5a }
2595 /* bxor $reghi8$dot$qhibit,$reg8$dot$qlobit */
2598 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2599 & ifmt_bmov
, { 0x7a }
2601 /* bcmp $reghi8$dot$qhibit,$reg8$dot$qlobit */
2604 { { MNEM
, ' ', OP (REGHI8
), OP (DOT
), OP (QHIBIT
), ',', OP (REG8
), OP (DOT
), OP (QLOBIT
), 0 } },
2605 & ifmt_bmov
, { 0x2a }
2607 /* bfldl $reg8,$hash$mask8,$hash$datahi8 */
2610 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (MASK8
), ',', OP (HASH
), OP (DATAHI8
), 0 } },
2611 & ifmt_bfldl
, { 0xa }
2613 /* bfldh $reg8,$hash$masklo8,$hash$data8 */
2616 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (MASKLO8
), ',', OP (HASH
), OP (DATA8
), 0 } },
2617 & ifmt_bfldh
, { 0x1a }
2619 /* cmp $src1,$src2 */
2622 { { MNEM
, ' ', OP (SRC1
), ',', OP (SRC2
), 0 } },
2623 & ifmt_muls
, { 0x40 }
2625 /* cmpb $drb,$srb */
2628 { { MNEM
, ' ', OP (DRB
), ',', OP (SRB
), 0 } },
2629 & ifmt_addbr
, { 0x41 }
2631 /* cmp $src1,$hash$uimm3 */
2634 { { MNEM
, ' ', OP (SRC1
), ',', OP (HASH
), OP (UIMM3
), 0 } },
2635 & ifmt_cmpri
, { 0x48 }
2637 /* cmpb $drb,$hash$uimm3 */
2640 { { MNEM
, ' ', OP (DRB
), ',', OP (HASH
), OP (UIMM3
), 0 } },
2641 & ifmt_addbrhpag3
, { 0x49 }
2643 /* cmp $reg8,$hash$uimm16 */
2646 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2647 & ifmt_addrhpof
, { 0x46 }
2649 /* cmpb $regb8,$hash$uimm8 */
2652 { { MNEM
, ' ', OP (REGB8
), ',', OP (HASH
), OP (UIMM8
), 0 } },
2653 & ifmt_addrbhpof
, { 0x47 }
2655 /* cmp $dr,[$sr2] */
2658 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), ']', 0 } },
2659 & ifmt_add2
, { 0x848 }
2661 /* cmpb $drb,[$sr2] */
2664 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), ']', 0 } },
2665 & ifmt_addb2
, { 0x849 }
2667 /* cmp $dr,[$sr2+] */
2670 { { MNEM
, ' ', OP (DR
), ',', '[', OP (SR2
), '+', ']', 0 } },
2671 & ifmt_add2
, { 0xc48 }
2673 /* cmpb $drb,[$sr2+] */
2676 { { MNEM
, ' ', OP (DRB
), ',', '[', OP (SR2
), '+', ']', 0 } },
2677 & ifmt_addb2
, { 0xc49 }
2679 /* cmp $reg8,$pof$upof16 */
2682 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2683 & ifmt_addrpof
, { 0x42 }
2685 /* cmpb $regb8,$pof$upof16 */
2688 { { MNEM
, ' ', OP (REGB8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2689 & ifmt_addbrpof
, { 0x43 }
2691 /* cmp $regmem8,$memgr8 */
2694 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2695 & ifmt_addrm2
, { 0x42 }
2697 /* cmp $reg8,$memory */
2700 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2701 & ifmt_addrm
, { 0x42 }
2703 /* cmpb $regbmem8,$memgr8 */
2706 { { MNEM
, ' ', OP (REGBMEM8
), ',', OP (MEMGR8
), 0 } },
2707 & ifmt_addbrm2
, { 0x43 }
2709 /* cmpb $regb8,$memory */
2712 { { MNEM
, ' ', OP (REGB8
), ',', OP (MEMORY
), 0 } },
2713 & ifmt_addbrm
, { 0x43 }
2715 /* cmpd1 $sr,$hash$uimm4 */
2718 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2719 & ifmt_cmpd1ri
, { 0xa0 }
2721 /* cmpd2 $sr,$hash$uimm4 */
2724 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2725 & ifmt_cmpd1ri
, { 0xb0 }
2727 /* cmpi1 $sr,$hash$uimm4 */
2730 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2731 & ifmt_cmpd1ri
, { 0x80 }
2733 /* cmpi2 $sr,$hash$uimm4 */
2736 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2737 & ifmt_cmpd1ri
, { 0x90 }
2739 /* cmpd1 $reg8,$hash$uimm16 */
2742 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2743 & ifmt_addrhpof
, { 0xa6 }
2745 /* cmpd2 $reg8,$hash$uimm16 */
2748 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2749 & ifmt_addrhpof
, { 0xb6 }
2751 /* cmpi1 $reg8,$hash$uimm16 */
2754 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2755 & ifmt_addrhpof
, { 0x86 }
2757 /* cmpi2 $reg8,$hash$uimm16 */
2760 { { MNEM
, ' ', OP (REG8
), ',', OP (HASH
), OP (UIMM16
), 0 } },
2761 & ifmt_addrhpof
, { 0x96 }
2763 /* cmpd1 $reg8,$pof$upof16 */
2766 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2767 & ifmt_addrpof
, { 0xa2 }
2769 /* cmpd2 $reg8,$pof$upof16 */
2772 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2773 & ifmt_addrpof
, { 0xb2 }
2775 /* cmpi1 $reg8,$pof$upof16 */
2778 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2779 & ifmt_addrpof
, { 0x82 }
2781 /* cmpi2 $reg8,$pof$upof16 */
2784 { { MNEM
, ' ', OP (REG8
), ',', OP (POF
), OP (UPOF16
), 0 } },
2785 & ifmt_addrpof
, { 0x92 }
2787 /* cmpd1 $regmem8,$memgr8 */
2790 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2791 & ifmt_addrm2
, { 0xa2 }
2793 /* cmpd2 $regmem8,$memgr8 */
2796 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2797 & ifmt_addrm2
, { 0xb2 }
2799 /* cmpi1 $regmem8,$memgr8 */
2802 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2803 & ifmt_addrm2
, { 0x82 }
2805 /* cmpi2 $regmem8,$memgr8 */
2808 { { MNEM
, ' ', OP (REGMEM8
), ',', OP (MEMGR8
), 0 } },
2809 & ifmt_addrm2
, { 0x92 }
2811 /* cmpd1 $reg8,$memory */
2814 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2815 & ifmt_addrm
, { 0xa2 }
2817 /* cmpd2 $reg8,$memory */
2820 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2821 & ifmt_addrm
, { 0xb2 }
2823 /* cmpi1 $reg8,$memory */
2826 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2827 & ifmt_addrm
, { 0x82 }
2829 /* cmpi2 $reg8,$memory */
2832 { { MNEM
, ' ', OP (REG8
), ',', OP (MEMORY
), 0 } },
2833 & ifmt_addrm
, { 0x92 }
2838 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2839 & ifmt_addr
, { 0x4c }
2844 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2845 & ifmt_addr
, { 0x6c }
2850 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2851 & ifmt_addr
, { 0xc }
2856 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2857 & ifmt_addr
, { 0x2c }
2862 { { MNEM
, ' ', OP (DR
), ',', OP (SR
), 0 } },
2863 & ifmt_addr
, { 0xac }
2865 /* shl $sr,$hash$uimm4 */
2868 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2869 & ifmt_cmpd1ri
, { 0x5c }
2871 /* shr $sr,$hash$uimm4 */
2874 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2875 & ifmt_cmpd1ri
, { 0x7c }
2877 /* rol $sr,$hash$uimm4 */
2880 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2881 & ifmt_cmpd1ri
, { 0x1c }
2883 /* ror $sr,$hash$uimm4 */
2886 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2887 & ifmt_cmpd1ri
, { 0x3c }
2889 /* ashr $sr,$hash$uimm4 */
2892 { { MNEM
, ' ', OP (SR
), ',', OP (HASH
), OP (UIMM4
), 0 } },
2893 & ifmt_cmpd1ri
, { 0xbc }
2902 /* Formats for ALIAS macro-insns. */
2904 #define F(f) & xc16x_cgen_ifld_table[XC16X_##f]
2907 /* Each non-simple macro entry points to an array of expansion possibilities. */
2909 #define A(a) (1 << CGEN_INSN_##a)
2910 #define OPERAND(op) XC16X_OPERAND_##op
2911 #define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
2912 #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
2914 /* The macro instruction table. */
2916 static const CGEN_IBASE xc16x_cgen_macro_insn_table
[] =
2920 /* The macro instruction opcode table. */
2922 static const CGEN_OPCODE xc16x_cgen_macro_insn_opcode_table
[] =
2931 #ifndef CGEN_ASM_HASH_P
2932 #define CGEN_ASM_HASH_P(insn) 1
2935 #ifndef CGEN_DIS_HASH_P
2936 #define CGEN_DIS_HASH_P(insn) 1
2939 /* Return non-zero if INSN is to be added to the hash table.
2940 Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
2943 asm_hash_insn_p (const CGEN_INSN
*insn ATTRIBUTE_UNUSED
)
2945 return CGEN_ASM_HASH_P (insn
);
2949 dis_hash_insn_p (const CGEN_INSN
*insn
)
2951 /* If building the hash table and the NO-DIS attribute is present,
2953 if (CGEN_INSN_ATTR_VALUE (insn
, CGEN_INSN_NO_DIS
))
2955 return CGEN_DIS_HASH_P (insn
);
2958 #ifndef CGEN_ASM_HASH
2959 #define CGEN_ASM_HASH_SIZE 127
2960 #ifdef CGEN_MNEMONIC_OPERANDS
2961 #define CGEN_ASM_HASH(mnem) (*(unsigned char *) (mnem) % CGEN_ASM_HASH_SIZE)
2963 #define CGEN_ASM_HASH(mnem) (*(unsigned char *) (mnem) % CGEN_ASM_HASH_SIZE) /*FIXME*/
2967 /* It doesn't make much sense to provide a default here,
2968 but while this is under development we do.
2969 BUFFER is a pointer to the bytes of the insn, target order.
2970 VALUE is the first base_insn_bitsize bits as an int in host order. */
2972 #ifndef CGEN_DIS_HASH
2973 #define CGEN_DIS_HASH_SIZE 256
2974 #define CGEN_DIS_HASH(buf, value) (*(unsigned char *) (buf))
2977 /* The result is the hash value of the insn.
2978 Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
2981 asm_hash_insn (const char *mnem
)
2983 return CGEN_ASM_HASH (mnem
);
2986 /* BUF is a pointer to the bytes of the insn, target order.
2987 VALUE is the first base_insn_bitsize bits as an int in host order. */
2990 dis_hash_insn (const char *buf ATTRIBUTE_UNUSED
,
2991 CGEN_INSN_INT value ATTRIBUTE_UNUSED
)
2993 return CGEN_DIS_HASH (buf
, value
);
2996 /* Set the recorded length of the insn in the CGEN_FIELDS struct. */
2999 set_fields_bitsize (CGEN_FIELDS
*fields
, int size
)
3001 CGEN_FIELDS_BITSIZE (fields
) = size
;
3004 /* Function to call before using the operand instance table.
3005 This plugs the opcode entries and macro instructions into the cpu table. */
3008 xc16x_cgen_init_opcode_table (CGEN_CPU_DESC cd
)
3011 int num_macros
= (sizeof (xc16x_cgen_macro_insn_table
) /
3012 sizeof (xc16x_cgen_macro_insn_table
[0]));
3013 const CGEN_IBASE
*ib
= & xc16x_cgen_macro_insn_table
[0];
3014 const CGEN_OPCODE
*oc
= & xc16x_cgen_macro_insn_opcode_table
[0];
3015 CGEN_INSN
*insns
= xmalloc (num_macros
* sizeof (CGEN_INSN
));
3017 /* This test has been added to avoid a warning generated
3018 if memset is called with a third argument of value zero. */
3019 if (num_macros
>= 1)
3020 memset (insns
, 0, num_macros
* sizeof (CGEN_INSN
));
3021 for (i
= 0; i
< num_macros
; ++i
)
3023 insns
[i
].base
= &ib
[i
];
3024 insns
[i
].opcode
= &oc
[i
];
3025 xc16x_cgen_build_insn_regex (& insns
[i
]);
3027 cd
->macro_insn_table
.init_entries
= insns
;
3028 cd
->macro_insn_table
.entry_size
= sizeof (CGEN_IBASE
);
3029 cd
->macro_insn_table
.num_init_entries
= num_macros
;
3031 oc
= & xc16x_cgen_insn_opcode_table
[0];
3032 insns
= (CGEN_INSN
*) cd
->insn_table
.init_entries
;
3033 for (i
= 0; i
< MAX_INSNS
; ++i
)
3035 insns
[i
].opcode
= &oc
[i
];
3036 xc16x_cgen_build_insn_regex (& insns
[i
]);
3039 cd
->sizeof_fields
= sizeof (CGEN_FIELDS
);
3040 cd
->set_fields_bitsize
= set_fields_bitsize
;
3042 cd
->asm_hash_p
= asm_hash_insn_p
;
3043 cd
->asm_hash
= asm_hash_insn
;
3044 cd
->asm_hash_size
= CGEN_ASM_HASH_SIZE
;
3046 cd
->dis_hash_p
= dis_hash_insn_p
;
3047 cd
->dis_hash
= dis_hash_insn
;
3048 cd
->dis_hash_size
= CGEN_DIS_HASH_SIZE
;