Fix register name printed in warning message.
[deliverable/binutils-gdb.git] / include / opcode / pdp11.h
CommitLineData
e135f41b 1/* PDP-11 opcde list.
4f1d9bd8 2 Copyright 2001 Free Software Foundation, Inc.
e135f41b
NC
3
4This file is part of GDB and GAS.
5
6GDB and GAS are free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option)
9any later version.
10
11GDB and GAS are distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GDB or GAS; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20/*
21 * PDP-11 opcode types.
22 */
23
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,
29 reversed syntax */
30#define PDP11_OPCODE_AC_OP 5 /* fpu accumulator and generic
31 operand */
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
35 displacement */
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
41/*
42 * PDP-11 instruction set extensions.
43 *
44 * Please keep the numbers low, as they are used as indices into
45 * an array.
46 */
47
48#define PDP11_NONE 0 /* not in instruction set */
49#define PDP11_BASIC 1 /* basic instruction set (11/20 etc) */
50#define PDP11_CSM 2 /* commercial instruction set */
51#define PDP11_CIS 3 /* commercial instruction set */
52#define PDP11_EIS 4 /* extended instruction set (11/45 etc) */
53#define PDP11_FIS 5 /* KEV11 floating-point instructions */
54#define PDP11_FPP 6 /* FP-11 floating-point instructions */
55#define PDP11_LEIS 7 /* limited extended instruction set
56 (11/40 etc) */
57#define PDP11_MFPT 8 /* move from processor type */
58#define PDP11_MPROC 9 /* multiprocessor instructions: tstset,
59 wrtlck */
60#define PDP11_MXPS 10 /* move from/to processor status */
61#define PDP11_SPL 11 /* set priority level */
62#define PDP11_UCODE 12 /* microcode instructions: ldub, med, xfc */
63#define PDP11_EXT_NUM 13 /* total number of extension types */
64
65struct pdp11_opcode
66{
67 const char *name;
68 int opcode;
69 int mask;
70 int type;
71 int extension;
72};
73
74extern const struct pdp11_opcode pdp11_opcodes[];
75extern const struct pdp11_opcode pdp11_aliases[];
76extern const int pdp11_num_opcodes, pdp11_num_aliases;
77
78/* end of pdp11.h */
This page took 0.029125 seconds and 4 git commands to generate.