Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

    Register values:

    Register64-bit Contents
    %rax0x100
    %rsi0x1
    %rdi0x4

    Relevant area of Memory

    Address32-bit contents
    0x1000x70
    0x1080x80
    0x1100x42
    0x1180xcc
    0x1200x100

    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.

    InstructionWhat 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

3.31 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

Solution Answer by using the given data sduing this we are Poroblem By fermula usin... 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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Organizations Behavior, Structure, Processes

Authors: Gibson, Ivancevich, Donnelly, Konopaske

14th Edition

978-0-07-81126, 9780077470289, 78112664, 0-07-811266-4, 77470281, 978-0078112669

More Books

Students also viewed these Organizational Behavior questions

Question

What factors contribute to distortions in memory?

Answered: 1 week ago