Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[Integer Expression Calculation with data definitions] Continue with the lab exercise, write a program that calculates the following expression: SUM =(A+B)(C+D). Define five (sum, valueA,
[Integer Expression Calculation with data definitions] Continue with the lab exercise, write a program that calculates the following expression: SUM =(A+B)(C+D). Define five (sum, valueA, valueB, valueC, valueD) 32-bit unsigned variables and, five (ssum, svalueA, svalueB, svalueC, svalueD) 32-bit signed integer variables. The Variable sum (ssum) will be assigned the result at the end of program. Other variables will be replaced with the following values. 1. Case 1: A=1000,B=500,C=450,D=100 2. Case 2: A=2000,B=100,C=1000,D=500 3. Case 3:A=1000,B=300,C=2000,D=500 **At most ONE memory operand can be used in the ADD, SUB, and MOV instructions. In order to perform the calculation correctly, use the general-purpose registers (EAX, EBX, ECX, EDX) in the instructions if necessary. Catch the screenshots from running in debugger mode to identify the values saved in each variable (total 10 variables). and register are correct after the end of the program. Also how a variable/register represent a negative number, is it correct? Generate a listing file for the program. Write a description (100 150 words in the beginning of the listing file) of the machine code bytes generated from two instructions, and data/code memory addressing. (you may open the listing file with any text editor.) Besides adding the description in the listing file, don't change any content in the listing file. Sample screenshots: Vatch 1 Add item to watch
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