The Simulator project

The Simulator project - The Simulator project Assignment 1...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
The Simulator project
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Assignment 1 Create a subroutine for delay between the individual diplays in the assignment. Use a BSR instruction for this. First, attach a 7-segment display to Port B Then write code to light up each of the individual segments of the display with a delay between each. Then write code to activate the segments such that the display shows 0, 1, 2, 3, 4, 5,
Background image of page 2
Detail on the use of BSR BSR stands for Branch to Subroutine All that is stacked on a BSR is the Program Counter. If you want to save any other register, you need to do it. Convention is to stack (and then restore before return) any registers that your routine uses.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/01/2012 for the course ECE 265 taught by Professor N /a during the Spring '08 term at Ohio State.

Page1 / 7

The Simulator project - The Simulator project Assignment 1...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online