User Tools

Site Tools


cdc:nos2.source:nam5871:knamcom

KNAMCOM

Table Of Contents

  • [00010] PRGM KNAMCOM
  • [00053] PROC NNETREL
  • [00054] PROC XDUMPFL
  • [00055] PROC XTERMST
  • [00056] PROC XTRACE

Source Code

KNAMCOM.txt
  1. *DECK KNAMCOM
  2. USETEXT NIPDEF
  3. USETEXT PARAMS
  4. USETEXT KDIS
  5. USETEXT DBGBUF
  6. USETEXT OVERLAY
  7. USETEXT MSGIDX
  8. USETEXT PIT
  9. USETEXT PT
  10. PRGM KNAMCOM; # EXECUTE K-DISPLAY NAM COMMANDS #
  11. STARTIMS;
  12. #
  13. *1DC KNAMCOM
  14. *
  15. * 1. PROC NAME AUTHOR DATE
  16. * KNAMCOM C. BITTNER 83/04/01
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION
  19. * THIS PROGRAM PROCESSES THE NAM K-DISPLAY COMMANDS.
  20. *
  21. * 3. METHOD USED
  22. * INDEX INTO THE STATUS SWITCH TO PROCESS THE
  23. * VARIOUS COMMANDS.
  24. *
  25. * 4. ENTRY PARAMETERS
  26. * PARAMS3 - INDEX INTO THE STATUS SWITCH
  27. *
  28. * 5. EXIT PARAMETERS
  29. * NONE
  30. *
  31. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  32. * NIPDEF PARAMS KDIS DBGBUF
  33. * OVERLAY MSGIDX
  34. *
  35. * 7. ROUTINES CALLED
  36. * NNETREL - RELEASE DEBUG LOG FILE
  37. * RDUMP - DUMP NIP-S FIELD LENGTH
  38. * XCOD - COVERT TO OCTAL DISPLAY
  39. * OMSG - ISSUE DAYFILE MESSAGE
  40. * XTERMST - PROCESS NIP STATISTICS
  41. * XTRACE - TRACE PROCEDURE CALL
  42. *
  43. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  44. * NONE
  45. *
  46.  #
  47. STOPIMS;
  48. #
  49.   EXTERNAL REFERENCES
  50. #
  51. XREF
  52. BEGIN
  53. PROC NNETREL; # RELEASE DEBUG LOG FILE #
  54. PROC XDUMPFL; # DUMP NIP FL #
  55. PROC XTERMST; # PROCESS NIP STATISTICS #
  56. PROC XTRACE; # TRACE PROCEDURE CALL #
  57. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  58. END
  59.  
  60.  
  61. #
  62.   INTERNAL VARIABLES
  63. #
  64. SWITCH KNLAB:NCT # STATUS SWITCH FOR K-DISPLAY COMMANDS #
  65. KNDB:CMD$DB,
  66. KNDE:CMD$DE,
  67. KNDU:CMD$DU,
  68. KNLE:CMD$LE,
  69. KNRS:CMD$RS,
  70. KNLB:CMD$LB,
  71. KNLR:CMD$LR;
  72.  
  73. ITEM SCRATCH; # SCRATCH VARIABLE #
  74.  
  75. BEGIN
  76.  
  77. CONTROL IFEQ DEBUG,1;
  78. XTRACE("KNCOM");
  79. CONTROL FI;
  80.  
  81.  
  82.  
  83. GOTO KNLAB[PARAMS3];
  84.  
  85.  
  86. KNDU:
  87.  
  88. # TAKE INTERNAL DUMP OF NIP #
  89.  
  90. XDUMPFL; # DUMP NIP FL #
  91. GOTO KEXIT;
  92.  
  93. KNDB:
  94.  
  95. # TURN ON IN-LINE DEBUG CODE #
  96.  
  97. CONTROL IFEQ DEBUG,1;
  98. KNAMDB[0] = TRUE; # SET FLAG TO TURN ON DEBUG #
  99. CONTROL FI;
  100.  
  101. FOR SCRATCH = 1 STEP 1 UNTIL MAXPIP
  102. DO # SET FLAG IN ALL PIT ENTRIES #
  103. BEGIN
  104. PITDHLT[SCRATCH] = TRUE;
  105. END
  106. GOTO KEXIT;
  107.  
  108. KNDE:
  109.  
  110. # TURN OFF IN-LINE DEBUG CODE #
  111.  
  112. CONTROL IFEQ DEBUG,1;
  113. KNAMDB[0] = FALSE;
  114. CONTROL FI;
  115. FOR SCRATCH = 1 STEP 1 UNTIL MAXPIP
  116. DO # CLEAR FLAG IN ALL PIT ENTRIES #
  117. BEGIN
  118. PITDHLT[SCRATCH] = FALSE;
  119. END
  120. GOTO KEXIT;
  121.  
  122. KNLE:
  123.  
  124. # END LOGGING OF NETWORK TRAFFIC IN DEBUG LOG FILE #
  125.  
  126. CONTROL IFEQ DEBUG,1;
  127. CONTROL IFEQ ZZDN,1;
  128. KNAMLB[0] = FALSE; # CLEAR LOG NETW TRAFFIC FLAG #
  129. CONTROL FI;
  130. CONTROL FI;
  131. GOTO KEXIT;
  132.  
  133. KNRS:
  134.  
  135. # FLUSH AND RESET STATISTICS COUNTER
  136.  
  137.   SEND STATISTICS TO THE DAYFILE #
  138. CONTROL IFEQ STAT,1;
  139. KNAMRS[0] = TRUE; # SET FLUSH STATISTICS FLAG #
  140. XTERMST; # FLUSH STATISTICS #
  141. CONTROL FI;
  142. GOTO KEXIT;
  143.  
  144. KNLB:
  145.  
  146. # LOG NETWORK TRAFFIC IN DEBUG LOG FILE #
  147.  
  148. CONTROL IFEQ DEBUG,1;
  149. CONTROL IFEQ ZZDN,1;
  150. KNAMLB[0] = TRUE; # SET FLAG TO LOG NETW TRAFFIC #
  151. CONTROL FI;
  152. CONTROL FI;
  153. GOTO KEXIT;
  154.  
  155. KNLR:
  156.  
  157. # RELEASE DEBUG LOG FILE #
  158.  
  159. CONTROL IFEQ ZZDN,1;
  160. IF MC NQ 0
  161. THEN
  162. NNETREL(ZNRF2,0);
  163. CONTROL FI;
  164. GOTO KEXIT;
  165.  
  166. KNND:
  167. # SET PIT HALT FLAG #
  168. # TO BE IMPLEMENTED FOR V 2.3 #
  169. GOTO KEXIT;
  170.  
  171. KEXIT:
  172. GOTO RJMAIN;
  173.  
  174. END
  175. TERM
cdc/nos2.source/nam5871/knamcom.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator