User Tools

Site Tools


cdc:nos2.source:nam5871:cssatd

CSSATD

Table Of Contents

  • [00008] PROC CSSATD
  • [00009] CSSATD - ACTION TEST DROP COMMAND.
  • [00014] ACTION TEST DROP COMMAND.
  • [00040] PROC SSBCBW
  • [00041] PROC SSBTBW
  • [00042] PROC SSTAQE

Source Code

CSSATD.txt
  1. *DECK CSSATD
  2. USETEXT TEXTCS;
  3. USETEXT TEXTSS;
  4. USETEXT TXCMDCS;
  5. USETEXT TXTAPSS;
  6. USETEXT TXTSUSS;
  7. USETEXT TXTSMCS;
  8. PROC CSSATD;
  9. # TITLE CSSATD - ACTION TEST DROP COMMAND. #
  10.  
  11. BEGIN # CSSATD #
  12.  
  13. #
  14. ** CSSATD - ACTION TEST DROP COMMAND.
  15. *
  16. * C. BRION 82/06/09.
  17. *
  18. * THIS PROCEDURE PROCESSES THE DIAGNOSTIC TEST DROP COMMAND
  19. * REQUEST.
  20. *
  21. * PROC CSSATD
  22. *
  23. * ENTRY:
  24. *
  25. * HDRCMD = COMMAND HEADER WORD.
  26. * PARMS = COMMAND PARAMETER ARRAY.
  27. *
  28. * EXIT:
  29. *
  30. * AN OVL/TM SM MAY BE SENT TO THE NPU.
  31. * A NULL TTEXT ENTRY MAY BE SENT TO THE OPERATOR.
  32. #
  33.  
  34. #
  35. **** PROC CSSATD XREF LIST
  36. #
  37.  
  38. XREF
  39. BEGIN
  40. PROC SSBCBW; # SS-CLEAR BIT IN WORD #
  41. PROC SSBTBW; # SS-TEST BIT IN WORD #
  42. PROC SSTAQE; # SS-ACCEPT QUEUE ENTRY #
  43. END
  44. #
  45. ****
  46. #
  47.  
  48. DEF NOLDTM$ # 2 #; # CHAR LEN OF SM #
  49.  
  50. ITEM OORD U; # OCB ORDINAL #
  51. ITEM NORD U; # NPUCB ORDINAL #
  52. ITEM I U; # LOOP INDUCTION VAR #
  53. ITEM RUNNING B; # ONLINE DIAG RUNNING FLAG #
  54.  
  55.  
  56. #
  57. * DMTXT - DROP MESSAGE TEXT.
  58. #
  59.  
  60. ARRAY DMTXT [00:00] S(4);
  61. BEGIN
  62. ITEM DMT$NP C(00,00,07); # NPU NAME #
  63. ITEM DMT$TX1 C(00,42,06) = [": OLD "];
  64. ITEM DMT$TX2 C(01,18,20) = ["NO PRIOR REQUEST CMD"];
  65. ITEM DMT$ZERO U(03,18,42) = [0];
  66. END
  67.  
  68.  
  69. #
  70. * FLG$WORD - THIS BASED ARRAY POINTS TO THE ONLINE DIAGNOSTIC
  71. * OPERATOR BIT MAP IN THE NPUCB.
  72. #
  73. BASED ARRAY FLG$WORD [00:00] S(NPCBSZ$);
  74. BEGIN
  75. ITEM FW$WORD I(00,00,60);
  76. END
  77.  
  78.  
  79.  
  80.  
  81. #
  82. * SET OCB ORDINAL AND THE NPUCB ORDINAL.
  83. * ALSO, SET UP TEXT MESSAGE NPU NAME AND THE OUTGOING SM ENTRY
  84. * HEADER WORDS.
  85. #
  86.  
  87. OORD = HDR$OPORD[0];
  88.  
  89. FOR I = 0 STEP 1 UNTIL (HDR$TXWCNT[0] + HDR$SPCNT[0] +
  90. HDR$APCNT[0])
  91. DO
  92.  
  93. BEGIN
  94. IF PAR$PCODE[I] EQ "NOR"
  95. THEN
  96. NORD = PAR$ORD[I];
  97. END
  98.  
  99. DMT$NP[0] = NPU$NAME[NORD];
  100. WCB$WORD[0] = 0;
  101. ABHWORD[0] = 0;
  102. WCB$WORD[1] = 0;
  103. ABHWORD[1] = 0;
  104. ABHADR[0] = OORD;
  105.  
  106. #
  107. * IF ORIGIN OPERATOR NOT CURRENT OVERLAY OPERATOR OF NPU, THEN
  108. * INFORM WITH ERROR MESSAGE.
  109. #
  110.  
  111. SSBTBW(NPU$OVFLGS[NORD],OORD,RUNNING);
  112.  
  113. IF NOT RUNNING
  114. THEN
  115. BEGIN
  116. WCB$SMID[1] = SMID"TTEXT";
  117. WCB$IAF[1] = TRUE;
  118. WCB$WC[1] = 6;
  119. ABHADR[1] = OORD;
  120. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],DMTXT[0]);
  121. END
  122. ELSE
  123.  
  124. #
  125. * THE CURRENT OPERATOR MAY BE DROPPING THE OVERLAY REQUEST PRIOR
  126. * TO COMPLETION OF THE REQUEST. SET THE CURRENT OVERLAY ORDINAL
  127. * OF THE NPUCB OUT OF RANGE. OTHERWISE, CLEAR THE NPUCB AND SET
  128. * OVERLAY STATE TO IDLE.
  129. #
  130.  
  131.  
  132. BEGIN
  133. P<FLG$WORD> = LOC(NPU$OVFLGS[NORD]);
  134. SSBCBW(FLG$WORD,OORD);
  135.  
  136. #
  137. * SET UP OUTGOING OVERLAY TERMINATE SM.
  138. #
  139.  
  140. ABHDN[1] = NPU$NID[NORD];
  141. ABHSN[1] = NPU$HID[NORD];
  142. ABHABT[1] = APPSUP;
  143. ABHBT[1] = APPSUP;
  144. ABHACT[1] = ACTCSNP$;
  145. ABHTLC[1] = NOLDTM$;
  146. PFCSFC[1] = OLDTM;
  147. OLDDO[1] = OORD;
  148. WCB$WC[1] = ((ABHTLC[1] + 9)/10) + 2;
  149. WCB$SMID[1] = SMID"OLDTM";
  150. SSTAQE(P<OTQ>,WCBUF[1],ABH[1],CSSM[1]);
  151.  
  152. #
  153. * SET UP AND SEND NULL TTEXT ENTRY TO OPERATOR TO CAUSE READY..
  154. #
  155.  
  156. WCB$WC[1] = 2;
  157. WCB$SMID[1] = SMID"TTEXT";
  158. WCB$IAF[1] = TRUE;
  159. ABHADR[1] = OORD;
  160. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],CSSM[1]);
  161. END
  162.  
  163. END #CSSATD#
  164. TERM
cdc/nos2.source/nam5871/cssatd.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator