Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / mike m

Housekeeping is the work done at the start of an ALC
program that saves the contents of regs
14,15,0,1,2,3,4,5,6,7,8,9,10,11,12 into an addr off R13.
After that and in this example, R15(which contains prog.
entry point) is loaded into R12. The USING completes the
work to make R12 the BASE reg. Within this code @ label =
SAVE is a 72 byte work area. The first STORE(ST) saves the
contents of R13 -> 4 bytes into the address that SAVE is
located at. LA(Load Address) loads the address of the area
@ label = SAVE into REG 11. The second STORE(ST) then
stores the contents of Reg 11 -> 8 bytes beyond the addr.
in Reg 13. The LOAD REGISTER(LR) then loads the contents of
Reg 11 into Reg 13. REG 13 now has the addr of the area @
label = SAVE that may be used if this code calls another
routine.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many maximum base registers we can have in a single program?

1116


Explain how to initialize a register to 0000?

1018


explain about maximum displacement and how to cross this limit?

1154


Explain how to pass instream data in sysin with assembler?

1102


Explain the difference between various read and find statement?

1078


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

1097


what is need of start 0? In steed of

1097


explain icm instruction?

1095


Explain about house keeping in assembler?

1053


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

1014


What is maximum displacement and how to cross this limit?

1186


What is need of start 0?

1136


How are data passed from jcl parm to assembler program?

1015


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

1041


Explain how to produce soc7 abend?

1080