Download ECGR 3183 Lab 1: Creating a Number Multiplier Program in LC-3 Assembly Language and more Lab Reports Computer Architecture and Organization in PDF only on Docsity! ECGR3183 โ Lab 1 1 ECGR 3183 - Fall 2004: Lab 3 Subroutines โ Due 10/22/2004 Learning Objectives This lab will require you to use subroutines to enter in two numbers from the keyboard and multiply them together. Prerequisites You should be familiar with the following concepts: - With basic programming skills and also be familiar with assembly language. - Performing basic logical operations on numbers (x AND y, x OR y, NOT z, etc.) - Completed Lab 2 successfully. Prelab Assignment Write a flowchart or pseudocode of the lab solution. You must turn this in to the TA by the end of class on October 18. Keep a copy for yourself. Laboratory Assignment You are required to write code which will print a message on the screen to enter two numbers to multiply. Multiply these numbers together and display the results on the screen. Cease the program when the number zero is entered. Also, you must identify when there is overflow. Negative numbers will not be entered. An example of the console display would be (bold/italic characters are user inputs): Welcome to the ECGR 3183 multiplier problem-solver. This program will multiply two numbers you enter and display the result. Enter the first number, then type the enter key. Type zero (โ0โ) and enter to end: 234 Enter the second number, then type the enter key. Type zero (โ0โ) and enter to end: 90 The product is: 21060 Enter the first number, then type the enter key. Type zero (โ0โ) and enter to end: 0 Thanks for using the ECGR 3183 multiplier problem-solver! Steps 1. Build your program slowly, testing along the way. Solve each requirement one at a time. Make sure comments are written as you progress. 2. Continue to build and test the program until all of the requirements have been met. Did we mention you should write your comments as you progress, not at the end? 3. If you run into problems, use the break point functionality of LC-3 to step through the code until you find the problem. Once all the requirements have been met ensure that everything works. 4. Demonstrate the working program to your TA or professor. 5. Finish lab write-up and turn in your report as a print out. Also, email the code to the lab TA.