Programming
programming assignment

Question Description

I need support with this Programming question so I can learn better.

Modify the sample program located on page 40 to add two numbers stored in memory at number1 and number2. (Hint: Copy number1 to EAX and then use add eax, number2 to add the second number.) Continue to store the total in memory at sum. Assemble, link and execute the program. Explain the changes that are displayed in registers and memory after execution of each instruction. THIS MUST BE A DETAILED EXPLAINATION. IT IS WORTH 5 OF THE 10 POINTS.

Unformatted Attachment Preview

CS 245 01 Programming Assignment 01 Chapter 03 10 Points Due: Tuesday, February 21, 2017 Modify the sample program located on page 40 to add two numbers stored in memory at number1 and number2. (Hint: Copy number1 to EAX and then use add eax, number2 to add the second number.) Continue to store the total in memory at sum. Assemble, link and execute the program. Explain the changes that are displayed in registers and memory after execution of each instruction. THIS MUST BE A DETAILED EXPLAINATION. IT IS WORTH 5 OF THE 10 POINTS. Add the following comments to the beginning of the program. Name: Your Name Class and Section: CS 245 01 Assignment: Program Assignment 01 Due Date: See above Date Turned in: Program Description: You write a short description of what the program will do When you complete the program, do the following. 1. Create a folder with the following name: Assignment01 2. Copy and paste your program into Notepad or Notepad++ and save it to the folder with a .txt extension. 3. Copy the folder to your folder in the I:\kopp\inbox\CS 245 01 folder 4. Print a copy of the source code and turn it in. Extra Credit – 5 points Modify the program above to subtract 1000 from the value you have after adding number1 and number2. (Hint: you need to do this after to store the total into sum so you don’t lose that value before you subtract.) Store this new value in memory at diff. Assemble, link and execute the program. Explain the changes that are displayed in registers and memory after execution of each instruction. THIS MUST BE A DETAILED EXPLAINATION. ...
Purchase answer to see full attachment
Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

At...

nicholasKim (1183)
Cornell University

Anonymous
I was on a very tight deadline but thanks to Studypool I was able to deliver my assignment on time.

Anonymous
The tutor was pretty knowledgeable, efficient and polite. Great service!

Anonymous
I did not know how to approach this question, Studypool helped me a lot.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4