xref: /original-bsd/usr.bin/gprof/tahoe.h (revision e7d21e74)
140159e57Sbostic /*
2*e7d21e74Sbostic  * Copyright (c) 1983, 1993
3*e7d21e74Sbostic  *	The Regents of the University of California.  All rights reserved.
440159e57Sbostic  *
51808f06cSbostic  * %sccs.include.redist.c%
640159e57Sbostic  *
7*e7d21e74Sbostic  *	@(#)tahoe.h	8.1 (Berkeley) 06/06/93
840159e57Sbostic  */
913c8c470Ssam 
1013c8c470Ssam     /*
1113c8c470Ssam      *	opcode of the `callf' instruction
1213c8c470Ssam      */
1313c8c470Ssam #define	CALLF	0xfe
1413c8c470Ssam 
1513c8c470Ssam     /*
1613c8c470Ssam      *	offset (in bytes) of the code from the entry address of a routine.
1713c8c470Ssam      *	(see asgnsamples for use and explanation.)
1813c8c470Ssam      */
1913c8c470Ssam #define OFFSET_OF_CODE	2
2013c8c470Ssam #define	UNITS_TO_CODE	(OFFSET_OF_CODE / sizeof(UNIT))
2113c8c470Ssam 
2213c8c470Ssam     /*
2313c8c470Ssam      *	register for pc relative addressing
2413c8c470Ssam      */
2513c8c470Ssam #define	PC	0xf
2613c8c470Ssam 
2713c8c470Ssam enum opermodes {
2813c8c470Ssam     literal, indexed, reg, regdef, autodec, autoinc, autoincdef,
2913c8c470Ssam     bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef,
3013c8c470Ssam     immediate, absolute, byterel, bytereldef, wordrel, wordreldef,
3113c8c470Ssam     longrel, longreldef
3213c8c470Ssam };
3313c8c470Ssam typedef enum opermodes	operandenum;
34