User Tools

Site Tools


cdc:nos2.source:nam5871:txcmdnv

TXCMDNV

Table Of Contents

  • [00002] PROC TXCMDNV
  • [00003] TXCMDNV - SYMPL TEXT FOR NVF COMMAND ELEMENT.
  • [00008] SYMPL TEXT FOR NVF COMMAND ELEMENT.
  • [00092] CMDMEM - COMMON COMMAND MEMORY DEFINITIONS.
  • [00111] AST$ENT - AST ENTRY
  • [00126] HDRCMD - HEADER WORD FOR VALID AND ROUTED COMMANDS.
  • [00150] PARMS - PARAMETER LIST ARRAY.

Source Code

TXCMDNV.txt
  1. *DECK TXCMDNV
  2. PROC TXCMDNV;
  3. # TITLE TXCMDNV - SYMPL TEXT FOR NVF COMMAND ELEMENT. #
  4.  
  5. BEGIN # TXCMDNV #
  6.  
  7. #
  8. ** TXCMDNV - SYMPL TEXT FOR NVF COMMAND ELEMENT.
  9. *
  10. * A. LIM. 82/03/18.
  11. *
  12. * THIS PROC GENERATES A SYMPL TEXT FOR COMPILING THE NVF ROUTINES
  13. * THAT COMPRISE THE COMMAND ELEMENT. IT CONTAINS THE DEFINITIONS
  14. * OF SYMBOLS AND PARAMETERS, COMMON BLOCKS ECT. USED THROUGHOUT
  15. * THE COMMAND PROCESSING PROCS.
  16. #
  17.  
  18. CONTROL STEXT;
  19.  
  20. #
  21. ** GLOBAL DEFINITIONS
  22. #
  23.  
  24. # *** PARAMETER LIST *** #
  25. DEF MCMDL$ # 30 #; # MAX NUMBER CMD PARAMETER #
  26. # WORDS FOR THE PARMS ARRAY #
  27.  
  28.  
  29.  
  30. # *** COMMAND SYNTAX TABLE- COMMAND VERB *** #
  31. DEF DIA$ # "DIA" #; # DISABLE APPL #
  32. DEF DIH$ # "DIH" #; # DISABLE HOST #
  33. DEF ENA$ # "ENA" #; # ENABLE APPLICATION #
  34. DEF HIL$ # "HIL" #; # HISTORY #
  35. DEF IDA$ # "IDA" #; # IDLE APPLICATION #
  36. DEF IDH$ # "IDH" #; # IDLE HOST #
  37. DEF SSA$ # "SSA" #; # STATUS OF TERMINALS IN APPL #
  38. DEF SSU$ # "SSU" #; # STATUS OF USER #
  39. DEF STA$ # "STA" #; # STATUS OF APPLICATION #
  40. DEF STS$ # "STS" #; # STATUS OF APPLICATIONS #
  41. DEF STT$ # "STT" #; # STATUS OF A TERMINAL #
  42. DEF STU$ # "STU" #; # STATUS OF A USER #
  43. DEF SUA$ # "SUA" #; # STATUS OF USERS IN APPL #
  44.  
  45.  
  46.  
  47. # *** COMMAND SYNTAX TABLE- PROCESS CODE *** #
  48. DEF APPL$ # "APL" #; # APPLICATION COMMAND #
  49. DEF HISTORY$ # "HIS" #; # HISTORY COMMAND #
  50. DEF HOST$ # "HST" #; # HOST COMMAND #
  51. DEF STATUS$ # "STA" #; # STATUS COMMAND #
  52.  
  53.  
  54.  
  55. # *** COMMAND SYNTAX TABLE - PARAMETER CODE *** #
  56. DEF AC$ # "AC0" #; # ACTIVE #
  57. DEF APP$ # "APP" #; # APPLICATION #
  58.  
  59.  
  60.  
  61. # *** HISTORY BUFFER *** #
  62. DEF MXHSBCNT$ # 50 #; # MAX NO OF LINES IN HISTORY BUF#
  63.  
  64.  
  65.  
  66. # *** MESSAGE LENGTH IN CHARACTERS. (MULTIPLE OF 10) *** #
  67. DEF LMSG20$ # 20 #;
  68. DEF LMSG30$ # 30 #;
  69. DEF LMSG40$ # 40 #;
  70.  
  71.  
  72.  
  73. # *** UNSOLICITED MESSAGE IDENTIFERS FOR LOGGING *** #
  74. DEF USMSGID$ # "NV/ " #;
  75. DEF HOCMDID$ # "NV/HOSTNVF" #;
  76.  
  77.  
  78. # *** WORD POSITION AND MASK FOR SERIAL SEARCHER REQUEST *** #
  79.  
  80. DEF WPOSA$ # 03 #; # APPL-ORD POSITION IN VCB ENYRY#
  81. DEF WPOST$ # 00 #; # TRM-NAME POSITION IN VCB ENTRY#
  82. DEF WPOSU$ # 04 #; # USR-NAME POSITION IN VCB ENTRY#
  83.  
  84. DEF MASKA$ # O"00000000000000000777" #; # MASK FOR ACN #
  85. DEF MASKT$ # O"77777777777777000000" #; # MASK FOR T-NAME #
  86. DEF MASKU$ # O"77777777777777000000" #; # MASK FOR U-NAME #
  87.  
  88.  
  89.  
  90.  
  91. #
  92. ** CMDMEM - COMMON COMMAND MEMORY DEFINITIONS.
  93. *
  94. * COMMON BLOCK FOR VARIOUS PARTS OF NVF COMMAND ELEMENT.
  95. #
  96.  
  97. COMMON CMDMEM;
  98. BEGIN
  99.  
  100. # *** ITEMS AND FLAGS *** #
  101. ITEM CMDINPGF B; # COMMAND-IN-PROGRESS FLAG #
  102. ITEM CRNT$CMD C(3); # CURRENT COMMAND I.D. IN PROG #
  103. ITEM DATA$ B; # SET IF MATCH IN VCB FILES #
  104. ITEM HOPENDWF B; # HOP/END-WARNING FLAG #
  105. ITEM HSBCNT I; # HISTORY BUF LINE COUNT #
  106. ITEM LEFTPL I; # PAGE LENGTH OF LEFT K-DISPLAY #
  107. ITEM RIGHTPL I; # PAGE LENGTH OF RIGHT K-DSPLAY #
  108.  
  109.  
  110. #
  111. ** AST$ENT - AST ENTRY
  112. *
  113. * THIS ARRAY DEFINES A BUFFER USED TO CONTAIN A AST ENTRY FOR NVF
  114. * THIS IS USED FORMAT STATUS INFORMATION FOR NVF. THIS IS NEEDED
  115. * BECAUSE THERE IS NO ENTRY IN THE AST FOR NVF.
  116. #
  117.  
  118. ARRAY AST$ENT [00:02] S(1);
  119. BEGIN
  120. ITEM AE$WORD I(00,00,60);
  121. END
  122.  
  123.  
  124.  
  125. #
  126. ** HDRCMD - HEADER WORD FOR VALID AND ROUTED COMMANDS.
  127. *
  128. * THE COMMAND HEADER WORD CONTAINS THE PARAMETERS THAT DESCRIBE
  129. * THE WORD LENGTH OF THE SYNTAX PARAMETERS LIST, THE WORD LENGTH
  130. * OF THE ADDRESS PARAMETERS LIST, THE CHARACTER LENGTH OF THE
  131. * ACTUAL COMMAND STRING, THE OPERATOR ID OF THE COMMAND AND THE
  132. * COMMAND VERB.
  133. * THERE EXISTS A TWO PORTION PART OF THE HEADER WORD SO AS TO
  134. * EASE THE GENERATION OF THE OUTGOING COMMAND FROM THE INCOMING.
  135. #
  136.  
  137. ARRAY HDRCMD [00:01] S(1);
  138. BEGIN
  139. ITEM HDR$WORD U(00,00,60); # FULL WORD REFERENCE #
  140. ITEM HDR$SPCNT U(00,00,06); #SYNTAX PARAMETER COUNT#
  141. ITEM HDR$OPORD U(00,06,12); #OPERATOR ORDINAL#
  142. ITEM HDR$APCNT U(00,18,06); #ADDRESS PARAMETER COUNT#
  143. ITEM HDR$TXWCNT U(00,24,06); #CMD TEXT WORD COUNT#
  144. ITEM HDR$VERB C(00,30,03); #COMMAND VERB #
  145. ITEM HDR$BOF B(00,41,01); # BREAK OCCURRED FLAG #
  146. ITEM HDR$TXCCNT U(00,48,12); #CMD TEXT CHAR LENGTH#
  147. END
  148.  
  149. #
  150. ** PARMS - PARAMETER LIST ARRAY.
  151. *
  152. * THIS ARRAY HOLDS THE COMMAND PARAMETER LIST.
  153. #
  154.  
  155. ARRAY PARMS [00:MCMDL$] S(1);
  156. BEGIN
  157. ITEM PAR$WORDU U(00,00,60);
  158. ITEM PAR$WORDC C(00,00,10);
  159. ITEM PAR$ELNAME C(00,00,07); # ELEMENT NAME #
  160. ITEM PAR$ORD U(00,00,12); # ORDINAL VALUE #
  161. ITEM PAR$ELADDR U(00,00,08); # ELEMENT ADDRESS #
  162. ITEM PAR$LLTYPE B(00,00,01); # LLINK TYPE FOR LLA #
  163. ITEM PAR$LLNID1 U(00,08,08); # LINK NODE 1 FOR LLA #
  164. ITEM PAR$LLNID2 U(00,16,08); # LINK NODE 2 FOR LLA #
  165. ITEM PAR$PCODE C(00,42,03); # 3 CHAR PARAMETER CODE #
  166. END
  167.  
  168. END # CMDMEM #
  169.  
  170. END # TXCMDNV #
  171.  
  172. TERM
cdc/nos2.source/nam5871/txcmdnv.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator