Microprocessors - Project 1 - Spring 2004 | REC 475, Study Guides, Projects, Research of Microprocessors

Material Type: Project; University: San Diego State University; Term: Spring 2004;

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 03/28/2010

koofers-user-f5n
koofers-user-f5n 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Spring 2004
CompE 475 – Microprocessors
PROJECT # 1
Due: Wednesday February 18, 2004. Possible Score = 25 points
Notes:
1. For the programming example you will need to submit your code as a printout (source file only)
as well as a zipped email attachment (source and executable files zipped as <your_name>.zip)
Programming Problem:
Write a mixed C/C++/assembly program that performs the tasks listed below. In a mixed program the
C/C++ constructs can be used only for variable declarations, I/O services such as accepting data and
displaying results only. All the code should otherwise be written in Assembly language. You are
encouraged to make your program modular using procedures for both user interaction and arithmetic
computations. Document your steps clearly using explicit comments
Prompts the user to enter 1st integer number
Accepts the number from keyboard with echo
Prompts the user to enter 2nd integer number
Accepts the number from keyboard with echo
Computes the addition, subtraction, multiplication and division of the two numbers
Displays the computed results as decimal numbers (dd) and HEX numbers (xx), e.g
ADD result = dddd xxxx
SUBTRACTION result = dddd xxxx
MULTIPLICATION result = dddd xxxx
DIVISION result – Quotient = dddd xxxx
DIVISION result – Remainder = dddd xxxx

Partial preview of the text

Download Microprocessors - Project 1 - Spring 2004 | REC 475 and more Study Guides, Projects, Research Microprocessors in PDF only on Docsity!

Spring 2004

CompE 475 – Microprocessors

PROJECT # 1

Due: Wednesday February 18, 2004. Possible Score = 25 points

Notes:

  1. For the programming example you will need to submit your code as a printout ( source file only) as well as a zipped email attachment ( source and executable files zipped as <your_name>.zip)

Programming Problem:

Write a mixed C/C++/assembly program that performs the tasks listed below. In a mixed program the C/C++ constructs can be used only for variable declarations, I/O services such as accepting data and displaying results only. All the code should otherwise be written in Assembly language. You are encouraged to make your program modular using procedures for both user interaction and arithmetic computations. Document your steps clearly using explicit comments

  • Prompts the user to enter 1 st^ integer number
  • Accepts the number from keyboard with echo
  • Prompts the user to enter 2 nd^ integer number
  • Accepts the number from keyboard with echo
  • Computes the addition, subtraction, multiplication and division of the two numbers
  • Displays the computed results as decimal numbers (dd) and HEX numbers (xx), e.g ADD result = dddd xxxx SUBTRACTION result = dddd xxxx MULTIPLICATION result = dddd xxxx DIVISION result – Quotient = dddd xxxx DIVISION result – Remainder = dddd xxxx