Any position independent code is best written using which of
Any position independent code is best written using which of the following addressing modes ?
AAbsolute
BDirect
CIndirect
DRelative.
All DiscussionsClick here to write answer
Answer:Relative.
Explanation:
The relative addressing mode permits the writing of "position-independent code," programs which will be properly executed by the processor regardless of where they are located in memory.
The entire program (together with any necessary data) may be picked up from one region of memory and moved to another with no adverse effect. In order to be location-independent a program may not refer to any specific location by address. All references to memory must be through the use of relative addressing.
All Comments
Post your answers here:
Post