Electronic – Determining physical address for logical address

addressingcachememory

I have a simple segmentation system with the following segment table:

Starting Address    Length (bytes)
660                 248
1752                422
222                 198
996                 604

Determine the physical address for the following logical addresses; indiciate segment faults.
I know the answers, but I don't understand how they were calculated:

a. 0, 198  --  858
b. 2, 156  --  378
c. 1, 530  --  seg fault
d. 3, 444  --  1440
e. 0, 222  --  882

Best Answer

a) 660 + 198 = 858
b) 222 + 156 = 378
c) 530 > 422
d) 996 + 444 = 1440
e) 660 + 222 = 882