~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to binutils/include/opcode/pdp11.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* PDP-11 opcde list.
 
2
   Copyright 2001, 2002 Free Software Foundation, Inc.
 
3
 
 
4
This file is part of GDB and GAS.
 
5
 
 
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)
 
9
any later version.
 
10
 
 
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.
 
15
 
 
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.  */
 
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_FOP      5      /* fpu accumulator and generic float
 
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
#define PDP11_OPCODE_FOP_AC     13      /* generic float argument, then fpu
 
41
                                           accumulator */
 
42
#define PDP11_OPCODE_FOP        14      /* generic float operand */
 
43
#define PDP11_OPCODE_AC_OP      15      /* fpu accumulator and generic int
 
44
                                           operand */
 
45
#define PDP11_OPCODE_OP_AC      16      /* generic int argument, then fpu
 
46
                                           accumulator */
 
47
 
 
48
/*
 
49
 * PDP-11 instruction set extensions.
 
50
 *
 
51
 * Please keep the numbers low, as they are used as indices into
 
52
 * an array.
 
53
 */
 
54
 
 
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
 
63
                                   (11/40 etc) */
 
64
#define PDP11_MFPT       8      /* move from processor type */
 
65
#define PDP11_MPROC      9      /* multiprocessor instructions: tstset,
 
66
                                   wrtlck */
 
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 */
 
71
 
 
72
struct pdp11_opcode
 
73
{
 
74
  const char *name;
 
75
  int opcode;
 
76
  int mask;
 
77
  int type;
 
78
  int extension;
 
79
};
 
80
 
 
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;
 
84
 
 
85
/* end of pdp11.h */