100% found this document useful (1 vote)
2K views

Assignment

This document contains solutions to 4 questions about converting between physical and segmented memory addresses. Question 1 provides the segmented addresses for physical address 1256Ah with segments 1256h and 1240h. Question 2 finds the segment for physical address 80FD2h with offset BFD2h. Question 3 calculates the physical address for segmented address 0A51:CD90h. Question 4 part a) finds the offset for physical address 4A37Bh with segment 40FFh, and part b) finds the segment for physical address 4A37Bh with offset 123Bh.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Assignment

This document contains solutions to 4 questions about converting between physical and segmented memory addresses. Question 1 provides the segmented addresses for physical address 1256Ah with segments 1256h and 1240h. Question 2 finds the segment for physical address 80FD2h with offset BFD2h. Question 3 calculates the physical address for segmented address 0A51:CD90h. Question 4 part a) finds the offset for physical address 4A37Bh with segment 40FFh, and part b) finds the segment for physical address 4A37Bh with offset 123Bh.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like