**QUESTION**

Text

Image

CSE341: Microprocessors Assignment 01 1. Suppose the physical address of a memory location is $33330 \mathrm{H}$ and the offset is $1111 \mathrm{H}$. What is the base address (segment number) of the segment? What is the highest address in that segment (assume non overlapping segmentation) ? $(1+1=2$ mark) 2. Find out the physical address when a. 234D $h$ is the offset and base address of segment is $91 \mathrm{AB} h$ (1 mark) b. $1863 \mathrm{~h}$ is the offset and base address of segment is AA10 $\mathrm{h}$ (1 mark) c. Give an example of a physical address which can have 3 different logical address (do not use the example that is given in the slide) (1 mark) 3. a. Suppose AX contains EEEEh and BX contains BBBBh. Suppose the instruction "ADD AX, BX" is executed. What is the status of SF, PF, ZF, CF and OF ? You have to explain your answer. ( 2.5 mark) b. Suppose AX contains $8000 \mathrm{~h}$ and BX contains $1234 \mathrm{~h}$. Suppose the instruction "ADD AX, BX" is executed. What is the status of SF, PF, ZF, CF and OF? You have to explain your answer. ( 2.5 mark) 4. You are given the following instruction: ADD AX , [10h] You are provided the following data: $\mathbf{D S}=\mathbf{A B} 12 \mathrm{~h} ; \mathbf{S S}=2567 \mathrm{~h} ; \mathbf{C S}=29 \mathrm{C} 1 \mathrm{~h}$ Find the effective address location for the given instruction. (1 mark) 5. Find the smallest and the second largest segment address for each of the following physical addresses. Also, mention the logical addresses (segment:offset pair) for each case: $(1+1=2$ mark) a. FFFEFh b. $2 \mathrm{~h}$