Assembler and addressability.

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
User avatar
Angel
Registered Member
Posts: 93
Joined: Sat Jun 08, 2013 8:13 pm

Assembler and addressability.

Post by Angel »

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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Assembler and addressability.

Post by Robert Sample »

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.
User avatar
Angel
Registered Member
Posts: 93
Joined: Sat Jun 08, 2013 8:13 pm

Re: Assembler and addressability.

Post by Angel »

Thanks for the indication on save area, this is useful.

Thank you.
Post Reply

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

Register

Sign in

Return to “Assembler & PL/I.”