#
# TEST PROGRAM
#

# INSTR   IR15 IR14 IR13 IR12 IR11 IR10 IR09 IR08 
# MOVE    0    0    0    0    X    X    X    X   
# ADD     0    0    0    1    X    X    X    X   
# SUB     0    0    1    0    X    X    X    X   
# AND     0    0    1    1    X    X    X    X   
# LOAD    0    1    0    0    X    X    X    X   
# STORE   0    1    0    1    X    X    X    X   
# JUMPU   1    0    0    0    X    X    X    X   
# JUMPZ   1    0    0    1    X    X    X    X   
# JUMPNZ  1    0    1    0    X    X    X    X   
 
# ACC BIT TEST
# ------------
 
move   0x00
move   0x01
move   0x02
move   0x04
move   0x08
move   0x10
move   0x20
move   0x40
move   0x80
move   0x40
move   0x20
move   0x10
move   0x08
move   0x04
move   0x02
move   0x01

# ADD TEST
# --------

add    0xFF 
add    0xF0
add    0x0F 
add    0x01

# SUB TEST
# --------

sub    0x01
sub    0xF0
sub    0x0F 
sub    0x01 
sub    0x01
add    0x01
sub    0x02
add    0x02
sub    0x04
add    0x04
sub    0x08
add    0x08

sub    0x10
add    0x10
sub    0x20
add    0x20
sub    0x40
add    0x40
sub    0x80
add    0x80

# AND TEST
# --------

and    0x7F
and    0x3F
and    0x1F
and    0x0F
and    0x07
and    0x03
and    0x01
and    0x00

# LOAD / STORE TEST
# -----------------

move   0x01
store  0x10
move   0x02
store  0x11
move   0x04
store  0x12
move   0x08
store  0x13
move   0x10
store  0x14
move   0x20
store  0x15
move   0x40
store  0x16
move   0x80
store  0x17

load   0x10
load   0x11
load   0x12
load   0x13
load   0x14
load   0x15
load   0x16
load   0x17

# GPIO TEST
# ---------

move   0x01
store  0xFF
move   0x02
store  0xFF
move   0x04
store  0xFF
move   0x08
store  0xFF
move   0x10
store  0xFF
move   0x20
store  0xFF
move   0x40
store  0xFF
move   0x80
store  0xFF

# JUMP TEST
# ---------

move   0x00 
move   0x0F

move   0x01
jumpNZ  94
move   0x0F

move   0x00 
jumpNZ  97
jump   98
move   0x0F

move   0x01
jumpZ  101
jump   102
move   0x0F

move   0x00
jump   0











