Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!jarthur!nntp-server.caltech.edu!gah From: gah@hood.hood.caltech.edu (Glen Herrmannsfeldt) Newsgroups: comp.lang.asm370 Subject: Re: Why use an LA instruction? Message-ID: Date: 11 Mar 91 10:05:45 GMT References: <9103050049.AA15223@ucbvax.Berkeley.EDU> Sender: news@nntp-server.caltech.edu Distribution: inet Organization: California Institute of Technology, Pasadena Lines: 20 PGIFFORD@ALLEGVM.BITNET (Pete Gifford) writes: >I was disassembling a program (not copyrighted!) a while ago and found it >starting with the instructions below. I understand all of it but the LA. >Can someone shed some light on its purpose? >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >Pete Gifford PGIFFORD@ALLEGVM >Systems Manager PETE@MUSIC.ALLEG.EDU >Allegheny College (814) 332-5304 >Meadville, PA (814) 332-5366 >PROGRAM BALR 4,0 load base register > BCTR 4,0 back off one byte to point > BCTR 4,0 to label at start of program > LA 4,0(0,4) ??????? Well, I believe it throws away the 8 high order bits. At least it used to, I don't know about in XA.