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
explain icm instruction?
Explain about house keeping in assembler?
Explain the difference between various read and find statement and which one should be used when for better adabas performance?
What does the following code do? Ap wkur,=p5 where wkur is a label?
How to pass the parameters from jcl to assembler program?
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?
What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?
What is need of start 0?
How is data passed from a calling program to an assembler called program?
Explain how to initialize a register to 0000?
Explain the difference in data type "x" and "p"?
Explain about maximum displacement?
Explain how to pass instream data in sysin with assembler?
how to initialize a register to 0000?
How are data passed from jcl parm to assembler program?