Commit | Line | Data |
---|---|---|
9b8e0da9 | 1 | /* sccsid: @(#)vax.h 1.2 (Berkeley) %G% */ |
9ae42d58 KM |
2 | |
3 | /* | |
4 | * opcode of the `calls' instruction | |
5 | */ | |
6 | #define CALLS 0xfb | |
7 | ||
8 | /* | |
9 | * offset (in bytes) of the code from the entry address of a routine. | |
10 | * (see asgnsamples for use and explanation.) | |
11 | */ | |
12 | #define OFFSET_OF_CODE 2 | |
9b8e0da9 | 13 | #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) |
9ae42d58 KM |
14 | |
15 | /* | |
16 | * register for pc relative addressing | |
17 | */ | |
18 | #define PC 0xf | |
19 | ||
20 | enum opermodes { | |
21 | literal, indexed, reg, regdef, autodec, autoinc, autoincdef, | |
22 | bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, | |
23 | immediate, absolute, byterel, bytereldef, wordrel, wordreldef, | |
24 | longrel, longreldef | |
25 | }; | |
26 | typedef enum opermodes operandenum; | |
27 | ||
28 | struct modebyte { | |
29 | unsigned int regfield:4; | |
30 | unsigned int modefield:4; | |
31 | }; | |
32 |