1*34199Sbostic /* 2*34199Sbostic * Copyright (c) 1983 Regents of the University of California. 3*34199Sbostic * All rights reserved. 4*34199Sbostic * 5*34199Sbostic * Redistribution and use in source and binary forms are permitted 6*34199Sbostic * provided that this notice is preserved and that due credit is given 7*34199Sbostic * to the University of California at Berkeley. The name of the University 8*34199Sbostic * may not be used to endorse or promote products derived from this 9*34199Sbostic * software without specific prior written permission. This software 10*34199Sbostic * is provided ``as is'' without express or implied warranty. 11*34199Sbostic * 12*34199Sbostic * @(#)tahoe.h 1.2 (Berkeley) 05/05/88 13*34199Sbostic */ 1425711Ssam 1525711Ssam /* 1625711Ssam * opcode of the `callf' instruction 1725711Ssam */ 1825711Ssam #define CALLF 0xfe 1925711Ssam 2025711Ssam /* 2125711Ssam * offset (in bytes) of the code from the entry address of a routine. 2225711Ssam * (see asgnsamples for use and explanation.) 2325711Ssam */ 2425711Ssam #define OFFSET_OF_CODE 2 2525711Ssam #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) 2625711Ssam 2725711Ssam /* 2825711Ssam * register for pc relative addressing 2925711Ssam */ 3025711Ssam #define PC 0xf 3125711Ssam 3225711Ssam enum opermodes { 3325711Ssam literal, indexed, reg, regdef, autodec, autoinc, autoincdef, 3425711Ssam bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, 3525711Ssam immediate, absolute, byterel, bytereldef, wordrel, wordreldef, 3625711Ssam longrel, longreldef 3725711Ssam }; 3825711Ssam typedef enum opermodes operandenum; 39