Shouldn't that be USING ASVTBEGN,R10 ESTABLISH ADDRESSABILITY Or does CVTASVT point to the prefix?
The LA R11,ASVTENTY is unnecessary unless you need to refer to the base of the table again; if you include it then include a corresponding USING. Otherwise you can just use and increment R10. LA R11,4(,R11) is correct for the code shown. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of esst...@juno.com [esst...@juno.com] Sent: Saturday, February 4, 2023 5:58 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Searching the ASVT . Hello I am on a z/os 2.2 system, trying to rseurrect some old code. . can some one confirm the instructions for Searching the Address Space Vector Table (ASVT) on z/OS 2.2 . This program loads R10 with CVTASVT L R10,CVTASVT GET ASVT ADDRESS USING ASVT,R10 ESTABLISH ADDRESSABILITY . It then issues a Load Address For the first entry ? This doesn't look correct to me ? LA R11,ASVTENTY GET # OF FIRST ENTRY . Next its test for an ASCB that is assigned. TM 0(R11),ASVTAVAL VALID ASCB Available ? BO RUNLOP1 NO, CHECK NEXT ASVT ENTRY . * Examine ASCB . . Besides the Load Address above - How should this module advance to the Next ASVT entry ? Shoud I issue the following to get to the next ASVT L R10,ASVTFRST . The current code issues the following instruction, which looks incorrect according to IHAASVT LA R11,4(,R11) Advance NEXT ASVT ENTRY . . Your comments please . Paul D'Angelo *************** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN