Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assuming the state of registers and memory after all of the instructions in the

ID: 3784661 • Letter: A

Question

Assuming the state of registers and memory after all of the instructions in the problem have been executed, describe the destination affected and the value placed there by this instructions. Type the register destination (including the '%' symbol) in the left box and the value (including the '0x' prefix, but no leading zeros) in the right box.

(A) leaq 7(%rax,%rdx,4), %rcx      

(B) movq 7(%rax,%rdx,4), %rax

Address Value Register Value

0x100 0xFF %rax 0x100

0x108 0xAB %rcx 0x1

0x110 0x13 %rdx 0x3

0x118 0x11

Explanation / Answer

Operand

Value

%rax

0x100

0x108

0xAB

$0x108

0x108

(%rax)

0xFF

8(%rax)

0xAB

13(%rax, %rdx)

0x13

260(%rcx, %rdx)

0xAB

0xF8(, %rcx, 8)

0xFF

(%rax, %rdx, 8)

0x11

Operand

Value

%rax

0x100

0x108

0xAB

$0x108

0x108

(%rax)

0xFF

8(%rax)

0xAB

13(%rax, %rdx)

0x13

260(%rcx, %rdx)

0xAB

0xF8(, %rcx, 8)

0xFF

(%rax, %rdx, 8)

0x11

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote