Hi,
I'm starting with assembler and looking for a guidance on how is the addressability of a called program set when we make a call for it, in assembler? I looked in to POP but I could not really grasp it - if someone can provide an example it'll be a gerat help.
Assembler and addressability.
- Robert Sample
- Global Moderator
- Posts: 1889
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Assembler and addressability.
Addressability starts, typically, with register 15 (BALR 14,15). Once the called program is loaded into memory, its starting address is loaded into register 15, and control transfers to that starting address. The initial code for the called program typically sets up a base register to replace 15 (which may be used in the program and hence should NOT be kept as the base register), save the registers, and set up the save area trace.
Re: Assembler and addressability.
Thanks for the indication on save area, this is useful.
Thank you.
Thank you.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute