User Tools

Site Tools


cdc:nos2.source:nam5871:ndlp2nf

NDLP2NF

Table Of Contents

  • [00006] PROC NDLP2NF
  • [00010] PASS 2 MAIN PROC FOR CHECKING NCF STATEMENTS.
  • [00044] PROC SSTATS
  • [00045] PROC NDLOVLD
  • [00046] PROC READ
  • [00047] PROC READW
  • [00048] PROC RECALL
  • [00049] PROC REWIND
  • [00050] PROC NDLTRNK

Source Code

NDLP2NF.txt
  1. *DECK NDLP2NF
  2. USETEXT NDLDATT
  3. USETEXT NDLFETT
  4. USETEXT OVLCTXT
  5. USETEXT NDLTBLT
  6. PROC NDLP2NF;
  7. BEGIN
  8. *IF,DEF,IMS
  9. #
  10. ** NDLP2NF - PASS 2 MAIN PROC FOR CHECKING NCF STATEMENTS.
  11. *
  12. * D.K. ENDO 81/11/10
  13. *
  14. * THIS PROCEDURE INITIALIZES NCF TABLE BUFFERS AND CALLS THE
  15. * APPROPRIATE OVERLAY TO CHECK EACH STATEMENT.
  16. *
  17. * PROC NDLP2NF
  18. *
  19. * ENTRY NONE.
  20. *
  21. * EXIT NONE.
  22. *
  23. * METHOD
  24. *
  25. * ALLOCATE SPACE FOR NCF TABLES.
  26. * INITIALIZE HEADERS FOR NCF TABLES.
  27. * POINT LINE CONFIGURE RECORD FET TO CIO BUFFER.
  28. * REWIND THE PASS 2 ERROR FILE AND STMT TABLE FILE.
  29. * FOR EACH ENTRY IN STMT TABLE,
  30. * SELECT THE CASE THAT APPLIES,
  31. * CASE 1(NFILE,NPU,SUPLINK,COUPLER,LOGLINK,TRUNK):
  32. * CALL NETWORK ELEMENT OVERLAY.
  33. * CASE 2(GROUP,LINE,TERMINAL,DEVICE):
  34. * CALL COMMUNICATION ELEMENT OVERLAY.
  35. * CALL NCF TERMINATION OVERLAY.
  36. *
  37. #
  38. *ENDIF
  39. #
  40. **** PROC NDLP2NF - XREF LIST BEGINS.
  41. #
  42. XREF
  43. BEGIN
  44. PROC SSTATS; # ALLOCATES MORE TABLE SPACE #
  45. PROC NDLOVLD; # LOADS AND EXECUTES OVERLAY #
  46. PROC READ; # FILL CIO BUFFER #
  47. PROC READW; # READS GIVEN NUMBER OF CP WORDS #
  48. PROC RECALL; # RETURNS CONTROL WHEN RECALL BIT CLEARED #
  49. PROC REWIND; # REWINDS GIVEN FILE #
  50. PROC NDLTRNK; # PROCESS TRUNK STATEMENT ENTRY #
  51. END
  52. #
  53. ****
  54. #
  55. CONTROL PRESET;
  56. CONTROL NOLIST; # ER2CNDL, NCFCNDL, PS2CNDL #
  57. *CALL ER2CNDL
  58. *CALL NCFCNDL
  59. *CALL PS2CNDL
  60. CONTROL LIST;
  61. ITEM I; # SCRATCH ITEM #
  62. # #
  63. SWITCH NCFJUMP , # UNK #
  64. NETWORK , # NFILE #
  65. NETWORK , # NPU #
  66. NETWORK , # SUPLINK #
  67. NETWORK , # COUPLER #
  68. NETWORK , # LOGLINK #
  69. COMMUNIC, # GROUP #
  70. COMMUNIC, # LINE #
  71. COMMUNIC, # REPEAT #
  72. COMMUNIC, # TERMINAL #
  73. COMMUNIC, # DEVICE #
  74. NETWORK ; # TRUNK #
  75. CONTROL EJECT;
  76. # #
  77. # NDLP2NF CODE BEGINS HERE #
  78. # #
  79. # ALLOCATE SPACE FOR NCF TABLE CREATION #
  80. SSTATS(P<DEVICE$XREF>,MXDXREF);
  81. SSTATS(P<LIN$CON$INDX>,MXLCR);
  82. SSTATS(P<LIN$CON$REC>,20);
  83. SSTATS(P<LIN$REC$INDX>,MXLINDX);
  84. SSTATS(P<LINE$RECORD>,MXLREC);
  85. SSTATS(P<LINE$XREF>,MXLXREF);
  86. SSTATS(P<LOGLINK$XREF>,(LLTENT[0]*LLENTSZ)+2);
  87. SSTATS(P<NCF$INDEX>,MXNFINDX);
  88. SSTATS(P<NPU$XREF>,((NTWC[0]/NTENTSZ)*NPENTSZ)+2);
  89. SSTATS(P<PLINK$XREF>,MXPLINK);
  90. SSTATS(P<SUPLINK$TABL>,MXSLINK);
  91. DCWORD[0] = 0; # INITIALIZE DEVICE XREF TABLE #
  92. DC$IDENT[0] = "DVXREF";
  93. DCWORD[1] = 0;
  94. DCWC[1] = 1;
  95. LIWORD[0] = 0; # INITIALIZE LINE INDEX #
  96. LCRWC[1] = 1; # INITIALIZE LINE CONFIG INDEX #
  97. LI$IDENT[0] = "LNINDEX";
  98. LIWORD[1] = 0;
  99. LIWC[1] = 1;
  100. LRWORD[0] = 0; # INITIALIZE LINE RECORD #
  101. LR$IDENT[0] = "LNREC";
  102. LCTWORD[0] = 0; # INITIALIZE LINE XREF TABLE #
  103. LCT$IDENT[0] = "LNXREF";
  104. LCTWORD[1] = 0;
  105. LCTWC[1] = 1;
  106. LLWORD[0] = 0; # INITIALIZE LOGLINK XREF TABLE #
  107. LL$IDENT[0] = "LOGLINK";
  108. LLWORD1[0] = 0;
  109. NPWORD[0] = 0; # INITIALIZE NPU XREF TABLE #
  110. NP$IDENT[0] = "NPUXREF";
  111. NPWORD1[0] = 0;
  112. PLWORD[0] = 0; # INITIALIZE PHYLINK XREF TABLE #
  113. PL$IDENT[0] = "PHYLINK";
  114. PLWORD1[0] = 0;
  115. SLTWORD[0] = 0; # INITIALIZE SUPLINK TABLE #
  116. # #
  117. NCFCRI[0] = 1; # INITIALIZE CURRENT RANDOM INDX#
  118. NCFCODE[0] = 3; # INITIALIZE CODE FIELD #
  119. LRFIRST[0] = LOC(LCRWB); # POINT FET TO WORKING BUFFER #
  120. LRIN[0] = LOC(LCRWB);
  121. LROUT[0] = LOC(LCRWB);
  122. LRLIMIT[0] = LOC(LCRWB) + PRULNGTH + 1;
  123. # #
  124. REWIND(ERR2FET); # REWIND PASS 2 ERROR FILE #
  125. RECALL(ERR2FET);
  126. REWIND(STFET); # REWIND STATEMENT TABLE FILE #
  127. RECALL(STFET);
  128. READ(STFET); # FILL CIO BUFFER #
  129. RECALL(STFET);
  130. READW(STFET,STMT$TABLE,1,STMT$STAT); # READ HEADER OF 1ST ENTRY#
  131. FOR I=0 WHILE STMT$STAT EQ TRNS$OK DO
  132. BEGIN # READ IN EACH ENTRY AND PROCESS IT #
  133. GOTO NCFJUMP[STSTID[0]];
  134. NETWORK:
  135. NDLOVLD(OVL$ENT[OVLY"NET"]);
  136. GOTO NEXT;
  137. COMMUNIC:
  138. NDLOVLD(OVL$ENT[OVLY"COM"]);
  139. GOTO NEXT;
  140. NEXT:
  141. END
  142. NDLOVLD(OVL$ENT[OVLY"NTRM"]);
  143. RETURN; # **** RETURN **** #
  144. END # NDLP2NF #
  145. TERM
cdc/nos2.source/nam5871/ndlp2nf.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator