Gordons Projects

--> Projects Top-Level GIT

Initial commit into GIT
[cesil] / row0.csl
1 # Example program to light the bottom
2 #       row with RED lights
3
4         tree            # Make a tree!
5
6         load    0
7         row             # Row 0 - Bottom
8         load    7       # Count 7 to zero
9 loop:
10         store   col-count
11         col
12         load    12      # Red
13         colour
14         load    col-count
15         sub     1
16         jineg   done    # Jump If Negative
17         jump    loop
18
19 done:   wait    1       # Update the lights
20         halt