Add copyright
[unix-history] / usr / src / usr.bin / gprof / vax.h
CommitLineData
c0bc4ef7
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)vax.h 5.1 (Berkeley) %G%
7 */
9ae42d58
KM
8
9 /*
10 * opcode of the `calls' instruction
11 */
12#define CALLS 0xfb
13
14 /*
15 * offset (in bytes) of the code from the entry address of a routine.
16 * (see asgnsamples for use and explanation.)
17 */
18#define OFFSET_OF_CODE 2
9b8e0da9 19#define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT))
9ae42d58
KM
20
21 /*
22 * register for pc relative addressing
23 */
24#define PC 0xf
25
26enum opermodes {
27 literal, indexed, reg, regdef, autodec, autoinc, autoincdef,
28 bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef,
29 immediate, absolute, byterel, bytereldef, wordrel, wordreldef,
30 longrel, longreldef
31};
32typedef enum opermodes operandenum;
33
34struct modebyte {
35 unsigned int regfield:4;
36 unsigned int modefield:4;
37};
38