Question: This problem is about operand modes, in particular about memory addressing using the operand modes described in lecture and the textbook. The following shows the

This problem is about operand modes, in particular about memory addressing using
the operand modes described in lecture and the textbook. The following shows the contents of a
portion of the program memory (locations 0x10000 through 0x10040higher addresses are at the
top), and certain registers. All contents are 64-bit quantities.
Address Memory Contents
0x10040100
0x100380x10040
0x10030200
0x1002825
0x100200x10028
0x100180x10020
0x10010500
0x100080x10018
0x100002
Register Contents
%rdi 0x10028
%rsi 0x10
%rdx 16
%rcx -8
For each of the following instructions, say what value ends up in the destination register. Each
instruction starts with the state shown above, i.e., the effects do not accumulate.
a. movq (%rdi),%rax
b. movq (%rdi,%rsi),%rax
c. movq 8(%rdi,%rcx,4)%r8
d. movq -8(%rdi,%rsi),%rbx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!