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

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!