Page 1 of 1

Assembler and addressability.

Posted: Fri Dec 27, 2013 1:10 pm
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.

Re: Assembler and addressability.

Posted: Mon Dec 30, 2013 2:37 am
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.

Re: Assembler and addressability.

Posted: Tue Dec 31, 2013 4:44 pm
by Angel
Thanks for the indication on save area, this is useful.

Thank you.