Assembly language

kings12
ProgramNumber01Chapter03.docx

CS 245 01

Programming Assignment 01

Chapter 03

10 Points

Name _____________________________________

Due: Tuesday, February 26, 2019

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.

Be sure to start with the Visual Studio console32 project located in the I:\kopp\outbox\CS 245 01\Start Files folder. Do NOT delete any code above the .DATA line.

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.

5. Turn in this sheet as page 1, the source code and the essay explaining the registers and memory as stated above.