Q1-For the memory location whose physical address is specified 1256Ah, give the address in
segment: offset form for segments 1256h and 1240h.
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
Let Y be the offset for segment 1240h
Physical address=segment*10 + offset
1256Ah=1240*10h+X
1256Ah=12400h+X
X=1256Ah-12400h
X=16Ah
1256Ah=1256:016A
Q2- A memory location has physical address 80FD2h. In what segment does it have offset BFD2h?
Given:
Physical Address=80FD2h
Offset =BFD2h
Solution:
Physical Address=Segment*10h + Offset
80FD2h=Segment*10h+BFD2h
Segment*10h=80FD2h-BFD2h
Segment=7500h
Q3- Determine the physical address of a memory location given by 0A51:CD90h.
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