User Tools

Site Tools


cdc:nos2.source:nam5871:txcmdcs

TXCMDCS

Table Of Contents

  • [00002] PROC TXCMDCS
  • [00003] TXCMDCS - SYMPL TEXT FOR CS COMMAND ELEMENT.
  • [00009] SYMPL TEXT FOR CS COMMAND ELEMENT.
  • [00033] CMDMEM - COMMON COMMAND MEMORY DEFINITIONS.
  • [00043] HDRCMD - HEADER WORD FOR VALID AND ROUTED COMMANDS.
  • [00067] PARMS - PARAMETER LIST ARRAY.
  • [00094] CMDLINE - TEXT ARRAY FOR CMD TEXT EVENT MESSAGES TO THE LOG
  • [00108] MSCMD - BASED ARRAY FOR MOVING TEXT INTO CMDLINE ARRAY.

Source Code

TXCMDCS.txt
  1. *DECK TXCMDCS
  2. PROC TXCMDCS;
  3. # TITLE TXCMDCS - SYMPL TEXT FOR CS COMMAND ELEMENT. #
  4.  
  5. BEGIN # TXCMDCS #
  6. CONTROL PRESET;
  7.  
  8. #
  9. ** TXCMDCS - SYMPL TEXT FOR CS COMMAND ELEMENT.
  10. *
  11. * C. BRION 82/03/01.
  12. * C. BRION 82/05/07.
  13. *
  14. * THIS PROC GENERATES A SYMPL TEXT FOR COMPILING THE CS ROUTINES
  15. * THAT COMPRISE THE COMMAND ELEMENT. IT CONTAINS THE DEFINITIONS
  16. * OF SYMBOLS AND PARAMETERS, COMMON BLOCKS ECT. USED THROUGHOUT
  17. * THE COMMAND PROCESSING PROCS.
  18. #
  19.  
  20. CONTROL STEXT;
  21.  
  22. #
  23. ** GLOBAL DEFINITIONS
  24. #
  25.  
  26. DEF MCMDL$ # 30 #; # MAX NUMBER CMD PARAMETER #
  27. # WORDS FOR THE PARMS ARRAY #
  28. DEF MCMDSTL$ # 60 #; # MAX NUM CHARS IN CMD STRING#
  29. DEF MCMDWL$ # 6 #; # MAX NUM STRING CMD WORDS #
  30.  
  31.  
  32. #
  33. ** CMDMEM - COMMON COMMAND MEMORY DEFINITIONS.
  34. *
  35. * ARRAY AND BASED ARRAY DEFINITIONS FOR THE VARIOUS PARTS THAT
  36. * COMPRISE THE COMMAND STRING, VALID COMMAND AND ROUTED COMMAND.
  37. #
  38.  
  39. COMMON CMDMEM;
  40. BEGIN
  41.  
  42. #
  43. ** HDRCMD - HEADER WORD FOR VALID AND ROUTED COMMANDS.
  44. *
  45. * THE COMMAND HEADER WORD CONTAINS THE PARAMETERS THAT DESCRIBE
  46. * THE WORD LENGTH OF THE SYNTAX PARAMETERS LIST, THE WORD LENGTH
  47. * OF THE ADDRESS PARAMETERS LIST, THE CHARACTER LENGTH OF THE
  48. * ACTUAL COMMAND STRING, THE OPERATOR ID OF THE COMMAND AND THE
  49. * COMMAND VERB.
  50. * THERE EXISTS A TWO PORTION PART OF THE HEADER WORD SO AS TO
  51. * EASE THE GENERATION OF THE OUTGOING COMMAND FROM THE INCOMING.
  52. #
  53.  
  54. ARRAY HDRCMD [00:01] S(1);
  55. BEGIN
  56. ITEM HDR$WORD U(00,00,60); # FULL WORD REFERENCE #
  57. ITEM HDR$SPCNT U(00,00,06); #SYNTAX PARAMETER COUNT#
  58. ITEM HDR$OPORD U(00,06,12); #OPERATOR ORDINAL#
  59. ITEM HDR$APCNT U(00,18,06); #ADDRESS PARAMETER COUNT#
  60. ITEM HDR$TXWCNT U(00,24,06); #CMD TEXT WORD COUNT#
  61. ITEM HDR$VERB C(00,30,03); #COMMAND VERB #
  62. ITEM HDR$BOF B(00,41,01); # BREAK OCCURRED FLAG #
  63. ITEM HDR$TXCCNT U(00,48,12); #CMD TEXT CHAR LENGTH#
  64. END
  65.  
  66. #
  67. ** PARMS - PARAMETER LIST ARRAY.
  68. *
  69. * THIS ARRAY HOLDS THE COMMAND PARAMETER LIST.
  70. #
  71.  
  72. ARRAY PARMS [00:MCMDL$] S(1);
  73. BEGIN
  74. ITEM PAR$WORD U(00,00,60);
  75. ITEM PAR$ELNAME C(00,00,07); # ELEMENT NAME #
  76. ITEM PAR$VCNAME C(00,00,05); # SVC NAME #
  77. ITEM PAR$NCIR U(00,00,08); # CIRCUITS TO ENABLE/DISABLE #
  78. ITEM PAR$SVCFLG B(00,00,01); # SVC BOOLEAN FLAG #
  79. ITEM PAR$SVCNAM C(00,00,05); # SVC 5-CHAR NAME #
  80. ITEM PAR$SVCORD C(00,30,02); # SVC 2 HEX CHAR ORDINAL #
  81. ITEM PAR$ORD U(00,00,12); # ORDINAL VALUE #
  82. ITEM PAR$ELADDR U(00,00,08); # ELEMENT ADDRESS #
  83. ITEM PAR$LLTYPE B(00,00,01); # LLINK TYPE FOR LLA #
  84. ITEM PAR$LLNID1 U(00,08,08); # LINK NODE 1 FOR LLA #
  85. ITEM PAR$LLNID2 U(00,16,08); # LINK NODE 2 FOR LLA #
  86. ITEM PAR$PCODE C(00,42,03); # 3 CHAR PARAMETER CODE #
  87. ITEM PAR$MSGCL U(00,00,42); # CHAR LEN OF MSG PARAMETER #
  88. ITEM PAR$PCHR1 C(00,42,01); # 1ST CHAR OF PCODE #
  89. ITEM PAR$PCHR2 C(00,48,01); # 2ND CHARACTER OF PCODE #
  90. ITEM PAR$PCHR3 C(00,54,01); # 3RD CHARACTER OF PCODE #
  91. END
  92.  
  93. #
  94. ** CMDLINE - TEXT ARRAY FOR CMD TEXT EVENT MESSAGES TO THE LOG
  95. * FILE.
  96. #
  97.  
  98. ARRAY CMDLINE [00:00] S(8);
  99. BEGIN
  100. ITEM CMD$CSID C(00,00,03) = ["CS/"]; # CS PROGRAM ID #
  101. ITEM CMD$TNAM C(00,18,07); # TERMINAL NAME #
  102. ITEM CMD$TXT1 C(01,00,60); # TIME STAMP WORD #
  103. ITEM CMD$TEXT C(02,00,60); # 60 CHAR MAX TEXT #
  104. END
  105.  
  106.  
  107. #
  108. ** MSCMD - BASED ARRAY FOR MOVING TEXT INTO CMDLINE ARRAY.
  109. #
  110.  
  111. BASED ARRAY MSCMD [00:00] S(1);
  112. BEGIN
  113. ITEM MSC$WORD U(00,00,60);
  114. END
  115.  
  116.  
  117. END # CMDMEM #
  118.  
  119. END # TXCMDCS #
  120.  
  121. TERM
cdc/nos2.source/nam5871/txcmdcs.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator