home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / language / bcpl / BCPL / alib / LibHdr < prev   
Encoding:
Text File  |  1988-05-12  |  2.9 KB  |  173 lines

  1. // LIBHDR for the ARM BCPL System
  2. //
  3. // Last edited 18 Jan 88 13:12:45
  4.  
  5. GLOBAL
  6. $( globsize        : 0;
  7.    G0            : 0;
  8.    Start        : 1;
  9.    HostProcessor    : 2;
  10.  
  11. //3-12
  12.    result2        : 13;
  13.    PutByte        : 14;
  14.    BytePut        : 14;
  15.    GetByte        : 15;
  16.    ByteGet        : 15;
  17.    MulDiv        : 16;
  18.    lineBuff        : 17;
  19.    WriteS        : 18;
  20.    WriteF        : 19;
  21.    CapitalCh        : 20;
  22.    CompCh        : 21;
  23.    CompString        : 22;
  24.    NewLine        : 23;
  25.    RdCh         : 24;
  26.    UnRdCh        : 25;
  27.    WrCh         : 26;
  28.    Input        : 27;
  29.    Output        : 28;
  30.    SelectInput        : 29;
  31.    SelectOutput     : 30;
  32.    cis            : 31;
  33.    cos            : 32;
  34.  
  35. //33-34
  36.    Stop         : 35;
  37.    NewPage        : 36;
  38.    GBytes        : 37;
  39.    PBytes        : 38;
  40.    returnCode        : 39;
  41.    stackBase        : 40;
  42.    Level        : 41;
  43.    LongJump        : 42;
  44.    Aptovec        : 43;
  45.    RdBin        : 44;
  46.    BinRdCh        : 44; // = rdbin
  47.    WrBin        : 45;
  48.    BinWrCh        : 45; // = wrbin
  49.    FindInput        : 46;
  50.    FindOutput        : 47;
  51.  
  52.    CreateCo        : 48;
  53.    DeleteCo        : 49;
  54.    CallCo        : 50;
  55.    ResumeCo        : 51;
  56.    CoWait        : 52;
  57.  
  58. //53
  59.    GetVec        : 54;
  60.    FreeVec        : 55;
  61.    MaxVec        : 56;
  62.    blockList        : 57;
  63.    freeStore        : 57;
  64. //58
  65.    Read.Offset        : 59;
  66.    Set.Offset        : 60;
  67.    Extent        : 61;
  68. //62
  69.    Abort        : 63;
  70.    BackTrace        : 64;
  71.    MapStore        : 65;
  72.    ReadBytes        : 66;
  73.    WriteBytes        : 67;
  74. //66-68
  75.    PackString        : 69;
  76.    UnpackString     : 70;
  77. //71-75
  78.    EndRead        : 76;
  79.    EndWrite        : 77;
  80.    ReadN        : 78;
  81.    WriteD        : 79;
  82.    WriteN        : 80;
  83.    WriteHex        : 81;
  84.    WriteOct        : 82;
  85.    RdArgs        : 83;
  86.    RdItem        : 84;
  87.    FindArg        : 85;
  88. //86-88
  89.    random.state     : 89;
  90.    Random        : 90;
  91. //91-92
  92.    OSByte2        : 93;
  93.    SWI            : 94;
  94.    Fault        : 95;
  95.    OSArgs        : 96;
  96.    OSBGet        : 97;
  97.    OSBPut        : 98;
  98.    OSFind        : 99;
  99.    OSFile        : 100;
  100.    OSCLI        : 101;
  101.    OSWrch        : 102;
  102.    OSRdCh        : 103;
  103.    OSByte        : 104;
  104.    OSWord        : 105;
  105.    TKRerr        : 106;
  106.    OSGBPB        : 107;
  107.    Time         : 108;
  108.    TimeOfDay        : 109;
  109.    Date         : 110;
  110.    Lib.InitIO        : 111;
  111. //112  SetEventHandler
  112.    BinaryTime        : 113;
  113.    ExplodeBinaryTime    : 114;
  114. //112-119
  115.    SSin         : 120;
  116.    SCos         : 121;
  117.    STan         : 122;
  118.    SASin        : 123;
  119.    SACos        : 124;
  120.    SATan        : 125;
  121.    SLogE        : 126;
  122.    SLog10        : 127;
  123.    SEXP         : 128;
  124.    SPower        : 129;
  125.    SSqrt        : 130;
  126.    SATan2        : 131;
  127.    SRound        : 132;
  128.    ConvertSToP        : 133;
  129.  
  130.    FindStringInput    : 134;
  131.    // 135 & 136 belong to IOLib
  132.    FindFileInput    : 137;
  133.    FindFileOutput    : 138;
  134.    StringF        : 139;
  135.    MoveWords        : 140;
  136.    FillWords        : 141;
  137.    loadPoint        : 142;
  138.    Lib.TerminateIo    : 143;
  139.    vdustream        : 144;
  140.    errorstream        : 145;
  141.    streamchain        : 146;
  142.    describestream    : 147;
  143.    topOfStore        : 148;
  144.    SWriteF        : 149
  145. $)
  146.  
  147. MANIFEST {
  148.    round.nearest = 0;
  149.    round.plusinfinity = 1;
  150.    round.minusinfinity = 2;
  151.    round.zero = 3 };
  152.  
  153. MANIFEST
  154. $( VersionMark        = #x4e524556;
  155.  
  156.    EndStreamCh        = #x1FE;
  157.    BytesPerWord     = 4;
  158.    BitsPerWord        = 32;
  159.    BitsPerByte        = 8;
  160.    MaxInt        = #x7FFFFFFF;
  161.    MinInt        = #x80000000;
  162.    mcaddrinc        = 4;
  163.  
  164.    StackFrameDirection    = 1;   // later variables are at higher addresses
  165.  
  166.    ug            = 150;
  167.    fg            = ug;
  168.    firstfreeglobal    = ug;
  169.  
  170.    fp.len        = 1;
  171.    fpd.len        = 2
  172. $)
  173.