This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Main Program Set Stack Pointer Set Data Direction of Ports B & H Load Port H into A Compare to #%10000000 Not Equal To Zero? Point Y to Sequence 0 Load B with length (#$04) Branch Always To Display Compare to #%01000000 Not Equal To Zero? Point Y to Sequence 1 Load B with length (#$04) Branch Always To Display Compare to #%00100000 Not Equal To Zero? Point Y to Sequence 2 Load B with length (#$04) Branch Always To Display no yes no yes no yes etc. INIT Compare to #%00000001 Not Equal To Zero? Point Y to Sequence 7 Load B with length (#$0C) Branch Always To INIT no yes Clear Port B Branch Always To Display Display Load data at Y into A Store A into Port B Load X with speed constant Jump to Delay subroutine Increment Y Decrement B B = 0? Branch Always To INIT no yes Delay Subroutine Load A with $2E (constant for 10X ms delay) Decrement A A = 0? no Do 2 NOPs to even out overhead Decrement X X = 0? no Return yes yes...
View Full Document
This note was uploaded on 04/11/2008 for the course ECE 2325 taught by Professor Fernandorios-guiterrez during the Fall '06 term at University of Minnesota Duluth.
- Fall '06
- Assembly Language