Home » Personal collection » Acorn ADFS disks » Electron » Games_1.ADF » Tetris/RUN_THIS

Tetris/RUN_THIS

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron » Games_1.ADF
Filename: Tetris/RUN_THIS
Read OK:
File size: 231E bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   10 REM TETRON
   20 REM by A. Houghton
   30 REM (c) Electron User
   40 ON ERROR MODE 6:REPORT:PRINT" at line ";ERL:END
   50 *FX229,1
   60 ENVELOPE 1,1,50,-20,10,4,10,10,126,0,0,-126,126,126
   70 VDU 23,224,56,69,65,57,5,69,56,0
   80 VDU 23,225,227,20,4,4,4,20,227,0
   90 VDU 23,226,207,40,40,47,42,41,200,0
  100 VDU 23,227,62,160,160,60,32,32,190,0
  110 DIM HN$(9),HS%(9):FOR N%=0 TO 9:HN$(N%)="Tony":NEXT
  120 FOR N%=1 TO 9:HS%(N%)=&A00-&100*N%:NEXT:HS%(0)=&1000
  130 PROCassem
  140 MODE 5:VDU 23,1,0;0;0;0;
  150 REPEAT:PROCtitle:IF INKEY-99 UNTIL TRUE ELSE PROCtable:PROCwait:UNTIL INKEY-99
  160 PROCskill
  170 !score=0:PROCscreen
  180 ?speed=235:?rate=?diff:CALL main
  190 COLOUR 128:COLOUR 2:PRINT TAB(1,20)"GAME"TAB(15,20)"OVER":TIME=0:REPEAT UNTIL TIME>400
  200 IF !score>HS%(9) PROCenter:GOTO 220
  210 PROCtable
  220 PROCwait:IF INKEY-99 GOTO 160 ELSE GOTO 150
  230 DEF PROCenter
  240 S%=0:REPEAT:S%=S%+1:UNTIL HS%(S%-1)<!score:S%=S%-1
  250 IF S%<9 PROCshift
  260 HN$(S%)="":HS%(S%)=!score
  270 PROCtable:VDU 23,1,1;0;0;0;31,10,S%*2+7:FOR N%=0 TO 3:VDU 19,N%,N%;0;:NEXT:COLOUR 2
  290 A%=0:X%=0:Y%=&52:!&5200=&20095280:?&5204=126:CALL &FFF1
  300 HN$(S%)=$&5280:VDU 23,1,0;0;0;0;:ENDPROC 
  310 DEF PROCshift:FOR M%=8 TO S%STEP -1
  320 HN$(M%+1)=HN$(M%):HS%(M%+1)=HS%(M%):NEXT:ENDPROC
  330 DEF PROCscreen:FOR N%=0 TO 3:VDU 19,N%,0;0;:NEXT:CLS
  340 CALL tetron
  350 GCOL 0,3:MOVE 444,828
  360 DRAW 444,60:DRAW 832,60:DRAW 832,828
  370 DRAW 848,828:DRAW 848,700:DRAW 860,700
  380 DRAW 860,32:DRAW 416,32:DRAW 416,700
  390 DRAW 428,700:DRAW 428,828:DRAW 444,828
  400 S%=!score:!score=HS%(0):PROCwindow(1):COLOUR 129:COLOUR 2:PRINT TAB(1,10)"HIGH"
  410 !s=&65D0:CALL high:!score=S%
  420 PROCwindow(15):VDU 31,15,10,224,225,226,227:CALL prscr
  430 FOR N%=0 TO 3:VDU 19,N%,N%;0;:NEXT
  440 ENDPROC
  450 DEF PROCwindow(X%):top%=704:bot%=636:left%=X%*64-8:right%=(X%+4)*64
  460 VDU 18,0,129,24,left%;bot%;right%;top%;16,26
  470 MOVE left%-8,top%+8:DRAW right%+8,top%+8
  480 MOVE right%+16,top%+4:DRAW right%+16,bot%-4
  490 MOVE right%+8,bot%-8:DRAW left%-8,bot%-8
  500 MOVE left%-16,bot%-4:DRAW left%-16,top%+4
  510 ENDPROC
  520 DEF PROCtable:FOR N%=0 TO 3:VDU 19,N%,0;0;:NEXT
  530 COLOUR 128:CLS:CALL tetron
  540 FOR N%=0 TO 9:COLOUR 1:IF N%=9 PRINT TAB(0,25)"10 "; ELSE PRINT TAB(1,N%*2+7);N%+1" ";
  550 COLOUR 3:PRINT RIGHT$("0000"+STR$~HS%(N%),5)"0 ";
  560 COLOUR 2:PRINT HN$(N%):NEXT:ENDPROC
  570 DEF PROCwait:COLOUR 1:PRINT TAB(0,31)"Press SPACE to play";
  580 FOR N%=0 TO 3:VDU 19,N%,N%;0;:NEXT:TIME=0:REPEAT UNTIL TIME>1200 OR INKEY-99:ENDPROC
  590 DEF PROCtitle:FOR N%=0 TO 3:VDU 19,N%,0;0;:NEXT:COLOUR 128:CLS:CALL tetron
  600 COLOUR 2:PRINT TAB(0,5)" Manipulate the"''"falling shapes to"''"form solid rows,"''"which disintegrate,"''"allowing everything"
  610 PRINT'"above to fall down."''" Stop the pile from"''"reaching the top."''" Higher skill level"''"means higher score."
  620 COLOUR 3:PRINT'TAB(5)"KEYS"TAB(5)"----"'TAB(5)"Z - Left"'TAB(5)"X - Right"'"RETURN - Rotate"
  630 PROCwait:ENDPROC
  640 DEF PROCskill:FOR N%=0 TO 3:VDU 19,N%,0;0;:NEXT:COLOUR 128:CLS
  650 CALL tetron
  660 COLOUR 3:PRINT TAB(2,10)"Enter Skill Level"''" (1=Easy .. 5=Hard)"
  670 PRINT''''"Level:";:FOR N%=0 TO 3:VDU 19,N%,N%;0;:NEXT
  690 REPEAT:A$=GET$:UNTIL A$>"0" AND A$<"6":PRINT A$
  700 ?skill=VAL A$:?hold=6-?skill:?diff=50*?hold
  710 TIME=0:REPEAT UNTIL TIME>100:ENDPROC
  720 DEF PROCassem:?&D00=&40
  730 RESTORE 1930
  740 FOR N%=&900 TO &937 STEP 4:READ A$:!N%=EVAL("&"+A$):NEXT
  750 FOR N%=&D80 TO &DE7 STEP 4:READ A$:!N%=EVAL("&"+A$):NEXT
  760 FOR N%=&940 TO &A60 STEP 16:READ A$
  770 FOR A%=1 TO 16:IF MID$(A$,A%,1)="1" N%?(A%-1)=&FF ELSE N%?(A%-1)=0
  780 NEXT:NEXT
  790 DIM addressl 19,addressh 19,orient 7
  800 FOR N%=0 TO 18:A%=&940+16*N%:addressl?N%=A% MOD 256:addressh?N%=A% DIV 256:NEXT
  810 FOR N%=0 TO 6:READ orient?N%:NEXT
  820 DIM ctabl 25,ctabh 25
  830 FOR N%=0 TO 24:A%=&5FD8+N%*&140:ctabl?N%=A%MOD256:ctabh?N%=A%DIV256:NEXT
  840 DIMcolr 7:FORN%=0TO6:READN%?colr:NEXT
  850 A%=&5000:FORN%=1TO48:READA$:FORM%=1TO6:?A%=VAL(MID$(A$,M%,1)):A%=A%+1:NEXT,
  860 s=&70:d=&72:shadr=&74:shadr2=&76
  870 IFINKEY-256=1 timer=&29F ELSEtimer=&2A0
  880 DIMQ%2000:FORP=0TO2STEP2:P%=Q%:[OPTP
  890 .calc:TXA:ASLA:ASLA:ASLA:CLC:ADCctabl,Y:STAs:LDActabh,Y:ADC#0:STAs+1:RTS
  900 .print:LDY#7:.l:LDA(d),Y:EOR(s),Y:STA(s),Y:DEY:BPLl:RTS
  910 .cx:BRK:.cy:BRK:.ty:BRK:.ptr:BRK
  920 .prshape:LDXx:LDYy:STYty:LDAcolour:ASLA:ASLA:ASLA:STAd:LDA#9:STAd+1
  930 LDA#0:STAptr:LDA#4:STAcy:.l1:LDA#4:STAcx
  940 .l2:LDYptr:LDA(shadr),Y:BEQblank:LDYty:JSRcalc:JSRprint
  950 .blank:INX:INCptr:DECcx:BNEl2
  960 DEX:DEX:DEX:DEX
  970 INCty:DECcy:BNEl1:RTS
  980 .shape:BRK:.colour:BRK:.rot:BRK:.x:BRK:.y:BRK:.rotl:BRK
  990 .appear:LDA#7:STA&2A:LDA#0:STA&2B:STA&2C:STA&2D:JSR&AF12:DEC&2A:LDA&2A:STAcolour
 1000 TAY:LDAcolr,Y:STAshape:TAY
 1010 LDAaddressl,Y:STAshadr:LDAaddressh,Y:STAshadr+1
 1020 LDA#0:STArot:LDA#6:STAx:LDA#0:STAy
 1030 LDYcolour:LDAorient,Y:STArotl:JMPprshape
 1040 .key:LDY#&FF:LDA#&81:JSR&FFF4:TYA:RTS
 1050 .manipulate:LDX#&B6:JSRkey:BEQntrot
 1060 LDYrot:INY:CPYrotl:BNEincrot:LDY#0
 1070 .incrot:STYtrot:LDYcolour:LDAcolr,Y:CLC:ADCtrot:STAtshp
 1080 TAY:LDAaddressl,Y:STAshadr2:LDAaddressh,Y:STAshadr2+1:LDAx:STAx2:LDAy:STAy2:JSRcomplex:LDAstuck:BNEntright
 1090 LDAshadr2:STAshadr:LDAshadr2+1:STAshadr+1:LDAtshp:STAshape:LDAtrot:STArot:JMPprshape
 1100 .ntrot:LDX#&9E:JSRkey:BEQntleft
 1110 LDXx:DEX:STXx2:JMPmove
 1120 .ntleft:LDX#&BD:JSRkey:BEQntright
 1130 LDXx:INX:STXx2
 1140 .move:LDAy:STAy2:LDAshadr:STAshadr2:LDAshadr+1:STAshadr2+1:JSRcomplex:LDAstuck:BNEntright
 1150 LDAx2:STAx
 1160 .ntright:JMPprshape
 1170 .trot:BRK:.tshp:BRK:.x2:BRK:.y2:BRK
 1180 .test:JSRcalc:LDY#0:LDA(s),Y:RTS
 1190 .delay:STXspecial:JSR&FFE0:LDXspecial:RTS:.special:BRK
 1200 .flag:BRK:.flag1:BRK:.flag2:BRK
 1210 .row:LDA#&FF:STAflag1:STAflag2:STYty:LDX#3
 1220 .l:LDYty:JSRtest:BEQempty:LDA#0:STAflag1:JMPfull
 1230 .empty:LDA#0:STAflag2
 1240 .full:INX:CPX#15:BNEl
 1250 LDAflag1:BEQnrem:LDA#&80:STAflag:RTS
 1260 .nrem:LDAflag2:BEQnrfu:LDA#&FF:STAflag:RTS
 1270 .nrfu:LDA#0:STAflag:RTS
 1280 .stuck:BRK
 1290 .fall:LDXx:STXx2:LDYy:INY:STYy2:LDAshadr:STAshadr2:LDAshadr+1:STAshadr2+1:JSRcomplex
 1300 LDAstuck:BNEndown:INCy:.ndown:RTS
 1310 .complex:LDA#0:STAflag1:LDA#&FF:STAstuck
 1320 LDA#4:STAcy:CLC:LDYy2:INY:INY:INY:STYty:LDA#15:STAptr
 1330 .l1:LDA#4:STAcx:LDXx2:INX:INX:INX
 1340 .l2:LDYptr:LDA(shadr2),Y:BEQnext
 1350 LDYty:JSRtest:BEQnext:RTS
 1360 .next:DECptr:DEX:DECcx:BNEl2
 1370 DECty:DECcy:BNEl1
 1380 LDA#0:STAstuck:RTS
 1390 .pile:LDY#23:STYty
 1400 .l:LDYty:JSRrow:CMP#&FF:BNEncolps:JSRcollapse:JMPl
 1410 .ncolps:CMP#&80:BNEnss:LDA#0:STAdead:RTS
 1420 .nss:DECty:LDAty:CMP#3:BNEl:LDA#&FF:STAdead:RTS
 1430 .dead:BRK
 1440 .mask:BRK
 1450 .collapse:LDA#&7F:STAmask
 1460 .l1:LDA#0:STAcy:LDA#19:JSR&FFF4
 1470 .l2:LDX#3:LDYty:JSRcalc
 1480 LDX#12:LDYcy
 1490 .l3:LDA(s),Y:ANDmask:STA(s),Y
 1500 LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1
 1510 DEX:BNEl3
 1520 INCcy:LDAcy:CMP#8:BNEl2
 1530 LDAmask:LSRmask:BNEl1
 1540 LDAty:CLC:ADC#6:STAbot:LDY#0
 1550 .l:LDAvdu,Y:JSR&FFEE:INY:CPY#14:BNEl:LDA#7:LDX#so2 MOD256:LDY#so2 DIV256:JSR&FFF1
 1560 LDA#19:JSR&FFF4:JSR&FFF4:LDA#10:JSR&FFEE
 1570 JMPadd100
 1580 .vdu:EQUB17:EQUB128:EQUB28:EQUB7:.bot:BRK:EQUB12:EQUB5:EQUB11:EQUB26:EQUB30:EQUB11:EQUB31:EQUB0:EQUB31
 1590 .so1:EQUW1:EQUW1:EQUW10:EQUW4
 1600 .so2:EQUW0:EQUW-15:EQUW4:EQUW4
 1610 .speed:BRK:.rate:BRK:.waitop:BRK:.diff:BRK:.hold:BRK
 1620 .delay:BITtimer:BMIdelay:LDAspeed:STAtimer:LDA#19:JMP&FFF4
 1630 .main:JSRappear:LDAhold:STAwaitop:.l:JSRdelay:JSRprshape:JSRmanipulate:DECwaitop:BNEl
 1640 .l:JSRdelay:JSRprshape:JSRfall
 1650 DECrate:BNEnacc:INCspeed:BNEnacc:LDAdiff:STArate
 1660 .nacc:LDAstuck:BNEhit:JSRmanipulate:JMPl
 1670 .hit:JSRprshape:LDA#7:LDX#so1 MOD256:LDY#so1 DIV256:JSR&FFF1:JSRadd10:JSRpile
 1680 LDAdead:BEQmain:RTS
 1690 .score:EQUD0:.skill:BRK
 1700 .add10:SED:LDAscore:CLC:ADC#1:STAscore:LDAscore+1:ADC#0:STAscore+1:JMPcarry
 1710 .add100:SED:LDAscore+1:CLC:ADCskill:STAscore+1
 1720 .carry:LDAscore+2:ADC#0:STAscore+2:CLD
 1730 .prscr:LDA#&B0:STAs:LDA#&66:STAs+1
 1740 .high:LDA#0:JSRdigit:LDAscore+2:JSRword:LDAscore+1:JSRword:LDAscore:JSRword:LDA#0:JMPdigit
 1750 .word:TAX:LSRA:LSRA:LSRA:LSRA:JSRdigit:TXA:AND#&F
 1760 .digit:ASLA:ASLA:ASLA:CLC:ADC#&80:STAd:LDA#&D:STAd+1
 1770 LDY#7:.l:LDA(d),Y:STA(s),Y:DEY:BPLl
 1780 LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1:RTS
 1790 .line:LDAshadr:STAs:LDAshadr+1:STAs+1
 1800 LDA#36:STAcx
 1810 .l:LDY#0:LDA(shadr2),Y:ASLA:ASLA:CLC:ADC#&D0:STAd:LDA#&D:STAd+1
 1820 LDY#3:.l1:LDA(d),Y:STA(s),Y:DEY:BPLl1
 1830 LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1
 1840 INCshadr2:BNEok:INCshadr2+1:.ok:DECcx:BNEl:RTS
 1850 .tetron:LDA#&50:STAshadr:LDA#&59:STAshadr+1
 1860 LDA#0:STAshadr2:LDA#&50:STAshadr2+1
 1870 LDA#4:STAcy
 1880 .l:JSRline:LDAshadr:CLC:ADC#4:STAshadr:LDAshadr+1:ADC#0:STAshadr+1
 1890 JSRline:LDAshadr:CLC:ADC#&3C:STAshadr:LDAshadr+1:ADC#1:STAshadr+1
 1900 DECcy:BNEl:RTS
 1910 ]NEXT
 1920 ENDPROC
 1930 DATA F0F0F0F,F0F0F0F,F0F0F0F0,F0F0F0F0,FFFFFFFF,FFFFFFFF,A55AA55A,A55AA55A,AF5FAF5F,AF5FAF5F,FAF5FAF5,FAF5FAF5,5AA55AA5,5AA55AA5
 1940 DATAAFAFAF4F,F4FEFAF,4F4FCF4F,FEFEF4F,4F2FAF4F,FEFEF8F,4F2FAF4F,F4FEF2F,AFEF6F2F,F2F2FEF,2FCF8FEF,F4FEF2F,AFCF8F6F,F4FEFAF,2F2FEFEF,F4F4F4F
 1950 DATA4FAFAF4F,F4FEFAF,AFAFEF4F,FCF2F6F,0,F0F0F0F,103,80C,3010000,C080000
 1960 DATA 0000111100000000,0010001000100010
 1970 DATA 0000011100010000,0000001000100110,0000100011100000,0000011001000100
 1980 DATA 0000011100100000,0000001001100010,0000001001110000,0000010001100100
 1990 DATA 0000001101100000,0000010001100010
 2000 DATA 0000011001100000
 2010 DATA 0000011101000000,0000011000100010,0000000101110000,0000010001000110
 2020 DATA 0000011000110000,0000001001100100
 2030 DATA 2,4,4,2,1,4,2
 2040 DATA 0,2,6,10,12,13,17
 2050 DATA 111110,111110,111110,111150,411150,100210
 2060 DATA 301020,100020,301020,100210,130210,150010
 2070 DATA 001000,100400,001000,100410,100010,115010
 2080 DATA 001000,111100,001000,111130,100010,121510
 2090 DATA 001000,100200,001000,121500,100010,102110
 2100 DATA 001000,100040,001000,102150,150410,100210
 2110 DATA 041500,111110,041500,150210,211130,150010
 2120 DATA 000000,000000,000000,000000,000000,000000


 � TETRON
 � by A. Houghton
 � (c) Electron User
( � � � 6:�:�" at line ";�:�
2
 *FX229,1
<1 � 1,1,50,-20,10,4,10,10,126,0,0,-126,126,126
F# � 23,224,56,69,65,57,5,69,56,0
P# � 23,225,227,20,4,4,4,20,227,0
Z& � 23,226,207,40,40,47,42,41,200,0
d' � 23,227,62,160,160,60,32,32,190,0
n0 � HN$(9),HS%(9):� N%=0 � 9:HN$(N%)="Tony":�
x3 � N%=1 � 9:HS%(N%)=&A00-&100*N%:�:HS%(0)=&1000
� �assem
� � 5:� 23,1,0;0;0;0;
�. �:�title:� �-99 � � � �table:�wait:� �-99
� �skill
� !score=0:�screen
�" ?speed=235:?rate=?diff:� main
�8 � 128:� 2:� �1,20)"GAME"�15,20)"OVER":�=0:� � �>400
�" � !score>HS%(9) �enter:� �d\@
� �table
�! �wait:� �-99 � �t`@ � � �tV@
�
 � �enter
�. S%=0:�:S%=S%+1:� HS%(S%-1)<!score:S%=S%-1
� � S%<9 �shift
 HN$(S%)="":HS%(S%)=!score
F �table:� 23,1,1;0;0;0;31,10,S%*2+7:� N%=0 � 3:� 19,N%,N%;0;:�:� 2
"9 A%=0:X%=0:Y%=&52:!&5200=&20095280:?&5204=126:� &FFF1
,& HN$(S%)=$&5280:� 23,1,0;0;0;0;:� 
6 � �shift:� M%=8 � S%� -1
@, HN$(M%+1)=HN$(M%):HS%(M%+1)=HS%(M%):�:�
J* � �screen:� N%=0 � 3:� 19,N%,0;0;:�:�
T
 � tetron
^ � 0,3:� 444,828
h  � 444,60:� 832,60:� 832,828
r" � 848,828:� 848,700:� 860,700
|  � 860,32:� 416,32:� 416,700
�" � 428,700:� 428,828:� 444,828
�@ S%=!score:!score=HS%(0):�window(1):� 129:� 2:� �1,10)"HIGH"
� !s=&65D0:� high:!score=S%
�3 �window(15):� 31,15,10,224,225,226,227:� prscr
� � N%=0 � 3:� 19,N%,N%;0;:�
� �
�C � �window(X%):top%=704:bot%=636:left%=X%*64-8:right%=(X%+4)*64
�/ � 18,0,129,24,left%;bot%;right%;top%;16,26
�' � left%-8,top%+8:� right%+8,top%+8
�* � right%+16,top%+4:� right%+16,bot%-4
�' � right%+8,bot%-8:� left%-8,bot%-8
�( � left%-16,bot%-4:� left%-16,top%+4
� �
' � �table:� N%=0 � 3:� 19,N%,0;0;:�
 � 128:�:� tetron
A � N%=0 � 9:� 1:� N%=9 � �0,25)"10 "; � � �1,N%*2+7);N%+1" ";
&$ � 3:� �"0000"+�~HS%(N%),5)"0 ";
0 � 2:� HN$(N%):�:�
:/ � �wait:� 1:� �0,31)"Press SPACE to play";
D7 � N%=0 � 3:� 19,N%,N%;0;:�:�=0:� � �>1200 � �-99:�
N8 � �title:� N%=0 � 3:� 19,N%,0;0;:�:� 128:�:� tetron
Xx � 2:� �0,5)" Manipulate the"''"falling shapes to"''"form solid rows,"''"which disintegrate,"''"allowing everything"
bv �'"above to fall down."''" Stop the pile from"''"reaching the top."''" Higher skill level"''"means higher score."
lL � 3:�'�5)"KEYS"�5)"----"'�5)"Z - Left"'�5)"X - Right"'"RETURN - Rotate"
v �wait:�
�/ � �skill:� N%=0 � 3:� 19,N%,0;0;:�:� 128:�
�
 � tetron
�; � 3:� �2,10)"Enter Skill Level"''" (1=Easy .. 5=Hard)"
�. �''''"Level:";:� N%=0 � 3:� 19,N%,N%;0;:�
�" �:A$=�:� A$>"0" � A$<"6":� A$
�. ?skill=� A$:?hold=6-?skill:?diff=50*?hold
� �=0:� � �>100:�
� � �assem:?&D00=&40
� � �tJG
�. � N%=&900 � &937 � 4:� A$:!N%=�("&"+A$):�
�. � N%=&D80 � &DE7 � 4:� A$:!N%=�("&"+A$):�
� � N%=&940 � &A60 � 16:� A$
< � A%=1 � 16:� �A$,A%,1)="1" N%?(A%-1)=&FF � N%?(A%-1)=0
 �:�
