Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly question, please help! QUESTION 7 Read the instructions carefully to allow you to fill in the table correctly Register values: Register 64-bit Contents %rax

Assembly question, please help!

image text in transcribed

QUESTION 7 Read the instructions carefully to allow you to fill in the table correctly Register values: Register 64-bit Contents %rax 10x100 %rsi 10x1 %rdi 10x4 Relevant area of Memory Address 32-bit contents 0x100 0x70 10x104 -10x80 x42 0x108 0x10C0xcc 0x110 100 Values are decimal unless preceded by 0x. The movl instruction moves 32 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 Maddress], 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. New Value Instruction t changed? movl 0x1 cc, %rax movl 0x1 cc (% rax) movl 0x99, 8(% rax) movl %rdi,(%rax,%rdi) movl 16(%rax), %rdi movl (%rax, %rsi,8),%rax movl 41%rax,%rdi,2),%rsi movl %rdi,16(%rax, %rax,2) QUESTION 7 Read the instructions carefully to allow you to fill in the table correctly Register values: Register 64-bit Contents %rax 10x100 %rsi 10x1 %rdi 10x4 Relevant area of Memory Address 32-bit contents 0x100 0x70 10x104 -10x80 x42 0x108 0x10C0xcc 0x110 100 Values are decimal unless preceded by 0x. The movl instruction moves 32 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 Maddress], 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. New Value Instruction t changed? movl 0x1 cc, %rax movl 0x1 cc (% rax) movl 0x99, 8(% rax) movl %rdi,(%rax,%rdi) movl 16(%rax), %rdi movl (%rax, %rsi,8),%rax movl 41%rax,%rdi,2),%rsi movl %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

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions