1: #ifndef lint
   2: static  char optab_sccsid[] = "@(#)optab.c 4.3 10/27/82";
   3: #endif not lint
   4: #ifdef ADB
   5: #include "defs.h"
   6: #endif ADB
   7: #ifdef SDB
   8: #include "defs.h"
   9: #endif SDB
  10: 
  11: #undef INSTTAB
  12: 
  13: #include "instrs.h"
  14: 
  15: struct insttab insttab[] = {
  16: #include "instrs.adb"
  17: 0};
  18: #include "assizetab.c"
  19: #undef ADB
  20: 
  21: #define SYSTAB struct systab
  22: SYSTAB {
  23:     int argc;
  24:     char    *sname;
  25: } systab[] = {
  26:     1, "indir",
  27:     0, "exit",
  28:     0, "fork",
  29:     2, "read",
  30:     2, "write",
  31:     2, "open",
  32:     0, "close",
  33:     0, "wait",
  34:     2, "creat",
  35:     2, "link",
  36:     1, "unlink",
  37:     2, "exec",
  38:     1, "chdir",
  39:     0, "time",
  40:     3, "mknod",
  41:     2, "chmod",
  42:     2, "chown",
  43:     1, "break",
  44:     2, "stat",
  45:     2, "seek",
  46:     0, "getpid",
  47:     3, "mount",
  48:     1, "umount",
  49:     0, "setuid",
  50:     0, "getuid",
  51:     0, "stime",
  52:     3, "ptrace",
  53:     0, "alarm",
  54:     1, "fstat",
  55:     0, "pause",
  56:     1, "30",
  57:     1, "stty",
  58:     1, "gtty",
  59:     0, "access",
  60:     0, "nice",
  61:     0, "sleep",
  62:     0, "sync",
  63:     1, "kill",
  64:     0, "csw",
  65:     0, "setpgrp",
  66:     0, "tell",
  67:     0, "dup",
  68:     0, "pipe",
  69:     1, "times",
  70:     4, "profil",
  71:     0, "tiu",
  72:     0, "setgid",
  73:     0, "getgid",
  74:     2, "signal",
  75:     0, "49",
  76:     0, "50",
  77:     0, "51",
  78:     0, "52",
  79:     0, "53",
  80:     0, "54",
  81:     0, "55",
  82:     0, "56",
  83:     0, "57",
  84:     0, "58",
  85:     0, "59",
  86:     0, "60",
  87:     0, "61",
  88:     0, "62",
  89:     0, "63",
  90: };
  91: 
  92: STRING  regname[] = { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
  93:                     "r8", "r9", "r10","r11","ap", "fp", "sp", "pc"};
  94: STRING  fltimm[] = {
  95: "0.5", "0.5625", "0.625", "0.6875", "0.75", "0.8125", "0.875", "0.9375",
  96: "1.0", "1.125", "1.25", "1.375", "1.5", "1.625", "1.75", "1.875",
  97: "2.0", "2.25", "2.5", "2.75", "3.0", "3.25", "3.5", "3.75",
  98: "4.0", "4.5", "5.0", "5.5", "6.0", "6.5", "7.0", "7.5",
  99: "8.0", "9.0", "10.0", "11.0", "12.0", "13.0", "14.0", "15.0",
 100: "16.0", "18.0", "20.0", "22.0", "24.0", "26.0", "28.0", "30.0",
 101: "32.0", "36.0", "40.0", "44.0", "48.0", "52.0", "56.0", "60.0",
 102: "64.0", "72.0", "80.0", "88.0", "96.0", "104.0", "112.0", "120.0"
 103: };
 104: 
 105: #ifdef SDB
 106: REGLIST reglist [] = {
 107:         "p1lr", P1LR,
 108:         "p1br",P1BR,
 109:         "p0lr", P0LR,
 110:         "p0br",P0BR,
 111:         "ksp",KSP,
 112:         "esp",ESP,
 113:         "ssp",SSP,
 114:         "psl", PSL,
 115:         "pc", PC,
 116:         "usp",USP,
 117:         "fp", FP,
 118:         "ap", AP,
 119:         "r11", R11,
 120:         "r10", R10,
 121:         "r9", R9,
 122:         "r8", R8,
 123:         "r7", R7,
 124:         "r6", R6,
 125:         "r5", R5,
 126:         "r4", R4,
 127:         "r3", R3,
 128:         "r2", R2,
 129:         "r1", R1,
 130:         "r0", R0,
 131: };
 132: #endif SDB

Defined variables

insttab defined in line 15; never used
optab_sccsid defined in line 2; never used

Defined macros

SYSTAB defined in line 21; used 1 times
  • in line 22
Last modified: 1982-10-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 906
Valid CSS Valid XHTML 1.0 Strict