' � addressl 19,addressh 19,orient 7
 J � N%=0 � 18:A%=&940+16*N%:addressl?N%=A% � 256:addressh?N%=A% � 256:�
* � N%=0 � 6:� orient?N%:�
4 � ctabl 25,ctabh 25
>C � N%=0 � 24:A%=&5FD8+N%*&140:ctabl?N%=A%�256:ctabh?N%=A%�256:�
H �colr 7:�N%=0�6:�N%?colr:�
R> A%=&5000:�N%=1�48:�A$:�M%=1�6:?A%=�(�A$,M%,1)):A%=A%+1:�,
\% s=&70:d=&72:shadr=&74:shadr2=&76
f$ �-256=1 timer=&29F �timer=&2A0
p! �Q%2000:�P=0�2�2:P%=Q%:[OPTP
zM .calc:TXA:ASLA:ASLA:ASLA:CLC:ADCctabl,Y:STAs:LDActabh,Y:ADC#0:STAs+1:RTS
�: .print:LDY#7:.l:LDA(d),Y:�(s),Y:STA(s),Y:DEY:BPLl:RTS
�% .cx:BRK:.cy:BRK:.ty:BRK:.ptr:BRK
�H .prshape:LDXx:LDYy:STYty:LDAcolour:ASLA:ASLA:ASLA:STAd:LDA#9:STAd+1
�- LDA#0:STAptr:LDA#4:STAcy:.l1:LDA#4:STAcx
�< .l2:LDYptr:LDA(shadr),Y:BEQblank:LDYty:JSRcalc:JSRprint
�" .blank:INX:INCptr:DECcx:BNEl2
� DEX:DEX:DEX:DEX
� INCty:DECcy:BNEl1:RTS
�< .shape:BRK:.colour:BRK:.rot:BRK:.x:BRK:.y:BRK:.rotl:BRK
�U .appear:LDA#7:STA&2A:LDA#0:STA&2B:STA&2C:STA&2D:JSR&AF12:DEC&2A:LDA&2A:STAcolour
� TAY:LDAcolr,Y:STAshape:TAY
�4 LDAaddressl,Y:STAshadr:LDAaddressh,Y:STAshadr+1
�' LDA#0:STArot:LDA#6:STAx:LDA#0:STAy
- LDYcolour:LDAorient,Y:STArotl:JMPprshape
* .key:LDY#&FF:LDA#&81:JSR&FFF4:TYA:RTS
( .manipulate:LDX#&B6:JSRkey:BEQntrot
$' LDYrot:INY:CPYrotl:BNEincrot:LDY#0
.< .incrot:STYtrot:LDYcolour:LDAcolr,Y:CLC:ADCtrot:STAtshp
8o TAY:LDAaddressl,Y:STAshadr2:LDAaddressh,Y:STAshadr2+1:LDAx:STAx2:LDAy:STAy2:JSRcomplex:LDAstuck:BNEntright
BY LDAshadr2:STAshadr:LDAshadr2+1:STAshadr+1:LDAtshp:STAshape:LDAtrot:STArot:JMPprshape
L$ .ntrot:LDX#&9E:JSRkey:BEQntleft
V LDXx:DEX:STXx2:JMPmove
`& .ntleft:LDX#&BD:JSRkey:BEQntright
j LDXx:INX:STXx2
t^ .move:LDAy:STAy2:LDAshadr:STAshadr2:LDAshadr+1:STAshadr2+1:JSRcomplex:LDAstuck:BNEntright
~ LDAx2:STAx
� .ntright:JMPprshape
�( .trot:BRK:.tshp:BRK:.x2:BRK:.y2:BRK
�% .test:JSRcalc:LDY#0:LDA(s),Y:RTS
�; .delay:STXspecial:JSR&FFE0:LDXspecial:RTS:.special:BRK
�$ .flag:BRK:.flag1:BRK:.flag2:BRK
�/ .row:LDA#&FF:STAflag1:STAflag2:STYty:LDX#3
�5 .l:LDYty:JSRtest:BEQempty:LDA#0:STAflag1:JMPfull
� .empty:LDA#0:STAflag2
� .full:INX:CPX#15:BNEl
�) LDAflag1:BEQnrem:LDA#&80:STAflag:RTS
�/ .nrem:LDAflag2:BEQnrfu:LDA#&FF:STAflag:RTS
� .nrfu:LDA#0:STAflag:RTS
 .stuck:BRK

Y .fall:LDXx:STXx2:LDYy:INY:STYy2:LDAshadr:STAshadr2:LDAshadr+1:STAshadr2+1:JSRcomplex
& LDAstuck:BNEndown:INCy:.ndown:RTS
- .complex:LDA#0:STAflag1:LDA#&FF:STAstuck
(: LDA#4:STAcy:CLC:LDYy2:INY:INY:INY:STYty:LDA#15:STAptr
2& .l1:LDA#4:STAcx:LDXx2:INX:INX:INX
<% .l2:LDYptr:LDA(shadr2),Y:BEQnext
F LDYty:JSRtest:BEQnext:RTS
P! .next:DECptr:DEX:DECcx:BNEl2
Z DECty:DECcy:BNEl1
d LDA#0:STAstuck:RTS
n .pile:LDY#23:STYty
x7 .l:LDYty:JSRrow:CMP#&FF:BNEncolps:JSRcollapse:JMPl
�- .ncolps:CMP#&80:BNEnss:LDA#0:STAdead:RTS
�4 .nss:DECty:LDAty:CMP#3:BNEl:LDA#&FF:STAdead:RTS
� .dead:BRK
� .mask:BRK
� .collapse:LDA#&7F:STAmask
�$ .l1:LDA#0:STAcy:LDA#19:JSR&FFF4
� .l2:LDX#3:LDYty:JSRcalc
� LDX#12:LDYcy
�  .l3:LDA(s),Y:�mask:STA(s),Y
�, LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1
� DEX:BNEl3
� INCcy:LDAcy:CMP#8:BNEl2
� LDAmask:LSRmask:BNEl1
! LDAty:CLC:ADC#6:STAbot:LDY#0
R .l:LDAvdu,Y:JSR&FFEE:INY:CPY#14:BNEl:LDA#7:LDX#so2 �256:LDY#so2 �256:JSR&FFF1
- LDA#19:JSR&FFF4:JSR&FFF4:LDA#10:JSR&FFEE
" JMPadd100
,k .vdu:EQUB17:EQUB128:EQUB28:EQUB7:.bot:BRK:EQUB12:EQUB5:EQUB11:EQUB26:EQUB30:EQUB11:EQUB31:EQUB0:EQUB31
6" .so1:EQUW1:EQUW1:EQUW10:EQUW4
@# .so2:EQUW0:EQUW-15:EQUW4:EQUW4
J9 .speed:BRK:.rate:BRK:.waitop:BRK:.diff:BRK:.hold:BRK
T? .delay:BITtimer:BMIdelay:LDAspeed:STAtimer:LDA#19:JMP&FFF4
^Z .main:JSRappear:LDAhold:STAwaitop:.l:JSRdelay:JSRprshape:JSRmanipulate:DECwaitop:BNEl
h# .l:JSRdelay:JSRprshape:JSRfall
r5 DECrate:BNEnacc:INCspeed:BNEnacc:LDAdiff:STArate
|- .nacc:LDAstuck:BNEhit:JSRmanipulate:JMPl
�N .hit:JSRprshape:LDA#7:LDX#so1 �256:LDY#so1 �256:JSR&FFF1:JSRadd10:JSRpile
� LDAdead:BEQmain:RTS
� .score:EQUD0:.skill:BRK
�P .add10:SED:LDAscore:CLC:ADC#1:STAscore:LDAscore+1:ADC#0:STAscore+1:JMPcarry
�3 .add100:SED:LDAscore+1:CLC:ADCskill:STAscore+1
�+ .carry:LDAscore+2:ADC#0:STAscore+2:CLD
�' .prscr:LDA#&B0:STAs:LDA#&66:STAs+1
�_ .high:LDA#0:JSRdigit:LDAscore+2:JSRword:LDAscore+1:JSRword:LDAscore:JSRword:LDA#0:JMPdigit
�4 .word:TAX:LSRA:LSRA:LSRA:LSRA:JSRdigit:TXA:�#&F
�9 .digit:ASLA:ASLA:ASLA:CLC:ADC#&80:STAd:LDA#&D:STAd+1
�( LDY#7:.l:LDA(d),Y:STA(s),Y:DEY:BPLl
�0 LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1:RTS
�* .line:LDAshadr:STAs:LDAshadr+1:STAs+1
 LDA#36:STAcx
D .l:LDY#0:LDA(shadr2),Y:ASLA:ASLA:CLC:ADC#&D0:STAd:LDA#&D:STAd+1
* LDY#3:.l1:LDA(d),Y:STA(s),Y:DEY:BPLl1
&, LDAs:CLC:ADC#8:STAs:LDAs+1:ADC#0:STAs+1
03 INCshadr2:BNEok:INCshadr2+1:.ok:DECcx:BNEl:RTS
:0 .tetron:LDA#&50:STAshadr:LDA#&59:STAshadr+1
D( LDA#0:STAshadr2:LDA#&50:STAshadr2+1
N LDA#4:STAcy
XG .l:JSRline:LDAshadr:CLC:ADC#4:STAshadr:LDAshadr+1:ADC#0:STAshadr+1
bF JSRline:LDAshadr:CLC:ADC#&3C:STAshadr:LDAshadr+1:ADC#1:STAshadr+1
l DECcy:BNEl:RTS
v ]�
� �
�� � F0F0F0F,F0F0F0F,F0F0F0F0,F0F0F0F0,FFFFFFFF,FFFFFFFF,A55AA55A,A55AA55A,AF5FAF5F,AF5FAF5F,FAF5FAF5,FAF5FAF5,5AA55AA5,5AA55AA5
�� �AFAFAF4F,F4FEFAF,4F4FCF4F,FEFEF4F,4F2FAF4F,FEFEF8F,4F2FAF4F,F4FEF2F,AFEF6F2F,F2F2FEF,2FCF8FEF,F4FEF2F,AFCF8F6F,F4FEFAF,2F2FEFEF,F4F4F4F
�I �4FAFAF4F,F4FEFAF,AFAFEF4F,FCF2F6F,0,F0F0F0F,103,80C,3010000,C080000
�( � 0000111100000000,0010001000100010
�J � 0000011100010000,0000001000100110,0000100011100000,0000011001000100
�J � 0000011100100000,0000001001100010,0000001001110000,0000010001100100
�( � 0000001101100000,0000010001100010
� � 0000011001100000
�J � 0000011101000000,0000011000100010,0000000101110000,0000010001000110
�( � 0000011000110000,0000001001100100
� � 2,4,4,2,1,4,2
� � 0,2,6,10,12,13,17
0 � 111110,111110,111110,111150,411150,100210
0 � 301020,100020,301020,100210,130210,150010
0 � 001000,100400,001000,100410,100010,115010
 0 � 001000,111100,001000,111130,100010,121510
*0 � 001000,100200,001000,121500,100010,102110
40 � 001000,100040,001000,102150,150410,100210
>0 � 041500,111110,041500,150210,211130,150010
H0 � 000000,000000,000000,000000,000000,000000
�
00000000  0d 00 0a 0d 20 f4 20 54  45 54 52 4f 4e 0d 00 14  |.... . TETRON...|
00000010  15 20 f4 20 62 79 20 41  2e 20 48 6f 75 67 68 74  |. . by A. Hought|
00000020  6f 6e 0d 00 1e 18 20 f4  20 28 63 29 20 45 6c 65  |on.... . (c) Ele|
00000030  63 74 72 6f 6e 20 55 73  65 72 0d 00 28 1f 20 ee  |ctron User..(. .|
00000040  20 85 20 eb 20 36 3a f6  3a f1 22 20 61 74 20 6c  | . . 6:.:." at l|
00000050  69 6e 65 20 22 3b 9e 3a  e0 0d 00 32 0d 20 2a 46  |ine ";.:...2. *F|
00000060  58 32 32 39 2c 31 0d 00  3c 31 20 e2 20 31 2c 31  |X229,1..<1 . 1,1|
00000070  2c 35 30 2c 2d 32 30 2c  31 30 2c 34 2c 31 30 2c  |,50,-20,10,4,10,|
00000080  31 30 2c 31 32 36 2c 30  2c 30 2c 2d 31 32 36 2c  |10,126,0,0,-126,|
00000090  31 32 36 2c 31 32 36 0d  00 46 23 20 ef 20 32 33  |126,126..F# . 23|
000000a0  2c 32 32 34 2c 35 36 2c  36 39 2c 36 35 2c 35 37  |,224,56,69,65,57|
000000b0  2c 35 2c 36 39 2c 35 36  2c 30 0d 00 50 23 20 ef  |,5,69,56,0..P# .|
000000c0  20 32 33 2c 32 32 35 2c  32 32 37 2c 32 30 2c 34  | 23,225,227,20,4|
000000d0  2c 34 2c 34 2c 32 30 2c  32 32 37 2c 30 0d 00 5a  |,4,4,20,227,0..Z|
000000e0  26 20 ef 20 32 33 2c 32  32 36 2c 32 30 37 2c 34  |& . 23,226,207,4|
000000f0  30 2c 34 30 2c 34 37 2c  34 32 2c 34 31 2c 32 30  |0,40,47,42,41,20|
00000100  30 2c 30 0d 00 64 27 20  ef 20 32 33 2c 32 32 37  |0,0..d' . 23,227|
00000110  2c 36 32 2c 31 36 30 2c  31 36 30 2c 36 30 2c 33  |,62,160,160,60,3|
00000120  32 2c 33 32 2c 31 39 30  2c 30 0d 00 6e 30 20 de  |2,32,190,0..n0 .|
00000130  20 48 4e 24 28 39 29 2c  48 53 25 28 39 29 3a e3  | HN$(9),HS%(9):.|
00000140  20 4e 25 3d 30 20 b8 20  39 3a 48 4e 24 28 4e 25  | N%=0 . 9:HN$(N%|
00000150  29 3d 22 54 6f 6e 79 22  3a ed 0d 00 78 33 20 e3  |)="Tony":...x3 .|
00000160  20 4e 25 3d 31 20 b8 20  39 3a 48 53 25 28 4e 25  | N%=1 . 9:HS%(N%|
00000170  29 3d 26 41 30 30 2d 26  31 30 30 2a 4e 25 3a ed  |)=&A00-&100*N%:.|
00000180  3a 48 53 25 28 30 29 3d  26 31 30 30 30 0d 00 82  |:HS%(0)=&1000...|
00000190  0b 20 f2 61 73 73 65 6d  0d 00 8c 18 20 eb 20 35  |. .assem.... . 5|
000001a0  3a ef 20 32 33 2c 31 2c  30 3b 30 3b 30 3b 30 3b  |:. 23,1,0;0;0;0;|
000001b0  0d 00 96 2e 20 f5 3a f2  74 69 74 6c 65 3a e7 20  |.... .:.title:. |
000001c0  a6 2d 39 39 20 fd 20 b9  20 8b 20 f2 74 61 62 6c  |.-99 . . . .tabl|
000001d0  65 3a f2 77 61 69 74 3a  fd 20 a6 2d 39 39 0d 00  |e:.wait:. .-99..|
000001e0  a0 0b 20 f2 73 6b 69 6c  6c 0d 00 aa 15 20 21 73  |.. .skill.... !s|
000001f0  63 6f 72 65 3d 30 3a f2  73 63 72 65 65 6e 0d 00  |core=0:.screen..|
00000200  b4 22 20 3f 73 70 65 65  64 3d 32 33 35 3a 3f 72  |." ?speed=235:?r|
00000210  61 74 65 3d 3f 64 69 66  66 3a d6 20 6d 61 69 6e  |ate=?diff:. main|
00000220  0d 00 be 38 20 fb 20 31  32 38 3a fb 20 32 3a f1  |...8 . 128:. 2:.|
00000230  20 8a 31 2c 32 30 29 22  47 41 4d 45 22 8a 31 35  | .1,20)"GAME".15|
00000240  2c 32 30 29 22 4f 56 45  52 22 3a d1 3d 30 3a f5  |,20)"OVER":.=0:.|
00000250  20 fd 20 91 3e 34 30 30  0d 00 c8 22 20 e7 20 21  | . .>400..." . !|
00000260  73 63 6f 72 65 3e 48 53  25 28 39 29 20 f2 65 6e  |score>HS%(9) .en|
00000270  74 65 72 3a e5 20 8d 64  5c 40 0d 00 d2 0b 20 f2  |ter:. .d\@.... .|
00000280  74 61 62 6c 65 0d 00 dc  21 20 f2 77 61 69 74 3a  |table...! .wait:|
00000290  e7 20 a6 2d 39 39 20 e5  20 8d 74 60 40 20 8b 20  |. .-99 . .t`@ . |
000002a0  e5 20 8d 74 56 40 0d 00  e6 0d 20 dd 20 f2 65 6e  |. .tV@.... . .en|
000002b0  74 65 72 0d 00 f0 2e 20  53 25 3d 30 3a f5 3a 53  |ter.... S%=0:.:S|
000002c0  25 3d 53 25 2b 31 3a fd  20 48 53 25 28 53 25 2d  |%=S%+1:. HS%(S%-|
000002d0  31 29 3c 21 73 63 6f 72  65 3a 53 25 3d 53 25 2d  |1)<!score:S%=S%-|
000002e0  31 0d 00 fa 12 20 e7 20  53 25 3c 39 20 f2 73 68  |1.... . S%<9 .sh|
000002f0  69 66 74 0d 01 04 1e 20  48 4e 24 28 53 25 29 3d  |ift.... HN$(S%)=|
00000300  22 22 3a 48 53 25 28 53  25 29 3d 21 73 63 6f 72  |"":HS%(S%)=!scor|
00000310  65 0d 01 0e 46 20 f2 74  61 62 6c 65 3a ef 20 32  |e...F .table:. 2|
00000320  33 2c 31 2c 31 3b 30 3b  30 3b 30 3b 33 31 2c 31  |3,1,1;0;0;0;31,1|
00000330  30 2c 53 25 2a 32 2b 37  3a e3 20 4e 25 3d 30 20  |0,S%*2+7:. N%=0 |
00000340  b8 20 33 3a ef 20 31 39  2c 4e 25 2c 4e 25 3b 30  |. 3:. 19,N%,N%;0|
00000350  3b 3a ed 3a fb 20 32 0d  01 22 39 20 41 25 3d 30  |;:.:. 2.."9 A%=0|
00000360  3a 58 25 3d 30 3a 59 25  3d 26 35 32 3a 21 26 35  |:X%=0:Y%=&52:!&5|
00000370  32 30 30 3d 26 32 30 30  39 35 32 38 30 3a 3f 26  |200=&20095280:?&|
00000380  35 32 30 34 3d 31 32 36  3a d6 20 26 46 46 46 31  |5204=126:. &FFF1|
00000390  0d 01 2c 26 20 48 4e 24  28 53 25 29 3d 24 26 35  |..,& HN$(S%)=$&5|
000003a0  32 38 30 3a ef 20 32 33  2c 31 2c 30 3b 30 3b 30  |280:. 23,1,0;0;0|
000003b0  3b 30 3b 3a e1 20 0d 01  36 1d 20 dd 20 f2 73 68  |;0;:. ..6. . .sh|
000003c0  69 66 74 3a e3 20 4d 25  3d 38 20 b8 20 53 25 88  |ift:. M%=8 . S%.|
000003d0  20 2d 31 0d 01 40 2c 20  48 4e 24 28 4d 25 2b 31  | -1..@, HN$(M%+1|
000003e0  29 3d 48 4e 24 28 4d 25  29 3a 48 53 25 28 4d 25  |)=HN$(M%):HS%(M%|
000003f0  2b 31 29 3d 48 53 25 28  4d 25 29 3a ed 3a e1 0d  |+1)=HS%(M%):.:..|
00000400  01 4a 2a 20 dd 20 f2 73  63 72 65 65 6e 3a e3 20  |.J* . .screen:. |
00000410  4e 25 3d 30 20 b8 20 33  3a ef 20 31 39 2c 4e 25  |N%=0 . 3:. 19,N%|
00000420  2c 30 3b 30 3b 3a ed 3a  db 0d 01 54 0d 20 d6 20  |,0;0;:.:...T. . |
00000430  74 65 74 72 6f 6e 0d 01  5e 14 20 e6 20 30 2c 33  |tetron..^. . 0,3|
00000440  3a ec 20 34 34 34 2c 38  32 38 0d 01 68 20 20 df  |:. 444,828..h  .|
00000450  20 34 34 34 2c 36 30 3a  df 20 38 33 32 2c 36 30  | 444,60:. 832,60|
00000460  3a df 20 38 33 32 2c 38  32 38 0d 01 72 22 20 df  |:. 832,828..r" .|
00000470  20 38 34 38 2c 38 32 38  3a df 20 38 34 38 2c 37  | 848,828:. 848,7|
00000480  30 30 3a df 20 38 36 30  2c 37 30 30 0d 01 7c 20  |00:. 860,700..| |
00000490  20 df 20 38 36 30 2c 33  32 3a df 20 34 31 36 2c  | . 860,32:. 416,|
000004a0  33 32 3a df 20 34 31 36  2c 37 30 30 0d 01 86 22  |32:. 416,700..."|
000004b0  20 df 20 34 32 38 2c 37  30 30 3a df 20 34 32 38  | . 428,700:. 428|
000004c0  2c 38 32 38 3a df 20 34  34 34 2c 38 32 38 0d 01  |,828:. 444,828..|
000004d0  90 40 20 53 25 3d 21 73  63 6f 72 65 3a 21 73 63  |.@ S%=!score:!sc|
000004e0  6f 72 65 3d 48 53 25 28  30 29 3a f2 77 69 6e 64  |ore=HS%(0):.wind|
000004f0  6f 77 28 31 29 3a fb 20  31 32 39 3a fb 20 32 3a  |ow(1):. 129:. 2:|
00000500  f1 20 8a 31 2c 31 30 29  22 48 49 47 48 22 0d 01  |. .1,10)"HIGH"..|
00000510  9a 1e 20 21 73 3d 26 36  35 44 30 3a d6 20 68 69  |.. !s=&65D0:. hi|
00000520  67 68 3a 21 73 63 6f 72  65 3d 53 25 0d 01 a4 33  |gh:!score=S%...3|
00000530  20 f2 77 69 6e 64 6f 77  28 31 35 29 3a ef 20 33  | .window(15):. 3|
00000540  31 2c 31 35 2c 31 30 2c  32 32 34 2c 32 32 35 2c  |1,15,10,224,225,|
00000550  32 32 36 2c 32 32 37 3a  d6 20 70 72 73 63 72 0d  |226,227:. prscr.|
00000560  01 ae 1f 20 e3 20 4e 25  3d 30 20 b8 20 33 3a ef  |... . N%=0 . 3:.|
00000570  20 31 39 2c 4e 25 2c 4e  25 3b 30 3b 3a ed 0d 01  | 19,N%,N%;0;:...|
00000580  b8 06 20 e1 0d 01 c2 43  20 dd 20 f2 77 69 6e 64  |.. ....C . .wind|
00000590  6f 77 28 58 25 29 3a 74  6f 70 25 3d 37 30 34 3a  |ow(X%):top%=704:|
000005a0  62 6f 74 25 3d 36 33 36  3a 6c 65 66 74 25 3d 58  |bot%=636:left%=X|
000005b0  25 2a 36 34 2d 38 3a 72  69 67 68 74 25 3d 28 58  |%*64-8:right%=(X|
000005c0  25 2b 34 29 2a 36 34 0d  01 cc 2f 20 ef 20 31 38  |%+4)*64.../ . 18|
000005d0  2c 30 2c 31 32 39 2c 32  34 2c 6c 65 66 74 25 3b  |,0,129,24,left%;|
000005e0  62 6f 74 25 3b 72 69 67  68 74 25 3b 74 6f 70 25  |bot%;right%;top%|
000005f0  3b 31 36 2c 32 36 0d 01  d6 27 20 ec 20 6c 65 66  |;16,26...' . lef|
00000600  74 25 2d 38 2c 74 6f 70  25 2b 38 3a df 20 72 69  |t%-8,top%+8:. ri|
00000610  67 68 74 25 2b 38 2c 74  6f 70 25 2b 38 0d 01 e0  |ght%+8,top%+8...|
00000620  2a 20 ec 20 72 69 67 68  74 25 2b 31 36 2c 74 6f  |* . right%+16,to|
00000630  70 25 2b 34 3a df 20 72  69 67 68 74 25 2b 31 36  |p%+4:. right%+16|
00000640  2c 62 6f 74 25 2d 34 0d  01 ea 27 20 ec 20 72 69  |,bot%-4...' . ri|
00000650  67 68 74 25 2b 38 2c 62  6f 74 25 2d 38 3a df 20  |ght%+8,bot%-8:. |
00000660  6c 65 66 74 25 2d 38 2c  62 6f 74 25 2d 38 0d 01  |left%-8,bot%-8..|
00000670  f4 28 20 ec 20 6c 65 66  74 25 2d 31 36 2c 62 6f  |.( . left%-16,bo|
00000680  74 25 2d 34 3a df 20 6c  65 66 74 25 2d 31 36 2c  |t%-4:. left%-16,|
00000690  74 6f 70 25 2b 34 0d 01  fe 06 20 e1 0d 02 08 27  |top%+4.... ....'|
000006a0  20 dd 20 f2 74 61 62 6c  65 3a e3 20 4e 25 3d 30  | . .table:. N%=0|
000006b0  20 b8 20 33 3a ef 20 31  39 2c 4e 25 2c 30 3b 30  | . 3:. 19,N%,0;0|
000006c0  3b 3a ed 0d 02 12 15 20  fb 20 31 32 38 3a db 3a  |;:..... . 128:.:|
000006d0  d6 20 74 65 74 72 6f 6e  0d 02 1c 41 20 e3 20 4e  |. tetron...A . N|
000006e0  25 3d 30 20 b8 20 39 3a  fb 20 31 3a e7 20 4e 25  |%=0 . 9:. 1:. N%|
000006f0  3d 39 20 f1 20 8a 30 2c  32 35 29 22 31 30 20 22  |=9 . .0,25)"10 "|
00000700  3b 20 8b 20 f1 20 8a 31  2c 4e 25 2a 32 2b 37 29  |; . . .1,N%*2+7)|
00000710  3b 4e 25 2b 31 22 20 22  3b 0d 02 26 24 20 fb 20  |;N%+1" ";..&$ . |
00000720  33 3a f1 20 c2 22 30 30  30 30 22 2b c3 7e 48 53  |3:. ."0000"+.~HS|
00000730  25 28 4e 25 29 2c 35 29  22 30 20 22 3b 0d 02 30  |%(N%),5)"0 ";..0|
00000740  16 20 fb 20 32 3a f1 20  48 4e 24 28 4e 25 29 3a  |. . 2:. HN$(N%):|
00000750  ed 3a e1 0d 02 3a 2f 20  dd 20 f2 77 61 69 74 3a  |.:...:/ . .wait:|
00000760  fb 20 31 3a f1 20 8a 30  2c 33 31 29 22 50 72 65  |. 1:. .0,31)"Pre|
00000770  73 73 20 53 50 41 43 45  20 74 6f 20 70 6c 61 79  |ss SPACE to play|
00000780  22 3b 0d 02 44 37 20 e3  20 4e 25 3d 30 20 b8 20  |";..D7 . N%=0 . |
00000790  33 3a ef 20 31 39 2c 4e  25 2c 4e 25 3b 30 3b 3a  |3:. 19,N%,N%;0;:|
000007a0  ed 3a d1 3d 30 3a f5 20  fd 20 91 3e 31 32 30 30  |.:.=0:. . .>1200|
000007b0  20 84 20 a6 2d 39 39 3a  e1 0d 02 4e 38 20 dd 20  | . .-99:...N8 . |
000007c0  f2 74 69 74 6c 65 3a e3  20 4e 25 3d 30 20 b8 20  |.title:. N%=0 . |
000007d0  33 3a ef 20 31 39 2c 4e  25 2c 30 3b 30 3b 3a ed  |3:. 19,N%,0;0;:.|
000007e0  3a fb 20 31 32 38 3a db  3a d6 20 74 65 74 72 6f  |:. 128:.:. tetro|
000007f0  6e 0d 02 58 78 20 fb 20  32 3a f1 20 8a 30 2c 35  |n..Xx . 2:. .0,5|
00000800  29 22 20 4d 61 6e 69 70  75 6c 61 74 65 20 74 68  |)" Manipulate th|
00000810  65 22 27 27 22 66 61 6c  6c 69 6e 67 20 73 68 61  |e"''"falling sha|
00000820  70 65 73 20 74 6f 22 27  27 22 66 6f 72 6d 20 73  |pes to"''"form s|
00000830  6f 6c 69 64 20 72 6f 77  73 2c 22 27 27 22 77 68  |olid rows,"''"wh|
00000840  69 63 68 20 64 69 73 69  6e 74 65 67 72 61 74 65  |ich disintegrate|
00000850  2c 22 27 27 22 61 6c 6c  6f 77 69 6e 67 20 65 76  |,"''"allowing ev|
00000860  65 72 79 74 68 69 6e 67  22 0d 02 62 76 20 f1 27  |erything"..bv .'|
00000870  22 61 62 6f 76 65 20 74  6f 20 66 61 6c 6c 20 64  |"above to fall d|
00000880  6f 77 6e 2e 22 27 27 22  20 53 74 6f 70 20 74 68  |own."''" Stop th|
00000890  65 20 70 69 6c 65 20 66  72 6f 6d 22 27 27 22 72  |e pile from"''"r|
000008a0  65 61 63 68 69 6e 67 20  74 68 65 20 74 6f 70 2e  |eaching the top.|
000008b0  22 27 27 22 20 48 69 67  68 65 72 20 73 6b 69 6c  |"''" Higher skil|
000008c0  6c 20 6c 65 76 65 6c 22  27 27 22 6d 65 61 6e 73  |l level"''"means|
000008d0  20 68 69 67 68 65 72 20  73 63 6f 72 65 2e 22 0d  | higher score.".|
000008e0  02 6c 4c 20 fb 20 33 3a  f1 27 8a 35 29 22 4b 45  |.lL . 3:.'.5)"KE|
000008f0  59 53 22 8a 35 29 22 2d  2d 2d 2d 22 27 8a 35 29  |YS".5)"----"'.5)|
00000900  22 5a 20 2d 20 4c 65 66  74 22 27 8a 35 29 22 58  |"Z - Left"'.5)"X|
00000910  20 2d 20 52 69 67 68 74  22 27 22 52 45 54 55 52  | - Right"'"RETUR|
00000920  4e 20 2d 20 52 6f 74 61  74 65 22 0d 02 76 0c 20  |N - Rotate"..v. |
00000930  f2 77 61 69 74 3a e1 0d  02 80 2f 20 dd 20 f2 73  |.wait:..../ . .s|
00000940  6b 69 6c 6c 3a e3 20 4e  25 3d 30 20 b8 20 33 3a  |kill:. N%=0 . 3:|
00000950  ef 20 31 39 2c 4e 25 2c  30 3b 30 3b 3a ed 3a fb  |. 19,N%,0;0;:.:.|
00000960  20 31 32 38 3a db 0d 02  8a 0d 20 d6 20 74 65 74  | 128:..... . tet|
00000970  72 6f 6e 0d 02 94 3b 20  fb 20 33 3a f1 20 8a 32  |ron...; . 3:. .2|
00000980  2c 31 30 29 22 45 6e 74  65 72 20 53 6b 69 6c 6c  |,10)"Enter Skill|
00000990  20 4c 65 76 65 6c 22 27  27 22 20 28 31 3d 45 61  | Level"''" (1=Ea|
000009a0  73 79 20 2e 2e 20 35 3d  48 61 72 64 29 22 0d 02  |sy .. 5=Hard)"..|
000009b0  9e 2e 20 f1 27 27 27 27  22 4c 65 76 65 6c 3a 22  |.. .''''"Level:"|
000009c0  3b 3a e3 20 4e 25 3d 30  20 b8 20 33 3a ef 20 31  |;:. N%=0 . 3:. 1|
000009d0  39 2c 4e 25 2c 4e 25 3b  30 3b 3a ed 0d 02 b2 22  |9,N%,N%;0;:...."|
000009e0  20 f5 3a 41 24 3d be 3a  fd 20 41 24 3e 22 30 22  | .:A$=.:. A$>"0"|
000009f0  20 80 20 41 24 3c 22 36  22 3a f1 20 41 24 0d 02  | . A$<"6":. A$..|
00000a00  bc 2e 20 3f 73 6b 69 6c  6c 3d bb 20 41 24 3a 3f  |.. ?skill=. A$:?|
00000a10  68 6f 6c 64 3d 36 2d 3f  73 6b 69 6c 6c 3a 3f 64  |hold=6-?skill:?d|
00000a20  69 66 66 3d 35 30 2a 3f  68 6f 6c 64 0d 02 c6 14  |iff=50*?hold....|
00000a30  20 d1 3d 30 3a f5 20 fd  20 91 3e 31 30 30 3a e1  | .=0:. . .>100:.|
00000a40  0d 02 d0 17 20 dd 20 f2  61 73 73 65 6d 3a 3f 26  |.... . .assem:?&|
00000a50  44 30 30 3d 26 34 30 0d  02 da 0b 20 f7 20 8d 74  |D00=&40.... . .t|
00000a60  4a 47 0d 02 e4 2e 20 e3  20 4e 25 3d 26 39 30 30  |JG.... . N%=&900|
00000a70  20 b8 20 26 39 33 37 20  88 20 34 3a f3 20 41 24  | . &937 . 4:. A$|
00000a80  3a 21 4e 25 3d a0 28 22  26 22 2b 41 24 29 3a ed  |:!N%=.("&"+A$):.|
00000a90  0d 02 ee 2e 20 e3 20 4e  25 3d 26 44 38 30 20 b8  |.... . N%=&D80 .|
00000aa0  20 26 44 45 37 20 88 20  34 3a f3 20 41 24 3a 21  | &DE7 . 4:. A$:!|
00000ab0  4e 25 3d a0 28 22 26 22  2b 41 24 29 3a ed 0d 02  |N%=.("&"+A$):...|
00000ac0  f8 1f 20 e3 20 4e 25 3d  26 39 34 30 20 b8 20 26  |.. . N%=&940 . &|
00000ad0  41 36 30 20 88 20 31 36  3a f3 20 41 24 0d 03 02  |A60 . 16:. A$...|
00000ae0  3c 20 e3 20 41 25 3d 31  20 b8 20 31 36 3a e7 20  |< . A%=1 . 16:. |
00000af0  c1 41 24 2c 41 25 2c 31  29 3d 22 31 22 20 4e 25  |.A$,A%,1)="1" N%|
00000b00  3f 28 41 25 2d 31 29 3d  26 46 46 20 8b 20 4e 25  |?(A%-1)=&FF . N%|
00000b10  3f 28 41 25 2d 31 29 3d  30 0d 03 0c 08 20 ed 3a  |?(A%-1)=0.... .:|
00000b20  ed 0d 03 16 27 20 de 20  61 64 64 72 65 73 73 6c  |....' . addressl|
00000b30  20 31 39 2c 61 64 64 72  65 73 73 68 20 31 39 2c  | 19,addressh 19,|
00000b40  6f 72 69 65 6e 74 20 37  0d 03 20 4a 20 e3 20 4e  |orient 7.. J . N|
00000b50  25 3d 30 20 b8 20 31 38  3a 41 25 3d 26 39 34 30  |%=0 . 18:A%=&940|
00000b60  2b 31 36 2a 4e 25 3a 61  64 64 72 65 73 73 6c 3f  |+16*N%:addressl?|
00000b70  4e 25 3d 41 25 20 83 20  32 35 36 3a 61 64 64 72  |N%=A% . 256:addr|
00000b80  65 73 73 68 3f 4e 25 3d  41 25 20 81 20 32 35 36  |essh?N%=A% . 256|
00000b90  3a ed 0d 03 2a 1d 20 e3  20 4e 25 3d 30 20 b8 20  |:...*. . N%=0 . |
00000ba0  36 3a f3 20 6f 72 69 65  6e 74 3f 4e 25 3a ed 0d  |6:. orient?N%:..|
00000bb0  03 34 18 20 de 20 63 74  61 62 6c 20 32 35 2c 63  |.4. . ctabl 25,c|
00000bc0  74 61 62 68 20 32 35 0d  03 3e 43 20 e3 20 4e 25  |tabh 25..>C . N%|
00000bd0  3d 30 20 b8 20 32 34 3a  41 25 3d 26 35 46 44 38  |=0 . 24:A%=&5FD8|
00000be0  2b 4e 25 2a 26 31 34 30  3a 63 74 61 62 6c 3f 4e  |+N%*&140:ctabl?N|
00000bf0  25 3d 41 25 83 32 35 36  3a 63 74 61 62 68 3f 4e  |%=A%.256:ctabh?N|
00000c00  25 3d 41 25 81 32 35 36  3a ed 0d 03 48 1f 20 de  |%=A%.256:...H. .|
00000c10  63 6f 6c 72 20 37 3a e3  4e 25 3d 30 b8 36 3a f3  |colr 7:.N%=0.6:.|
00000c20  4e 25 3f 63 6f 6c 72 3a  ed 0d 03 52 3e 20 41 25  |N%?colr:...R> A%|
00000c30  3d 26 35 30 30 30 3a e3  4e 25 3d 31 b8 34 38 3a  |=&5000:.N%=1.48:|
00000c40  f3 41 24 3a e3 4d 25 3d  31 b8 36 3a 3f 41 25 3d  |.A$:.M%=1.6:?A%=|
00000c50  bb 28 c1 41 24 2c 4d 25  2c 31 29 29 3a 41 25 3d  |.(.A$,M%,1)):A%=|
00000c60  41 25 2b 31 3a ed 2c 0d  03 5c 25 20 73 3d 26 37  |A%+1:.,..\% s=&7|
00000c70  30 3a 64 3d 26 37 32 3a  73 68 61 64 72 3d 26 37  |0:d=&72:shadr=&7|
00000c80  34 3a 73 68 61 64 72 32  3d 26 37 36 0d 03 66 24  |4:shadr2=&76..f$|
00000c90  20 e7 a6 2d 32 35 36 3d  31 20 74 69 6d 65 72 3d  | ..-256=1 timer=|
00000ca0  26 32 39 46 20 8b 74 69  6d 65 72 3d 26 32 41 30  |&29F .timer=&2A0|
00000cb0  0d 03 70 21 20 de 51 25  32 30 30 30 3a e3 50 3d  |..p! .Q%2000:.P=|
00000cc0  30 b8 32 88 32 3a 50 25  3d 51 25 3a 5b 4f 50 54  |0.2.2:P%=Q%:[OPT|
00000cd0  50 0d 03 7a 4d 20 2e 63  61 6c 63 3a 54 58 41 3a  |P..zM .calc:TXA:|
00000ce0  41 53 4c 41 3a 41 53 4c  41 3a 41 53 4c 41 3a 43  |ASLA:ASLA:ASLA:C|
00000cf0  4c 43 3a 41 44 43 63 74  61 62 6c 2c 59 3a 53 54  |LC:ADCctabl,Y:ST|
00000d00  41 73 3a 4c 44 41 63 74  61 62 68 2c 59 3a 41 44  |As:LDActabh,Y:AD|
00000d10  43 23 30 3a 53 54 41 73  2b 31 3a 52 54 53 0d 03  |C#0:STAs+1:RTS..|
00000d20  84 3a 20 2e 70 72 69 6e  74 3a 4c 44 59 23 37 3a  |.: .print:LDY#7:|
00000d30  2e 6c 3a 4c 44 41 28 64  29 2c 59 3a 82 28 73 29  |.l:LDA(d),Y:.(s)|
00000d40  2c 59 3a 53 54 41 28 73  29 2c 59 3a 44 45 59 3a  |,Y:STA(s),Y:DEY:|
00000d50  42 50 4c 6c 3a 52 54 53  0d 03 8e 25 20 2e 63 78  |BPLl:RTS...% .cx|
00000d60  3a 42 52 4b 3a 2e 63 79  3a 42 52 4b 3a 2e 74 79  |:BRK:.cy:BRK:.ty|
00000d70  3a 42 52 4b 3a 2e 70 74  72 3a 42 52 4b 0d 03 98  |:BRK:.ptr:BRK...|
00000d80  48 20 2e 70 72 73 68 61  70 65 3a 4c 44 58 78 3a  |H .prshape:LDXx:|
00000d90  4c 44 59 79 3a 53 54 59  74 79 3a 4c 44 41 63 6f  |LDYy:STYty:LDAco|
00000da0  6c 6f 75 72 3a 41 53 4c  41 3a 41 53 4c 41 3a 41  |lour:ASLA:ASLA:A|
00000db0  53 4c 41 3a 53 54 41 64  3a 4c 44 41 23 39 3a 53  |SLA:STAd:LDA#9:S|
00000dc0  54 41 64 2b 31 0d 03 a2  2d 20 4c 44 41 23 30 3a  |TAd+1...- LDA#0:|
00000dd0  53 54 41 70 74 72 3a 4c  44 41 23 34 3a 53 54 41  |STAptr:LDA#4:STA|
00000de0  63 79 3a 2e 6c 31 3a 4c  44 41 23 34 3a 53 54 41  |cy:.l1:LDA#4:STA|
00000df0  63 78 0d 03 ac 3c 20 2e  6c 32 3a 4c 44 59 70 74  |cx...< .l2:LDYpt|
00000e00  72 3a 4c 44 41 28 73 68  61 64 72 29 2c 59 3a 42  |r:LDA(shadr),Y:B|
00000e10  45 51 62 6c 61 6e 6b 3a  4c 44 59 74 79 3a 4a 53  |EQblank:LDYty:JS|
00000e20  52 63 61 6c 63 3a 4a 53  52 70 72 69 6e 74 0d 03  |Rcalc:JSRprint..|
00000e30  b6 22 20 2e 62 6c 61 6e  6b 3a 49 4e 58 3a 49 4e  |." .blank:INX:IN|
00000e40  43 70 74 72 3a 44 45 43  63 78 3a 42 4e 45 6c 32  |Cptr:DECcx:BNEl2|
00000e50  0d 03 c0 14 20 44 45 58  3a 44 45 58 3a 44 45 58  |.... DEX:DEX:DEX|
00000e60  3a 44 45 58 0d 03 ca 1a  20 49 4e 43 74 79 3a 44  |:DEX.... INCty:D|
00000e70  45 43 63 79 3a 42 4e 45  6c 31 3a 52 54 53 0d 03  |ECcy:BNEl1:RTS..|
00000e80  d4 3c 20 2e 73 68 61 70  65 3a 42 52 4b 3a 2e 63  |.< .shape:BRK:.c|
00000e90  6f 6c 6f 75 72 3a 42 52  4b 3a 2e 72 6f 74 3a 42  |olour:BRK:.rot:B|
00000ea0  52 4b 3a 2e 78 3a 42 52  4b 3a 2e 79 3a 42 52 4b  |RK:.x:BRK:.y:BRK|
00000eb0  3a 2e 72 6f 74 6c 3a 42  52 4b 0d 03 de 55 20 2e  |:.rotl:BRK...U .|
00000ec0  61 70 70 65 61 72 3a 4c  44 41 23 37 3a 53 54 41  |appear:LDA#7:STA|
00000ed0  26 32 41 3a 4c 44 41 23  30 3a 53 54 41 26 32 42  |&2A:LDA#0:STA&2B|
00000ee0  3a 53 54 41 26 32 43 3a  53 54 41 26 32 44 3a 4a  |:STA&2C:STA&2D:J|
00000ef0  53 52 26 41 46 31 32 3a  44 45 43 26 32 41 3a 4c  |SR&AF12:DEC&2A:L|
00000f00  44 41 26 32 41 3a 53 54  41 63 6f 6c 6f 75 72 0d  |DA&2A:STAcolour.|
00000f10  03 e8 1f 20 54 41 59 3a  4c 44 41 63 6f 6c 72 2c  |... TAY:LDAcolr,|
00000f20  59 3a 53 54 41 73 68 61  70 65 3a 54 41 59 0d 03  |Y:STAshape:TAY..|
00000f30  f2 34 20 4c 44 41 61 64  64 72 65 73 73 6c 2c 59  |.4 LDAaddressl,Y|
00000f40  3a 53 54 41 73 68 61 64  72 3a 4c 44 41 61 64 64  |:STAshadr:LDAadd|
00000f50  72 65 73 73 68 2c 59 3a  53 54 41 73 68 61 64 72  |ressh,Y:STAshadr|
00000f60  2b 31 0d 03 fc 27 20 4c  44 41 23 30 3a 53 54 41  |+1...' LDA#0:STA|
00000f70  72 6f 74 3a 4c 44 41 23  36 3a 53 54 41 78 3a 4c  |rot:LDA#6:STAx:L|
00000f80  44 41 23 30 3a 53 54 41  79 0d 04 06 2d 20 4c 44  |DA#0:STAy...- LD|
00000f90  59 63 6f 6c 6f 75 72 3a  4c 44 41 6f 72 69 65 6e  |Ycolour:LDAorien|
00000fa0  74 2c 59 3a 53 54 41 72  6f 74 6c 3a 4a 4d 50 70  |t,Y:STArotl:JMPp|
00000fb0  72 73 68 61 70 65 0d 04  10 2a 20 2e 6b 65 79 3a  |rshape...* .key:|
00000fc0  4c 44 59 23 26 46 46 3a  4c 44 41 23 26 38 31 3a  |LDY#&FF:LDA#&81:|
00000fd0  4a 53 52 26 46 46 46 34  3a 54 59 41 3a 52 54 53  |JSR&FFF4:TYA:RTS|
00000fe0  0d 04 1a 28 20 2e 6d 61  6e 69 70 75 6c 61 74 65  |...( .manipulate|
00000ff0  3a 4c 44 58 23 26 42 36  3a 4a 53 52 6b 65 79 3a  |:LDX#&B6:JSRkey:|
00001000  42 45 51 6e 74 72 6f 74  0d 04 24 27 20 4c 44 59  |BEQntrot..$' LDY|
00001010  72 6f 74 3a 49 4e 59 3a  43 50 59 72 6f 74 6c 3a  |rot:INY:CPYrotl:|
00001020  42 4e 45 69 6e 63 72 6f  74 3a 4c 44 59 23 30 0d  |BNEincrot:LDY#0.|
00001030  04 2e 3c 20 2e 69 6e 63  72 6f 74 3a 53 54 59 74  |..< .incrot:STYt|
00001040  72 6f 74 3a 4c 44 59 63  6f 6c 6f 75 72 3a 4c 44  |rot:LDYcolour:LD|
00001050  41 63 6f 6c 72 2c 59 3a  43 4c 43 3a 41 44 43 74  |Acolr,Y:CLC:ADCt|
00001060  72 6f 74 3a 53 54 41 74  73 68 70 0d 04 38 6f 20  |rot:STAtshp..8o |
00001070  54 41 59 3a 4c 44 41 61  64 64 72 65 73 73 6c 2c  |TAY:LDAaddressl,|
00001080  59 3a 53 54 41 73 68 61  64 72 32 3a 4c 44 41 61  |Y:STAshadr2:LDAa|
00001090  64 64 72 65 73 73 68 2c  59 3a 53 54 41 73 68 61  |ddressh,Y:STAsha|
000010a0  64 72 32 2b 31 3a 4c 44  41 78 3a 53 54 41 78 32  |dr2+1:LDAx:STAx2|
000010b0  3a 4c 44 41 79 3a 53 54  41 79 32 3a 4a 53 52 63  |:LDAy:STAy2:JSRc|
000010c0  6f 6d 70 6c 65 78 3a 4c  44 41 73 74 75 63 6b 3a  |omplex:LDAstuck:|
000010d0  42 4e 45 6e 74 72 69 67  68 74 0d 04 42 59 20 4c  |BNEntright..BY L|
000010e0  44 41 73 68 61 64 72 32  3a 53 54 41 73 68 61 64  |DAshadr2:STAshad|
000010f0  72 3a 4c 44 41 73 68 61  64 72 32 2b 31 3a 53 54  |r:LDAshadr2+1:ST|
00001100  41 73 68 61 64 72 2b 31  3a 4c 44 41 74 73 68 70  |Ashadr+1:LDAtshp|
00001110  3a 53 54 41 73 68 61 70  65 3a 4c 44 41 74 72 6f  |:STAshape:LDAtro|
00001120  74 3a 53 54 41 72 6f 74  3a 4a 4d 50 70 72 73 68  |t:STArot:JMPprsh|
00001130  61 70 65 0d 04 4c 24 20  2e 6e 74 72 6f 74 3a 4c  |ape..L$ .ntrot:L|
00001140  44 58 23 26 39 45 3a 4a  53 52 6b 65 79 3a 42 45  |DX#&9E:JSRkey:BE|
00001150  51 6e 74 6c 65 66 74 0d  04 56 1b 20 4c 44 58 78  |Qntleft..V. LDXx|
00001160  3a 44 45 58 3a 53 54 58  78 32 3a 4a 4d 50 6d 6f  |:DEX:STXx2:JMPmo|
00001170  76 65 0d 04 60 26 20 2e  6e 74 6c 65 66 74 3a 4c  |ve..`& .ntleft:L|
00001180  44 58 23 26 42 44 3a 4a  53 52 6b 65 79 3a 42 45  |DX#&BD:JSRkey:BE|
00001190  51 6e 74 72 69 67 68 74  0d 04 6a 13 20 4c 44 58  |Qntright..j. LDX|
000011a0  78 3a 49 4e 58 3a 53 54  58 78 32 0d 04 74 5e 20  |x:INX:STXx2..t^ |
000011b0  2e 6d 6f 76 65 3a 4c 44  41 79 3a 53 54 41 79 32  |.move:LDAy:STAy2|
000011c0  3a 4c 44 41 73 68 61 64  72 3a 53 54 41 73 68 61  |:LDAshadr:STAsha|
000011d0  64 72 32 3a 4c 44 41 73  68 61 64 72 2b 31 3a 53  |dr2:LDAshadr+1:S|
000011e0  54 41 73 68 61 64 72 32  2b 31 3a 4a 53 52 63 6f  |TAshadr2+1:JSRco|
000011f0  6d 70 6c 65 78 3a 4c 44  41 73 74 75 63 6b 3a 42  |mplex:LDAstuck:B|
00001200  4e 45 6e 74 72 69 67 68  74 0d 04 7e 0f 20 4c 44  |NEntright..~. LD|
00001210  41 78 32 3a 53 54 41 78  0d 04 88 18 20 2e 6e 74  |Ax2:STAx.... .nt|
00001220  72 69 67 68 74 3a 4a 4d  50 70 72 73 68 61 70 65  |right:JMPprshape|
00001230  0d 04 92 28 20 2e 74 72  6f 74 3a 42 52 4b 3a 2e  |...( .trot:BRK:.|
00001240  74 73 68 70 3a 42 52 4b  3a 2e 78 32 3a 42 52 4b  |tshp:BRK:.x2:BRK|
00001250  3a 2e 79 32 3a 42 52 4b  0d 04 9c 25 20 2e 74 65  |:.y2:BRK...% .te|
00001260  73 74 3a 4a 53 52 63 61  6c 63 3a 4c 44 59 23 30  |st:JSRcalc:LDY#0|
00001270  3a 4c 44 41 28 73 29 2c  59 3a 52 54 53 0d 04 a6  |:LDA(s),Y:RTS...|
00001280  3b 20 2e 64 65 6c 61 79  3a 53 54 58 73 70 65 63  |; .delay:STXspec|
00001290  69 61 6c 3a 4a 53 52 26  46 46 45 30 3a 4c 44 58  |ial:JSR&FFE0:LDX|
000012a0  73 70 65 63 69 61 6c 3a  52 54 53 3a 2e 73 70 65  |special:RTS:.spe|
000012b0  63 69 61 6c 3a 42 52 4b  0d 04 b0 24 20 2e 66 6c  |cial:BRK...$ .fl|
000012c0  61 67 3a 42 52 4b 3a 2e  66 6c 61 67 31 3a 42 52  |ag:BRK:.flag1:BR|
000012d0  4b 3a 2e 66 6c 61 67 32  3a 42 52 4b 0d 04 ba 2f  |K:.flag2:BRK.../|
000012e0  20 2e 72 6f 77 3a 4c 44  41 23 26 46 46 3a 53 54  | .row:LDA#&FF:ST|
000012f0  41 66 6c 61 67 31 3a 53  54 41 66 6c 61 67 32 3a  |Aflag1:STAflag2:|
00001300  53 54 59 74 79 3a 4c 44  58 23 33 0d 04 c4 35 20  |STYty:LDX#3...5 |
00001310  2e 6c 3a 4c 44 59 74 79  3a 4a 53 52 74 65 73 74  |.l:LDYty:JSRtest|
00001320  3a 42 45 51 65 6d 70 74  79 3a 4c 44 41 23 30 3a  |:BEQempty:LDA#0:|
00001330  53 54 41 66 6c 61 67 31  3a 4a 4d 50 66 75 6c 6c  |STAflag1:JMPfull|
00001340  0d 04 ce 1a 20 2e 65 6d  70 74 79 3a 4c 44 41 23  |.... .empty:LDA#|
00001350  30 3a 53 54 41 66 6c 61  67 32 0d 04 d8 1a 20 2e  |0:STAflag2.... .|
00001360  66 75 6c 6c 3a 49 4e 58  3a 43 50 58 23 31 35 3a  |full:INX:CPX#15:|
00001370  42 4e 45 6c 0d 04 e2 29  20 4c 44 41 66 6c 61 67  |BNEl...) LDAflag|
00001380  31 3a 42 45 51 6e 72 65  6d 3a 4c 44 41 23 26 38  |1:BEQnrem:LDA#&8|
00001390  30 3a 53 54 41 66 6c 61  67 3a 52 54 53 0d 04 ec  |0:STAflag:RTS...|
000013a0  2f 20 2e 6e 72 65 6d 3a  4c 44 41 66 6c 61 67 32  |/ .nrem:LDAflag2|
000013b0  3a 42 45 51 6e 72 66 75  3a 4c 44 41 23 26 46 46  |:BEQnrfu:LDA#&FF|
000013c0  3a 53 54 41 66 6c 61 67  3a 52 54 53 0d 04 f6 1c  |:STAflag:RTS....|
000013d0  20 2e 6e 72 66 75 3a 4c  44 41 23 30 3a 53 54 41  | .nrfu:LDA#0:STA|
000013e0  66 6c 61 67 3a 52 54 53  0d 05 00 0f 20 2e 73 74  |flag:RTS.... .st|
000013f0  75 63 6b 3a 42 52 4b 0d  05 0a 59 20 2e 66 61 6c  |uck:BRK...Y .fal|
00001400  6c 3a 4c 44 58 78 3a 53  54 58 78 32 3a 4c 44 59  |l:LDXx:STXx2:LDY|
00001410  79 3a 49 4e 59 3a 53 54  59 79 32 3a 4c 44 41 73  |y:INY:STYy2:LDAs|
00001420  68 61 64 72 3a 53 54 41  73 68 61 64 72 32 3a 4c  |hadr:STAshadr2:L|
00001430  44 41 73 68 61 64 72 2b  31 3a 53 54 41 73 68 61  |DAshadr+1:STAsha|
00001440  64 72 32 2b 31 3a 4a 53  52 63 6f 6d 70 6c 65 78  |dr2+1:JSRcomplex|
00001450  0d 05 14 26 20 4c 44 41  73 74 75 63 6b 3a 42 4e  |...& LDAstuck:BN|
00001460  45 6e 64 6f 77 6e 3a 49  4e 43 79 3a 2e 6e 64 6f  |Endown:INCy:.ndo|
00001470  77 6e 3a 52 54 53 0d 05  1e 2d 20 2e 63 6f 6d 70  |wn:RTS...- .comp|
00001480  6c 65 78 3a 4c 44 41 23  30 3a 53 54 41 66 6c 61  |lex:LDA#0:STAfla|
00001490  67 31 3a 4c 44 41 23 26  46 46 3a 53 54 41 73 74  |g1:LDA#&FF:STAst|
000014a0  75 63 6b 0d 05 28 3a 20  4c 44 41 23 34 3a 53 54  |uck..(: LDA#4:ST|
000014b0  41 63 79 3a 43 4c 43 3a  4c 44 59 79 32 3a 49 4e  |Acy:CLC:LDYy2:IN|
000014c0  59 3a 49 4e 59 3a 49 4e  59 3a 53 54 59 74 79 3a  |Y:INY:INY:STYty:|
000014d0  4c 44 41 23 31 35 3a 53  54 41 70 74 72 0d 05 32  |LDA#15:STAptr..2|
000014e0  26 20 2e 6c 31 3a 4c 44  41 23 34 3a 53 54 41 63  |& .l1:LDA#4:STAc|
000014f0  78 3a 4c 44 58 78 32 3a  49 4e 58 3a 49 4e 58 3a  |x:LDXx2:INX:INX:|
00001500  49 4e 58 0d 05 3c 25 20  2e 6c 32 3a 4c 44 59 70  |INX..<% .l2:LDYp|
00001510  74 72 3a 4c 44 41 28 73  68 61 64 72 32 29 2c 59  |tr:LDA(shadr2),Y|
00001520  3a 42 45 51 6e 65 78 74  0d 05 46 1e 20 4c 44 59  |:BEQnext..F. LDY|
00001530  74 79 3a 4a 53 52 74 65  73 74 3a 42 45 51 6e 65  |ty:JSRtest:BEQne|
00001540  78 74 3a 52 54 53 0d 05  50 21 20 2e 6e 65 78 74  |xt:RTS..P! .next|
00001550  3a 44 45 43 70 74 72 3a  44 45 58 3a 44 45 43 63  |:DECptr:DEX:DECc|
00001560  78 3a 42 4e 45 6c 32 0d  05 5a 16 20 44 45 43 74  |x:BNEl2..Z. DECt|
00001570  79 3a 44 45 43 63 79 3a  42 4e 45 6c 31 0d 05 64  |y:DECcy:BNEl1..d|
00001580  17 20 4c 44 41 23 30 3a  53 54 41 73 74 75 63 6b  |. LDA#0:STAstuck|
00001590  3a 52 54 53 0d 05 6e 17  20 2e 70 69 6c 65 3a 4c  |:RTS..n. .pile:L|
000015a0  44 59 23 32 33 3a 53 54  59 74 79 0d 05 78 37 20  |DY#23:STYty..x7 |
000015b0  2e 6c 3a 4c 44 59 74 79  3a 4a 53 52 72 6f 77 3a  |.l:LDYty:JSRrow:|
000015c0  43 4d 50 23 26 46 46 3a  42 4e 45 6e 63 6f 6c 70  |CMP#&FF:BNEncolp|
000015d0  73 3a 4a 53 52 63 6f 6c  6c 61 70 73 65 3a 4a 4d  |s:JSRcollapse:JM|
000015e0  50 6c 0d 05 82 2d 20 2e  6e 63 6f 6c 70 73 3a 43  |Pl...- .ncolps:C|
000015f0  4d 50 23 26 38 30 3a 42  4e 45 6e 73 73 3a 4c 44  |MP#&80:BNEnss:LD|
00001600  41 23 30 3a 53 54 41 64  65 61 64 3a 52 54 53 0d  |A#0:STAdead:RTS.|
00001610  05 8c 34 20 2e 6e 73 73  3a 44 45 43 74 79 3a 4c  |..4 .nss:DECty:L|
00001620  44 41 74 79 3a 43 4d 50  23 33 3a 42 4e 45 6c 3a  |DAty:CMP#3:BNEl:|
00001630  4c 44 41 23 26 46 46 3a  53 54 41 64 65 61 64 3a  |LDA#&FF:STAdead:|
00001640  52 54 53 0d 05 96 0e 20  2e 64 65 61 64 3a 42 52  |RTS.... .dead:BR|
00001650  4b 0d 05 a0 0e 20 2e 6d  61 73 6b 3a 42 52 4b 0d  |K.... .mask:BRK.|
00001660  05 aa 1e 20 2e 63 6f 6c  6c 61 70 73 65 3a 4c 44  |... .collapse:LD|
00001670  41 23 26 37 46 3a 53 54  41 6d 61 73 6b 0d 05 b4  |A#&7F:STAmask...|
00001680  24 20 2e 6c 31 3a 4c 44  41 23 30 3a 53 54 41 63  |$ .l1:LDA#0:STAc|
00001690  79 3a 4c 44 41 23 31 39  3a 4a 53 52 26 46 46 46  |y:LDA#19:JSR&FFF|
000016a0  34 0d 05 be 1c 20 2e 6c  32 3a 4c 44 58 23 33 3a  |4.... .l2:LDX#3:|
000016b0  4c 44 59 74 79 3a 4a 53  52 63 61 6c 63 0d 05 c8  |LDYty:JSRcalc...|
000016c0  11 20 4c 44 58 23 31 32  3a 4c 44 59 63 79 0d 05  |. LDX#12:LDYcy..|
000016d0  d2 20 20 2e 6c 33 3a 4c  44 41 28 73 29 2c 59 3a  |.  .l3:LDA(s),Y:|
000016e0  80 6d 61 73 6b 3a 53 54  41 28 73 29 2c 59 0d 05  |.mask:STA(s),Y..|
000016f0  dc 2c 20 4c 44 41 73 3a  43 4c 43 3a 41 44 43 23  |., LDAs:CLC:ADC#|
00001700  38 3a 53 54 41 73 3a 4c  44 41 73 2b 31 3a 41 44  |8:STAs:LDAs+1:AD|
00001710  43 23 30 3a 53 54 41 73  2b 31 0d 05 e6 0e 20 44  |C#0:STAs+1.... D|
00001720  45 58 3a 42 4e 45 6c 33  0d 05 f0 1c 20 49 4e 43  |EX:BNEl3.... INC|
00001730  63 79 3a 4c 44 41 63 79  3a 43 4d 50 23 38 3a 42  |cy:LDAcy:CMP#8:B|
00001740  4e 45 6c 32 0d 05 fa 1a  20 4c 44 41 6d 61 73 6b  |NEl2.... LDAmask|
00001750  3a 4c 53 52 6d 61 73 6b  3a 42 4e 45 6c 31 0d 06  |:LSRmask:BNEl1..|
00001760  04 21 20 4c 44 41 74 79  3a 43 4c 43 3a 41 44 43  |.! LDAty:CLC:ADC|
00001770  23 36 3a 53 54 41 62 6f  74 3a 4c 44 59 23 30 0d  |#6:STAbot:LDY#0.|
00001780  06 0e 52 20 2e 6c 3a 4c  44 41 76 64 75 2c 59 3a  |..R .l:LDAvdu,Y:|
00001790  4a 53 52 26 46 46 45 45  3a 49 4e 59 3a 43 50 59  |JSR&FFEE:INY:CPY|
000017a0  23 31 34 3a 42 4e 45 6c  3a 4c 44 41 23 37 3a 4c  |#14:BNEl:LDA#7:L|
000017b0  44 58 23 73 6f 32 20 83  32 35 36 3a 4c 44 59 23  |DX#so2 .256:LDY#|
000017c0  73 6f 32 20 81 32 35 36  3a 4a 53 52 26 46 46 46  |so2 .256:JSR&FFF|
000017d0  31 0d 06 18 2d 20 4c 44  41 23 31 39 3a 4a 53 52  |1...- LDA#19:JSR|
000017e0  26 46 46 46 34 3a 4a 53  52 26 46 46 46 34 3a 4c  |&FFF4:JSR&FFF4:L|
000017f0  44 41 23 31 30 3a 4a 53  52 26 46 46 45 45 0d 06  |DA#10:JSR&FFEE..|
00001800  22 0e 20 4a 4d 50 61 64  64 31 30 30 0d 06 2c 6b  |". JMPadd100..,k|
00001810  20 2e 76 64 75 3a 45 51  55 42 31 37 3a 45 51 55  | .vdu:EQUB17:EQU|
00001820  42 31 32 38 3a 45 51 55  42 32 38 3a 45 51 55 42  |B128:EQUB28:EQUB|
00001830  37 3a 2e 62 6f 74 3a 42  52 4b 3a 45 51 55 42 31  |7:.bot:BRK:EQUB1|
00001840  32 3a 45 51 55 42 35 3a  45 51 55 42 31 31 3a 45  |2:EQUB5:EQUB11:E|
00001850  51 55 42 32 36 3a 45 51  55 42 33 30 3a 45 51 55  |QUB26:EQUB30:EQU|
00001860  42 31 31 3a 45 51 55 42  33 31 3a 45 51 55 42 30  |B11:EQUB31:EQUB0|
00001870  3a 45 51 55 42 33 31 0d  06 36 22 20 2e 73 6f 31  |:EQUB31..6" .so1|
00001880  3a 45 51 55 57 31 3a 45  51 55 57 31 3a 45 51 55  |:EQUW1:EQUW1:EQU|
00001890  57 31 30 3a 45 51 55 57  34 0d 06 40 23 20 2e 73  |W10:EQUW4..@# .s|
000018a0  6f 32 3a 45 51 55 57 30  3a 45 51 55 57 2d 31 35  |o2:EQUW0:EQUW-15|
000018b0  3a 45 51 55 57 34 3a 45  51 55 57 34 0d 06 4a 39  |:EQUW4:EQUW4..J9|
000018c0  20 2e 73 70 65 65 64 3a  42 52 4b 3a 2e 72 61 74  | .speed:BRK:.rat|
000018d0  65 3a 42 52 4b 3a 2e 77  61 69 74 6f 70 3a 42 52  |e:BRK:.waitop:BR|
000018e0  4b 3a 2e 64 69 66 66 3a  42 52 4b 3a 2e 68 6f 6c  |K:.diff:BRK:.hol|
000018f0  64 3a 42 52 4b 0d 06 54  3f 20 2e 64 65 6c 61 79  |d:BRK..T? .delay|
00001900  3a 42 49 54 74 69 6d 65  72 3a 42 4d 49 64 65 6c  |:BITtimer:BMIdel|
00001910  61 79 3a 4c 44 41 73 70  65 65 64 3a 53 54 41 74  |ay:LDAspeed:STAt|
00001920  69 6d 65 72 3a 4c 44 41  23 31 39 3a 4a 4d 50 26  |imer:LDA#19:JMP&|
00001930  46 46 46 34 0d 06 5e 5a  20 2e 6d 61 69 6e 3a 4a  |FFF4..^Z .main:J|
00001940  53 52 61 70 70 65 61 72  3a 4c 44 41 68 6f 6c 64  |SRappear:LDAhold|
00001950  3a 53 54 41 77 61 69 74  6f 70 3a 2e 6c 3a 4a 53  |:STAwaitop:.l:JS|
00001960  52 64 65 6c 61 79 3a 4a  53 52 70 72 73 68 61 70  |Rdelay:JSRprshap|
00001970  65 3a 4a 53 52 6d 61 6e  69 70 75 6c 61 74 65 3a  |e:JSRmanipulate:|
00001980  44 45 43 77 61 69 74 6f  70 3a 42 4e 45 6c 0d 06  |DECwaitop:BNEl..|
00001990  68 23 20 2e 6c 3a 4a 53  52 64 65 6c 61 79 3a 4a  |h# .l:JSRdelay:J|
000019a0  53 52 70 72 73 68 61 70  65 3a 4a 53 52 66 61 6c  |SRprshape:JSRfal|
000019b0  6c 0d 06 72 35 20 44 45  43 72 61 74 65 3a 42 4e  |l..r5 DECrate:BN|
000019c0  45 6e 61 63 63 3a 49 4e  43 73 70 65 65 64 3a 42  |Enacc:INCspeed:B|
000019d0  4e 45 6e 61 63 63 3a 4c  44 41 64 69 66 66 3a 53  |NEnacc:LDAdiff:S|
000019e0  54 41 72 61 74 65 0d 06  7c 2d 20 2e 6e 61 63 63  |TArate..|- .nacc|
000019f0  3a 4c 44 41 73 74 75 63  6b 3a 42 4e 45 68 69 74  |:LDAstuck:BNEhit|
00001a00  3a 4a 53 52 6d 61 6e 69  70 75 6c 61 74 65 3a 4a  |:JSRmanipulate:J|
00001a10  4d 50 6c 0d 06 86 4e 20  2e 68 69 74 3a 4a 53 52  |MPl...N .hit:JSR|
00001a20  70 72 73 68 61 70 65 3a  4c 44 41 23 37 3a 4c 44  |prshape:LDA#7:LD|
00001a30  58 23 73 6f 31 20 83 32  35 36 3a 4c 44 59 23 73  |X#so1 .256:LDY#s|
00001a40  6f 31 20 81 32 35 36 3a  4a 53 52 26 46 46 46 31  |o1 .256:JSR&FFF1|
00001a50  3a 4a 53 52 61 64 64 31  30 3a 4a 53 52 70 69 6c  |:JSRadd10:JSRpil|
00001a60  65 0d 06 90 18 20 4c 44  41 64 65 61 64 3a 42 45  |e.... LDAdead:BE|
00001a70  51 6d 61 69 6e 3a 52 54  53 0d 06 9a 1c 20 2e 73  |Qmain:RTS.... .s|
00001a80  63 6f 72 65 3a 45 51 55  44 30 3a 2e 73 6b 69 6c  |core:EQUD0:.skil|
00001a90  6c 3a 42 52 4b 0d 06 a4  50 20 2e 61 64 64 31 30  |l:BRK...P .add10|
00001aa0  3a 53 45 44 3a 4c 44 41  73 63 6f 72 65 3a 43 4c  |:SED:LDAscore:CL|
00001ab0  43 3a 41 44 43 23 31 3a  53 54 41 73 63 6f 72 65  |C:ADC#1:STAscore|
00001ac0  3a 4c 44 41 73 63 6f 72  65 2b 31 3a 41 44 43 23  |:LDAscore+1:ADC#|
00001ad0  30 3a 53 54 41 73 63 6f  72 65 2b 31 3a 4a 4d 50  |0:STAscore+1:JMP|
00001ae0  63 61 72 72 79 0d 06 ae  33 20 2e 61 64 64 31 30  |carry...3 .add10|
00001af0  30 3a 53 45 44 3a 4c 44  41 73 63 6f 72 65 2b 31  |0:SED:LDAscore+1|
00001b00  3a 43 4c 43 3a 41 44 43  73 6b 69 6c 6c 3a 53 54  |:CLC:ADCskill:ST|
00001b10  41 73 63 6f 72 65 2b 31  0d 06 b8 2b 20 2e 63 61  |Ascore+1...+ .ca|
00001b20  72 72 79 3a 4c 44 41 73  63 6f 72 65 2b 32 3a 41  |rry:LDAscore+2:A|
00001b30  44 43 23 30 3a 53 54 41  73 63 6f 72 65 2b 32 3a  |DC#0:STAscore+2:|
00001b40  43 4c 44 0d 06 c2 27 20  2e 70 72 73 63 72 3a 4c  |CLD...' .prscr:L|
00001b50  44 41 23 26 42 30 3a 53  54 41 73 3a 4c 44 41 23  |DA#&B0:STAs:LDA#|
00001b60  26 36 36 3a 53 54 41 73  2b 31 0d 06 cc 5f 20 2e  |&66:STAs+1..._ .|
00001b70  68 69 67 68 3a 4c 44 41  23 30 3a 4a 53 52 64 69  |high:LDA#0:JSRdi|
00001b80  67 69 74 3a 4c 44 41 73  63 6f 72 65 2b 32 3a 4a  |git:LDAscore+2:J|
00001b90  53 52 77 6f 72 64 3a 4c  44 41 73 63 6f 72 65 2b  |SRword:LDAscore+|
00001ba0  31 3a 4a 53 52 77 6f 72  64 3a 4c 44 41 73 63 6f  |1:JSRword:LDAsco|
00001bb0  72 65 3a 4a 53 52 77 6f  72 64 3a 4c 44 41 23 30  |re:JSRword:LDA#0|
00001bc0  3a 4a 4d 50 64 69 67 69  74 0d 06 d6 34 20 2e 77  |:JMPdigit...4 .w|
00001bd0  6f 72 64 3a 54 41 58 3a  4c 53 52 41 3a 4c 53 52  |ord:TAX:LSRA:LSR|
00001be0  41 3a 4c 53 52 41 3a 4c  53 52 41 3a 4a 53 52 64  |A:LSRA:LSRA:JSRd|
00001bf0  69 67 69 74 3a 54 58 41  3a 80 23 26 46 0d 06 e0  |igit:TXA:.#&F...|
00001c00  39 20 2e 64 69 67 69 74  3a 41 53 4c 41 3a 41 53  |9 .digit:ASLA:AS|
00001c10  4c 41 3a 41 53 4c 41 3a  43 4c 43 3a 41 44 43 23  |LA:ASLA:CLC:ADC#|
00001c20  26 38 30 3a 53 54 41 64  3a 4c 44 41 23 26 44 3a  |&80:STAd:LDA#&D:|
00001c30  53 54 41 64 2b 31 0d 06  ea 28 20 4c 44 59 23 37  |STAd+1...( LDY#7|
00001c40  3a 2e 6c 3a 4c 44 41 28  64 29 2c 59 3a 53 54 41  |:.l:LDA(d),Y:STA|
00001c50  28 73 29 2c 59 3a 44 45  59 3a 42 50 4c 6c 0d 06  |(s),Y:DEY:BPLl..|
00001c60  f4 30 20 4c 44 41 73 3a  43 4c 43 3a 41 44 43 23  |.0 LDAs:CLC:ADC#|
00001c70  38 3a 53 54 41 73 3a 4c  44 41 73 2b 31 3a 41 44  |8:STAs:LDAs+1:AD|
00001c80  43 23 30 3a 53 54 41 73  2b 31 3a 52 54 53 0d 06  |C#0:STAs+1:RTS..|
00001c90  fe 2a 20 2e 6c 69 6e 65  3a 4c 44 41 73 68 61 64  |.* .line:LDAshad|
00001ca0  72 3a 53 54 41 73 3a 4c  44 41 73 68 61 64 72 2b  |r:STAs:LDAshadr+|
00001cb0  31 3a 53 54 41 73 2b 31  0d 07 08 11 20 4c 44 41  |1:STAs+1.... LDA|
00001cc0  23 33 36 3a 53 54 41 63  78 0d 07 12 44 20 2e 6c  |#36:STAcx...D .l|
00001cd0  3a 4c 44 59 23 30 3a 4c  44 41 28 73 68 61 64 72  |:LDY#0:LDA(shadr|
00001ce0  32 29 2c 59 3a 41 53 4c  41 3a 41 53 4c 41 3a 43  |2),Y:ASLA:ASLA:C|
00001cf0  4c 43 3a 41 44 43 23 26  44 30 3a 53 54 41 64 3a  |LC:ADC#&D0:STAd:|
00001d00  4c 44 41 23 26 44 3a 53  54 41 64 2b 31 0d 07 1c  |LDA#&D:STAd+1...|
00001d10  2a 20 4c 44 59 23 33 3a  2e 6c 31 3a 4c 44 41 28  |* LDY#3:.l1:LDA(|
00001d20  64 29 2c 59 3a 53 54 41  28 73 29 2c 59 3a 44 45  |d),Y:STA(s),Y:DE|
00001d30  59 3a 42 50 4c 6c 31 0d  07 26 2c 20 4c 44 41 73  |Y:BPLl1..&, LDAs|
00001d40  3a 43 4c 43 3a 41 44 43  23 38 3a 53 54 41 73 3a  |:CLC:ADC#8:STAs:|
00001d50  4c 44 41 73 2b 31 3a 41  44 43 23 30 3a 53 54 41  |LDAs+1:ADC#0:STA|
00001d60  73 2b 31 0d 07 30 33 20  49 4e 43 73 68 61 64 72  |s+1..03 INCshadr|
00001d70  32 3a 42 4e 45 6f 6b 3a  49 4e 43 73 68 61 64 72  |2:BNEok:INCshadr|
00001d80  32 2b 31 3a 2e 6f 6b 3a  44 45 43 63 78 3a 42 4e  |2+1:.ok:DECcx:BN|
00001d90  45 6c 3a 52 54 53 0d 07  3a 30 20 2e 74 65 74 72  |El:RTS..:0 .tetr|
00001da0  6f 6e 3a 4c 44 41 23 26  35 30 3a 53 54 41 73 68  |on:LDA#&50:STAsh|
00001db0  61 64 72 3a 4c 44 41 23  26 35 39 3a 53 54 41 73  |adr:LDA#&59:STAs|
00001dc0  68 61 64 72 2b 31 0d 07  44 28 20 4c 44 41 23 30  |hadr+1..D( LDA#0|
00001dd0  3a 53 54 41 73 68 61 64  72 32 3a 4c 44 41 23 26  |:STAshadr2:LDA#&|
00001de0  35 30 3a 53 54 41 73 68  61 64 72 32 2b 31 0d 07  |50:STAshadr2+1..|
00001df0  4e 10 20 4c 44 41 23 34  3a 53 54 41 63 79 0d 07  |N. LDA#4:STAcy..|
00001e00  58 47 20 2e 6c 3a 4a 53  52 6c 69 6e 65 3a 4c 44  |XG .l:JSRline:LD|
00001e10  41 73 68 61 64 72 3a 43  4c 43 3a 41 44 43 23 34  |Ashadr:CLC:ADC#4|
00001e20  3a 53 54 41 73 68 61 64  72 3a 4c 44 41 73 68 61  |:STAshadr:LDAsha|
00001e30  64 72 2b 31 3a 41 44 43  23 30 3a 53 54 41 73 68  |dr+1:ADC#0:STAsh|
00001e40  61 64 72 2b 31 0d 07 62  46 20 4a 53 52 6c 69 6e  |adr+1..bF JSRlin|
00001e50  65 3a 4c 44 41 73 68 61  64 72 3a 43 4c 43 3a 41  |e:LDAshadr:CLC:A|
00001e60  44 43 23 26 33 43 3a 53  54 41 73 68 61 64 72 3a  |DC#&3C:STAshadr:|
00001e70  4c 44 41 73 68 61 64 72  2b 31 3a 41 44 43 23 31  |LDAshadr+1:ADC#1|
00001e80  3a 53 54 41 73 68 61 64  72 2b 31 0d 07 6c 13 20  |:STAshadr+1..l. |
00001e90  44 45 43 63 79 3a 42 4e  45 6c 3a 52 54 53 0d 07  |DECcy:BNEl:RTS..|
00001ea0  76 07 20 5d ed 0d 07 80  06 20 e1 0d 07 8a 82 20  |v. ]..... ..... |
00001eb0  dc 20 46 30 46 30 46 30  46 2c 46 30 46 30 46 30  |. F0F0F0F,F0F0F0|
00001ec0  46 2c 46 30 46 30 46 30  46 30 2c 46 30 46 30 46  |F,F0F0F0F0,F0F0F|
00001ed0  30 46 30 2c 46 46 46 46  46 46 46 46 2c 46 46 46  |0F0,FFFFFFFF,FFF|
00001ee0  46 46 46 46 46 2c 41 35  35 41 41 35 35 41 2c 41  |FFFFF,A55AA55A,A|
00001ef0  35 35 41 41 35 35 41 2c  41 46 35 46 41 46 35 46  |55AA55A,AF5FAF5F|
00001f00  2c 41 46 35 46 41 46 35  46 2c 46 41 46 35 46 41  |,AF5FAF5F,FAF5FA|
00001f10  46 35 2c 46 41 46 35 46  41 46 35 2c 35 41 41 35  |F5,FAF5FAF5,5AA5|
00001f20  35 41 41 35 2c 35 41 41  35 35 41 41 35 0d 07 94  |5AA5,5AA55AA5...|
00001f30  8d 20 dc 41 46 41 46 41  46 34 46 2c 46 34 46 45  |. .AFAFAF4F,F4FE|
00001f40  46 41 46 2c 34 46 34 46  43 46 34 46 2c 46 45 46  |FAF,4F4FCF4F,FEF|
00001f50  45 46 34 46 2c 34 46 32  46 41 46 34 46 2c 46 45  |EF4F,4F2FAF4F,FE|
00001f60  46 45 46 38 46 2c 34 46  32 46 41 46 34 46 2c 46  |FEF8F,4F2FAF4F,F|
00001f70  34 46 45 46 32 46 2c 41  46 45 46 36 46 32 46 2c  |4FEF2F,AFEF6F2F,|
00001f80  46 32 46 32 46 45 46 2c  32 46 43 46 38 46 45 46  |F2F2FEF,2FCF8FEF|
00001f90  2c 46 34 46 45 46 32 46  2c 41 46 43 46 38 46 36  |,F4FEF2F,AFCF8F6|
00001fa0  46 2c 46 34 46 45 46 41  46 2c 32 46 32 46 45 46  |F,F4FEFAF,2F2FEF|
00001fb0  45 46 2c 46 34 46 34 46  34 46 0d 07 9e 49 20 dc  |EF,F4F4F4F...I .|
00001fc0  34 46 41 46 41 46 34 46  2c 46 34 46 45 46 41 46  |4FAFAF4F,F4FEFAF|
00001fd0  2c 41 46 41 46 45 46 34  46 2c 46 43 46 32 46 36  |,AFAFEF4F,FCF2F6|
00001fe0  46 2c 30 2c 46 30 46 30  46 30 46 2c 31 30 33 2c  |F,0,F0F0F0F,103,|
00001ff0  38 30 43 2c 33 30 31 30  30 30 30 2c 43 30 38 30  |80C,3010000,C080|
00002000  30 30 30 0d 07 a8 28 20  dc 20 30 30 30 30 31 31  |000...( . 000011|
00002010  31 31 30 30 30 30 30 30  30 30 2c 30 30 31 30 30  |1100000000,00100|
00002020  30 31 30 30 30 31 30 30  30 31 30 0d 07 b2 4a 20  |01000100010...J |
00002030  dc 20 30 30 30 30 30 31  31 31 30 30 30 31 30 30  |. 00000111000100|
00002040  30 30 2c 30 30 30 30 30  30 31 30 30 30 31 30 30  |00,0000001000100|
00002050  31 31 30 2c 30 30 30 30  31 30 30 30 31 31 31 30  |110,000010001110|
00002060  30 30 30 30 2c 30 30 30  30 30 31 31 30 30 31 30  |0000,00000110010|
00002070  30 30 31 30 30 0d 07 bc  4a 20 dc 20 30 30 30 30  |00100...J . 0000|
00002080  30 31 31 31 30 30 31 30  30 30 30 30 2c 30 30 30  |011100100000,000|
00002090  30 30 30 31 30 30 31 31  30 30 30 31 30 2c 30 30  |0001001100010,00|
000020a0  30 30 30 30 31 30 30 31  31 31 30 30 30 30 2c 30  |00001001110000,0|
000020b0  30 30 30 30 31 30 30 30  31 31 30 30 31 30 30 0d  |000010001100100.|
000020c0  07 c6 28 20 dc 20 30 30  30 30 30 30 31 31 30 31  |..( . 0000001101|
000020d0  31 30 30 30 30 30 2c 30  30 30 30 30 31 30 30 30  |100000,000001000|
000020e0  31 31 30 30 30 31 30 0d  07 d0 17 20 dc 20 30 30  |1100010.... . 00|
000020f0  30 30 30 31 31 30 30 31  31 30 30 30 30 30 0d 07  |00011001100000..|
00002100  da 4a 20 dc 20 30 30 30  30 30 31 31 31 30 31 30  |.J . 00000111010|
00002110  30 30 30 30 30 2c 30 30  30 30 30 31 31 30 30 30  |00000,0000011000|
00002120  31 30 30 30 31 30 2c 30  30 30 30 30 30 30 31 30  |100010,000000010|
00002130  31 31 31 30 30 30 30 2c  30 30 30 30 30 31 30 30  |1110000,00000100|
00002140  30 31 30 30 30 31 31 30  0d 07 e4 28 20 dc 20 30  |01000110...( . 0|
00002150  30 30 30 30 31 31 30 30  30 31 31 30 30 30 30 2c  |000011000110000,|
00002160  30 30 30 30 30 30 31 30  30 31 31 30 30 31 30 30  |0000001001100100|
00002170  0d 07 ee 14 20 dc 20 32  2c 34 2c 34 2c 32 2c 31  |.... . 2,4,4,2,1|
00002180  2c 34 2c 32 0d 07 f8 18  20 dc 20 30 2c 32 2c 36  |,4,2.... . 0,2,6|
00002190  2c 31 30 2c 31 32 2c 31  33 2c 31 37 0d 08 02 30  |,10,12,13,17...0|
000021a0  20 dc 20 31 31 31 31 31  30 2c 31 31 31 31 31 30  | . 111110,111110|
000021b0  2c 31 31 31 31 31 30 2c  31 31 31 31 35 30 2c 34  |,111110,111150,4|
000021c0  31 31 31 35 30 2c 31 30  30 32 31 30 0d 08 0c 30  |11150,100210...0|
000021d0  20 dc 20 33 30 31 30 32  30 2c 31 30 30 30 32 30  | . 301020,100020|
000021e0  2c 33 30 31 30 32 30 2c  31 30 30 32 31 30 2c 31  |,301020,100210,1|
000021f0  33 30 32 31 30 2c 31 35  30 30 31 30 0d 08 16 30  |30210,150010...0|
00002200  20 dc 20 30 30 31 30 30  30 2c 31 30 30 34 30 30  | . 001000,100400|
00002210  2c 30 30 31 30 30 30 2c  31 30 30 34 31 30 2c 31  |,001000,100410,1|
00002220  30 30 30 31 30 2c 31 31  35 30 31 30 0d 08 20 30  |00010,115010.. 0|
00002230  20 dc 20 30 30 31 30 30  30 2c 31 31 31 31 30 30  | . 001000,111100|
00002240  2c 30 30 31 30 30 30 2c  31 31 31 31 33 30 2c 31  |,001000,111130,1|
00002250  30 30 30 31 30 2c 31 32  31 35 31 30 0d 08 2a 30  |00010,121510..*0|
00002260  20 dc 20 30 30 31 30 30  30 2c 31 30 30 32 30 30  | . 001000,100200|
00002270  2c 30 30 31 30 30 30 2c  31 32 31 35 30 30 2c 31  |,001000,121500,1|
00002280  30 30 30 31 30 2c 31 30  32 31 31 30 0d 08 34 30  |00010,102110..40|
00002290  20 dc 20 30 30 31 30 30  30 2c 31 30 30 30 34 30  | . 001000,100040|
000022a0  2c 30 30 31 30 30 30 2c  31 30 32 31 35 30 2c 31  |,001000,102150,1|
000022b0  35 30 34 31 30 2c 31 30  30 32 31 30 0d 08 3e 30  |50410,100210..>0|
000022c0  20 dc 20 30 34 31 35 30  30 2c 31 31 31 31 31 30  | . 041500,111110|
000022d0  2c 30 34 31 35 30 30 2c  31 35 30 32 31 30 2c 32  |,041500,150210,2|
000022e0  31 31 31 33 30 2c 31 35  30 30 31 30 0d 08 48 30  |11130,150010..H0|
000022f0  20 dc 20 30 30 30 30 30  30 2c 30 30 30 30 30 30  | . 000000,000000|
00002300  2c 30 30 30 30 30 30 2c  30 30 30 30 30 30 2c 30  |,000000,000000,0|
00002310  30 30 30 30 30 2c 30 30  30 30 30 30 0d ff        |00000,000000..|
0000231e
Tetris/RUN_THIS.m0
Tetris/RUN_THIS.m1
Tetris/RUN_THIS.m2
Tetris/RUN_THIS.m4
Tetris/RUN_THIS.m5