What is house keeping in assembler? And explain the
following code

HELLOTSO START 0
* PRINT NOGEN
BEGIN SAVE (14,12)
LR 12,15
USING TYPE,12
ST 13,SAVE+4
LA 11,SAVE
ST 11,8(13)
LR 13,11

Answer Posted / john

To elaborate a little the reason for all this
"housekeeping": The "save areas" as they are called that are
created by the SAVE macro contain the contents of the
registers when the routine is called. Save areas are
backward and forward linked (by the 4 instructions after the
USING) so that if the program fails you can find them in a
dump. The ending part of the program is missing as well,
but it returns the registers to their previous state before
returning to the calling program. It might look something like:

DROP 12
ALLDONE L 13,SAVE+4
RETURN (14,12),RC=0

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain icm instruction?

656


Explain about house keeping in assembler?

632


Explain the difference between various read and find statement and which one should be used when for better adabas performance?

579


What does the following code do? Ap wkur,=p5 where wkur is a label?

609


How to pass the parameters from jcl to assembler program?

569






how do you round the addition or subtraction of two numbers in assembler? what does the following code do? change process tool(code changes from dev to prd) the changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?

681


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

636


What is need of start 0?

651


How is data passed from a calling program to an assembler called program?

628


Explain how to initialize a register to 0000?

585


Explain the difference in data type "x" and "p"?

590


Explain about maximum displacement?

600


Explain how to pass instream data in sysin with assembler?

638


how to initialize a register to 0000?

663


How are data passed from jcl parm to assembler program?

579