* File: count_b_slow.asm * Author: Tom Dickens * Date: 6/6/1997 * Processor Type: 68HC11E1 * * Purpose: To output an 8-bit binary count on the * B port of the HC11. * ORG $B600 ; start of EEPROM clr $1004 ; Clears port B to $00 Main inc $1004 ; Adds 1 to port B ldx #$4000 ; Setup the delay timing Delay dex ; X = X - 1 bne Delay ; if X != 0, loop bra Main ; Creates an infinite loop * end-of-file