Why do we have multiple base registers in certain programs?

Answers were Sorted based on User's Feedback



Why do we have multiple base registers in certain programs?..

Answer / mike m

A SINGLE BASE REGISTER ACCOUNTS FOR 4096 BYTES OF STORAGE.

YOU NEED A BASE REG. FOR EACH 4K. IF YOUR PROGRAM IS 12K,
YOU NEED AT LEAST 3 BASE REGS.

Is This Answer Correct ?    16 Yes 3 No

Why do we have multiple base registers in certain programs?..

Answer / ajay kuriyal

it all depends upon the length of your program , if it is
more than 4095 then we need 2 register else only one can do
needful.
basically we can even use savearea register as a base
register, so as to accomodate the length of the program

Is This Answer Correct ?    10 Yes 1 No

Why do we have multiple base registers in certain programs?..

Answer / dave grund

The more correct answer would be to address storage. Each register can address (or make reference to) 4,096 bytes of contiguous storage. If you need to address more storage than that, you need to initialize and use additional base registers.

Is This Answer Correct ?    5 Yes 0 No

Why do we have multiple base registers in certain programs?..

Answer / guest

To extend the Memory location of the current module

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Assembler Interview Questions

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

0 Answers  


about maximum displacement and how to cross this limit.

2 Answers   EDS,


What is the use of trt instruction?

0 Answers  


What is the use of TRT instruction and how it is working?

7 Answers   HCL, IBM, Wipro,


Explain how to initialize a register to 0000?

0 Answers  






Explain about base register?

0 Answers  


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

0 Answers  


In the house keeping section of an MVS assembly language program, like the one below STM R14,R12,12(R13) BASR R12,R0 USING *,R12,R11 LA R11,2048 LA R11,2048(R11,R12) .... .... 1. What if BASR R12,R0 IS NOT PRECEDE USING *,R12,R11? 2. USING (base address), REGISTER does USING directive says assembler to treat particular Register as a base register with the mentioned base address..in the above case * i.e current location counter..well if that is the case why we need BASR R12,R0 ? 3. What if I write like STM R14,R12,12(R13) BASR R12,R0 LA R11,2048 LA R11,2048(R11,R12) USING *,R12,R11 there is no address resolution being calculated in both LA statements so is it a right way to set Base register?..will there be any issues with Domain regarding R11 and R12?

0 Answers  


What does "using" do?

0 Answers  


how to retrieve the instream data in sysin?

0 Answers   IBM,


HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A PROGRAM AND ALSO HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A SINGLE PROGRAM.

5 Answers   IBM, TCS,


Write the fetch cycle and execute cycle for following instructions:JMPNZ (jump to the given address if the accumulator not equal to zero) RET(return from a subroutine) ADB (add the contents of register B to the accumulator and save result in the accumulator).

1 Answers  


Categories