Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

ECGR 3183 Lab 1: Creating a Number Multiplier Program in LC-3 Assembly Language, Lab Reports of Computer Architecture and Organization

The requirements and instructions for lab 1 of ecgr 3183, a fall 2004 university course. Students are tasked with writing a program in lc-3 assembly language that multiplies two numbers entered by the user. Learning objectives, prerequisites, a prelab assignment, and detailed steps to complete the lab. Students must use subroutines, ensure proper input validation, and handle number overflow.

Typology: Lab Reports

Pre 2010

Uploaded on 07/28/2009

koofers-user-6t1
koofers-user-6t1 ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

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.
Docsity logo



Copyright ยฉ 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved