Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

image text in transcribed

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

image text in transcribedView hint for Question 10

Save

Question 11

image text in transcribed

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

image text in transcribed

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

image text in transcribed

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

explain what is meant by the terms unitarism and pluralism

Answered: 1 week ago