Question: Write an assembly program to compute the following expressions - Create a DWORD array named z of size 3 using DUP operator. Leave the array
Write an assembly program to compute the following expressions
Create a DWORD array named z of size using DUP operator. Leave the array z uninitialized.
You can denote the items in the array as z z z where z is the first item, z is the second item,
z is the third item
Update each array item using the following expressions.
z x y r
z zy r
z zz y
Where x y r are bit integer memory variables.
x y r
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
