Question: Assembly x86 problem. 1. Ask the user to enter 4 numbers. For this, display a message like this: Please enter 4 numbers. Store them in
Assembly x86 problem.
1. Ask the user to enter 4 numbers. For this, display a message like this: Please enter 4 numbers. Store them in different variables.
2. Swap the last two numbers. In other words, use the "mov" instruction to place the third number in the fourth variable and the fourth number in the third variable. Display them to the screen with a messages like this: "After swapping, the third variable value is: " and display the variable. Display the fourth variable in a similar way.
3. Subtract the first number from the sum of the last three numbers. Display the result with a message like "The difference between the last three numbers and the first is " and then display the difference.
Create spaces, new lines, messages, etc. so that the user of your program understands what is going on.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
