Answer to Question #93234 in Assembler for Liaba

Question #93234
What is the difference between displacement, relative, base-register and index addressing schemes? Explain briefly with examples?
1
Expert's answer
2019-08-29T03:37:48-0400

1) Displacement: the displacement is a constant that gets added to the rest of the address (address = reg+displacement)

2) Base-register: address = contents of specified base register + displacement

3) Relative: PC-relative - PC as the base register.

4) Index addressing mode is a category of displacement addressing mode. In index mode, the addition of base address and displacement index value gives the actual physical address of the operand in memory.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS