Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What is the signifcance with Base Regsiter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
kalpana

New User


Joined: 19 Nov 2004
Posts: 25
Location: Banglore

PostPosted: Tue Jun 19, 2007 5:23 pm    Post subject: What is the signifcance with Base Regsiter
Reply with quote

Could any let me know what is the signifcance of adding 2048 to R12 rather than direclty pointing to 4096 address

LA R12,2048(,R11)
LA R12,2048(,R12) / AHI R12,2048


Could any one help me with this query?


Thanks
Kalpana
Back to top
View user's profile Send private message
References
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 2974
Location: Tucson AZ

PostPosted: Tue Jun 19, 2007 5:45 pm    Post subject:
Reply with quote

Because 4096 requires 4 hex digits and the load address only increments 3.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 126

PostPosted: Tue Jun 19, 2007 7:42 pm    Post subject:
Reply with quote

There is several way of doing this, one is the example as you have shown
another is.

LA R12,4095(R13)
LA R12,1(R12)
LA R11,4095(R12)
LA R11,1(R11)
LA R10,4095(R11)
LA R10,1(R10)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1