Question: Need in c++. Using visual studio 2) Modify your program so that it calculates the following expression using associated registers.A = (A + B) (C
Need in c++. Using visual studio
2) Modify your program so that it calculates the following expression using associated registers.A = (A + B) (C + D)You will use EAX for A, EBX for B, etc.Initialize these values with symbolic constants in hexadecimal. Make A = 23, B = 42, C = 91, and D = 12.To do this, you need to move the integer values into the associated registers, and then use the ADD and SUB instructions(and please follow the order of operations).Now another one: A = C -(A + (C 13) + B) + (B + 24)Make sure that you are seeing the expected results, then continue to part 3.
3) View the listing file for your project. Your project must be configured to output listing files for this to work. (Refer back to the Kip Irvine site if you do not see your listing file.)The listing file is in your project directory by default, but can be configured to save wherever is convenient. This file is another debugging tool. Right now, it will not be entirely clear why itis useful, but read over the file and try to see what it is saying.
4) Return to the program and use the LOOP instruction to complete the following. (Reset EAX to 0 before each step):
a)Create a loop that increments EAX 42 times.
b)Create a loop that will add an incrementing value into EAX. That is, EAX should start at 0. Add 1, then add 2, then 3, 4... 100 times. (You can use other registers, but the result should be stored in EAX).
c)Create a loop that will double EAX 10 times (starting at 1, then 2, 4, 8...).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
