source: trunk/libs/newlib/src/include/vms/etir.h @ 666

Last change on this file since 666 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 5.4 KB
Line 
1/* Alpha VMS external format of Extended Text Information and Relocation.
2
3   Copyright 2010 Free Software Foundation, Inc.
4   Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
5
6   This file is part of BFD, the Binary File Descriptor library.
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 3 of the License, or
11   (at your option) any later version.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with this program; if not, write to the Free Software
20   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21   MA 02110-1301, USA.  */
22
23#ifndef _VMS_ETIR_H
24#define _VMS_ETIR_H
25
26#define ETIR__C_MINSTACOD 0     /* Minimum stack code.          */
27#define ETIR__C_STA_GBL   0     /* Stack global symbol value.   */
28#define ETIR__C_STA_LW    1     /* Stack longword.              */
29#define ETIR__C_STA_QW    2     /* Stack quadword.              */
30#define ETIR__C_STA_PQ    3     /* Stack psect base + quadword off.  */
31#define ETIR__C_STA_LI    4     /* Stack literal.               */
32#define ETIR__C_STA_MOD   5     /* Stack module.                */
33#define ETIR__C_STA_CKARG 6     /* Check Arguments.             */
34#define ETIR__C_MAXSTACOD 6     /* Maximum stack code.          */
35
36#define ETIR__C_MINSTOCOD  50   /* Minimum store code.          */
37#define ETIR__C_STO_B      50   /* Store byte.                  */
38#define ETIR__C_STO_W      51   /* Store word.                  */
39#define ETIR__C_STO_LW     52   /* Store longword.              */
40#define ETIR__C_STO_QW     53   /* Store quadword.              */
41#define ETIR__C_STO_IMMR   54   /* Store immediate Repeated.    */
42#define ETIR__C_STO_GBL    55   /* Store global.                */
43#define ETIR__C_STO_CA     56   /* Store code address.          */
44#define ETIR__C_STO_RB     57   /* Store relative branch.       */
45#define ETIR__C_STO_AB     58   /* Store absolute branch.       */
46#define ETIR__C_STO_OFF    59   /* Store offset within psect.   */
47#define ETIR__C_STO_IMM    61   /* Store immediate.             */
48#define ETIR__C_STO_GBL_LW 62   /* Store global Longword.       */
49#define ETIR__C_STO_LP_PSB 63   /* STO_LP_PSB not valid in level 2 use STC_LP_PSB.  */
50#define ETIR__C_STO_HINT_GBL 64  /* Store 14 bit HINT at global address.  */
51#define ETIR__C_STO_HINT_PS  65  /* Store 14 bit HINT at psect + offset */
52#define ETIR__C_MAXSTOCOD    65  /* Maximum store code.         */
53
54/* Operate codes.  */
55#define ETIR__C_MINOPRCOD 100   /* Minimum operate code.        */
56#define ETIR__C_OPR_NOP   100   /* No-op.                       */
57#define ETIR__C_OPR_ADD   101   /* Add.                         */
58#define ETIR__C_OPR_SUB   102   /* Subtract.                    */
59#define ETIR__C_OPR_MUL   103   /* Multiply.                    */
60#define ETIR__C_OPR_DIV   104   /* Divide.                      */
61#define ETIR__C_OPR_AND   105   /* Logical AND.                 */
62#define ETIR__C_OPR_IOR   106   /* Logical inclusive OR.        */
63#define ETIR__C_OPR_EOR   107   /* Logical exclusive OR.        */
64#define ETIR__C_OPR_NEG   108   /* Negate.                      */
65#define ETIR__C_OPR_COM   109   /* Complement.                  */
66#define ETIR__C_OPR_INSV  110   /* Insert bit field.            */
67#define ETIR__C_OPR_ASH   111   /* Arithmetic shift.            */
68#define ETIR__C_OPR_USH   112   /* Unsigned shift.              */
69#define ETIR__C_OPR_ROT   113   /* Rotate.                      */
70#define ETIR__C_OPR_SEL   114   /* Select one of 3 long on top of stack.   */
71#define ETIR__C_OPR_REDEF 115   /* Redefine this symbol after pass 2.  */
72#define ETIR__C_OPR_DFLIT 116   /* Define a literal.            */
73#define ETIR__C_MAXOPRCOD 116   /* Maximum operate code.        */
74
75/* Control codes.  */
76#define ETIR__C_MINCTLCOD 150   /* Minimum control code.        */
77#define ETIR__C_CTL_SETRB 150   /* Set relocation base.         */
78#define ETIR__C_CTL_AUGRB 151   /* Augment relocation base.     */
79#define ETIR__C_CTL_DFLOC 152   /* Define debug location.       */
80#define ETIR__C_CTL_STLOC 153   /* Set debug location.          */
81#define ETIR__C_CTL_STKDL 154   /* Stack debug location.        */
82#define ETIR__C_MAXCTLCOD 154   /* Maximum control code.        */
83
84/* Store-conditional (STC) codes.  */
85#define ETIR__C_MINSTCCOD   200 /* Minimum store-conditional code.   */
86#define ETIR__C_STC_LP      200 /* STC Linkage Pair.   */
87#define ETIR__C_STC_LP_PSB  201 /* STC Linkage Pair with Proc Signature.  */
88#define ETIR__C_STC_GBL     202 /* STC Address at global address.  */
89#define ETIR__C_STC_GCA     203 /* STC Code Address at global address.  */
90#define ETIR__C_STC_PS      204 /* STC Address at psect + offset.  */
91#define ETIR__C_STC_NOP_GBL 205 /* STC NOP at address of global.  */
92#define ETIR__C_STC_NOP_PS  206 /* STC NOP at pect + offset.  */
93#define ETIR__C_STC_BSR_GBL 207 /* STC BSR at global address.  */
94#define ETIR__C_STC_BSR_PS  208 /* STC BSR at pect + offset.  */
95#define ETIR__C_STC_LDA_GBL 209 /* STC LDA at global address.  */
96#define ETIR__C_STC_LDA_PS  210 /* STC LDA at psect + offset.  */
97#define ETIR__C_STC_BOH_GBL 211 /* STC BSR or Hint at global address.  */
98#define ETIR__C_STC_BOH_PS  212 /* STC BSR or Hint at pect + offset.  */
99#define ETIR__C_STC_NBH_GBL 213 /* STC NOP,BSR or HINT at global address.  */
100#define ETIR__C_STC_NBH_PS  214 /* STC NOP,BSR or HINT at psect + offset.  */
101#define ETIR__C_MAXSTCCOD   214 /* Maximum store-conditional code.   */
102
103#define ETIR__C_HEADER_SIZE 4   /* Size of the header of a command */
104
105struct vms_etir
106{
107  /* Commands.  See above.  */
108  unsigned char rectyp[2];
109
110  /* Size (including this header).  */
111  unsigned char size[2];
112};
113
114#endif /* _VMS_ETIR_H */
Note: See TracBrowser for help on using the repository browser.