Question: Question 9 Suppose register %rax has the value 0x03, register %rdx has the value 0x05. Which one of the following best answers the question: What
Question 9

Suppose register %rax has the value 0x03, register %rdx has the value 0x05. Which one of the following best answers the question: What value is stored in register %rcx by the following instruction?
leaq 4(%rax,%rdx), %rcx
Question 9 options:
| 4 | |
| 8 | |
| 12 | |
| none of these |
Save
Question 10

| memory address | value | Register | Value |
| 0X100 | 0x05 | %rax | 0x100 |
| 0x108 | 0x0A | %rbx | 0x8 |
| 0x110 | 0x01 | %rcx | 0x2 |
| 0x118 | 0x02 | %rdx |
Assume values are stored in the indicated registers and memory locations as shown.
What value would be stored in %rcx after the instruction below?
movq 8(%rax,%rbx), %rcx
Question 10 options:
| 0x100 | |
| 0x108 | |
| 0x0A | |
| 0x55 | |
| none of these |
|
|
Save
Question 11

| memory address | value | Register | Value |
| 0X100 | 0x05 | %rax | 0x100 |
| 0x108 | 0x0A | %rbx | 0x8 |
| 0x110 | 0x01 | %rcx | 0x2 |
| 0x118 | 0x02 | %rdx |
Assume values are stored in the indicated registers and memory locations as shown.
What value would be stored in %rcx after the instruction below?
movq $0x3, %rcx
Question 11 options:
| 0x00 | |
| 0x02 | |
| 0x03 | |
| 0x08 | |
| none of these |
Save
Question 12

| memory address | value | Register | Value |
| 0X100 | 0x05 | %rax | 0x100 |
| 0x108 | 0x0A | %rbx | 0x8 |
| 0x110 | 0x01 | %rcx | 0x2 |
| 0x118 | 0x02 | %rdx |
Assume values are stored in the indicated registers and memory locations as shown.
What value would be stored in %rcx after the instruction below?
salq $2,%rcx
Question 12 options:
| 0x0 | |
| 0x02 | |
| 0x04 | |
| 0x08 | |
| none of these |
Save
Question 13

| memory address | value | Register | Value |
| 0X100 | 0x05 | %rax | 0x100 |
| 0x108 | 0x0A | %rbx | 0x8 |
| 0x110 | 0x01 | %rcx | 0x2 |
| 0x118 | 0x02 | %rdx |
Assume values are stored in the indicated registers and memory locations as shown.
What value would be stored in %rcx after the instruction below?
movq 8(%rax), %rcx
Question 13 options:
| 0x100 | |
| 0x108 | |
| 0x0A | |
| 0x55 | |
| none of these |
Save
Question 14

| memory address | value | Register | Value |
| 0X100 | 0x05 | %rax | 0x100 |
| 0x108 | 0x0A | %rbx | 0x8 |
| 0x110 | 0x01 | %rcx | 0x2 |
| 0x118 | 0x02 | %rdx |
Assume values are stored in the indicated registers and memory locations as shown.
What value would be stored in %rcx after the instruction below?
xorq %rcx,%rcx
Question 14 options:
| 0x00 | |
| 0x01 | |
| 0x02 | |
| 0x55 | |
| none of these |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

View hint for Question 10