1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)operand.h	5.1 (Berkeley) 6/7/85
   7:  *
   8:  * operand.h  --  definitions useful to VAX operand decoding
   9:  */
  10: 
  11: #define opmode(op)  (op & 0xf0)
  12: #define opregn(op)  (op & 0xf)
  13: 
  14: /*
  15:  * operand modes
  16:  */
  17: #define LITERAL0    0x00
  18: #define LITERAL1    0x10
  19: #define LITERAL2    0x20
  20: #define LITERAL3    0x30
  21: #define INDEXED     0x40
  22: #define REGISTER    0x50
  23: #define REGDEFERED  0x60
  24: #define AUTODEC     0x70
  25: #define AUTOINC     0x80
  26: #define AUTOINCDEF  0x90
  27: #define BYTEDISP    0xa0
  28: #define BYTEDISPDEF 0xb0
  29: #define WORDDISP    0xc0
  30: #define WORDDISPDEF 0xd0
  31: #define LONGDISP    0xe0
  32: #define LONGDISPDEF 0xf0
  33: /*
  34:  * Modes where R is PC
  35:  */
  36: #define IMMEDIATE   0x8f
  37: #define ABSOLUTE    0x9f
  38: #define BYTEREL     0xaf
  39: #define BYTERELDEF  0xbf
  40: #define WORDREL     0xcf
  41: #define WORDRELDEF  0xdf
  42: #define LONGREL     0xef
  43: #define LONGRELDEF  0xff
  44: 
  45: /*
  46:  * register definitions
  47:  */
  48: #define R0  0
  49: #define R1  1
  50: #define R2  2
  51: #define R3  3
  52: #define R4  4
  53: #define R5  5
  54: #define R6  6
  55: #define R7  7
  56: #define R8  8
  57: #define R9  9
  58: #define R10 10
  59: #define R11 11
  60: #define AP  12
  61: #define FP  13
  62: #define SP  14
  63: #define PC  15

Defined macros

ABSOLUTE defined in line 37; never used
AP defined in line 60; used 1 times
AUTODEC defined in line 24; never used
AUTOINC defined in line 25; never used
AUTOINCDEF defined in line 26; never used
BYTEDISP defined in line 27; never used
BYTEDISPDEF defined in line 28; never used
BYTEREL defined in line 38; never used
BYTERELDEF defined in line 39; never used
FP defined in line 61; used 1 times
IMMEDIATE defined in line 36; never used
INDEXED defined in line 21; never used
LITERAL0 defined in line 17; never used
LITERAL1 defined in line 18; never used
LITERAL2 defined in line 19; never used
LITERAL3 defined in line 20; never used
LONGDISP defined in line 31; never used
LONGDISPDEF defined in line 32; never used
LONGREL defined in line 42; never used
LONGRELDEF defined in line 43; never used
PC defined in line 63; used 2 times
R0 defined in line 48; never used
R1 defined in line 49; never used
R10 defined in line 58; never used
R11 defined in line 59; used 1 times
R2 defined in line 50; never used
R3 defined in line 51; never used
R4 defined in line 52; never used
R5 defined in line 53; never used
R6 defined in line 54; used 1 times
R7 defined in line 55; never used
R8 defined in line 56; never used
R9 defined in line 57; never used
REGDEFERED defined in line 23; never used
REGISTER defined in line 22; never used
SP defined in line 62; used 4 times
WORDDISP defined in line 29; never used
WORDDISPDEF defined in line 30; never used
WORDREL defined in line 40; never used
WORDRELDEF defined in line 41; never used
opmode defined in line 11; never used
opregn defined in line 12; never used

Usage of this include

Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2556
Valid CSS Valid XHTML 1.0 Strict