User Tools

Site Tools


cdc:nos2.source:nam5871:htchar

HTCHAR

Table Of Contents

  • [00010] PRGM HTCHAR
  • [00060] PROC BLINK
  • [00061] PROC MGETS
  • [00062] PROC OSCHAPP
  • [00063] PROC XTRACE

Source Code

HTCHAR.txt
  1. *DECK HTCHAR
  2. USETEXT NIPDEF
  3. USETEXT SUPMSG
  4. USETEXT ACNB
  5. USETEXT NCNB
  6. USETEXT AHEADER
  7. USETEXT AT
  8. USETEXT PT
  9. USETEXT PARAMS
  10. PRGM HTCHAR; # SEND TCH/TCHAR TO APPLICATION #
  11. STARTIMS;
  12. #
  13. *1DC HTCHAR
  14. * 1. PROC NAME AUTHOR DATE
  15. * HTCHAR C. BITTNER 82/06/01
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SEND TCH/TCHAR (TERMINAL CHARACTERISTICS CHANGED SM)
  19. * TO APPLICATION.
  20. *
  21. * 3. METHOD USED
  22. * ALLOCATE BUFFER FOR MESSAGE
  23. * SET UP APPLICATION BLOCK HEADER
  24. * SET UP THE TEXT FOR TCH/TCHAR SM
  25. * QUEUE SM ON APPLICATION-S ACB
  26. *
  27. * 4. ENTRY PARAMETERS
  28. * PARAMS1 - ACNB ADDRESS
  29. *
  30. * 5. EXIT PARAMETERS
  31. * NONE
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  34. * NIPDEF SUPMSG ACNB
  35. * NCNB AHEADER AT
  36. * PT PARAMS OSSIZE
  37. *
  38. * 7. ROUTINES AND OVERLAYS CALLED
  39. * BLINK - LINK MESSAGE ON DATA RING
  40. * MGETS - ALLOCATE BUFFER
  41. * OSCHAPP - SCHEDULE APPLICATION
  42. * XTRACE - TRACE PROCEDURE CALL
  43. *
  44. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  45. * THIS IS A SECONDARY OVERLAY CALLED BY HCSTTP.
  46. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  47. *CALL OSSIZE
  48.  #
  49. STOPIMS;
  50.  
  51. #
  52.  PARAMS1 - ACNB ADDRESS
  53. #
  54.  
  55. #
  56.   EXTERNAL VARIABLES
  57. #
  58. XREF
  59. BEGIN
  60. PROC BLINK; # QUEUE MESSAGE ON APPLICATION-S ACB #
  61. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  62. PROC OSCHAPP; # SCHEDULE APPLICATION #
  63. PROC XTRACE; # RECORD PROCEDURE CALL #
  64. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  65. END
  66.  
  67. #
  68.   INTERNAL VARIABLES
  69. #
  70. ITEM BUFADDR; # BUFFER FOR SM #
  71.  
  72. #**********************************************************************#
  73.  
  74. BEGIN
  75.  
  76. CONTROL IFEQ DEBUG,1;
  77. XTRACE("TCHAR");
  78. CONTROL FI;
  79.  
  80. #
  81.   GET BUFFER FOR TCH/TCHAR SM
  82. #
  83.  
  84. MGETS(LTCH + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  85.  
  86. #
  87.   SET UP APPLICATION BLOCK HEADER
  88. #
  89.  
  90. P<AHEADER> = BUFADDR + BLKHSIZE; # BASE ABH #
  91. ABHABT[0] = APPCMD; # BLOCK TYPE #
  92. ABHACT[0] = CT60TRANS; # CHARACTER TYPE-TRANSPARENT #
  93. ABHTLC[0] = LTCH; # TEXT LENGTH #
  94.  
  95. #
  96.   SET UP TEXT FOR TCH/TCHAR
  97. #
  98.  
  99. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE; # FWA OF TEXT #
  100. PFCSFC[0] = TCHTCH; # SET FUNCTION CODE #
  101. P<ACNB> = PARAMS1; # ACNB ADDRESS #
  102. P<NCNB> = ACNBNCNB[0]; # NCNB TWIN POINTER #
  103. ACNBTC[0] = NCNBTC[0]; # TERMINAL CLASS #
  104. TCHACN[0] = ACNBACN[0]; # APPLICATION CONNECTION NUMBER #
  105. TCHTCL[0] = NCNBTC[0]; # TERMINAL CLASS #
  106. TCHPW[0] = NCNBPW[0]; # PAGE WIDTH #
  107. TCHPL[0] = NCNBPL[0]; # PAGE LENGTH #
  108.  
  109. #
  110.   QUEUE TCH/TCHAR ON APPLICATION-S ACB
  111. #
  112.  
  113. BLINK(BUFADDR,ATACBA[ACNBAN[0]]); # QUEUE MSG ON APP-S ACB #
  114. OSCHAPP(ATACBA[ACNBAN[0]]); # SCHEDULE APPLICATION #
  115. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  116. END
  117. TERM
cdc/nos2.source/nam5871/htchar.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator