Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!bionet!agate!ucbvax!RPITSMTS.BITNET!USERALVE From: USERALVE@RPITSMTS.BITNET (Brian Eliot) Newsgroups: comp.lang.asm370 Subject: Re: Why use an LA instruction? Message-ID: <9103072233.AA20162@ucbvax.Berkeley.EDU> Date: 7 Mar 91 22:31:46 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 12 If the instruction LA x,0(0,x) is understood to mean "zero all non-address bits in register x" then it works perfectly well for all addressing modes and all operating systems. In fact it is the best way to accomplish this since it automatically adjusts to the addressing mode being used. Brian Eliot Information Technology Services Rensselaer Polytechnic Institute