IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

LA instruction in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Sun Mar 18, 2012 8:55 pm
Reply with quote

Hi,
I have just started assembler coding. Just wanted to know about LA instruction. When LA instruction specifies to a level, what does it mean.
For ex. LA R3,LBL1 - it will load the address of LBL1 to R3
B DSSM
...
...
LBL1 MVC instcr
XC instruc
LBL2 SH instrc

What I wanted to know is how the flow will go? R3 will have the address of LBL1 means the LBL1 and LBL2 level will be executed? Then it will branch to DSSM?

Please help me!!

Thanks!
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sun Mar 18, 2012 9:43 pm
Reply with quote

Start to make yourself familiar with the Principles of Operation - The POP.

LA knows nothing about what is at the address which you are loading. All it is going to do is to take an address and put it in a register. What happens next is up to your code.

What do you mean by "level"?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Mar 18, 2012 9:45 pm
Reply with quote

Your post is pretty much incomprehensible since you seem to be mixing up multiple things at the same time, and you are not using the CODE button to make your code clear. Furthermore, you didn't include all of the code -- when you posted
Code:
         B     DSSM
for example -- where is DSSM label? What do you mean when you say "level" -- that term has a specific meaning on mainframes, but that meaning doesn't appear to be related to however you are using the term.

Do you understand the difference between the ADDRESS of a memory location and the CONTENTS of that memory location? If you don't understand this, you cannot understand the difference between LA and L instructions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Getting SOC4 while calling a Cobol DB... PL/I & Assembler 4
Search our Forums:

Back to Top