Fill in multiple blanks. (Your answer must be given in hexadecima: do not forget
ID: 3902977 • Letter: F
Question
Fill in multiple blanks. (Your answer must be given in hexadecima: do not forget "h" at the end) This exercise is about address translation on an x86 Intel CPU. This CPU translates (using hardware) a logical address LA into a physical address PA as follows: if (LA references data) PA- 10h*DS + LA else // LA references an instruction, i.e. LA is in Register IP: the i nstruction pointer PA 10h*CS +IP suppose DS = 0x0000 and CS-Ox0000. Consider the memory access instruction is at address 0000h MOV SI, 0000h MOV BX, [SI] The physical address of the memory access instruction is and the physical address of its memory operand isExplanation / Answer
Answer is as follows :
Memory Access instruction is MOV BX , [SI] i.e. not a data LA is present in Register SI.
So according to given algorithm the calculations ar:
PA = 10 * CS + IP
= 10 * 0000 +0000 = 0000h
So Physical address for the memory access instruction is 0000h
Memory Operand Instruction is MOV SI, 0000h where 0000h represent the hexadecimal data.
So according to algorithm if LA is refrence data than
PA = 10 * DS + LA
i.e. = 10 * 0000 + 0000 = 0000h
So Physical address for the memory operand instruction is 0000h
From the calculations we get that both are same.
if there is any query please ask in comments..
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.