* File: count_b.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 bra Main ; Creates an infinite loop * * Note: Even though port B is an output, the 'inc $1004' reads * port B value, increments it, then writes the value back. * This is common behavior for output registers of the HC11, * and is a real useful feature! * end-of-file