User Tools

Site Tools


cdc:nos2.source:nam5871:nnpiin

NNPIIN

Table Of Contents

  • [00009] PRGM NNPIIN
  • [00062] PROC ABORT
  • [00063] PROC MGETS
  • [00064] PROC NFOB
  • [00065] PROC OMSG
  • [00066] PROC XDUMPFL
  • [00067] PROC XTRACE

Source Code

NNPIIN.txt
  1. *DECK NNPIIN
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT LLCB
  5. USETEXT NHEADER
  6. USETEXT PARAMS
  7. USETEXT SUPMSG
  8.  
  9. PRGM NNPIIN; # SEND NPI/IN TO CCP #
  10. STARTIMS;
  11. #
  12. *1DC NNPIIN
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * NNPIIN C. BITTNER 81/07/24
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SEND NPI/IN TO CCP
  19. *
  20. * 3. METHOD USED
  21. * ALLOCATE BUFFER FOR MESSAGE
  22. * SET UP APPLICATION BLOCK HEADER
  23. * SET UP TEXT FOR NPI/IN MESSAGE
  24. * LINK MESSAGE TO PIP OUTBOUND CHAIN
  25. *
  26. * 4. ENTRY PARAMETERS
  27. * PARAMS1 - LLCB ADDRESS
  28. * PARAMS2 - BAD TRIGGER FROM NETWORK
  29. * PARAMS3 - CURRENT STATE OF CONNECTION
  30. * PARAMS4 - NETWORK CONNECTION NUMBER
  31. * PARAMS7 - STATE TABLE PROCESSOR
  32. *
  33. * 5. EXIT PARAMETERS
  34. * NONE
  35. *
  36. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  37. * NIPDEF AHEADER
  38. * LLCB OSSIZE
  39. * PARAMS SUPMSG
  40. *
  41. * 7. ROUTINES CALLED
  42. * MGETS - ALLOCATE EMPTY BUFFER
  43. * NFOB - LINK BUFFER TO PIP OUTBOUND CHAIN
  44. * XTRACE - TRACE PROCEDURE CALL
  45. * ABORT - ABORT NIP
  46. *
  47. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  48. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY
  49. * SUBROUTINE OVLCALL.
  50. * THIS PROGRAM IS CALLED BY NBSTTP AND NCSTTP.
  51. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  52. *CALL OSSIZE
  53. *
  54.  #
  55. STOPIMS;
  56.  
  57. #
  58.   EXTERNAL VARIABLES
  59. #
  60. XREF
  61. BEGIN
  62. PROC ABORT; # ABORT NIP #
  63. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  64. PROC NFOB; # LINK BUFFER TO PIP OUTBOUND CHAIN #
  65. PROC OMSG; # DAYFILE MESSAGE #
  66. PROC XDUMPFL; # DUMP NIP FL #
  67. PROC XTRACE; # TRACE PROCEDURE CALL #
  68. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  69. END
  70.  
  71. #
  72.   INTERNAL VARIABLES
  73. #
  74. ITEM BUFADDR; # SM BUFFER #
  75.  
  76. ARRAY NMSG [0:0] S(5);
  77. BEGIN
  78. ITEM NMSG$TEXT C(00,00,48) =
  79. ["PROTOCOL VIOLATION, NPU DUMP REQUEST SENT."];
  80. ITEM NMSG$END U(04,48,12) = [0];
  81. END
  82.  
  83. #**********************************************************************#
  84.  
  85. BEGIN
  86.  
  87. CONTROL IFEQ DEBUG,1;
  88. XTRACE("NPIIN") ;
  89. CONTROL FI;
  90.  
  91. P<LLCB> = PARAMS1;
  92.  
  93. CONTROL IFEQ DEBUG,1;
  94. IF LLCBHN[0] EQ 0
  95. OR LLCBTN[0] EQ 0
  96. THEN # NIP INTERNAL ERROR #
  97. ABORT(0,0);
  98. CONTROL FI;
  99.  
  100. # GET BUFFER TO HOLD NPI/IN MESSAGE #
  101. MGETS(LNPIIN + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  102.  
  103. # SET UP APPLICATION BLOCK HEADER #
  104. P<AHEADER> = BUFADDR + BLKHSIZE; # ADDRESS TO HOLD ABH #
  105. ABHABT[0] = APPCMD; # BLOCK TYPE #
  106. ABHACT[0] = CT8ASCII; # CHARACTER TYPE #
  107. ABHTLC[0] = LNPIINC; # TEXT LENGTH #
  108.  
  109. # SET UP NPI/IN MESSAGE #
  110. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE;
  111. P<SMNIP> = P<SUPMSG>;
  112. PFCSFC[0] = NPIDD; # SET HALT NPU FUNCTION CODE #
  113. NPIDPP[0] = X"59"; # DP = "Y" (ASCII) DUMP ON #
  114.  
  115. NPITRIG[0] = PARAMS2; # BAD TRIGGER FROM NETWORK #
  116. NPICST[0] = PARAMS3; # CURRENT STATE OF CONNECTION #
  117. NPICN[0] = PARAMS4; # NETWORK CONNECTION NUMBER #
  118. NPISTP[0] = PARAMS7; # STATE TABLE PROCESSOR #
  119. # LINK MESSAGE TO PIP OUTBOUND CHAIN #
  120. NFOB(BUFADDR,P<LLCB>);
  121. OMSG(NMSG,0); # DAYFILE *PROTOCOL VIOLATION* #
  122. XDUMPFL; # DUMP NIP FL TO DUMP #
  123. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  124. END
  125. TERM
  126. *ENDIF
cdc/nos2.source/nam5871/nnpiin.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator