Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3- (20 pts) Write a program with a loop and indexed addressing that exchanges elements of a DWORD array with multiple of 3 number of

image text in transcribed

3- (20 pts) Write a program with a loop and indexed addressing that exchanges elements of a DWORD array with multiple of 3 number of elements (such as 3, 6, 9, ...) based on the following rule: First item will exchange with item 3, item 4 with 6, item 7 with 9 and so on. 4- (10 pts) Use the following variable definitions .data varl SBYTE -14, -12, 13, 10 var2 WORD 1200h, 2200h, 3200h, 4200h var3 SWORD -6, -22 var4 DWORD 11,12,13,14,15 What will be the value of the destination operand after each of the following instructions? Show your answers in Hexadecimal. execute in sequence mov edx, var4 movzx edx, [var2+4] mov edx, [var4+4] movsx edx, varl so 3- (20 pts) Write a program with a loop and indexed addressing that exchanges elements of a DWORD array with multiple of 3 number of elements (such as 3, 6, 9, ...) based on the following rule: First item will exchange with item 3, item 4 with 6, item 7 with 9 and so on. 4- (10 pts) Use the following variable definitions .data varl SBYTE -14, -12, 13, 10 var2 WORD 1200h, 2200h, 3200h, 4200h var3 SWORD -6, -22 var4 DWORD 11,12,13,14,15 What will be the value of the destination operand after each of the following instructions? Show your answers in Hexadecimal. execute in sequence mov edx, var4 movzx edx, [var2+4] mov edx, [var4+4] movsx edx, varl so

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_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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions