Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 7 Read the instructions carefully to allow you to fill in the table correctly. Register values: Register 64-bit Contents %rax 0x100 %rsi 0x1 %rdi

QUESTION 7

  1. Read the instructions carefully to allow you to fill in the table correctly.

    Register values:

    Register 64-bit Contents
    %rax 0x100
    %rsi 0x1
    %rdi 0x4

    Relevant area of Memory

    Address 32-bit contents
    0x100 0x70
    0x108 0x80
    0x110 0x42
    0x118 0xcc
    0x120 0x100

    Values are decimal unless preceded by 0x. The movq instruction moves 64 bits of data from the given source to the given destination. For each instruction below, indicate what is updated (if register, give name including %. If memory, give as M[address], where address is in hex - M[0x2] is an example) and ,what the new value is. Treat each instruction independently - this is not a sequence of instructions.

    Instruction What changed? New Value
    movq $0x1cc, %rax
    movq $0x1cc, (%rax)
    movq $0x99, 8(%rax)
    movq %rdi, (%rax,%rdi,2)
    movq 16(%rax), %rdi
    movq (%rax,%rsi,8), %rax
    movq 16(%rax,%rdi,2), %rsi
    movq %rdi, 16(%rax,%rax,2)

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

What partnerships is your firm currently engaged in?

Answered: 1 week ago

Question

Write a Java Program that calculates G7 in Gray Code.

Answered: 1 week ago