User Tools

Site Tools


cdc:nos2.source:nam5871:hpnonsr

HPNONSR

Table Of Contents

  • [00012] PRGM HPNONSR
  • [00066] PROC OMSG
  • [00067] PROC RDUMP
  • [00068] PROC XTRACE

Source Code

HPNONSR.txt
  1. *DECK HPNONSR
  2. USETEXT NIPDEF
  3. USETEXT APPSTAT
  4. USETEXT AWLNTRY
  5. USETEXT DRHDR
  6. USETEXT DUMPFLG
  7. USETEXT FLIST
  8. USETEXT MSGIDX
  9. USETEXT NWLHEAD
  10. USETEXT PARAMS
  11. USETEXT SCPCOM
  12. PRGM HPNONSR; # PROCESS NONZERO SF.STAT RETURN CODE #
  13.  
  14.  
  15. STARTIMS;
  16. #
  17. *1DC HPNONSR
  18. *
  19. * 1. PROC NAME AUTHOR DATE
  20. * HPNONSR E. GEE 77/07/27
  21. *
  22. * 2. FUNCTIONAL DESCRIPTION.
  23. * PROCESS NONZERO SF.STAT RETURN CODE
  24. *
  25. * 3. METHOD USED.
  26. * IF BAD RETURN CODE, DUMP NIP-S FIELD LENGTH
  27. * IF APP IS SWAPPED OUT, REJECT NETON WITH RC=1. CREATE AWL
  28. * NETON ENTRY AND SCP FUNCTION TO WRITE AWL BACK AND CLEAR
  29. * SHORT TERM CONNECTION.
  30. *
  31. * 4. ENTRY PARAMETERS.
  32. * NWLADDR ADDR OF NWL (SF.STAT SCP) BUFFER
  33. *
  34. * 5. EXIT PARAMETERS.
  35. * PARAMS4 ADDR OF SCP FUNCTION LIST IF RETURN CODE
  36. * WAS APP-SWAPPED-OUT
  37. *
  38. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  39. * APPSTAT AWLNTRY DRHDR
  40. * FLIST NIPDEF NWLHEAD
  41. * PARAMS SCPCOM
  42. *
  43. * 7. ROUTINES AND OVERLAYS CALLED.
  44. * OMSG ISSUE DAYFILE MESSAGE
  45. * RDUMP DUMP NIP-S FIELD LENGTH
  46. * XTRACE RECORD PROCEDURE CALLS
  47. *
  48. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  49. *
  50. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY SUBROUTINE
  51. * OVLCALL. WHEN EXECUTION IS COMPLETED, A JUMP IS MADE TO
  52. * LOCATION RJMAIN TO RETURN TO THE CALLING PROGRAM.
  53. *
  54. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  55. *CALL OSSIZE
  56. *
  57. * THIS OVERLAY IS CALLED BY HPNON.
  58. *
  59.  #
  60. STOPIMS;
  61. #
  62.   EXTERNAL VARIABLES
  63. #
  64. XREF
  65. BEGIN
  66. PROC OMSG; # DAYFILE MESSAGE #
  67. PROC RDUMP;
  68. PROC XTRACE;
  69. LABEL RJMAIN;
  70. END
  71. #
  72.   INTERNAL VARIABLES
  73. #
  74. ITEM SCPADDR;
  75.  
  76. #**********************************************************************#
  77.  
  78. BEGIN
  79.  
  80. CONTROL IFEQ DEBUG,1;
  81. XTRACE("HPNSR") ;
  82. CONTROL FI;
  83. #
  84.   PROCESS SCP FUNCTION RETURN CODE
  85. #
  86. P<SCPCALL> = NWLADDR; # ADDR OF SCP FUNCTION LIST #
  87. IF SCPRC[0] NQ RCUCPGONE
  88. THEN # APP IS STILL IN SYSTEM #
  89. BEGIN
  90. IF SCPRC[0] NQ RCSWAPPEDOUT
  91. THEN # OP SYS GAVE US BAD RETURN CODE #
  92. BEGIN
  93. RDUMP; # DUMP NIP-S FIELD LENGTH #
  94. D25M2[0] = "HPNONSR";
  95. OMSG(DFMSG25,0); # "NIP DUMP TAKEN" #
  96. END
  97. ELSE # APP IS SWAPPED OUT #
  98. BEGIN
  99. #
  100.   DO NOT BOTHER TO CONTINUE PROCESSING NETON OF APP. INSTEAD
  101.   REJECT NETON WITH RC = 1 AND LET APP TRY TO NETON AGAIN.
  102. #
  103. # CREATE AWL TO REJECT NETON #
  104. P<DRHDRWD> = NWLADDR; # ADDR OF BUF TO HOLD AWL #
  105. BLKID[0] = MOUTIDVALUE; # (NONMOVABLE) WRITE BUF BLK ID #
  106. BLKBS[0] = AWLNSIZE; # SIZE OF (NETON) AWL #
  107. P<AWLENTRY> = NWLADDR + BLKHSIZE; # ADDR OF AWL NETON ENTRY #
  108. AWLEAIPH[0] = 0;
  109. AWLRC[0] = TRYAGAIN; # RETURN CODE IF NAM NOT AVAILABLE #
  110. AWLOP[0] = WLOPNON; # AIP OPCODE FOR NETON #
  111. AWLCB[0] = 1;
  112. AWLEWD1[0] = 0;
  113.  
  114. # CREATE SCP FUNCTION TO WRITE AWL AND CLEAR SHORT TERM CONN #
  115. SCPADDR = NWLADDR + AWLNSIZE; # BUF TO HOLD SCP FL#
  116. P<SCPCALL> = SCPADDR;
  117. SCPWD0[0] = 0;
  118. SCPID[0] = NAFLIDVALUE; # (NO ACB) SCP FUNC LIST BLK ID VALUE#
  119. SCPBS[0] = SCPSIZE + 2*FLESIZE; # SIZE OF FUNCTION LIST #
  120. SCPFW[0] = 0;
  121. SCPFP[0] = 2; # NO OF ENTRIES IN FUNCTION LIST #
  122. SCPSCPA[0] = SCPADDR + SCPSIZE; # ADDR OF FUNC LIST ENTRIES #
  123. SCPFC[0] = SFLIST; # SCP SF.LIST FUNCTION CODE #
  124. SCPJOBID[0] = JOBID; # JOB ID WORD #
  125. P<FLE> = SCPADDR + SCPSIZE;
  126. FLEWD0[0] = 0;
  127. FLEFP[0] = AWLNSIZE - BLKHSIZE; # NO OF WDS TO WRITE TO UCP #
  128. FLEUCPA[0] = AWLA; # UCP APP WORKLIST ADDRESS #
  129. FLESCPA[0] = NWLADDR + BLKHSIZE; # ADDR OF AWL IN NIP #
  130. FLEFC[0] = SFWRITE; # SCP SF.WRITE FUNCTION CODE #
  131. P<FLE> = P<FLE> + FLESIZE;
  132. FLEWD0[0] = 0;
  133. FLEUCPA[0] = CBA; # UCP COMPLETION BIT ADDRESS #
  134. FLEFC[0] = SFENDT; # SCP SF.ENDT FUNCTION CODE #
  135. PARAMS4 = SCPADDR; # ADDR OF SCP FUNCTION LIST #
  136. END
  137. END
  138. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  139. END
  140. TERM
cdc/nos2.source/nam5871/hpnonsr.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator