Explain about base register?



Explain about base register?..

Answer / Santosh Shaw

In Assembler, a Base Register is a memory register used as a base address for addressing the elements of an array or table. It holds the starting address of the array or table and indexing is performed relative to this base address.nnFor example, if a program has a data table starting at memory location 100 and the Base Register (say B) contains 100, then the first element of the table can be accessed by the instruction LDA B,0 which loads the content of memory location 100 into the accumulator.nnThe choice of a Base Register is usually determined by the assembler or compiler. Some architectures allow multiple base registers to be used simultaneously.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Assembler Interview Questions

how to access VSAm file

2 Answers   EDS, IBM,


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

1 Answers  


What is maximum displacement?

1 Answers  


How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program.

3 Answers   HCL, IBM,


explain about maximum displacement and how to cross this limit?

1 Answers   IBM,


Explain how to produce soc7 abend?

1 Answers  


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

1 Answers  


Can we use MVC instruction to move pack field to pack field....which instruction you will use and why ?

4 Answers   Amdocs, IBM,


WHAT WILL HAPPEN IF WE DROP THE BASE REGISTER IN THE PGM WHICH CONTAINS ONLY ONE BASEREG?

4 Answers   IBM, Tech Mahindra,


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

1 Answers  


Why do we have multiple base registers in certain programs?

4 Answers   IBM,


What does LA R3,R3 ?

1 Answers   Amdocs,


Categories