Skip to content

Commit b35a239

Browse files
committed
More patterns for the light show.
1 parent f1b3550 commit b35a239

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/lars/lites.80

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,52 @@ SAIL0: ROT A,-1
116116
COCALL ? COCALL ? COCALL
117117
JRST SAIL0
118118

119+
BOUNCE: MOVEI A,1 ;One lamp bouncing back and forth.
120+
BOUNC0: COCALL
121+
LSH A,1
122+
JUMPE A,BOUNC1
123+
JRST BOUNC0
124+
BOUNC1: HRLZI A,200000
125+
BOUNC2: COCALL
126+
LSH A,-1
127+
JUMPE A,BOUNCE
128+
JRST BOUNC2
129+
130+
BREATH: MOVEI A,0 ;"Breathing" lights.
131+
HRLZI B,1
132+
MOVEI C,400000
133+
BREAT0: XOR A,B
134+
XOR A,C
135+
COCALL
136+
ROT B,1
137+
ROT C,-1
138+
JRST BREAT0
139+
140+
GROW: MOVEI A,0 ;Growing from side to side.
141+
MOVEI B,1
142+
COCALL
143+
GROW0: OR A,B
144+
LSH B,1
145+
COCALL
146+
CAME A,[-1]
147+
JRST GROW0
148+
MOVEI A,0
149+
HRLZI B,(SETZ)
150+
COCALL
151+
GROW1: OR A,B
152+
LSH B,-1
153+
COCALL
154+
CAME A,[-1]
155+
JRST GROW1
156+
JRST GROW
157+
119158
PATRNS: COUNTER
120159
ROT777
121160
RANDOM
122161
SAIL
162+
BOUNCE
163+
BREATH
164+
GROW
123165
PATRNE:
124166

125167
PATRN: PATRNE

0 commit comments

Comments
 (0)