Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given: edx=9, ebx=21, esp=230, ecx=10, m[60]= 2, edi= 18, and eip=x00c, Computation table 1 shows the generic and specific transfer and computation for subl instruction.
Given: edx=9, ebx=21, esp=230, ecx=10, m[60]= 2, edi= 18, and eip=x00c, Computation table 1 shows the generic and specific transfer and computation for subl instruction. Do similar tables for the next five instructions. sub! %edx, ebx addl %ebx , %edi mrmov! 0x30[%edi], %eax addl Sebx, %eax rmmovl %eax, 0x34[%edi] imp. 0x2000 Generic Specific Stage OP1 IA, IB subl %edx, %ebx Fetch icode:ifun --M,[PC] icode:ifun -- M1 [0x00c] = 6:1 TA:18 --M, (PC + 1] TA:18 --M [Oxood]= 2:3 valp - PC + 2 valp -- 0x00c + 2 = 0x00e Decode vald - RITA) valA - R[%edx] = 9 valb --R[B] valB --R[Xebx) = 21 Execute vale -- valB OP vala vale - 21 - 9=12 Set CC ZF--O, SF--,OF--0 Memory Write back R[TB] -vale R[/ebx] --vale = 12 PC update PC valp PC valP = 0x00e Computation table 1 Given: edx=9, ebx=21, esp=230, ecx=10, m[60]= 2, edi= 18, and eip=x00c, Computation table 1 shows the generic and specific transfer and computation for subl instruction. Do similar tables for the next five instructions. sub! %edx, ebx addl %ebx , %edi mrmov! 0x30[%edi], %eax addl Sebx, %eax rmmovl %eax, 0x34[%edi] imp. 0x2000 Generic Specific Stage OP1 IA, IB subl %edx, %ebx Fetch icode:ifun --M,[PC] icode:ifun -- M1 [0x00c] = 6:1 TA:18 --M, (PC + 1] TA:18 --M [Oxood]= 2:3 valp - PC + 2 valp -- 0x00c + 2 = 0x00e Decode vald - RITA) valA - R[%edx] = 9 valb --R[B] valB --R[Xebx) = 21 Execute vale -- valB OP vala vale - 21 - 9=12 Set CC ZF--O, SF--,OF--0 Memory Write back R[TB] -vale R[/ebx] --vale = 12 PC update PC valp PC valP = 0x00e Computation table 1
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