xref: /csrg-svn/usr.bin/gprof/vax.h (revision 11714)
1*11714Smckusick     /* sccsid:  @(#)vax.h	1.1 (Berkeley) 03/24/83 */
2*11714Smckusick 
3*11714Smckusick     /*
4*11714Smckusick      *	opcode of the `calls' instruction
5*11714Smckusick      */
6*11714Smckusick #define	CALLS	0xfb
7*11714Smckusick 
8*11714Smckusick     /*
9*11714Smckusick      *	offset (in bytes) of the code from the entry address of a routine.
10*11714Smckusick      *	(see asgnsamples for use and explanation.)
11*11714Smckusick      */
12*11714Smckusick #define OFFSET_OF_CODE	2
13*11714Smckusick 
14*11714Smckusick     /*
15*11714Smckusick      *	register for pc relative addressing
16*11714Smckusick      */
17*11714Smckusick #define	PC	0xf
18*11714Smckusick 
19*11714Smckusick enum opermodes {
20*11714Smckusick     literal, indexed, reg, regdef, autodec, autoinc, autoincdef,
21*11714Smckusick     bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef,
22*11714Smckusick     immediate, absolute, byterel, bytereldef, wordrel, wordreldef,
23*11714Smckusick     longrel, longreldef
24*11714Smckusick };
25*11714Smckusick typedef enum opermodes	operandenum;
26*11714Smckusick 
27*11714Smckusick struct modebyte {
28*11714Smckusick     unsigned int	regfield:4;
29*11714Smckusick     unsigned int	modefield:4;
30*11714Smckusick };
31*11714Smckusick 
32