User Tools

Site Tools


cdc:nos2.source:nam5871:hcnonfl

HCNONFL

Table Of Contents

  • [00012] PRGM HCNONFL
  • [00076] PROC XTRACE

Source Code

HCNONFL.txt
  1. *DECK HCNONFL
  2. USETEXT NIPDEF
  3. USETEXT APPSTAT
  4. USETEXT AWLNTRY
  5. USETEXT DRHDR
  6. USETEXT FLIST
  7. USETEXT INPARUT
  8. USETEXT NWLHEAD
  9. USETEXT NWLNTRY
  10. USETEXT PARAMS
  11. USETEXT SCPCOM
  12. PRGM HCNONFL; # CREATE NETON FUNCTION LIST #
  13.  
  14. STARTIMS;
  15. #
  16. *1DC HCNONFL
  17. *
  18. * 1. PROC NAME AUTHOR DATE
  19. * HCNONFL E. GEE 77/09/14
  20. * N. NICHOLAS 80/09/12
  21. *
  22. * 2. FUNCTIONAL DESCRIPTION.
  23. * CREATE NETON FUNCTION LIST
  24. *
  25. * HCNONFL IS CALLED HERE IN TWO CASES.
  26. *
  27. * 1. NVF NETS ON,IN THIS CASE AN ACB
  28. * FOR NVF EXISTS AND NETS ON
  29. * IS ACCEPTED.
  30. *
  31. * 2. A REGULAR APPLICATION TRIES TO NETON
  32. * AND REJECTED. IN THIS CASE NO ACB EXISTS.
  33. *
  34. * 3. METHOD USED.
  35. * CREATE AWL NETON ENTRY OUTSIDE OF ACB.
  36. * CREATE SCP FUNCTION LIST FOR WRITING BACK NETON AWL
  37. * IF NVF NETTING ON, ALSO SET SCP LONG TERM CONNECTION
  38. *
  39. * 4. ENTRY PARAMETERS.
  40. * AWLA UCP AWL ADDRESS
  41. * CBA UCP COMPLETION BIT ADDRESS
  42. * JOBID UCP JOB ID WORD
  43. * NWLADDR ADDR OF BUF TO HOLD NETON AWL ENTRY
  44. * PARAMS1 NONZERO VALUE (AN) IF NVF NETTING ON
  45. * PARAMS4 NETON REJECT RETURN CODE FROM NVF
  46. *
  47. * 5. EXIT PARAMETERS.
  48. * PARAMS7 ADDR OF SCP FUNCTION LIST
  49. *
  50. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  51. * APPSTAT AWLNTRY DRHDR FLIST
  52. * NIPDEF NWLHEAD NWLNTRY OSSIZE
  53. * PARAMS SCPCOM
  54. *
  55. * 7. ROUTINES AND OVERLAYS CALLED.
  56. * XTRACE RECORD PROCEDURE CALLS
  57. *
  58. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  59. *
  60. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY SUBROUTINE
  61. * OVLCALL. WHEN EXECUTION HAS COMPLETED, A JUMP IS MADE TO
  62. * LOCATION RJMAIN TO RETURN TO THE CALLING PROGRAM.
  63. *
  64. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  65. *CALL OSSIZE
  66. *
  67. * THIS OVERLAY IS CALLED BY HPNON.
  68. *
  69.  #
  70. STOPIMS;
  71. #
  72.   EXTERNAL REFERENCES
  73. #
  74. XREF
  75. BEGIN
  76. PROC XTRACE;
  77. LABEL RJMAIN;
  78. END
  79. #
  80.   INTERNAL REFERENCES
  81.  
  82.   N O N E
  83. #
  84.  
  85. #**************** E X E C U T A B L E C O D E *********************#
  86.  
  87. BEGIN
  88.  
  89. CONTROL IFEQ DEBUG,1;
  90. XTRACE("HCNON") ;
  91. CONTROL FI;
  92.  
  93. #
  94.   CREATE NETON AWL ENTRY
  95. #
  96. P<DRHDRWD> = NWLADDR; # ADDR OF BUF TO HOLD NETON AWL ENTRY #
  97. CMWORD[0] = 0;
  98. BLKID[0] = MOUTIDVALUE; # BLK ID FOR MSG TO BE WRITTEN TO APP #
  99. BLKBS[0] = AWLNSIZE; # SIZE OF AWL NETON ENTRY #
  100. #
  101.   CREATE AWL NETON ENTRY
  102. #
  103. P<AWLENTRY> = NWLADDR + BLKHSIZE;
  104. AWLEAIPH[0] = 0;
  105. AWLRC[0] = PARAMS4; # SYSTEM CONTROL POINT RETURN CODE (RC) #
  106. AWLOP[0] = WLOPNON; # NETON OPCODE #
  107. AWLCB[0] = 1; # SET OPCODE COMPLETION BIT #
  108. AWLNIN[0] = INPNIN[1]; # CURRENT INVOCATION NUMBER #
  109. AWLEWD1[0] = PARAMS1; # APPLICATION NUMBER IN THE ( AT ) TABLE #
  110. #
  111.   CREATE SCP FUNCTION LIST FOR NETON RESPONSE
  112. #
  113. P<FLHEAD> = NWLADDR + AWLNSIZE; # ADDR OF BUF TO HOLD FUNC LIST #
  114. FLWD0[0] = 0;
  115. FLSCPA[0] = NWLADDR + AWLNSIZE + FLSIZE; # ADDR OF SF.LIST ENTRYS#
  116. FLJOBID[0] = JOBID; # JOB ID WORD #
  117. FLFP[0] = 2;
  118. P<FLE> = P<FLHEAD> + FLSIZE; # ADDR OF FIRST SF.LIST ENTRY #
  119. FLEWD0[0] = 0;
  120. FLEFP[0] = AWLNSIZE - BLKHSIZE; # NO OF WDS TO WRITE TO APP #
  121. FLEUCPA[0] = AWLA; # UCP ADDR TO WRITE NETON RESPONSE #
  122. FLESCPA = NWLADDR + BLKHSIZE; # ADDR OF AWL NETON ENTRY #
  123. FLEFC[0] = SFWRITE; # SF.WRITE SCP FUNCTION #
  124. #
  125.   CHECK IF APPLICATION NUMBER (PARAMS1) = NON ZER0
  126. #
  127. IF PARAMS1 NQ 0
  128. THEN # THIS IS NVF NETING ON #
  129. BEGIN # MUST SET LONG TERM CONNECTION WITH SUP #
  130. P<FLE> = P<FLE> + FLESIZE;
  131. FLEWD0[0] = 0;
  132. FLEFC[0] = SFSLTC; # SF.SLTC SCP FUNCTION #
  133. FLID[0] = FLIDVALUE; # FUNCTION LIST BLOCK ID VALUE #
  134. FLBS[0] = FLSIZE + 2*FLESIZE; # SIZE OF FUNCTION LIST #
  135. FLAN[0] = PARAMS1; # APPLICATION NUMBER (AN) IN (AT ENTRY) #
  136. END
  137. ELSE # REJECTED NETON OF NON-SUP APP #
  138. BEGIN
  139. FLBS[0] = SCPSIZE + 2*FLESIZE; # SIZE OF (NO ACB) FUCN LIST #
  140. FLID[0] = NAFLIDVALUE; # (NO ACB) FUNCTION LIST ID VALUE #
  141. P<FLE> = P<FLE> + FLESIZE;
  142. FLEWD0[0] = 0;
  143. FLEUCPA[0] = CBA; # UCP COMPLETION BIT ADDR #
  144. FLEFC[0] = SFENDT;
  145. END
  146. PARAMS7 = NWLADDR + AWLNSIZE; # ADDR OF FUNC LIST #
  147. GOTO RJMAIN;
  148. END
  149. TERM
cdc/nos2.source/nam5871/hcnonfl.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator