Assignment
Assignment
Solution:
Let X be the offset for segment 1256h
Physical address=segment*10 + offset
1256Ah=1256*10h+X
1256Ah=12560h+X
X=1256Ah-12560h
X=0Ah
1256Ah=1256:000A
Given:
Physical Address=80FD2h
Offset =BFD2h
Solution:
Physical Address=Segment*10h + Offset
80FD2h=Segment*10h+BFD2h
Segment*10h=80FD2h-BFD2h
Segment=7500h
Given:
Segment=0A51h
Offset=CD90h
Solution:
Physical Address=Segment*10+Offset
Physical Address=0A51*10h+CD90h
Physical Address=A510h+CD90h
Physical Address=172A0h
Q4- A memory location has physical address 4A37Bh. Compute
a-The offset address if the segment number is 40FFh.
b-The segment number if the offset address is 123Bh.
a-
Given:
Physical Address=4A37Bh
Segment=40FFh
Offset=?
Solution:
Physical Address= Segment*10+Offset
4A37Bh=40FF*10h+Offset
Offset=4A37Bh-40FF0h
Offset=938Bh
b-
Given:
Physical Address=4A37Bh
Offset =123Bh
Segment =?
Solution:
Physical Address= Segment*10+Offset
4A37Bh=Segment*10+123Bh
Segment=4914h