Simon Programs:
5-bit Counter

Description: The 5 output lamps display an incrementing count.

This program provides an example of the use of a looped tape. When running this program in the simulation, the LOOP switch should be enabled.

Input: None.
Output: An incrementing count is displayed on the output lamps. Note that the display lamps will show out-of-sequence intermediate values due to the slow execution rate.
Written by: bhilpert (2006 Sep)
Assembled:
Ref  Tape      Assembly
---  --------  --------------------------------------------------
                            / LOOP this tape!
000: 18.01.00  CR1=1        / constant 1
001: 09.00.0D  CR2=OR1
002: 1B.00.00  ADD          / add 1 to bits 1,2
003: 0D.00.0C  OR1=CR5

004: 18.00.00  CR1=0
005: 09.00.0E  CR2=OR2
006: 1B.08.00  ADC          / add carry to bits 3,4
007: 0E.00.0C  OR2=CR5

008: 09.00.0F  CR2=OR3
009: 1B.08.00  ADC          / add carry to bits 5,6
010: 0F.00.0C  OR3=CR5



  Programs
Simon
bhilpert
2006 Sep