User Tools

Site Tools


cdc:nos2.source:nam5871:csesct

CSESCT

Table Of Contents

  • [00006] PROC CSESCT
  • [00007] SEND COMMAND TEXT
  • [00010] SEND COMMAND TEXT.
  • [00029] PROC MOVEI
  • [00030] PROC SSTAQE

Source Code

CSESCT.txt
  1. *DECK CSESCT
  2. USETEXT TEXTCS
  3. USETEXT TEXTSS
  4. USETEXT TXTSMCS
  5. USETEXT TXTAPSS
  6. PROC CSESCT;
  7. # TITLE - SEND COMMAND TEXT #
  8. BEGIN
  9. #
  10. ** CSESCT - SEND COMMAND TEXT.
  11. *
  12. * D.K. ENDO 82/03/15
  13. *
  14. * THIS PROCEDURE FORMATS THE INCOMING COMMAND TEXT INTO A HOP/LG SM
  15. * AND SENDS IT OUT TO THE OUTGOING TRAFFIC QUEUE.
  16. *
  17. * PROC CSESCT
  18. *
  19. * ENTRY 1. COMMAND TEXT ENTRY FROM EVENT QUEUE
  20. *
  21. * EXIT 2. HOP/LG ENTRY IN OUTGOING TRAFFIC QUEUE
  22. *
  23. #
  24. #
  25. **** PROC CSESCT - XREF LIST BEGINS.
  26. #
  27. XREF
  28. BEGIN
  29. PROC MOVEI; # MOVES A BLOCK OF CM WORDS #
  30. PROC SSTAQE; # ADD QUEUE ENTRY #
  31. END
  32. #
  33. ****
  34. #
  35. ITEM I; # LOOP INDUCTION VARIABLE #
  36. CONTROL EJECT;
  37. # #
  38. # CSESCT CODE BEGINS HERE #
  39. # #
  40. #
  41. * FORMAT THE WORD COUNT BUFFER AND APPLICATION BLOCK HEADER FOR A
  42. * HOP/LG SM. MOVE THE COMMAND TEXT TO THE HOP/LG SM. SENT THE SM
  43. * TO THE OUTGOING TRAFFIC QUEUE.
  44. #
  45.  
  46.  
  47. WCB$WORD[1] = 0;
  48. WCB$SMID[1] = SMID"HOPLG";
  49. WCB$WC[1] = WCB$WC[0] + 2; # ALLOW FOR ZERO-BYTE TERMINATOR #
  50.  
  51.  
  52. ABHWORD[1] = 0;
  53. ABHABT[1] = APPCMD;
  54. ABHACT[1] = CT60TRANS;
  55. ABHTLC[1] = WCB$WC[1] - 2;
  56.  
  57.  
  58. SPMWD[1] = 0;
  59. PFCSFC[1] = HOPLG;
  60. MOVEI(WCB$WC[0]-1,LOC(SPMSG0[0]),LOC(SPMSG1[1]));
  61. SPMSG2[1] = CTM$CLOCK[0];
  62.  
  63.  
  64. SSTAQE(P<OTQ>,WCBUF[1],ABH[1],CSSM[1]);
  65. OTQ$WORD[OTQL-1] = 0; # INSURE ZERO-BYTE TERMINATOR WORD #
  66.  
  67.  
  68. RETURN; # **** RETURN **** #
  69. END # CSESCT #
  70. TERM
cdc/nos2.source/nam5871/csesct.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator