121966Sdist /* 2*62017Sbostic * Copyright (c) 1983, 1993 3*62017Sbostic * The Regents of the University of California. All rights reserved. 421966Sdist * 542683Sbostic * %sccs.include.redist.c% 634199Sbostic * 7*62017Sbostic * @(#)vax.h 8.1 (Berkeley) 06/06/93 821966Sdist */ 911714Smckusick 1011714Smckusick /* 1111714Smckusick * opcode of the `calls' instruction 1211714Smckusick */ 1311714Smckusick #define CALLS 0xfb 1411714Smckusick 1511714Smckusick /* 1611714Smckusick * offset (in bytes) of the code from the entry address of a routine. 1711714Smckusick * (see asgnsamples for use and explanation.) 1811714Smckusick */ 1911714Smckusick #define OFFSET_OF_CODE 2 2011806Smckusick #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) 2111714Smckusick 2211714Smckusick /* 2311714Smckusick * register for pc relative addressing 2411714Smckusick */ 2511714Smckusick #define PC 0xf 2611714Smckusick 2711714Smckusick enum opermodes { 2811714Smckusick literal, indexed, reg, regdef, autodec, autoinc, autoincdef, 2911714Smckusick bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, 3011714Smckusick immediate, absolute, byterel, bytereldef, wordrel, wordreldef, 3111714Smckusick longrel, longreldef 3211714Smckusick }; 3311714Smckusick typedef enum opermodes operandenum; 3411714Smckusick 3511714Smckusick struct modebyte { 3611714Smckusick unsigned int regfield:4; 3711714Smckusick unsigned int modefield:4; 3811714Smckusick }; 3911714Smckusick 40