Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Integer Expression Calculation( 15 pts) Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using
1. Integer Expression Calculation( 15 pts) Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) - (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. Note: you can hard code integer literal onto the registers, e.g. moveax,55 Proof of your solution and testing, required: To show the operation of your program and to verify the calculation results, you should use the procedures WriteString and Writelnt to display the result. See Example 3 & 5 in the text, or the PowerPoint here in Canvas, on how to call these two procedures(Hint: you have to find out which register is for storing parameter value). Make sure the library file Irvine 32.inc is included on top of your code; this.inc file includes WriteString and Writelnt, and more. Without integrating the calls to these procedures to output the result onto the console, you will not earn full credit. In addition to the .asm file, please submit screen shots showing the successful Build and execution with correct result. See sample of each shown below: 1. Screen shot of successful Build: Output Show out from Build 1... Build started Project: Assignment 3, Configuration: Debug Win32 1Abling Interession integer_gressions (13): warning 11: wultiple CDEL directives found : DEL grored 1>LINK Ci Versyal Documents Dad College Teachi 36 All Solutions CES 21 Debug Assignment we not found or not built by the last incremental performing full link 1sAssignment 3.vcprej -> C:\Users'yaula Documents ad College Teach All Solutions CES 21 Debug Assignment 3.exe 1>Done building project Assigt .proj". - Mild: 1 succeeded, failed, up-to-date, skipped Ready + Add to Source Control 2. Screen shot of successful execution: A Microsoft Visual Studio Debug Console or A - 55, B = 66, C = 99, D - 258 The result of integer expression (A + B) - (C + D) is : -236 ::\Users\yaula\Documents\Dad\College Teach\VS x86 asm\All Solutions\CIS 21JA\Debug Assignment 3.exe (process 8768) exite with code e. Press any key to close this window ... 1. Integer Expression Calculation( 15 pts) Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) - (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. Note: you can hard code integer literal onto the registers, e.g. moveax,55 Proof of your solution and testing, required: To show the operation of your program and to verify the calculation results, you should use the procedures WriteString and Writelnt to display the result. See Example 3 & 5 in the text, or the PowerPoint here in Canvas, on how to call these two procedures(Hint: you have to find out which register is for storing parameter value). Make sure the library file Irvine 32.inc is included on top of your code; this.inc file includes WriteString and Writelnt, and more. Without integrating the calls to these procedures to output the result onto the console, you will not earn full credit. In addition to the .asm file, please submit screen shots showing the successful Build and execution with correct result. See sample of each shown below: 1. Screen shot of successful Build: Output Show out from Build 1... Build started Project: Assignment 3, Configuration: Debug Win32 1Abling Interession integer_gressions (13): warning 11: wultiple CDEL directives found : DEL grored 1>LINK Ci Versyal Documents Dad College Teachi 36 All Solutions CES 21 Debug Assignment we not found or not built by the last incremental performing full link 1sAssignment 3.vcprej -> C:\Users'yaula Documents ad College Teach All Solutions CES 21 Debug Assignment 3.exe 1>Done building project Assigt .proj". - Mild: 1 succeeded, failed, up-to-date, skipped Ready + Add to Source Control 2. Screen shot of successful execution: A Microsoft Visual Studio Debug Console or A - 55, B = 66, C = 99, D - 258 The result of integer expression (A + B) - (C + D) is : -236 ::\Users\yaula\Documents\Dad\College Teach\VS x86 asm\All Solutions\CIS 21JA\Debug Assignment 3.exe (process 8768) exite with code e. Press any key to close this window
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