User Tools

Site Tools


ibm:vm370-lib:macro:grtblok.macro_src

GRTBLOK Source

References

Source Listing

GRTBLOK.MACRO.txt
  1. MACRO 00001000
  2. &LABEL GRTBLOK &TYPE,&SCRSIZE=1920 HRC101DK 00002490
  3. LCLC &IA1,&IA2,&OA1,&OA2,&RA1,&RA2,&SA1,&SA2,&EWR 00003000
  4. LCLC &LC2,&MODEL HRC101DK 00004290
  5. &EWR SETC 'EWR' HRC101DK 00004580
  6. &IA1 SETC 'X''5B''' 00005000
  7. &IA2 SETC 'X''5F''' 00006000
  8. &OA1 SETC 'X''D6''' 00006100
  9. &OA2 SETC 'X''5F''' 00006200
  10. &RA1 SETC 'X''5B''' 00007000
  11. &RA2 SETC 'X''5F''' 00008000
  12. &SA1 SETC 'X''5D''' 00009000
  13. &SA2 SETC 'X''6B''' 00010000
  14. &LC2 SETC 'X''7F''' HRC101DK 00010300
  15. &MODEL SETC '2' HRC101DK 00010600
  16. AIF ('&TYPE' EQ 'BLD').GRT01 00011000
  17. GRTBLOK DSECT 00012000
  18. AIF ('&TYPE' NE 'RGF').GRT02 00013000
  19. PUSH PRINT 00014000
  20. AIF ('&SYSPARM' NE 'SUP').GRT02 HRC101DK 00014500
  21. PRINT OFF,NOGEN 00015000
  22. AGO .GRT02 00016000
  23. .GRT01 ANOP 00017000
  24. &LABEL DS 0D 00018000
  25. AIF ('&SCRSIZE' EQ '1920').GRT02 00019000
  26. &MODEL SETC '2A' HRC101DK 00020290
  27. &EWR SETC 'EWR' HRC101DK 00020580
  28. &IA1 SETC 'X''D6''' 00021000
  29. &OA1 SETC 'X''D5''' 00021100
  30. &OA2 SETC 'X''4F''' 00021200
  31. &RA1 SETC 'X''D6''' 00022000
  32. &SA1 SETC 'X''D8''' 00023000
  33. &LC2 SETC 'X''6F''' HRC101DK 00024030
  34. AIF ('&SCRSIZE' EQ '1600').GRT02 HRC101DK 00024060
  35. &MODEL SETC '3' HRC101DK 00024090
  36. &EWR SETC 'EWA' HRC101DK 00024120
  37. &IA1 SETC 'X''E5''' HRC101DK 00024150
  38. &RA1 SETC 'X''5D''' HRC101DK 00024180
  39. &RA2 SETC 'X''7F''' HRC101DK 00024210
  40. &SA1 SETC 'X''E7''' HRC101DK 00024240
  41. AIF ('&SCRSIZE' EQ '2560').GRT02 HRC101DK 00024270
  42. &MODEL SETC '4' HRC101DK 00024300
  43. &EWR SETC 'EWA' HRC101DK 00024330
  44. &IA1 SETC 'X''F3''' HRC101DK 00024360
  45. &IA2 SETC 'X''4F''' HRC101DK 00024390
  46. &SA1 SETC 'X''F5''' HRC101DK 00024420
  47. &SA2 SETC 'X''5B''' HRC101DK 00024450
  48. AIF ('&SCRSIZE' EQ '3440').GRT02 HRC101DK 00024480
  49. &MODEL SETC '5' HRC101DK 00024510
  50. &EWR SETC 'EWA' HRC101DK 00024540
  51. &IA1 SETC 'X''F3''' HRC101DK 00024570
  52. &IA2 SETC 'X''E3''' HRC101DK 00024600
  53. &SA1 SETC 'X''F7''' HRC101DK 00024630
  54. &SA2 SETC 'X''D7''' HRC101DK 00024660
  55. AIF ('&SCRSIZE' EQ '3564').GRT02 HRC101DK 00024690
  56. &MODEL SETC '' HRC101DK 00024720
  57. MNOTE 8,'INVALID PARAMETER, SCRSIZE=&SCRSIZE' 00025000
  58. MEXIT 00026000
  59. .GRT02 ANOP 00027000
  60. SPACE 1 HRC101DK 00028090
  61. *--------------------------------------------------------------HRC101DK 00028180
  62. * GRTBLOK - DATA STREAMS FOR 327X MODEL &MODEL DISPLAYS HRC101DK 00028270
  63. *--------------------------------------------------------------HRC101DK 00028360
  64. SPACE 1 HRC101DK 00028450
  65. * GRTBLOK - CHANNEL PROGRAMS FOR LOCAL 3270 DISPLAYS 00029000
  66. SPACE 00030000
  67. GRTCLRCP CCW X'0B',0,SILI+CC,1 CLEAR THE SCREEN 00031000
  68. CCW X'01',GRTCLRDS,SILI,GRTCLRL 00032000
  69. SPACE 00033000
  70. GRTCNCCP CCW X'0B',0,SILI+CC,1 CLEAR THE SCREEN HRC101DK 00033200
  71. CCW X'01',GRTCNCDS,SILI,GRTCNCL HRC101DK 00033400
  72. SPACE , HRC101DK 00033600
  73. GRTCPPCP CCW X'0B',0,SILI+CC,1 CP READ (W/INHIBIT 00034000
  74. CCW X'01',GRTINHDS,SILI+CD,GRTINHL 00035000
  75. CCW X'00',GRTCPPDS,SILI,GRTCPPL 00036000
  76. SPACE 00037000
  77. GRTCPRCP CCW X'0B',0,SILI+CC,1 CP READ 00038000
  78. CCW X'01',GRTCPRDS,SILI,GRTCPRL 00039000
  79. SPACE 00040000
  80. GRTCRDCP CCW X'0B',0,SILI+CC,1 CLEAR INPUT AREA 00041000
  81. CCW X'01',GRTCRDDS,SILI,GRTCRDL 00042000
  82. SPACE 00043000
  83. GRTEWRCP CCW &EWR,GRTCRDDS,SILI,GRTCRDL USE ERASE/WRITE 00044000
  84. SPACE 00045000
  85. GRTHLDCP CCW X'0B',0,SILI+CC,1 WRITE HOLDING MSG 00046000
  86. CCW X'01',GRTHLDDS,SILI,GRTHLDL 00047000
  87. SPACE 00048000
  88. GRTMORCP CCW X'0B',0,SILI+CC,1 WRITE MORE... MSG 00049000
  89. CCW X'01',GRTMORDS,SILI,GRTMORL 00050000
  90. SPACE 00051000
  91. GRTMRDCP CCW X'0B',0,SILI+CC,1 MORE... WHILE READ 00052000
  92. CCW X'01',GRTMRDDS,SILI,GRTMRDL 00053000
  93. SPACE 00054000
  94. GRTNACCP CCW X'0B',0,SILI+CC,1 NOT ACCEPTED MSG 00055000
  95. CCW X'01',GRTNACDS,SILI,GRTNACL 00056000
  96. SPACE 00057000
  97. GRTRMICP CCW X'0B',0,SILI+CC,1 READ INPUT DATA 00058000
  98. CCW X'03',GRTRMIDS,SILI+CC,GRTRMIL HRC065DK 00059000
  99. CCW X'06',0,SILI,BUFAPL 00060000
  100. SPACE 00061000
  101. GRTRUNCP CCW X'0B',0,SILI+CC,1 RUNNING MSG 00062000
  102. CCW X'01',GRTRUNDS,SILI,GRTRUNL 00063000
  103. SPACE 00064000
  104. GRTVMPCP CCW X'0B',0,SILI+CC,1 VM READ (W/INHIBIT 00065000
  105. CCW X'01',GRTINHDS,SILI+CD,GRTINHL 00066000
  106. CCW X'00',GRTVMPDS,SILI,GRTVMPL 00067000
  107. SPACE 00068000
  108. GRTVMRCP CCW X'0B',0,SILI+CC,1 VM READ 00069000
  109. CCW X'01',GRTVMRDS,SILI,GRTVMRL 00070000
  110. SPACE 00071000
  111. GRTWINCP CCW X'0B',0,SILI+CC,1 WRITE TO INPUT AREA 00072000
  112. CCW X'01',GRTWINDS,SILI+CD,GRTWINL 00073000
  113. CCW X'00',0,SILI,0 00074000
  114. SPACE 00075000
  115. GRTWRTCP CCW X'0B',0,SILI+CC,1 WRITE TO DISPLAY 00076000
  116. CCW X'01',0,SILI+CD,0 00077000
  117. CCW X'00',GRTWRTDS,SILI,GRTWRTL 00078000
  118. SPACE , HRC101DK 00078200
  119. GRTRSTCP CCW X'0B',0,SILI+CC,1 HRC101DK 00078400
  120. CCW X'01',GRTRSTDS,SILI,GRTRSTL HRC101DK 00078600
  121. AIF ('&TYPE' NE 'RGF').GRT03 00079000
  122. POP PRINT 00080000
  123. .GRT03 ANOP 00081000
  124. SPACE 2 00082000
  125. * GRTBLOK - DATA STREAMS FOR LOCAL AND REMOTE 3270 DISPLAYS 00083000
  126. SPACE 00084000
  127. GRTCLRDS DC AL1(WCC6,SBA,X'40',X'40',RA) CLEAR THE DISPLAY AREA 00085000
  128. DC AL1(X'C7',X'5F',X'00',RA) 00085100
  129. DC AL1(X'4E',X'7F',X'00',RA) 00085200
  130. DC AL1(&OA1,&OA2,X'00',RA) 00085300
  131. GRTCLRIA DC AL1(&IA1,&IA2,X'00',SF,ATTR7,IC,SBA) 00086000
  132. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'RUNNING' HRC108DK 00087980
  133. GRTRNST1 DC CL8' ',CL1' ' HRC108DK 00087990
  134. GRTCLRL EQU *-GRTCLRDS 00088000
  135. SPACE 00089000
  136. GRTCNCDS DC AL1(WCC6,SBA,X'40',X'40',RA) CLEAR THE DISPLAY HRC101DK 00089100
  137. * DC AL1(X'C7',X'5F',X'00',RA) HRC101DK 00089200
  138. * DC AL1(X'4E',X'7F',X'00',RA) HRC101DK 00089300
  139. * DC AL1(&OA1,&OA2,X'00',RA) HRC101DK 00089400
  140. GRTCNCIA DC AL1(&IA1,&IA2,X'00',SBA) HRC101DK 00089500
  141. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'RUNNING' HRC108DK 00089620
  142. GRTRNST2 DC CL8' ',CL1' ' HRC108DK 00089640
  143. GRTCNCL EQU *-GRTCNCDS HRC101DK 00089700
  144. SPACE , HRC101DK 00089800
  145. GRTCPRDS DC AL1(WCC6,SBA) WRITE 'CP READ' IN THE STATUS AREA 00090000
  146. DC AL1(&IA1,&IA2,SF,ATTR7) 00091000
  147. GRTCPPDS DC AL1(SBA) 00092000
  148. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'CP READ' HRC108DK 00093980
  149. GRTCPRST DC CL8' ',CL1' ' HRC108DK 00093990
  150. GRTCPPL EQU *-GRTCPPDS 00094000
  151. GRTCPRL EQU *-GRTCPRDS 00095000
  152. SPACE 00096000
  153. GRTCRDDS DC AL1(WCC6,SBA) CLEAR THE INPUT AREA; UPDATE STATUS 00097000
  154. DC AL1(&IA1,&IA2,SF,ATTR457,IC,EUA) @VA10567 00098100
  155. DC AL1(&SA1,&SA2,SBA) @VA10567 00098200
  156. DC AL1(&IA1,&IA2,SF,ATTR7,SBA) @VA10567 00098300
  157. DC AL1(&SA1,&SA2,SF,ATTR2) @VA10567 00098400
  158. GRTMRDDS EQU GRTCRDDS 00100000
  159. GRTMRDL EQU *-GRTMRDDS 00101000
  160. DC CL10'RUNNING' HRC108DK 00102980
  161. GRTRNST3 DC CL8' ',CL1' ' HRC108DK 00102990
  162. GRTCRDL EQU *-GRTCRDDS 00103000
  163. SPACE 00104000
  164. GRTHLDDS DC AL1(WCC3,SBA) WRITE 'HOLDING' IN THE STATUS AREA 00105000
  165. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'HOLDING' HRC108DK 00106980
  166. GRTHLDST DC CL8' ',CL1' ' HRC108DK 00106990
  167. GRTHLDL EQU *-GRTHLDDS 00107000
  168. SPACE 00108000
  169. GRTINHDS DC AL1(WCC6,SBA) SET INPUT AREA FOR INHIBIT DISPLAY 00109000
  170. DC AL1(&IA1,&IA2,SF,ATTR457) 00110000
  171. GRTINHL EQU *-GRTINHDS 00111000
  172. SPACE 00112000
  173. GRTMORDS DC AL1(WCC3,SBA) WRITE 'MORE...' IN THE STATUS AREA 00113000
  174. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'MORE...' HRC108DK 00114980
  175. GRTMORST DC CL8' ',CL1' ' HRC108DK 00114990
  176. GRTMORL EQU *-GRTMORDS 00115000
  177. SPACE 00116000
  178. GRTNACDS DC AL1(WCC4,SBA) WRITE 'NOT ACCEPTED' IN STATUS AREA 00117000
  179. DC AL1(&SA1,&SA2,SF,ATTR2),CL19'NOT ACCEPTED' HRC101DK 00118490
  180. GRTNACL EQU *-GRTNACDS 00119000
  181. SPACE 00120000
  182. GRTRMIDS DC AL1(WCC0,SBA) POSITION FOR READ OF THE INPUT AREA 00121000
  183. DC AL1(&RA1,&RA2) 00122000
  184. GRTRMIL EQU *-GRTRMIDS 00123000
  185. SPACE 00124000
  186. GRTRUNDS DC AL1(WCC6,SBA) WRITE 'RUNNING' IN THE STATUS AREA 00125000
  187. DC AL1(&IA1,&IA2,SF,ATTR7,SBA) 00126000
  188. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'RUNNING' HRC108DK 00127980
  189. GRTRNST4 DC CL8' ',CL1' ' HRC108DK 00127990
  190. GRTRUNL EQU *-GRTRUNDS 00128000
  191. DC AL1(ETX) 00129000
  192. GRTRUNRL EQU *-GRTRUNDS FOR REMOTE INCLUDE BSC CONTROL CHAR. 00130000
  193. SPACE 00131000
  194. GRTVMRDS DC AL1(WCC6,SBA) WRITE 'VM READ' IN THE STATUS AREA 00132000
  195. DC AL1(&IA1,&IA2,SF,ATTR7) 00133000
  196. GRTVMPDS DC AL1(SBA) 00134000
  197. DC AL1(&SA1,&SA2,SF,ATTR2),CL10'VM READ' HRC108DK 00135980
  198. GRTVMRST DC CL8' ',CL1' ' HRC108DK 00135990
  199. GRTVMPL EQU *-GRTVMPDS 00136000
  200. GRTVMRL EQU *-GRTVMRDS 00137000
  201. SPACE 00138000
  202. GRTWINDS DC AL1(WCC6,SBA) WRITE DATA IN THE INPUT AREA 00139000
  203. DC AL1(&IA1,&IA2,EUA) 00140000
  204. DC AL1(&SA1,&SA2,SBA) 00141000
  205. DC AL1(&IA1,&IA2,SF,ATTR7,IC) 00142000
  206. GRTWINL EQU *-GRTWINDS 00143000
  207. GRTRSTDS DC AL1(WCC3) HRC101DK 00143200
  208. GRTRSTL EQU *-GRTRSTDS HRC101DK 00143400
  209. GRTLAST DC AL1(&SA1,&LC2) LAST CHAR ON SCREEN HRC101DK 00143600
  210. SPACE 00144000
  211. GRTWRTDS EQU GRTRUNDS+1 'RUNNING' STATUS USED FOR WRITES 00145000
  212. GRTWRTL EQU GRTRUNL-1 00146000
  213. GRTWRTRL EQU GRTRUNRL-1 FOR REMOTE INCLUDE BSC CONTROL CHAR. 00147000
  214. SPACE 2 00148000
  215. * 3270 WRITE CONTROL CHARACTERS 00149000
  216. WCC0 EQU X'C0' NOTHING... 00150000
  217. WCC3 EQU X'C2' RESTORE KEYBOARD 00150100
  218. WCC4 EQU X'C6' RESTORE KEYBOARD,ALARM 00150200
  219. WCC5 EQU X'C4' SOUND ALARM HRC101DK 00151590
  220. WCC6 EQU X'C2' RESTORE KEYBOARD HRC101DK 00152180
  221. WCC56 EQU X'C6' RESTORE KEYBOARD, ALARM HRC101DK 00152770
  222. WCCALRM EQU X'04' BIT TO SOUND ALARM HRC101DK 00153360
  223. SPACE 00154000
  224. * 3270 DISPLAY STATION ORDERS 00155000
  225. SBA EQU X'11' SET BUFFER ADDRESS 00156000
  226. EUA EQU X'12' ERASE UNPROTECTED TO ADDRESS 00157000
  227. IC EQU X'13' INSERT CURSOR 00158000
  228. SF EQU X'1D' START FIELD DEFINITION 00159000
  229. RA EQU X'3C' REPEAT CHARACTER TO ADDRESS 00160000
  230. SPACE 00161000
  231. * 3270 ATTRIBUTE CHARACTERS 00162000
  232. ATTR2 EQU X'60' PROTECTED, LOW INTENSITY 00163000
  233. ATTRPRHI EQU X'F8' PROTECTED, HI INTENSITY 00163500
  234. ATTR7 EQU X'C1' UNPROTECTED, LOW INTENSITY, MDT 00164000
  235. ATTR457 EQU X'4D' PROTECTED, INHIBIT DISPLAY, MDT 00165000
  236. SPACE 00166000
  237. *--------------------------------------------------------------HRC101DK 00166050
  238. * EQUATES FOR THE VARIOUS OPCODES HRC101DK 00166100
  239. *--------------------------------------------------------------HRC101DK 00166150
  240. SPACE 1 HRC101DK 00166200
  241. WR EQU X'01' LOCAL CCW OPCODE WRITE HRC101DK 00166250
  242. EWR EQU X'05' LOCAL CCW OPCODE ERASE/WRITE HRC101DK 00166300
  243. EWA EQU X'0D' LOCAL CCW OPCODE ERASE/WRITE ALTEHRC101DK 00166350
  244. RM EQU X'06' LOCAL CCW OPCODE READ-MODIFIED HRC101DK 00166400
  245. RB EQU X'02' LOCAL CCW OPCODE READ-BUFFER HRC101DK 00166450
  246. SELECT EQU X'0B' SELECT (3270) HRC101DK 00166500
  247. SELRM EQU X'0B' SELECT READ MODIFIED HRC101DK 00166550
  248. SELRB EQU X'1B' SELECT READ BUFFER HRC101DK 00166600
  249. SELRMP EQU X'2B' SELECT READ XXX HRC101DK 00166650
  250. SELRBP EQU X'3B' SELECT READ XXX HRC101DK 00166700
  251. SELWRT EQU X'4B' SELECT WRITE HRC101DK 00166750
  252. WSF EQU X'11' WRITE STRUCTURED FIELD OP CODE HRC101DK 00166800
  253. SENSEID EQU X'E4' SENSE ID OP CODE HRC101DK 00166850
  254. * BSC CONTROL CHARACTERS FOR REMOTE DISPLAYS 00167000
  255. ETX EQU X'03' END OF TEXT 00168000
  256. SPACE 00169000
  257. BUFAPL EQU (136+8)*2 TWICE CONSOLE INPUT BUFFER SIZE 00170000
  258. EJECT 00171000
  259. MEND 00172000
ibm/vm370-lib/macro/grtblok.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator