User Tools

Site Tools


cdc:nos2.source:nam5871:stpnerr

STPNERR

Table Of Contents

  • [00004] PRGM STPNERR
  • [00062] PROC OMSG
  • [00063] PROC XTRACE
  • [00064] FUNC XCDD C(10)

Source Code

STPNERR.txt
  1. *DECK STPNERR
  2. USETEXT NIPDEF
  3. USETEXT PARAMS
  4. PRGM STPNERR;
  5. STARTIMS;
  6. #
  7. *1DC STPNERR
  8. *
  9. * 1. PROC NAME AUTHOR DATE
  10. * STPNERR C. BITTNER 81/07/30
  11. *
  12. * 2. FUNCTIONAL DESCRIPTION
  13. * ISSUE ERROR MESSAGE FOR AN ILLEGAL STATE TABLE
  14. * TRIGGER ON THE NETWORK SIDE.
  15. *
  16. * 3. METHOD USED
  17. * FORMAT THE ERROR MESSAGE
  18. * CONVERT THE INFORMATION TO THE PROPER DISPLAY FORMAT
  19. * CALL ROUTINE OMSG TO DAYFILE THE ERROR MESSAGE
  20. *
  21. * 4. ENTRY PARAMETERS
  22. * PARAMS1 - HOST NODE
  23. * PARAMS2 - TERMINAL NODE
  24. * PARAMS3 - NETWORK CONNECTION NUMBER
  25. * PARAMS4 - TRIGGER NUMBER
  26. * PARAMS6 - NAME OF STATE TABLE PROCESSOR
  27. * PARAMS7 - CURRENT STATE
  28. *
  29. * 5. EXIT PARAMETERS
  30. * NONE
  31. *
  32. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  33. * NIPDEF
  34. * PARAMS
  35. *
  36. * 7. ROUTINES CALLED
  37. * OMSG - ISSUE NAM DAYFILE MESSAGE
  38. * XTRACE - RECORD PROCEDURE CALL
  39. * XCDD - CONVERT DECIMAL TO DISPLAY
  40. *
  41. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  42. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED
  43. * BY SUBROUTINE OVLCALL.
  44. * THIS PROGRAM IS CALLED BY NBSTTP AND NCSTTP.
  45. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  46. *CALL OSSIZE
  47. *
  48.  #
  49. STOPIMS;
  50.  
  51.  
  52. ITEM STPROC C(6); # NAME OF STATE TABLE PROCESSOR #
  53. ITEM HN; # HOST NODE #
  54. ITEM TN; # TERMINAL NODE #
  55. ITEM CN; # CONNECTION NUMBER #
  56. ITEM TRIG; # TRIGGER #
  57. ITEM STATE; # STATE #
  58.  
  59. # EXTERNAL VARIABLES #
  60. XREF
  61. BEGIN
  62. PROC OMSG; # ISSUE NAM DAYFILE MESSAGE #
  63. PROC XTRACE; # RECORD PROCEDURE CALL #
  64. FUNC XCDD C(10); # CONVERT DECIMAL TO DISPLAY #
  65. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  66. END
  67.  
  68. # INTERNAL VARIABLES #
  69. ITEM SCRATCH; # SCRATCH VARIABLE #
  70.  
  71. ARRAY STPMSGN P(5);
  72. BEGIN
  73. ITEM ERRMSGN C(00,00,40) =
  74. ["NIP/ ERR HN= ,TN= ,CN= , , "];
  75. ITEM STPN C(00,24,06);
  76. ITEM HNN C(01,48,02);
  77. ITEM TNN C(02,24,03);
  78. ITEM NCN C(03,06,03);
  79. ITEM TRIGGER C(03,30,02);
  80. ITEM STATEN C(03,48,02);
  81. ITEM ZERO U(04,00,60) = [0];
  82. END
  83.  
  84.  
  85. BEGIN
  86.  
  87. CONTROL IFEQ DEBUG,1;
  88. XTRACE("STPNE") ;
  89. CONTROL FI;
  90.  
  91. HN = PARAMS1; # HOST NODE #
  92. TN = PARAMS2; # TERMINAL NODE #
  93. CN = PARAMS3; # NETWORK CONNECTION NUMBER #
  94. TRIG = PARAMS4; # TRIGGER NUMBER #
  95. STPROC = PARAMS6; # NAME OF STATE TABLE PROCESSOR #
  96. STATE = PARAMS7; # CURRENT STATE #
  97. STPN = STPROC; # NAME OF STATE TABLE PROCESSOR #
  98. SCRATCH = XCDD(HN); # CONVERT HOST NODE NUM TO DISPLAY #
  99. HNN = C<8,2>SCRATCH;
  100. SCRATCH = XCDD(TN); # CONVERT TERMINAL NODE NUM TO DISPLAY #
  101. TNN = C<7,3>SCRATCH;
  102. SCRATCH = XCDD(CN); # CONVERT CON NUM TO DISPLAY #
  103. NCN = C<7,3>SCRATCH;
  104. SCRATCH = XCDD(TRIG); # CONVERT TRIGGER NUM TO DISPLAY #
  105. TRIGGER = C<8,2>SCRATCH;
  106. SCRATCH = XCDD(STATE); # CONVERT STATE NUM TO DISPLAY #
  107. STATEN = C<8,2>SCRATCH;
  108. OMSG(STPMSGN,0); # DAYFILE MESSAGE #
  109. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  110. END
  111. TERM
cdc/nos2.source/nam5871/stpnerr.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator