User Tools

Site Tools


cdc:nos2.source:nam5871:csesds

CSESDS

Table Of Contents

  • [00006] PROC CSESDS
  • [00007] SEND DEBUG SIGNAL.
  • [00011] SEND DEBUG SIGNAL.
  • [00040] PROC CSESLE
  • [00041] PROC MOVEI
  • [00042] PROC SSBSBF
  • [00043] PROC SSTAQE
  • [00044] FUNC XCHD

Source Code

CSESDS.txt
  1. *DECK CSESDS
  2. USETEXT TEXTCS
  3. USETEXT TEXTSS
  4. USETEXT TXCMDCS
  5. USETEXT TXTAPSS
  6. PROC CSESDS;
  7. # TITLE - SEND DEBUG SIGNAL. #
  8.  
  9. BEGIN
  10. #
  11. ** CSESDS - SEND DEBUG SIGNAL.
  12. *
  13. * D.G. DEPEW. 82/10/01.
  14. *
  15. * THIS PROCEDURE RECEIVES ERR/LGL AND UNRECOGNIZED SMS IN NON-DEBUG
  16. * MODE ONLY (IN DEBUG MODE *CSDDNT* WILL ABORT), AND GENERATES
  17. * CORRESPONDING UNSOLICITED REPORTS AND NETWORK LOG FILE ENTRIES TO
  18. * SIGNAL THE OCCURANCE OF THESE ANAMOLIES.
  19. *
  20. * PROC CSESDS
  21. *
  22. * ENTRY WCBUF[0] = WORD COUNT WORD FROM ORIGINAL EVENT QUEUE
  23. * (*EVQ*) ENTRY.
  24. * ABHBUF[0] = APPLICATION BLOCK (EVENT) HEADER FOR THE SM
  25. * (BASED ARRAY *ABH* IN *TXTAPSS* POINTS HERE).
  26. * MSGBUF[0] = BODY OF THE SM (BASED ARRAYS *CSSM* IN
  27. * *TXTSMCS* AND *APSM* IN *TXTAPSS* POINT HERE).
  28. *
  29. * EXIT 1. AN ENTRY HAS BEEN PLACED IN THE OPERATOR RESPONSE
  30. * QUEUE (*ORQ*).
  31. * 2. A HOP/LG SM ENTRY HAS BEEN PLACED THE OUTGOING
  32. * TRAFFIC QUEUE (*OTQ*).
  33. #
  34.  
  35. #
  36. **** PROC CSESDS - XREF LIST.
  37. #
  38. XREF
  39. BEGIN
  40. PROC CSESLE; # SEND NETWORK LOG ENTRY #
  41. PROC MOVEI; # MOVE STORAGE INDIRECT ADDRESS (MACREL) #
  42. PROC SSBSBF; # STORE BITFIELD #
  43. PROC SSTAQE; # ADD QUEUE ENTRY #
  44. FUNC XCHD; # CONVERT INTEGER TO HEXIDECIMAL DISPLAY #
  45. END
  46. #
  47. ****
  48. #
  49.  
  50.  
  51. DEF LEVTMSG$ #4#; # LENGTH OF EVENT MESSAGE TEXT IN WORDS #
  52.  
  53.  
  54. ITEM WP; # WORD POS FOR DISP CODE PFC/SFC IN EVENT #
  55. ITEM BP; # BIT POS FOR DISP CODE PFC/SFC IN EVENT #
  56.  
  57.  
  58. #
  59. * THE FOLLOWING ARRAYS ARE EVENT MESSAGES FOR UNRECOGNIZED AND
  60. * ERR/LGL SUPERVISORY MESSAGES.
  61. #
  62. ARRAY BADSM [00:00] S(LEVTMSG$);
  63. BEGIN
  64. ITEM BS$TEXT C(00,00,30) = ["UNRECOGNIZED SM, PFC/SFC = "];
  65. ITEM BS$ZERO U(03,00,60) = [0];
  66. END
  67.  
  68. ARRAY LOGERR [00:00] S(LEVTMSG$);
  69. BEGIN
  70. ITEM LE$TEXT C(00,00,30) = ["LOGICAL ERROR, PFC/SFC = "];
  71. ITEM LE$ZERO U(03,00,60) = [0];
  72. END
  73.  
  74.  
  75.  
  76.  
  77.  
  78. #
  79. * CHECK WHETHER THIS IS AN ERR/LGL SM AND USE THE APPROPRIATE ERROR
  80. * MESSAGE. STORE THE DISPLAY CODED PFC/SFC IN THE MESSAGE TEXT.
  81. * TIME STAMP THE MESSAGE.
  82. #
  83. IF PFCSFC[0] EQ ERRLGL
  84. THEN # ERR/LGL/U SM #
  85. BEGIN
  86. WP = 2; # SET POS OF DISP CODED PFC/SFC #
  87. BP = 30;
  88. SSBSBF (LOGERR, WP, BP, 24, XCHD(X"10000" + ERPSFC[0]));
  89. MOVEI (LEVTMSG$, LOC(LOGERR), LOC(CMD$TEXT[0]));
  90. END
  91. ELSE # UNRECOGNIZED SM #
  92. BEGIN
  93. WP = 2; # SET POS OF DISP CODED PFC/SFC #
  94. BP = 42;
  95. SSBSBF (BADSM, WP, BP, 24, XCHD(X"10000" + PFCSFC[0]));
  96. MOVEI (LEVTMSG$, LOC(BADSM), LOC(CMD$TEXT[0]));
  97. END
  98. CMD$TXT1[0] = CTM$CLOCK[0];
  99.  
  100.  
  101. #
  102. * NOW BUILD AND ISSUE THE *ORQ* AND THE HOP/LG *OTQ* ENTRIES.
  103. #
  104. WCB$WORD[1] = LEVTMSG$ + 3;
  105. ABHWORD[1] = 0;
  106. ABHADR[1] = AUDGR2$; # HOP AND CONTROL NOP #
  107. P<MSCMD> = LOC (CMD$TXT1[0]);
  108. SSTAQE (P<ORQ>, WCBUF[1], ABHBUF[1], MSCMD[0]);
  109. CSESLE (0, WCBUF[1], MSCMD[0]); # ISSUE HOP/LG #
  110.  
  111.  
  112. END # CSESDS #
  113.  
  114. TERM
cdc/nos2.source/nam5871/csesds.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator