date and time created 83/03/24 16:05:10 by mckusick
[unix-history] / usr / src / usr.bin / gprof / vax.h
/* sccsid: @(#)vax.h 1.1 (Berkeley) %G% */
/*
* opcode of the `calls' instruction
*/
#define CALLS 0xfb
/*
* offset (in bytes) of the code from the entry address of a routine.
* (see asgnsamples for use and explanation.)
*/
#define OFFSET_OF_CODE 2
/*
* register for pc relative addressing
*/
#define PC 0xf
enum opermodes {
literal, indexed, reg, regdef, autodec, autoinc, autoincdef,
bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef,
immediate, absolute, byterel, bytereldef, wordrel, wordreldef,
longrel, longreldef
};
typedef enum opermodes operandenum;
struct modebyte {
unsigned int regfield:4;
unsigned int modefield:4;
};