Question
Write an Assembly Language console32 program. 1. Initialize three integers in memory, named number1, number2, and number3. Give them the values 2, 3, and 4
Write an Assembly Language console32 program.
1. Initialize three integers in memory, named number1, number2, and number3. Give them the values 2, 3, and 4 respectively. Do this in the DATA section of your program.
2. Then, beginning in the CODE section, shift the values in the three registers so that the value in number2 moves to number1, the value in number3 moves to number2, and the value in number1 moves to number3.
3. Next, add number1 and number2, storing the sum back in number1.
4. Then subtract number3 from number2, storing the difference back in number3. (The mnemonic is sub). Then add 47 to number2.
4.Finally add number1 , number2, and number3 together, leaving the sum in EAX.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started