Question: PLEASE USE ASSEMBLY LANGUAGE. Thank you (5 points) Write an assembly program to compute the following expressions Create a DWORD array named 'z' of size

 PLEASE USE ASSEMBLY LANGUAGE. Thank you (5 points) Write an assembly

PLEASE USE ASSEMBLY LANGUAGE. Thank you

(5 points) Write an assembly program to compute the following expressions Create a DWORD array named 'z' of size 3 using DUP operator. Leave the array zuninitialized. You can denote the items in the array as [20,21,22], where Zo is the first item, 21 is the second item, 22 is the third item Update each array item using the following expressions. Zo = x + 130 21 = y + x - 20 22 = r + x - 13 - 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). - If you code correctly, Zo = 140 in decimal, 21 = -115 in decimal, Z2 = 1 in decimal - Use the debugger to verify your answer. o 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) (5 points) Write an assembly program to compute the following expressions Create a DWORD array named 'z' of size 3 using DUP operator. Leave the array zuninitialized. You can denote the items in the array as [20,21,22], where Zo is the first item, 21 is the second item, 22 is the third item Update each array item using the following expressions. Zo = x + 130 21 = y + x - 20 22 = r + x - 13 - 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). - If you code correctly, Zo = 140 in decimal, 21 = -115 in decimal, Z2 = 1 in decimal - Use the debugger to verify your answer. o 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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!