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: 10132Answer: 10132.