Commit | Line | Data |
---|---|---|
1ec8882b SL |
1 | /* tahoe.h 1.1 86/01/07 */ |
2 | ||
3 | /* | |
4 | * opcode of the `callf' instruction | |
5 | */ | |
6 | #define CALLF 0xfe | |
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 | |
13 | #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) | |
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; |