Article View: comp.lang.asm370
Article #9843270 screen buffer address computation
From: Leonard D Woren
Date: Wed, 14 Mar 1990 07:32
Date: Wed, 14 Mar 1990 07:32
18 lines
1618 bytes
1618 bytes
Once you determine the screen size, here's how you build the 3270 SBA:
LH R14,ROW get row number
BCTR R14,0 make it origin 0
MH R14,WIDTH multiply by screen width
AH R14,COL add column number
BCTR R14,0 make it origin 0
SRDL R14,6 get low order six bits into R15
SRL R15,32-6 shift to low end of register
* R1 -> SBA output area, starting with X'11'
STC R14,1(,R1) set down hi order 6 bits
STC R15,2(,R1) set down lo order 6 bits
TR 1(2,R1),TR3270 translate to valid 3270 chars
...
TR3270 DC X'40C1C2C3C4C5C6C7C8C94A4B4C4D4E4F' 08920012
DC X'50D1D2D3D4D5D6D7D8D95A5B5C5D5E5F' 08930012
DC X'6061E2E3E4E5E6E7E8E96A6B6C6D6E6F' 08940012
DC X'F0F1F2F3F4F5F6F7F8F97A7B7C7D7E7F' 08950012
Technical Details
Message-ID:
<9003140832.AA07515@lilac.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!USCMVSA.BITNET!LDWShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!USCMVSA.BITNET!LDW From: LDW@USCMVSA.BITNET (Leonard D Woren) Newsgroups: comp.lang.asm370 Subject: 3270 screen buffer address computation Message-ID: <9003140832.AA07515@lilac.berkeley.edu> Date: 14 Mar 90 07:32:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List <ASM370%UCF1VM.bitnet@lilac.berkeley.edu> Distribution: inet Organization: The Internet Lines: 18