2 Copyright 2001, 2002 Free Software Foundation, Inc.
4 This file is part of GDB and GAS.
6 GDB and GAS are free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GDB and GAS are distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GDB or GAS; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 * PDP-11 opcode types.
24 #define PDP11_OPCODE_NO_OPS 0
25 #define PDP11_OPCODE_REG 1 /* register */
26 #define PDP11_OPCODE_OP 2 /* generic operand */
27 #define PDP11_OPCODE_REG_OP 3 /* register and generic operand */
28 #define PDP11_OPCODE_REG_OP_REV 4 /* register and generic operand,
30 #define PDP11_OPCODE_AC_FOP 5 /* fpu accumulator and generic float
32 #define PDP11_OPCODE_OP_OP 6 /* two generic operands */
33 #define PDP11_OPCODE_DISPL 7 /* pc-relative displacement */
34 #define PDP11_OPCODE_REG_DISPL 8 /* redister and pc-relative
36 #define PDP11_OPCODE_IMM8 9 /* 8-bit immediate */
37 #define PDP11_OPCODE_IMM6 10 /* 6-bit immediate */
38 #define PDP11_OPCODE_IMM3 11 /* 3-bit immediate */
39 #define PDP11_OPCODE_ILLEGAL 12 /* illegal instruction */
40 #define PDP11_OPCODE_FOP_AC 13 /* generic float argument, then fpu
42 #define PDP11_OPCODE_FOP 14 /* generic float operand */
43 #define PDP11_OPCODE_AC_OP 15 /* fpu accumulator and generic int
45 #define PDP11_OPCODE_OP_AC 16 /* generic int argument, then fpu
49 * PDP-11 instruction set extensions.
51 * Please keep the numbers low, as they are used as indices into
55 #define PDP11_NONE 0 /* not in instruction set */
56 #define PDP11_BASIC 1 /* basic instruction set (11/20 etc) */
57 #define PDP11_CSM 2 /* commercial instruction set */
58 #define PDP11_CIS 3 /* commercial instruction set */
59 #define PDP11_EIS 4 /* extended instruction set (11/45 etc) */
60 #define PDP11_FIS 5 /* KEV11 floating-point instructions */
61 #define PDP11_FPP 6 /* FP-11 floating-point instructions */
62 #define PDP11_LEIS 7 /* limited extended instruction set
64 #define PDP11_MFPT 8 /* move from processor type */
65 #define PDP11_MPROC 9 /* multiprocessor instructions: tstset,
67 #define PDP11_MXPS 10 /* move from/to processor status */
68 #define PDP11_SPL 11 /* set priority level */
69 #define PDP11_UCODE 12 /* microcode instructions: ldub, med, xfc */
70 #define PDP11_EXT_NUM 13 /* total number of extension types */
81 extern const struct pdp11_opcode pdp11_opcodes
[];
82 extern const struct pdp11_opcode pdp11_aliases
[];
83 extern const int pdp11_num_opcodes
, pdp11_num_aliases
;