xref: /original-bsd/usr.bin/gprof/tahoe.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)tahoe.h	8.1 (Berkeley) 06/06/93
8  */
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;
34