User Tools

Site Tools


cdc:nos2.source:opl871:ssinit

SSINIT

Table Of Contents

  • [00001] PROC SSINIT
  • [00002] SSINIT - OPEN CATALOG AND SMMAP INITIALIZER.
  • [00007] OPEN CATALOG AND SMMAP INITIALIZER.

Source Code

SSINIT.txt
  1. PROC SSINIT;
  2. # TITLE SSINIT - OPEN CATALOG AND SMMAP INITIALIZER. #
  3.  
  4. BEGIN # SSINIT #
  5.  
  6. #
  7. ** SSINIT - OPEN CATALOG AND SMMAP INITIALIZER.
  8. *
  9. * PROC SSINIT.
  10. *
  11. * EXIT BUFFER AND TABLE POINTERS SET UP.
  12. *
  13. * NOTES *SSINIT* IS USED BY THE *MSS* UTILITIES
  14. * TO SET UP BUFFER AND TABLE ADDRESSES FOR
  15. * THE CATALOG AND SMMAP ACCESS ROUTINES.
  16. * IT ALLOWS FOR 8 CATALOGS AND 8 SMMAPS
  17. * TO BE OPEN AT A TIME.
  18. #
  19.  
  20. DEF LISTCON #0#; # DO NOT LIST COMDECKS #
  21. *CALL COMBFAS
  22. *CALL COMBCMD
  23.  
  24. #
  25. * FETS, BUFFERS AND TABLES.
  26. #
  27.  
  28. ARRAY FETS [0:3] S(RFETL);;
  29. ARRAY BUF$AST [1:ABUFLEN] P(1);;
  30. ARRAY BUF$FCT[1:FCTBL] P(1);;
  31. ARRAY BUF$MAP [1:MAPBUFL] P(1);;
  32. ARRAY BUF$TEMP [1:FCTBL];;
  33. ARRAY BUF$WORK [1:WBUFL] P(1);;
  34.  
  35. #
  36. * OPEN CATALOG TABLE.
  37. #
  38.  
  39. ARRAY T$OCT [0:7] P(OCTENTL);;
  40.  
  41. #
  42. * OPEN SMMAP TABLE.
  43. #
  44.  
  45. ARRAY T$OMT [1:MAXSM] P(OMTENTL);;
  46.  
  47. #
  48. * PREAMBLE TABLE.
  49. #
  50.  
  51. ARRAY T$PRM [0:7] P(14);;
  52.  
  53. CONTROL EJECT;
  54.  
  55. #
  56. * SET UP BUFFER AND TABLE ADDRESSES.
  57. #
  58.  
  59. FCTFADR = LOC(FETS[0]); # *FCT* FET #
  60. P<FCTFET> = FCTFADR;
  61.  
  62. MAPFADR = LOC(FETS[1]); # MAP FET #
  63. P<MAPFET> = MAPFADR;
  64.  
  65. TFETADR = LOC(FETS[2]); # TEMPORARY FET #
  66. P<TFET> = TFETADR;
  67. ASTBADR = LOC(BUF$AST); # *AST* I/O BUFFER #
  68.  
  69. FCTBADR = LOC(BUF$FCT[1]); # *FCT* I/O BUFFER #
  70. P<FCTBUF> = FCTBADR;
  71.  
  72. MAPBADR = LOC(BUF$MAP[1]); # MAP BUFFER #
  73. P<MAPBUF> = MAPBADR;
  74.  
  75. TBUFADR = LOC(BUF$TEMP[1]); # TEMPORARY BUFFER #
  76. P<TBUF> = TBUFADR;
  77.  
  78. WBUFADR = LOC(BUF$WORK[1]); # WORKING BUFFER #
  79. P<WBUF> = WBUFADR;
  80.  
  81. OCTLEN = 8; # *OCT* LENGTH #
  82. OCTADR = LOC(T$OCT[0]); # OPEN CATALOG TABLE #
  83. P<OCT> = OCTADR;
  84.  
  85. OMTADR = LOC(T$OMT[1]); # OPEN MAP TABLE #
  86. P<OMT> = OMTADR;
  87.  
  88. PRMBADR = LOC(T$PRM[0]); # PREAMBLE TABLE #
  89. P<PRMBUF> = PRMBADR;
  90.  
  91. RETURN;
  92.  
  93. END # SSINIT #
  94.  
  95. TERM
cdc/nos2.source/opl871/ssinit.txt ยท Last modified: 2023/08/05 17:24 by Site Administrator