Question: Problem B (2 points per destination, 4 points per result = 60 points) Consider the following initial values for the registers and memory. Values are

Problem B (2 points per destination, 4 points per result = 60 points) Consider the following initial values for the registers and memory. Values are reset back to the values shown in the table before each operation. Determine the result of the following operations and state where the result is stored. * Destination should be formatted after doing all address calculations in order to be counted for full credit * Result should match the size specified by the destination Address Ox08 Ox56 Ox57 Ox80 0x81 OxB8 | Value Ox88 OxC1 OxD2 OxC3 Ox00 Ox32 Register %rax %rbx %r8 %r9 %r10 Value OxF4E3B2A1 OXFACE Ox OXOA Ox36 Destination Result Instruction movw $12(%r10,%r9,2),%ax movb $10(%r9,%r10,2),%bl incl %eax subw $-2(%r9),%bx decb $8(%r8) imulw $8,-Ox30(%r8) sarb $5, %bl shrw $1,$6(,%r9,8) andl %ebx,%eax negq %r8 Problem B (2 points per destination, 4 points per result = 60 points) Consider the following initial values for the registers and memory. Values are reset back to the values shown in the table before each operation. Determine the result of the following operations and state where the result is stored. * Destination should be formatted after doing all address calculations in order to be counted for full credit * Result should match the size specified by the destination Address Ox08 Ox56 Ox57 Ox80 0x81 OxB8 | Value Ox88 OxC1 OxD2 OxC3 Ox00 Ox32 Register %rax %rbx %r8 %r9 %r10 Value OxF4E3B2A1 OXFACE Ox OXOA Ox36 Destination Result Instruction movw $12(%r10,%r9,2),%ax movb $10(%r9,%r10,2),%bl incl %eax subw $-2(%r9),%bx decb $8(%r8) imulw $8,-Ox30(%r8) sarb $5, %bl shrw $1,$6(,%r9,8) andl %ebx,%eax negq %r8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
