Create a DWORD array named ʻz’ of size 3 using DUP operator. Leave the array ʻz’ uninitialized. You can denote the items in the array as [zo, z,, z2], where z, is the first item, z, is the second item, z, is the third item Update each array item using the following expressions. Zo = x + 130 Z1 = y – x + Zo Z2 = r +x – Z1 - Where x, y, r are 16-bit integer memory variables. - x= 10, y= 15, r=4 Use mov, movzx, movsx, add, sub instructions only. (hint: Do not alter the value of x, y and r during the computation. Transfer them to appropriate registers to do computation) - At the end, open memory window to see the variable z stored in memory (little endian format). - Use the debugger to verify your answer. Submit the following: Rename the asm file using your last name as Lastname1.asm Screenshot of the code and memory window showing the content of the variable z (little endian format).
Create a DWORD array named ʻz’ of size 3 using DUP operator. Leave the array ʻz’ uninitialized. You can denote the items in the array as [zo, z,, z2], where z, is the first item, z, is the second item, z, is the third item Update each array item using the following expressions. Zo = x + 130 Z1 = y – x + Zo Z2 = r +x – Z1 - Where x, y, r are 16-bit integer memory variables. - x= 10, y= 15, r=4 Use mov, movzx, movsx, add, sub instructions only. (hint: Do not alter the value of x, y and r during the computation. Transfer them to appropriate registers to do computation) - At the end, open memory window to see the variable z stored in memory (little endian format). - Use the debugger to verify your answer. Submit the following: Rename the asm file using your last name as Lastname1.asm Screenshot of the code and memory window showing the content of the variable z (little endian format).
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
Related questions
Question
![Create a DWORD array named 'z’ of size 3 using DUP operator. Leave the array 'z' uninitialized.
You can denote the items in the array as [Zo, z1, z2], where z, is the first item, z, is the second item,
z, is the third item
Update each array item using the following expressions.
Ζox+ 130
Z13 у — х + Zo
Z2 = r + x – Z1
Where x, y, r are 16-bit integer memory variables.
x = 10, y= 15, r=4
Use mov, movzx, movsx, add, sub instructions only.
(hint: Do not alter the value of x, y and r during the computation. Transfer them to appropriate registers to do
computation)
At the end, open memory window to see the variable z stored in memory (little endian format).
Use the debugger to verify your answer.
Submit the following:
Rename the asm file using your last name as Lastnamel.asm
Screenshot of the code and memory window showing the content of the variable z (little endian
format).](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F994cfcbc-aca6-40c5-8f23-acad6149057f%2Fb3d717f8-73d9-4cb9-b446-2521460f6375%2Fk1kt7qn_processed.png&w=3840&q=75)
Transcribed Image Text:Create a DWORD array named 'z’ of size 3 using DUP operator. Leave the array 'z' uninitialized.
You can denote the items in the array as [Zo, z1, z2], where z, is the first item, z, is the second item,
z, is the third item
Update each array item using the following expressions.
Ζox+ 130
Z13 у — х + Zo
Z2 = r + x – Z1
Where x, y, r are 16-bit integer memory variables.
x = 10, y= 15, r=4
Use mov, movzx, movsx, add, sub instructions only.
(hint: Do not alter the value of x, y and r during the computation. Transfer them to appropriate registers to do
computation)
At the end, open memory window to see the variable z stored in memory (little endian format).
Use the debugger to verify your answer.
Submit the following:
Rename the asm file using your last name as Lastnamel.asm
Screenshot of the code and memory window showing the content of the variable z (little endian
format).
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,