Question: Write a separate assembly language program using MS Visual Studio to calculate each of the following equations. You are only allowed to use registers within

Write a separate assembly language program using MS Visual Studio to calculate each of the following equations. You are only allowed to use registers within the CPU (this includes CUP registers, the general purpose registers, and the stack/s) for calculations. Variables are allowed only for the equations and to display the results as you cant reference any of the CPU registers in printf(). Use all that you have learned in class to effectively write your code. Used the code examples and the lecture notes to aid you in this task. Comment each line of ASM code as a hint to code execution.

Equations: - Select the values for A, B, C, and D 1) X = 3(A B) + 4C 2) Y = (D*C + 3) (A B) 3) Z = 10(2A + C) 2(B D)

4) Result = 1.5(3A/4 + 2D/5) + C ---------------- Optional ( advance question )

Chose your own values for A, B, and C. Show how your program handle negative number correctly. Use real numbers for your variables (extra points for floating point values)

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!