Please fill those 2 blanks and provide some explanations , thanks! Fill in multi
ID: 3902961 • Letter: P
Question
Please fill those 2 blanks and provide some explanations, thanks!
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 = 0x0000. Consider the memory access nstruction is at address FOO0h MOV SI, 40A0h MOV BX, [SI] The physical address of the memory access instruction is and the physical address of its memory operand isExplanation / Answer
Here value of CS/DS are given. Also memory access instruction is at address F000h that means instruction pointer (IP) has value F000h. Thus PA can be calculated as below:
Physical address of the memory acces instruction is: 10h*0000h+F000h = F000h
Now logical address i.e. 40A0h so PA for operand can be calculated as below:
Physicall address of memory operand is: 10h*0000h+40A0h = 40A0h