Question: 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

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 Value Register Value OxDECAFFED Ox08 Ox54 %rax Ox56 OxC4 %rbx OxABCD OxB0 OxB3 %r8 Ox57 Ox80 Ox06 Ox0A %r9 %r10 Ox81 Ox00 Ox36 OxB8 OxAA Destination Result Instruction movw 12(%r10,%r9,2),%ax movb 10(%r9,%r10,2),%bl incl %eax subb -2(%r9),%bl decb 8(%r8) imulw $8,-0x30(%r8) sarb $5, %bl shrw $1, 6(,%r9,8) andl %ebx, %eax negq %r8 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 Value Register Value OxDECAFFED Ox08 Ox54 %rax Ox56 OxC4 %rbx OxABCD OxB0 OxB3 %r8 Ox57 Ox80 Ox06 Ox0A %r9 %r10 Ox81 Ox00 Ox36 OxB8 OxAA Destination Result Instruction movw 12(%r10,%r9,2),%ax movb 10(%r9,%r10,2),%bl incl %eax subb -2(%r9),%bl decb 8(%r8) imulw $8,-0x30(%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
