Commit | Line | Data |
---|---|---|
ddb85eed | 1 | /* |
7e9de516 KB |
2 | * Copyright (c) 1983, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
ddb85eed | 4 | * |
6ecf3d85 | 5 | * %sccs.include.redist.c% |
ddb85eed | 6 | * |
7e9de516 | 7 | * @(#)tahoe.h 8.1 (Berkeley) %G% |
ddb85eed | 8 | */ |
1ec8882b SL |
9 | |
10 | /* | |
11 | * opcode of the `callf' instruction | |
12 | */ | |
13 | #define CALLF 0xfe | |
14 | ||
15 | /* | |
16 | * offset (in bytes) of the code from the entry address of a routine. | |
17 | * (see asgnsamples for use and explanation.) | |
18 | */ | |
19 | #define OFFSET_OF_CODE 2 | |
20 | #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) | |
21 | ||
22 | /* | |
23 | * register for pc relative addressing | |
24 | */ | |
25 | #define PC 0xf | |
26 | ||
27 | enum opermodes { | |
28 | literal, indexed, reg, regdef, autodec, autoinc, autoincdef, | |
29 | bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, | |
30 | immediate, absolute, byterel, bytereldef, wordrel, wordreldef, | |
31 | longrel, longreldef | |
32 | }; | |
33 | typedef enum opermodes operandenum; |