Question #45881

Consider the logical address of an instruction in a program memory is 7632 and the contents
of relocation register are 2500. To which location in the memory will this address be
mapped?

Expert's answer

Answer on Question #45881, Programming, Other

Problem.

Consider the logical address of an instruction in a program memory is 7632 and the contents of relocation register are 2500. To which location in the memory will this address be mapped?

Solution.

The value in the relocation register is added to every address generated by a user process, so to obtain location in memory we should find sum 7632 + 2500 = 10132.


logical_address = 7632
relocation_register = 2500
physical_address = logical_address + relocation_register
print(physical_address)  # Output: 10132


Answer: 10132.

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!

LATEST TUTORIALS
APPROVED BY CLIENTS