Simon Programs:
Test Bit Operations

Description: Test the three bit-wise functions of the ALU (AND, OR, NOT). Programmed halts are used to pause for display.
Input: None.
Output: Machine halts at appropriate points for observation of the output lamps, as per comments.
Written by: bhilpert (2006 Sep)
Assembled:
Ref  Tape      Assembly
---  --------  --------------------------------------------------
                            /    AND Test
000: 18.02.00  CR1=2        / 10
001: 19.00.00  CR2=0        / 00
002: 1B.04.00  AND
003: 0D.00.0C  OR1=CR5

004: 18.02.00  CR1=2        / 10
005: 19.03.00  CR2=3        / 11
006: 1B.04.00  AND
007: 0E.00.0C  OR2=CR5

008: 00.10.00  HLT          / halt for display: x1000

                            /     OR Test
009: 18.02.00  CR1=2        / 10
010: 19.00.00  CR2=0        / 00
011: 1B.06.00  OR
012: 0D.00.0C  OR1=CR5

013: 18.02.00  CR1=2        / 10
014: 19.03.00  CR2=3        / 11
015: 1B.06.00  OR
016: 0E.00.0C  OR2=CR5

017: 00.10.00  HLT          / halt for display: x1110

                            /     NOT Test
018: 18.02.00  CR1=2        / 10
019: 1B.05.00  NOT
020: 0D.00.0C  OR1=CR5      / display should be x1101



  Programs
Simon
bhilpert
2006 Sep