Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume the state of an x86 processor's registers and memory are: EAX: 0xEECE3170 EBX: 0x00000001 ECX: 0x00000002 EDX: 0x00000004 ESI: 0x00020100 EDI: 0x00020110 Address Lo
Assume the state of an x86 processor's registers and memory are: EAX: 0xEECE3170 EBX: 0x00000001 ECX: 0x00000002 EDX: 0x00000004 ESI: 0x00020100 EDI: 0x00020110 Address Lo 0x20100 10 00 08 00 0x2010410 10 FF FF x20108 08 00 0x2010d 20 40 60 80 0x20110 02 00 AB OF 0x20114 30 99 11 55 0x2011840 AA 7C EE 0x2011 FF BB 42 D2 0x20120 30 CC 30 90 19 91 What is the result of each of the instructions listed below? Assume that the instructions execute in sequence-in other words, the result of each instruction may depend on the results of earlier instructions. Correctly evaluating each instruction w earn you 10 points Note that you may assume any constant values shown using less than 32 bits are zero extended to 32 bits if necessary (for example, 0x000F 0x0000000F) MOV MOV MOVSX BX, BYTE PTR [ESI+0x000F] MOV MOV XCHG CL, [ESI MOVZX EAX, WORD PTR [EDI+ECX] MOV LEA MOVSX EBX, BYTE PTR [ESI+4] DL, OxFE DH, AL EDI+ECX), EBX ESI+4 ECX], AX DX, [EDI+0xFFFFFFFA] ECX, [ESI+EBX+0x0017] Assume the state of an x86 processor's registers and memory are: EAX: 0xEECE3170 EBX: 0x00000001 ECX: 0x00000002 EDX: 0x00000004 ESI: 0x00020100 EDI: 0x00020110 Address Lo 0x20100 10 00 08 00 0x2010410 10 FF FF x20108 08 00 0x2010d 20 40 60 80 0x20110 02 00 AB OF 0x20114 30 99 11 55 0x2011840 AA 7C EE 0x2011 FF BB 42 D2 0x20120 30 CC 30 90 19 91 What is the result of each of the instructions listed below? Assume that the instructions execute in sequence-in other words, the result of each instruction may depend on the results of earlier instructions. Correctly evaluating each instruction w earn you 10 points Note that you may assume any constant values shown using less than 32 bits are zero extended to 32 bits if necessary (for example, 0x000F 0x0000000F) MOV MOV MOVSX BX, BYTE PTR [ESI+0x000F] MOV MOV XCHG CL, [ESI MOVZX EAX, WORD PTR [EDI+ECX] MOV LEA MOVSX EBX, BYTE PTR [ESI+4] DL, OxFE DH, AL EDI+ECX), EBX ESI+4 ECX], AX DX, [EDI+0xFFFFFFFA] ECX, [ESI+EBX+0x0017]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started