User Tools

Site Tools


cdc:nos2.source:nam5871:hcriter

HCRITER

Table Of Contents

  • [00011] PROC HCRITER
  • [00057] PROC BLINK
  • [00058] PROC OSCHAPP
  • [00059] PROC XTRACE

Source Code

HCRITER.txt
  1. *DECK HCRITER
  2. USETEXT NIPDEF
  3. USETEXT ACNB
  4. USETEXT AHEADER
  5. USETEXT NHEADER
  6. USETEXT AT
  7. USETEXT PARAMS
  8. USETEXT PT
  9. USETEXT SUPMSG
  10.  
  11. PROC HCRITER; # SEND CR/ITE/R TO NVF #
  12. STARTIMS;
  13. #
  14. *1DC HCRITER
  15. *
  16. * 1. PROC NAME AUTHOR DATE
  17. * HCRITER C. BITTNER 81/07/24
  18. *
  19. * 2. FUNCTIONAL DESCRIPTION
  20. * SEND TERMINAL CONNECTION REQUEST (CR/ITE/R) TO NVF
  21. *
  22. * 3. METHOD USED
  23. * SET UP APPLICATION BLOCK HEADER
  24. * SET UP CR/ITE/R MESSAGE USING ICN/TE/R
  25. * QUEUE MESSAGE ON NVF-S ACB
  26. *
  27. * 4. ENTRY PARAMETERS
  28. * PARAMS1 - ADDRESS OF SM BUFFER (ICN/TE/R)
  29. * PARAMS2 - APPLICATION CONNECTION NUMBER
  30. *
  31. * 5. EXIT PARAMETERS
  32. * NONE
  33. *
  34. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  35. * NIPDEF
  36. * AHEADER AT
  37. * PARAMS PT
  38. * SUPMSG
  39. *
  40. * 7. ROUTINES CALLED
  41. * BLINK - LINK DATA BLOCK TO DATA RING
  42. * OSCHAPP - SCHEDULE APPLICATION
  43. * XTRACE - TRACE PROCEDURE CALL
  44. *
  45. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  46. * THIS PROCEDURE IS CALLED BY PRIMARY OVERLAY STRTCON
  47. * VIA HCSTTP
  48. *
  49.  #
  50. STOPIMS;
  51.  
  52. #
  53.   EXTERNAL VARIABLES
  54. #
  55. XREF
  56. BEGIN
  57. PROC BLINK; # LINK DATA BLOCK TO DATA RING #
  58. PROC OSCHAPP; # SCHEDULE APPLICATION #
  59. PROC XTRACE; # TRACE PROCEDURE CALL #
  60. END
  61.  
  62. #
  63.   INTERNAL VARIABLES
  64. #
  65. ITEM BUFADDR; # BUFFER ADDRESS TO HOLD CR/ITE/R #
  66.  
  67.  
  68.  
  69. #**********************************************************************#
  70.  
  71. BEGIN
  72. CONTROL IFEQ DEBUG,1;
  73. XTRACE("HCRIT") ;
  74. CONTROL FI;
  75.  
  76. BUFADDR = PARAMS1; # SM BUFFER (ICN/TE/R) #
  77.  
  78. # SET UP APPLICATION BLOCK HEADER #
  79. P<AHEADER> = BUFADDR + BLKHSIZE; # BASE APPLICATION HEADER #
  80. ABHABT[0] = APPCMD; # COMMAND BLOCK #
  81. ABHACT[0] = CT60TRANS; # CHARACTER TYPE-TRANSPARENT #
  82. P<NHEADER> = P<AHEADER>; # CALCULATE TLC RECIEVED FROM CCP #
  83. ABHTLC[0] = (2 * CC[0] + 14)/15;
  84.  
  85. ABHABN[0] = 0; # CLEAR APP BLOCK NUMBER FIELD #
  86. ABHADR[0] = 0; # CLEAR APPLICATION CONNECTION NO. FIELD #
  87. ABHDBC[0] = 0; # CLEAR DATA BLOCK CLARIFIER FIELD #
  88.  
  89. # SET UP CR/ITE/R #
  90. P<SMNIP> = BUFADDR + BLKHSIZE + ABHSIZE; # FWA OF ICN/TE/R #
  91. P<SUPMSG> = P<SMNIP>;
  92. PFCSFC[0] = CRITE; # SM FUNCTION CODE #
  93. P<SMNVF> = P<SUPMSG>;
  94. ICNCN[0] = 0; # ZERO NETWORK CN FIELD #
  95. CRUBZ[0] = ICNUBZ[0] ;
  96. CRHW[0] = ICNHW[0]; # HARDWIRED TERMINAL FLAG #
  97. CRVTP[0] = ICNVTP1[0] * 16 + ICNVTP2[0]; # VTP VERSION #
  98. CRITTC[0] = ICNTC[0]; # TERMINAL CLASS #
  99. CRITPL[0] = ICNPL[0]; # PAGE WIDTH #
  100. CRINET[0] = ICNNET[0]; # UPDATE CDCNET FIELD #
  101. ICNDBL[0] = 0; # NETWORK BLOCK LIMIT #
  102. ICNTC[0] = 0; # ZERO TERMINAL CLASS FIELD #
  103. ICNPL[0] = 0; # ZERO PAGE LENGTH FIELD #
  104. CRACN[0] = PARAMS2; # APPLICATION CONNECTION NUMBER #
  105. ICNTPRI[0] = FALSE; # CLEAR PRIORITY FIELD #
  106.  
  107. # QUEUE MESSAGE ON NVF-S ACB #
  108. BLINK(BUFADDR,ATACBA[NVFAN]); # QUEUE MSG ON NVF-S ACB #
  109. OSCHAPP(ATACBA[NVFAN]); # SCHEDULE APPLICATION #
  110. RETURN ; # RETURN TO CALLING PROGRAM #
  111. END
  112. TERM
cdc/nos2.source/nam5871/hcriter.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator