User Tools

Site Tools


cdc:nos2.source:nam5871:hcrswhn

HCRSWHN

Table Of Contents

  • [00010] PROC HCRSWHN
  • [00061] PROC BLINK
  • [00062] PROC MGETS
  • [00063] PROC OSCHAPP
  • [00064] PROC XTRACE

Source Code

HCRSWHN.txt
  1. *DECK HCRSWHN
  2. USETEXT AHEADER
  3. USETEXT AT
  4. USETEXT DRHDR
  5. USETEXT NIPDEF
  6. USETEXT PARAMS
  7. USETEXT PT
  8. USETEXT SUPMSG
  9. USETEXT ACNB
  10. PROC HCRSWHN;
  11. STARTIMS;
  12. #
  13. *1DC HCRSWHN
  14. * 1. PROC NAME AUTHOR DATE
  15. * HCRSWHN C. BITTNER 81/12/01
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * FORMAT AND SEND CR/SWH/N TO NVF
  19. *
  20. * 3. METHOD
  21. * ALLOCATE BUFFER FOR CR/SWH/N
  22. * SET UP APPLICATION BLOCK HEADER
  23. * SET UP CR/SWH/N TEXT BY USING FIRST WORD OF CR/SWH/R TEXT
  24. * QUEUE MESSAGE ON NVF-S ACB
  25. *
  26. * 4. ENTRY PARAMETERS
  27. * PARAMS1 - ADDRESS OF SM BUFFER (CR/SWH/R)
  28. * PARAMS2 - ACNB ADDRESS
  29. *
  30. * 5. EXIT PARAMETERS
  31. * NONE
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  34. * AHEADER
  35. * AT
  36. * DRHDR
  37. * NIPDEF
  38. * PARAMS
  39. * PT
  40. * SUPMSG
  41. * ACNB
  42. *
  43. * 7. ROUTINES AND OVERLAYS CALLED
  44. * BLINK - QUEUE MESSAGE ON APPL-S ACB
  45. * MGETS - ALLOCATE EMPTY BUFFER
  46. * OSCHAPP - SCHEDULE APPLICATION
  47. * XTRACE - RECORD PROCEDURE CALL
  48. *
  49. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  50. * THIS PROCEDURE IS CALLED BY SECONDARY OVERLAY STRTSW
  51. * VIA HCSTTP.
  52. *
  53.  #
  54. STOPIMS;
  55.  
  56. #
  57.   EXTERNAL VARIABLES
  58. #
  59. XREF
  60. BEGIN
  61. PROC BLINK; # QUEUE MSG ON APPL-S ACB #
  62. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  63. PROC OSCHAPP; # SCHEDULE APPLICATION #
  64. PROC XTRACE; # RECORD PROCEDURE CALL #
  65. END
  66.  
  67. #
  68.   INTERNAL VARIABLES
  69. #
  70. ITEM BUF; # SM BUFFER FOR CR/SWH/N #
  71. ITEM BUFADDR; # SM BUFFER ADDRESS #
  72.  
  73. #**********************************************************************#
  74.  
  75. BEGIN
  76.  
  77. CONTROL IFEQ DEBUG,1;
  78. XTRACE("HCRSW") ;
  79. CONTROL FI;
  80.  
  81. BUFADDR = PARAMS1; # SM BUFFER FOR CR/SWH/R #
  82. P<ACNB> = PARAMS2 ;
  83. ACNBLIM[0] = TRUE ; # ENTER CONNECTION TO LIMBO STATE #
  84.  
  85. # GET BUFFER TO HOLD CR/SWH/N #
  86.  
  87. MGETS(LCRSWHN + BLKHSIZE + ABHSIZE,BUF,TRUE);
  88.  
  89. # SET UP APPLICATION BLOCK HEADER #
  90.  
  91. P<AHEADER> = BUF + BLKHSIZE; # ADDR OF ABH #
  92. ABHABT[0] = APPCMD; # COMMAND BLOCK #
  93. ABHACT[0] = CT60TRANS; # CHARACTER TYPE-TRANSPARENT #
  94. ABHTLC[0] = LCRSWHN; # LENGTH OF CR/SWH/N #
  95. ABHABN[0] = 0; # CLEAR ABN FIELD #
  96. ABHADR[0] = 0; # CLEAR ACN FIELD #
  97. ABHDBC[0] = 0; # CLEAR DATA BLOCK CLARIFIER FIELD #
  98.  
  99. # SET UP CR/SWH/N #
  100.  
  101. P<SMNVF> = BUF + BLKHSIZE + ABHSIZE;
  102.  
  103. # COPY FIRST WORD OF CR/SWH/R #
  104.  
  105. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE; # FWA OF CR/SWH/R TEXT#
  106. P<DRHDRWD> = P<SMNVF>;
  107. CMWORD[0] = SPMSG0[0]; # WORD ONE OF CR/SWH/R #
  108. CRABL[0] = 0;
  109. CRSWSDT[0] = 0;
  110. CRSWTC[0] = 0;
  111. CRVCB[0] = ACNBVCBO[0] ; # VCB ORDINAL FOR NVF #
  112. P<SUPMSG> = P<SMNVF>;
  113. RB[0] = TRUE; # SET NORMAL RESPONSE BIT #
  114.  
  115. # QUEUE MESSAGE ON NVF-S ACB #
  116.  
  117. BLINK(BUF,ATACBA[NVFAN]); # QUEUE MSG ON NVF-S ACB #
  118. OSCHAPP(ATACBA[NVFAN]); # SCHEDULE APPLICATION #
  119. RETURN ; # RETURN TO CALLING PROGRAM #
  120. END
  121. TERM
cdc/nos2.source/nam5871/hcrswhn.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator