1: /*
   2:  * PDP11 Registers
   3:  */
   4: 
   5: /*
   6:  * Scratch registers
   7:  */
   8: #define R0  0
   9: #define R1  1
  10: 
  11: /*
  12:  * Register variables
  13:  */
  14: #define R2  2
  15: #define R3  3
  16: #define R4  4
  17: 
  18: /*
  19:  * Special purpose registers
  20:  */
  21: #define R5  5   /* frame pointer */
  22: #define SP  6   /* stack pointer */
  23: #define PC  7   /* program counter */
  24: 
  25: /* floating registers */
  26: 
  27: #define FR0 8
  28: #define FR1 9
  29: #define FR2 10
  30: #define FR3 11
  31: #define FR4 12
  32: #define FR5 13
  33: 
  34: #define REGSZ   14
  35: #define TMPREG  R5
  36: 
  37: extern  int fregs;
  38: extern  int maxargs;
  39: 
  40: #define BYTEOFF(x) ((x)&01)
  41: #define wdal(k)     (BYTEOFF(k)==0)     /* word align */
  42: #define BITOOR(x)   ((x)>>3)        /* bit offset to oreg offset */
  43: 
  44: /*
  45:  * Some macros used in store():
  46:  *	just evaluate the arguments, and be done with it...
  47:  */
  48: #define STOARG(p)
  49: #define STOFARG(p)
  50: #define STOSTARG(p)
  51: #define genfcall(a,b)   gencall(a,b)
  52: 
  53: /*
  54:  * Some short routines that get called an awful lot are actually macros.
  55:  */
  56: #define shltype(o, p) \
  57:     ((o) == REG || (o) == NAME || (o) == ICON || \
  58:      (o) == OREG || ((o) == UNARY MUL && shumul((p)->in.left)))
  59: #define ncopy(q, p) ((q)->in = (p)->in)
  60: 
  61: #define MYREADER(p) myreader(p)
  62: int optim2();

Defined macros

BITOOR defined in line 42; never used
BYTEOFF defined in line 40; used 1 times
  • in line 41
FR0 defined in line 27; never used
FR1 defined in line 28; never used
FR2 defined in line 29; never used
FR3 defined in line 30; never used
FR4 defined in line 31; never used
FR5 defined in line 32; never used
MYREADER defined in line 61; never used
PC defined in line 23; never used
R0 defined in line 8; never used
R1 defined in line 9; never used
R2 defined in line 14; never used
R3 defined in line 15; never used
R4 defined in line 16; never used
R5 defined in line 21; used 1 times
  • in line 35
REGSZ defined in line 34; never used
SP defined in line 22; never used
STOARG defined in line 48; never used
STOFARG defined in line 49; never used
STOSTARG defined in line 50; never used
TMPREG defined in line 35; never used
genfcall defined in line 51; never used
ncopy defined in line 59; never used
shltype defined in line 56; never used
wdal defined in line 41; never used
Last modified: 1991-08-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2225
Valid CSS Valid XHTML 1.0 Strict