Docsity

Introduction to Microprocessors: Homework #4 - Binary Addition and Multiplication - Prof. , Assignments of Microprocessors

Toggle sidebar
bg1
ETEE 2213: Introduction to Microprocessors
Last Updated: February 2008
ETEE 2213
Introduction to Microprocessors
Homework #4: Binary Addition
Objective:
To become familiar with the Atmega128 Instruction Set and AVR assembly language
programming.
Assignment:
Part 1:
Write an assembly language program to add any 10 binary numbers. Get the numbers from the
first 10 addresses in Data Space. Output the lower byte of the result to Port B and the high byte
of the result to Port C.
Part 2:
Write an assembly language program to multiply any two unsigned binary numbers. Get the
numbers from the first 2 addresses in Data Space. Output the lower byte of the result to Port B
and the high byte of the result to Port C.
Report:
Submit a Word Document that contains the following:
1. The list file for each of your programs.
2. A screen shot showing:
a. Port B and Port C after the results have been output
b. Data Space (and the numbers used by each program)

Partial preview of the text

Download Introduction to Microprocessors: Homework #4 - Binary Addition and Multiplication - Prof. and more Assignments Microprocessors in PDF only on Docsity!

ETEE 2213: Introduction to Microprocessors

Last Updated: February 2008

ETEE 2213

Introduction to Microprocessors

Homework #4: Binary Addition

Objective: To become familiar with the Atmega128 Instruction Set and AVR assembly language programming.

Assignment: Part 1: Write an assembly language program to add any 10 binary numbers. Get the numbers from the first 10 addresses in Data Space. Output the lower byte of the result to Port B and the high byte of the result to Port C.

Part 2: Write an assembly language program to multiply any two unsigned binary numbers. Get the numbers from the first 2 addresses in Data Space. Output the lower byte of the result to Port B and the high byte of the result to Port C.

Report: Submit a Word Document that contains the following:

  1. The list file for each of your programs.
  2. A screen shot showing: a. Port B and Port C after the results have been output b. Data Space (and the numbers used by each program)