Home » Personal collection » Acorn ADFS disks » Greaseweazled » dfs_box04_disk02b_eug_scripts.adf » PT4/P/BatBall
PT4/P/BatBall
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 » Greaseweazled » dfs_box04_disk02b_eug_scripts.adf |
Filename: | PT4/P/BatBall |
Read OK: | ✔ |
File size: | 0D6D bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
File contents
10 MODE2:HIMEM=&2F00:PROCasschar 20 REM Put your program code here! 30 PROCsetpaint(3) 40 DIMblock(19,9) 50 ?xoff=0:?yoff=0:FORx=0TO19:FORy=0TO9:?char=1+RND(2):?xc=x:?yc=y:CALLdisplay:NEXT:NEXT 60 xball=37:yball=100:up=FALSE:left=FALSE 70 xbat=9 80 ?char=4:?xc=9:?yc=30:?xoff=0:?yoff=0:CALLdisplay:?xc=10:?char=5:CALLdisplay 90 ?char=0:?xc=xball DIV4:?yc=yball DIV8:?xoff=xball AND3:?yoff=yball AND7:CALLdisplay 100 REPEAT 110 IF left THEN xnew=xball-2 ELSE xnew=xball+2 120 IF up THEN ynew=yball-4 ELSE ynew=yball+4 130 IF ynew<4 THEN up=FALSE 140 IF ynew=248 THEN VDU7:REPEAT UNTIL INKEY(-99):xnew=37:ynew=100 150 IF xnew=1 THEN left=FALSE 160 IF xnew=75 THEN left=TRUE 170 ?char=0:?xc=xball DIV4:?yc=yball DIV8:?xoff=xball AND3:?yoff=yball AND7:CALLdisplay 180 xball=xnew:yball=ynew 190 ?char=0:?xc=xball DIV4:?yc=yball DIV8:?xoff=xball AND3:?yoff=yball AND7:CALLdisplay 200 IF yball=232 AND (xball>(xbat-2)*4) AND (xball<(xbat+2)*4) THEN up=TRUE 210 IF yball>80 THEN GOTO 330 220 xb%=xball DIV4:yb%=yball DIV8:PROCsetpaint(0) 230 IF up AND yb%<>0 THEN IF block(xb%,yb%-1)=0THENup=FALSE:block(xb%,yb%-1)=1:?char=6:?xc=xb%:?yc=yb%-1:?xoff=0:?yoff=0:CALLdisplay 240 IF up AND left AND yb%<>0 AND xb%<>0 THEN IF block(xb%-1,yb%-1)=0THENup=FALSE:left=FALSE:block(xb%-1,yb%-1)=1:?char=6:?xc=xb%-1:?yc=yb%-1:?xoff=0:?yoff=0:CALLdisplay 250 IF up AND (NOT left) AND yb%<>0 AND xb%<19 THEN IF block(xb%+1,yb%-1)=0THENup=FALSE:left=TRUE:block(xb%+1,yb%-1)=1:?char=6:?xc=xb%+1:?yc=yb%-1:?xoff=0:?yoff=0:CALLdisplay 260 IF NOT up AND yb%<9 THEN IF block(xb%,yb%+1)=0THENup=TRUE:block(xb%,yb%+1)=1:?char=6:?xc=xb%:?yc=yb%+1:?xoff=0:?yoff=0:CALLdisplay 270 IF (NOT up) AND left AND xb%<>0 AND yb%<9 THEN IF block(xb%-1,yb%+1)=0THENup=TRUE:left=FALSE:block(xb%-1,yb%+1)=1:?char=6:?xc=xb%-1:?yc=yb%+1:?xoff=0:?yoff=0:CALLdisplay 280 IF (NOT up) AND (NOT left) AND xb%<19 AND yb%<9 THEN IF block(xb%+1,yb%+1)=0THENup=TRUE:left=TRUE:block(xb%+1,yb%+1)=1:?char=6:?xc=xb%+1:?yc=yb%+1:?xoff=0:?yoff=0:CALLdisplay 290 IF yb%>9 THEN GOTO 320 300 IF left AND xb%<>0 THEN IF block(xb%-1,yb%)=0THENleft=FALSE:block(xb%-1,yb%)=1:?char=6:?xc=xb%-1:?yc=yb%:?xoff=0:?yoff=0:CALLdisplay 310 IF NOT left AND xb%<19 THEN IF block(xb%+1,yb%)=0THENleft=TRUE:block(xb%+1,yb%)=1:?char=6:?xc=xb%+1:?yc=yb%:?xoff=0:?yoff=0:CALLdisplay 320 PROCsetpaint(3) 330 xnew=-1:IF INKEY(-98) AND xbat<>0 THEN xnew=xbat-0.5 340 IF INKEY(-67) AND xbat<>18 THEN xnew=xbat+0.5 350 IF xnew=-1 THEN UNTIL FALSE 360 ?char=4:?xc=INT(xbat):?yc=30:?xoff=(xbat*4)AND2:?yoff=0:CALLdisplay:?xc=?xc+1:?char=5:CALLdisplay 370 xbat=xnew 380 ?char=4:?xc=INT(xbat):?xoff=(xbat*4)AND2:CALLdisplay:?xc=?xc+1:?char=5:CALLdisplay 390 UNTIL FALSE 400 END 410 : 420 DEFPROCasschar 430 start=&C00:bitmap=&2F00:file$="B+B" 440 FORpass=0 TO 2 STEP 2 450 P%=start:[OPTpass 460 .display LDAyc:AND#1:TAY:LDAlorow,Y:STA&70:LDAyc:LSR A:CLC:ADCyc:ADCyc:ADC#&30:STA&71:LDAxc:ASL A:STA&72:LDA#0:ROL A:STA&73:ASL&72:ROL&73:ASL&72:ROL&73:ASL&72:ROL&73:ASL&72:ROL&73:LDA&70:CLC:ADC&72:STA&70:LDA&71:ADC&73:STA&71 470 LDA&70:CLC:ADCyoff:STA&70:LDA&71:ADC#0:STA&71:LDAxoff:ASL A:ASL A:ASL A:CLC:ADC&70:STA&70:LDA&71:ADC#0:STA&71 480 LDAchar:ASL A:ASL A:ASL A:STA&72:LDA#0:ROL A:STA&73:ASL&72:ROL&73:ASL&72:ROL&73:LDA&72:CLC:ADC#(bitmap MOD 256):STA&72:LDA&73:ADC#(bitmap DIV 256):STA&73 490 LDA#8:PHA:.col LDX#3:.row TXA:ASL A:ASL A:ASL A:TAY:LDA(&70),Y:.settype LDA(&72),Y:STA(&70),Y:DEX:BPLrow:PLA:TAX:DEX:CPX#0:BEQfindisp:TXA:PHA:INC&72:LDA&70:CLC:ADC#1:PHA:STA&70:LDA&71:ADC#0:STA&71:PLA:AND#7:BNEcol 500 LDA&70:CLC:ADC#&78:STA&70:LDA&71:ADC#2:STA&71:JMPcol 510 .findisp RTS 520 .lorow EQUB0:EQUB&80:.xc EQUB0:.yc EQUB0:.xoff EQUB0:.yoff EQUB0:.char EQUB0 530 ]:NEXT:OSCLI"LOAD "+file$+" 2F00" 540 ENDPROC 550 : 560 DEFPROCsetpaint(type) 570 IF type=0 THEN ?settype=&B1 580 IF type=1 THEN ?settype=&11 590 IF type=2 THEN ?settype=&31 600 IF type=3 THEN ?settype=&51 610 ENDPROC
�2:�=&2F00:�asschar " � Put your program code here! �setpaint(3) ( �block(19,9) 2I ?xoff=0:?yoff=0:�x=0�19:�y=0�9:?char=1+�(2):?xc=x:?yc=y:�display:�:� <# xball=37:yball=100:up=�:left=� F xbat=9 PJ ?char=4:?xc=9:?yc=30:?xoff=0:?yoff=0:�display:?xc=10:?char=5:�display ZM ?char=0:?xc=xball �4:?yc=yball �8:?xoff=xball �3:?yoff=yball �7:�display d � n) � left � xnew=xball-2 � xnew=xball+2 x' � up � ynew=yball-4 � ynew=yball+4 � � ynew<4 � up=� �0 � ynew=248 � �7:� � �(-99):xnew=37:ynew=100 � � xnew=1 � left=� � � xnew=75 � left=� �M ?char=0:?xc=xball �4:?yc=yball �8:?xoff=xball �3:?yoff=yball �7:�display � xball=xnew:yball=ynew �M ?char=0:?xc=xball �4:?yc=yball �8:?xoff=xball �3:?yoff=yball �7:�display �A � yball=232 � (xball>(xbat-2)*4) � (xball<(xbat+2)*4) � up=� � � yball>80 � � �DJA �+ xb%=xball �4:yb%=yball �8:�setpaint(0) �t � up � yb%<>0 � � block(xb%,yb%-1)=0�up=�:block(xb%,yb%-1)=1:?char=6:?xc=xb%:?yc=yb%-1:?xoff=0:?yoff=0:�display � � up � left � yb%<>0 � xb%<>0 � � block(xb%-1,yb%-1)=0�up=�:left=�:block(xb%-1,yb%-1)=1:?char=6:?xc=xb%-1:?yc=yb%-1:?xoff=0:?yoff=0:�display �� � up � (� left) � yb%<>0 � xb%<19 � � block(xb%+1,yb%-1)=0�up=�:left=�:block(xb%+1,yb%-1)=1:?char=6:?xc=xb%+1:?yc=yb%-1:?xoff=0:?yoff=0:�display u � � up � yb%<9 � � block(xb%,yb%+1)=0�up=�:block(xb%,yb%+1)=1:?char=6:?xc=xb%:?yc=yb%+1:?xoff=0:?yoff=0:�display � � (� up) � left � xb%<>0 � yb%<9 � � block(xb%-1,yb%+1)=0�up=�:left=�:block(xb%-1,yb%+1)=1:?char=6:?xc=xb%-1:?yc=yb%+1:?xoff=0:?yoff=0:�display � � (� up) � (� left) � xb%<19 � yb%<9 � � block(xb%+1,yb%+1)=0�up=�:left=�:block(xb%+1,yb%+1)=1:?char=6:?xc=xb%+1:?yc=yb%+1:?xoff=0:?yoff=0:�display " � yb%>9 � � �D@A ,x � left � xb%<>0 � � block(xb%-1,yb%)=0�left=�:block(xb%-1,yb%)=1:?char=6:?xc=xb%-1:?yc=yb%:?xoff=0:?yoff=0:�display 6z � � left � xb%<19 � � block(xb%+1,yb%)=0�left=�:block(xb%+1,yb%)=1:?char=6:?xc=xb%+1:?yc=yb%:?xoff=0:?yoff=0:�display @ �setpaint(3) J/ xnew=-1:� �(-98) � xbat<>0 � xnew=xbat-0.5 T( � �(-67) � xbat<>18 � xnew=xbat+0.5 ^ � xnew=-1 � � � h\ ?char=4:?xc=�(xbat):?yc=30:?xoff=(xbat*4)�2:?yoff=0:�display:?xc=?xc+1:?char=5:�display r xbat=xnew |M ?char=4:?xc=�(xbat):?xoff=(xbat*4)�2:�display:?xc=?xc+1:?char=5:�display � � � � � � : � ��asschar �( start=&C00:bitmap=&2F00:file$="B+B" � �pass=0 � 2 � 2 � P%=start:[OPTpass �� .display LDAyc:�#1:TAY:LDAlorow,Y:STA&70:LDAyc:LSR A:CLC:ADCyc:ADCyc:ADC#&30:STA&71:LDAxc:ASL A:STA&72:LDA#0:ROL A:STA&73:ASL&72:ROL&73:ASL&72:ROL&73:ASL&72:ROL&73:ASL&72:ROL&73:LDA&70:CLC:ADC&72:STA&70:LDA&71:ADC&73:STA&71 �r LDA&70:CLC:ADCyoff:STA&70:LDA&71:ADC#0:STA&71:LDAxoff:ASL A:ASL A:ASL A:CLC:ADC&70:STA&70:LDA&71:ADC#0:STA&71 � LDAchar:ASL A:ASL A:ASL A:STA&72:LDA#0:ROL A:STA&73:ASL&72:ROL&73:ASL&72:ROL&73:LDA&72:CLC:ADC#(bitmap � 256):STA&72:LDA&73:ADC#(bitmap � 256):STA&73 �� LDA#8:PHA:.col LDX#3:.row TXA:ASL A:ASL A:ASL A:TAY:LDA(&70),Y:.settype LDA(&72),Y:STA(&70),Y:DEX:BPLrow:PLA:TAX:DEX:CPX#0:BEQfindisp:TXA:PHA:INC&72:LDA&70:CLC:ADC#1:PHA:STA&70:LDA&71:ADC#0:STA&71:PLA:�#7:BNEcol �9 LDA&70:CLC:ADC#&78:STA&70:LDA&71:ADC#2:STA&71:JMPcol � .findisp RTS Q .lorow EQUB0:EQUB&80:.xc EQUB0:.yc EQUB0:.xoff EQUB0:.yoff EQUB0:.char EQUB0 ]:�:�"LOAD "+file$+" 2F00" � & : 0 ��setpaint(type) : � type=0 � ?settype=&B1 D � type=1 � ?settype=&11 N � type=2 � ?settype=&31 X � type=3 � ?settype=&51 b � �
00000000 0d 00 0a 18 20 eb 32 3a d3 3d 26 32 46 30 30 3a |.... .2:.=&2F00:| 00000010 f2 61 73 73 63 68 61 72 0d 00 14 22 20 f4 20 50 |.asschar..." . P| 00000020 75 74 20 79 6f 75 72 20 70 72 6f 67 72 61 6d 20 |ut your program | 00000030 63 6f 64 65 20 68 65 72 65 21 0d 00 1e 11 20 f2 |code here!.... .| 00000040 73 65 74 70 61 69 6e 74 28 33 29 0d 00 28 11 20 |setpaint(3)..(. | 00000050 de 62 6c 6f 63 6b 28 31 39 2c 39 29 0d 00 32 49 |.block(19,9)..2I| 00000060 20 3f 78 6f 66 66 3d 30 3a 3f 79 6f 66 66 3d 30 | ?xoff=0:?yoff=0| 00000070 3a e3 78 3d 30 b8 31 39 3a e3 79 3d 30 b8 39 3a |:.x=0.19:.y=0.9:| 00000080 3f 63 68 61 72 3d 31 2b b3 28 32 29 3a 3f 78 63 |?char=1+.(2):?xc| 00000090 3d 78 3a 3f 79 63 3d 79 3a d6 64 69 73 70 6c 61 |=x:?yc=y:.displa| 000000a0 79 3a ed 3a ed 0d 00 3c 23 20 78 62 61 6c 6c 3d |y:.:...<# xball=| 000000b0 33 37 3a 79 62 61 6c 6c 3d 31 30 30 3a 75 70 3d |37:yball=100:up=| 000000c0 a3 3a 6c 65 66 74 3d a3 0d 00 46 0b 20 78 62 61 |.:left=...F. xba| 000000d0 74 3d 39 0d 00 50 4a 20 3f 63 68 61 72 3d 34 3a |t=9..PJ ?char=4:| 000000e0 3f 78 63 3d 39 3a 3f 79 63 3d 33 30 3a 3f 78 6f |?xc=9:?yc=30:?xo| 000000f0 66 66 3d 30 3a 3f 79 6f 66 66 3d 30 3a d6 64 69 |ff=0:?yoff=0:.di| 00000100 73 70 6c 61 79 3a 3f 78 63 3d 31 30 3a 3f 63 68 |splay:?xc=10:?ch| 00000110 61 72 3d 35 3a d6 64 69 73 70 6c 61 79 0d 00 5a |ar=5:.display..Z| 00000120 4d 20 3f 63 68 61 72 3d 30 3a 3f 78 63 3d 78 62 |M ?char=0:?xc=xb| 00000130 61 6c 6c 20 81 34 3a 3f 79 63 3d 79 62 61 6c 6c |all .4:?yc=yball| 00000140 20 81 38 3a 3f 78 6f 66 66 3d 78 62 61 6c 6c 20 | .8:?xoff=xball | 00000150 80 33 3a 3f 79 6f 66 66 3d 79 62 61 6c 6c 20 80 |.3:?yoff=yball .| 00000160 37 3a d6 64 69 73 70 6c 61 79 0d 00 64 06 20 f5 |7:.display..d. .| 00000170 0d 00 6e 29 20 e7 20 6c 65 66 74 20 8c 20 78 6e |..n) . left . xn| 00000180 65 77 3d 78 62 61 6c 6c 2d 32 20 8b 20 78 6e 65 |ew=xball-2 . xne| 00000190 77 3d 78 62 61 6c 6c 2b 32 0d 00 78 27 20 e7 20 |w=xball+2..x' . | 000001a0 75 70 20 8c 20 79 6e 65 77 3d 79 62 61 6c 6c 2d |up . ynew=yball-| 000001b0 34 20 8b 20 79 6e 65 77 3d 79 62 61 6c 6c 2b 34 |4 . ynew=yball+4| 000001c0 0d 00 82 14 20 e7 20 79 6e 65 77 3c 34 20 8c 20 |.... . ynew<4 . | 000001d0 75 70 3d a3 0d 00 8c 30 20 e7 20 79 6e 65 77 3d |up=....0 . ynew=| 000001e0 32 34 38 20 8c 20 ef 37 3a f5 20 fd 20 a6 28 2d |248 . .7:. . .(-| 000001f0 39 39 29 3a 78 6e 65 77 3d 33 37 3a 79 6e 65 77 |99):xnew=37:ynew| 00000200 3d 31 30 30 0d 00 96 16 20 e7 20 78 6e 65 77 3d |=100.... . xnew=| 00000210 31 20 8c 20 6c 65 66 74 3d a3 0d 00 a0 17 20 e7 |1 . left=..... .| 00000220 20 78 6e 65 77 3d 37 35 20 8c 20 6c 65 66 74 3d | xnew=75 . left=| 00000230 b9 0d 00 aa 4d 20 3f 63 68 61 72 3d 30 3a 3f 78 |....M ?char=0:?x| 00000240 63 3d 78 62 61 6c 6c 20 81 34 3a 3f 79 63 3d 79 |c=xball .4:?yc=y| 00000250 62 61 6c 6c 20 81 38 3a 3f 78 6f 66 66 3d 78 62 |ball .8:?xoff=xb| 00000260 61 6c 6c 20 80 33 3a 3f 79 6f 66 66 3d 79 62 61 |all .3:?yoff=yba| 00000270 6c 6c 20 80 37 3a d6 64 69 73 70 6c 61 79 0d 00 |ll .7:.display..| 00000280 b4 1a 20 78 62 61 6c 6c 3d 78 6e 65 77 3a 79 62 |.. xball=xnew:yb| 00000290 61 6c 6c 3d 79 6e 65 77 0d 00 be 4d 20 3f 63 68 |all=ynew...M ?ch| 000002a0 61 72 3d 30 3a 3f 78 63 3d 78 62 61 6c 6c 20 81 |ar=0:?xc=xball .| 000002b0 34 3a 3f 79 63 3d 79 62 61 6c 6c 20 81 38 3a 3f |4:?yc=yball .8:?| 000002c0 78 6f 66 66 3d 78 62 61 6c 6c 20 80 33 3a 3f 79 |xoff=xball .3:?y| 000002d0 6f 66 66 3d 79 62 61 6c 6c 20 80 37 3a d6 64 69 |off=yball .7:.di| 000002e0 73 70 6c 61 79 0d 00 c8 41 20 e7 20 79 62 61 6c |splay...A . ybal| 000002f0 6c 3d 32 33 32 20 80 20 28 78 62 61 6c 6c 3e 28 |l=232 . (xball>(| 00000300 78 62 61 74 2d 32 29 2a 34 29 20 80 20 28 78 62 |xbat-2)*4) . (xb| 00000310 61 6c 6c 3c 28 78 62 61 74 2b 32 29 2a 34 29 20 |all<(xbat+2)*4) | 00000320 8c 20 75 70 3d b9 0d 00 d2 18 20 e7 20 79 62 61 |. up=..... . yba| 00000330 6c 6c 3e 38 30 20 8c 20 e5 20 8d 44 4a 41 0d 00 |ll>80 . . .DJA..| 00000340 dc 2b 20 78 62 25 3d 78 62 61 6c 6c 20 81 34 3a |.+ xb%=xball .4:| 00000350 79 62 25 3d 79 62 61 6c 6c 20 81 38 3a f2 73 65 |yb%=yball .8:.se| 00000360 74 70 61 69 6e 74 28 30 29 0d 00 e6 74 20 e7 20 |tpaint(0)...t . | 00000370 75 70 20 80 20 79 62 25 3c 3e 30 20 8c 20 e7 20 |up . yb%<>0 . . | 00000380 62 6c 6f 63 6b 28 78 62 25 2c 79 62 25 2d 31 29 |block(xb%,yb%-1)| 00000390 3d 30 8c 75 70 3d a3 3a 62 6c 6f 63 6b 28 78 62 |=0.up=.:block(xb| 000003a0 25 2c 79 62 25 2d 31 29 3d 31 3a 3f 63 68 61 72 |%,yb%-1)=1:?char| 000003b0 3d 36 3a 3f 78 63 3d 78 62 25 3a 3f 79 63 3d 79 |=6:?xc=xb%:?yc=y| 000003c0 62 25 2d 31 3a 3f 78 6f 66 66 3d 30 3a 3f 79 6f |b%-1:?xoff=0:?yo| 000003d0 66 66 3d 30 3a d6 64 69 73 70 6c 61 79 0d 00 f0 |ff=0:.display...| 000003e0 91 20 e7 20 75 70 20 80 20 6c 65 66 74 20 80 20 |. . up . left . | 000003f0 79 62 25 3c 3e 30 20 80 20 78 62 25 3c 3e 30 20 |yb%<>0 . xb%<>0 | 00000400 8c 20 e7 20 62 6c 6f 63 6b 28 78 62 25 2d 31 2c |. . block(xb%-1,| 00000410 79 62 25 2d 31 29 3d 30 8c 75 70 3d a3 3a 6c 65 |yb%-1)=0.up=.:le| 00000420 66 74 3d a3 3a 62 6c 6f 63 6b 28 78 62 25 2d 31 |ft=.:block(xb%-1| 00000430 2c 79 62 25 2d 31 29 3d 31 3a 3f 63 68 61 72 3d |,yb%-1)=1:?char=| 00000440 36 3a 3f 78 63 3d 78 62 25 2d 31 3a 3f 79 63 3d |6:?xc=xb%-1:?yc=| 00000450 79 62 25 2d 31 3a 3f 78 6f 66 66 3d 30 3a 3f 79 |yb%-1:?xoff=0:?y| 00000460 6f 66 66 3d 30 3a d6 64 69 73 70 6c 61 79 0d 00 |off=0:.display..| 00000470 fa 95 20 e7 20 75 70 20 80 20 28 ac 20 6c 65 66 |.. . up . (. lef| 00000480 74 29 20 80 20 79 62 25 3c 3e 30 20 80 20 78 62 |t) . yb%<>0 . xb| 00000490 25 3c 31 39 20 8c 20 e7 20 62 6c 6f 63 6b 28 78 |%<19 . . block(x| 000004a0 62 25 2b 31 2c 79 62 25 2d 31 29 3d 30 8c 75 70 |b%+1,yb%-1)=0.up| 000004b0 3d a3 3a 6c 65 66 74 3d b9 3a 62 6c 6f 63 6b 28 |=.:left=.:block(| 000004c0 78 62 25 2b 31 2c 79 62 25 2d 31 29 3d 31 3a 3f |xb%+1,yb%-1)=1:?| 000004d0 63 68 61 72 3d 36 3a 3f 78 63 3d 78 62 25 2b 31 |char=6:?xc=xb%+1| 000004e0 3a 3f 79 63 3d 79 62 25 2d 31 3a 3f 78 6f 66 66 |:?yc=yb%-1:?xoff| 000004f0 3d 30 3a 3f 79 6f 66 66 3d 30 3a d6 64 69 73 70 |=0:?yoff=0:.disp| 00000500 6c 61 79 0d 01 04 75 20 e7 20 ac 20 75 70 20 80 |lay...u . . up .| 00000510 20 79 62 25 3c 39 20 8c 20 e7 20 62 6c 6f 63 6b | yb%<9 . . block| 00000520 28 78 62 25 2c 79 62 25 2b 31 29 3d 30 8c 75 70 |(xb%,yb%+1)=0.up| 00000530 3d b9 3a 62 6c 6f 63 6b 28 78 62 25 2c 79 62 25 |=.:block(xb%,yb%| 00000540 2b 31 29 3d 31 3a 3f 63 68 61 72 3d 36 3a 3f 78 |+1)=1:?char=6:?x| 00000550 63 3d 78 62 25 3a 3f 79 63 3d 79 62 25 2b 31 3a |c=xb%:?yc=yb%+1:| 00000560 3f 78 6f 66 66 3d 30 3a 3f 79 6f 66 66 3d 30 3a |?xoff=0:?yoff=0:| 00000570 d6 64 69 73 70 6c 61 79 0d 01 0e 94 20 e7 20 28 |.display.... . (| 00000580 ac 20 75 70 29 20 80 20 6c 65 66 74 20 80 20 78 |. up) . left . x| 00000590 62 25 3c 3e 30 20 80 20 79 62 25 3c 39 20 8c 20 |b%<>0 . yb%<9 . | 000005a0 e7 20 62 6c 6f 63 6b 28 78 62 25 2d 31 2c 79 62 |. block(xb%-1,yb| 000005b0 25 2b 31 29 3d 30 8c 75 70 3d b9 3a 6c 65 66 74 |%+1)=0.up=.:left| 000005c0 3d a3 3a 62 6c 6f 63 6b 28 78 62 25 2d 31 2c 79 |=.:block(xb%-1,y| 000005d0 62 25 2b 31 29 3d 31 3a 3f 63 68 61 72 3d 36 3a |b%+1)=1:?char=6:| 000005e0 3f 78 63 3d 78 62 25 2d 31 3a 3f 79 63 3d 79 62 |?xc=xb%-1:?yc=yb| 000005f0 25 2b 31 3a 3f 78 6f 66 66 3d 30 3a 3f 79 6f 66 |%+1:?xoff=0:?yof| 00000600 66 3d 30 3a d6 64 69 73 70 6c 61 79 0d 01 18 98 |f=0:.display....| 00000610 20 e7 20 28 ac 20 75 70 29 20 80 20 28 ac 20 6c | . (. up) . (. l| 00000620 65 66 74 29 20 80 20 78 62 25 3c 31 39 20 80 20 |eft) . xb%<19 . | 00000630 79 62 25 3c 39 20 8c 20 e7 20 62 6c 6f 63 6b 28 |yb%<9 . . block(| 00000640 78 62 25 2b 31 2c 79 62 25 2b 31 29 3d 30 8c 75 |xb%+1,yb%+1)=0.u| 00000650 70 3d b9 3a 6c 65 66 74 3d b9 3a 62 6c 6f 63 6b |p=.:left=.:block| 00000660 28 78 62 25 2b 31 2c 79 62 25 2b 31 29 3d 31 3a |(xb%+1,yb%+1)=1:| 00000670 3f 63 68 61 72 3d 36 3a 3f 78 63 3d 78 62 25 2b |?char=6:?xc=xb%+| 00000680 31 3a 3f 79 63 3d 79 62 25 2b 31 3a 3f 78 6f 66 |1:?yc=yb%+1:?xof| 00000690 66 3d 30 3a 3f 79 6f 66 66 3d 30 3a d6 64 69 73 |f=0:?yoff=0:.dis| 000006a0 70 6c 61 79 0d 01 22 15 20 e7 20 79 62 25 3e 39 |play..". . yb%>9| 000006b0 20 8c 20 e5 20 8d 44 40 41 0d 01 2c 78 20 e7 20 | . . .D@A..,x . | 000006c0 6c 65 66 74 20 80 20 78 62 25 3c 3e 30 20 8c 20 |left . xb%<>0 . | 000006d0 e7 20 62 6c 6f 63 6b 28 78 62 25 2d 31 2c 79 62 |. block(xb%-1,yb| 000006e0 25 29 3d 30 8c 6c 65 66 74 3d a3 3a 62 6c 6f 63 |%)=0.left=.:bloc| 000006f0 6b 28 78 62 25 2d 31 2c 79 62 25 29 3d 31 3a 3f |k(xb%-1,yb%)=1:?| 00000700 63 68 61 72 3d 36 3a 3f 78 63 3d 78 62 25 2d 31 |char=6:?xc=xb%-1| 00000710 3a 3f 79 63 3d 79 62 25 3a 3f 78 6f 66 66 3d 30 |:?yc=yb%:?xoff=0| 00000720 3a 3f 79 6f 66 66 3d 30 3a d6 64 69 73 70 6c 61 |:?yoff=0:.displa| 00000730 79 0d 01 36 7a 20 e7 20 ac 20 6c 65 66 74 20 80 |y..6z . . left .| 00000740 20 78 62 25 3c 31 39 20 8c 20 e7 20 62 6c 6f 63 | xb%<19 . . bloc| 00000750 6b 28 78 62 25 2b 31 2c 79 62 25 29 3d 30 8c 6c |k(xb%+1,yb%)=0.l| 00000760 65 66 74 3d b9 3a 62 6c 6f 63 6b 28 78 62 25 2b |eft=.:block(xb%+| 00000770 31 2c 79 62 25 29 3d 31 3a 3f 63 68 61 72 3d 36 |1,yb%)=1:?char=6| 00000780 3a 3f 78 63 3d 78 62 25 2b 31 3a 3f 79 63 3d 79 |:?xc=xb%+1:?yc=y| 00000790 62 25 3a 3f 78 6f 66 66 3d 30 3a 3f 79 6f 66 66 |b%:?xoff=0:?yoff| 000007a0 3d 30 3a d6 64 69 73 70 6c 61 79 0d 01 40 11 20 |=0:.display..@. | 000007b0 f2 73 65 74 70 61 69 6e 74 28 33 29 0d 01 4a 2f |.setpaint(3)..J/| 000007c0 20 78 6e 65 77 3d 2d 31 3a e7 20 a6 28 2d 39 38 | xnew=-1:. .(-98| 000007d0 29 20 80 20 78 62 61 74 3c 3e 30 20 8c 20 78 6e |) . xbat<>0 . xn| 000007e0 65 77 3d 78 62 61 74 2d 30 2e 35 0d 01 54 28 20 |ew=xbat-0.5..T( | 000007f0 e7 20 a6 28 2d 36 37 29 20 80 20 78 62 61 74 3c |. .(-67) . xbat<| 00000800 3e 31 38 20 8c 20 78 6e 65 77 3d 78 62 61 74 2b |>18 . xnew=xbat+| 00000810 30 2e 35 0d 01 5e 14 20 e7 20 78 6e 65 77 3d 2d |0.5..^. . xnew=-| 00000820 31 20 8c 20 fd 20 a3 0d 01 68 5c 20 3f 63 68 61 |1 . . ...h\ ?cha| 00000830 72 3d 34 3a 3f 78 63 3d a8 28 78 62 61 74 29 3a |r=4:?xc=.(xbat):| 00000840 3f 79 63 3d 33 30 3a 3f 78 6f 66 66 3d 28 78 62 |?yc=30:?xoff=(xb| 00000850 61 74 2a 34 29 80 32 3a 3f 79 6f 66 66 3d 30 3a |at*4).2:?yoff=0:| 00000860 d6 64 69 73 70 6c 61 79 3a 3f 78 63 3d 3f 78 63 |.display:?xc=?xc| 00000870 2b 31 3a 3f 63 68 61 72 3d 35 3a d6 64 69 73 70 |+1:?char=5:.disp| 00000880 6c 61 79 0d 01 72 0e 20 78 62 61 74 3d 78 6e 65 |lay..r. xbat=xne| 00000890 77 0d 01 7c 4d 20 3f 63 68 61 72 3d 34 3a 3f 78 |w..|M ?char=4:?x| 000008a0 63 3d a8 28 78 62 61 74 29 3a 3f 78 6f 66 66 3d |c=.(xbat):?xoff=| 000008b0 28 78 62 61 74 2a 34 29 80 32 3a d6 64 69 73 70 |(xbat*4).2:.disp| 000008c0 6c 61 79 3a 3f 78 63 3d 3f 78 63 2b 31 3a 3f 63 |lay:?xc=?xc+1:?c| 000008d0 68 61 72 3d 35 3a d6 64 69 73 70 6c 61 79 0d 01 |har=5:.display..| 000008e0 86 08 20 fd 20 a3 0d 01 90 06 20 e0 0d 01 9a 06 |.. . ..... .....| 000008f0 20 3a 0d 01 a4 0e 20 dd f2 61 73 73 63 68 61 72 | :.... ..asschar| 00000900 0d 01 ae 28 20 73 74 61 72 74 3d 26 43 30 30 3a |...( start=&C00:| 00000910 62 69 74 6d 61 70 3d 26 32 46 30 30 3a 66 69 6c |bitmap=&2F00:fil| 00000920 65 24 3d 22 42 2b 42 22 0d 01 b8 14 20 e3 70 61 |e$="B+B".... .pa| 00000930 73 73 3d 30 20 b8 20 32 20 88 20 32 0d 01 c2 16 |ss=0 . 2 . 2....| 00000940 20 50 25 3d 73 74 61 72 74 3a 5b 4f 50 54 70 61 | P%=start:[OPTpa| 00000950 73 73 0d 01 cc e4 20 2e 64 69 73 70 6c 61 79 20 |ss.... .display | 00000960 4c 44 41 79 63 3a 80 23 31 3a 54 41 59 3a 4c 44 |LDAyc:.#1:TAY:LD| 00000970 41 6c 6f 72 6f 77 2c 59 3a 53 54 41 26 37 30 3a |Alorow,Y:STA&70:| 00000980 4c 44 41 79 63 3a 4c 53 52 20 41 3a 43 4c 43 3a |LDAyc:LSR A:CLC:| 00000990 41 44 43 79 63 3a 41 44 43 79 63 3a 41 44 43 23 |ADCyc:ADCyc:ADC#| 000009a0 26 33 30 3a 53 54 41 26 37 31 3a 4c 44 41 78 63 |&30:STA&71:LDAxc| 000009b0 3a 41 53 4c 20 41 3a 53 54 41 26 37 32 3a 4c 44 |:ASL A:STA&72:LD| 000009c0 41 23 30 3a 52 4f 4c 20 41 3a 53 54 41 26 37 33 |A#0:ROL A:STA&73| 000009d0 3a 41 53 4c 26 37 32 3a 52 4f 4c 26 37 33 3a 41 |:ASL&72:ROL&73:A| 000009e0 53 4c 26 37 32 3a 52 4f 4c 26 37 33 3a 41 53 4c |SL&72:ROL&73:ASL| 000009f0 26 37 32 3a 52 4f 4c 26 37 33 3a 41 53 4c 26 37 |&72:ROL&73:ASL&7| 00000a00 32 3a 52 4f 4c 26 37 33 3a 4c 44 41 26 37 30 3a |2:ROL&73:LDA&70:| 00000a10 43 4c 43 3a 41 44 43 26 37 32 3a 53 54 41 26 37 |CLC:ADC&72:STA&7| 00000a20 30 3a 4c 44 41 26 37 31 3a 41 44 43 26 37 33 3a |0:LDA&71:ADC&73:| 00000a30 53 54 41 26 37 31 0d 01 d6 72 20 4c 44 41 26 37 |STA&71...r LDA&7| 00000a40 30 3a 43 4c 43 3a 41 44 43 79 6f 66 66 3a 53 54 |0:CLC:ADCyoff:ST| 00000a50 41 26 37 30 3a 4c 44 41 26 37 31 3a 41 44 43 23 |A&70:LDA&71:ADC#| 00000a60 30 3a 53 54 41 26 37 31 3a 4c 44 41 78 6f 66 66 |0:STA&71:LDAxoff| 00000a70 3a 41 53 4c 20 41 3a 41 53 4c 20 41 3a 41 53 4c |:ASL A:ASL A:ASL| 00000a80 20 41 3a 43 4c 43 3a 41 44 43 26 37 30 3a 53 54 | A:CLC:ADC&70:ST| 00000a90 41 26 37 30 3a 4c 44 41 26 37 31 3a 41 44 43 23 |A&70:LDA&71:ADC#| 00000aa0 30 3a 53 54 41 26 37 31 0d 01 e0 9a 20 4c 44 41 |0:STA&71.... LDA| 00000ab0 63 68 61 72 3a 41 53 4c 20 41 3a 41 53 4c 20 41 |char:ASL A:ASL A| 00000ac0 3a 41 53 4c 20 41 3a 53 54 41 26 37 32 3a 4c 44 |:ASL A:STA&72:LD| 00000ad0 41 23 30 3a 52 4f 4c 20 41 3a 53 54 41 26 37 33 |A#0:ROL A:STA&73| 00000ae0 3a 41 53 4c 26 37 32 3a 52 4f 4c 26 37 33 3a 41 |:ASL&72:ROL&73:A| 00000af0 53 4c 26 37 32 3a 52 4f 4c 26 37 33 3a 4c 44 41 |SL&72:ROL&73:LDA| 00000b00 26 37 32 3a 43 4c 43 3a 41 44 43 23 28 62 69 74 |&72:CLC:ADC#(bit| 00000b10 6d 61 70 20 83 20 32 35 36 29 3a 53 54 41 26 37 |map . 256):STA&7| 00000b20 32 3a 4c 44 41 26 37 33 3a 41 44 43 23 28 62 69 |2:LDA&73:ADC#(bi| 00000b30 74 6d 61 70 20 81 20 32 35 36 29 3a 53 54 41 26 |tmap . 256):STA&| 00000b40 37 33 0d 01 ea d8 20 4c 44 41 23 38 3a 50 48 41 |73.... LDA#8:PHA| 00000b50 3a 2e 63 6f 6c 20 4c 44 58 23 33 3a 2e 72 6f 77 |:.col LDX#3:.row| 00000b60 20 54 58 41 3a 41 53 4c 20 41 3a 41 53 4c 20 41 | TXA:ASL A:ASL A| 00000b70 3a 41 53 4c 20 41 3a 54 41 59 3a 4c 44 41 28 26 |:ASL A:TAY:LDA(&| 00000b80 37 30 29 2c 59 3a 2e 73 65 74 74 79 70 65 20 4c |70),Y:.settype L| 00000b90 44 41 28 26 37 32 29 2c 59 3a 53 54 41 28 26 37 |DA(&72),Y:STA(&7| 00000ba0 30 29 2c 59 3a 44 45 58 3a 42 50 4c 72 6f 77 3a |0),Y:DEX:BPLrow:| 00000bb0 50 4c 41 3a 54 41 58 3a 44 45 58 3a 43 50 58 23 |PLA:TAX:DEX:CPX#| 00000bc0 30 3a 42 45 51 66 69 6e 64 69 73 70 3a 54 58 41 |0:BEQfindisp:TXA| 00000bd0 3a 50 48 41 3a 49 4e 43 26 37 32 3a 4c 44 41 26 |:PHA:INC&72:LDA&| 00000be0 37 30 3a 43 4c 43 3a 41 44 43 23 31 3a 50 48 41 |70:CLC:ADC#1:PHA| 00000bf0 3a 53 54 41 26 37 30 3a 4c 44 41 26 37 31 3a 41 |:STA&70:LDA&71:A| 00000c00 44 43 23 30 3a 53 54 41 26 37 31 3a 50 4c 41 3a |DC#0:STA&71:PLA:| 00000c10 80 23 37 3a 42 4e 45 63 6f 6c 0d 01 f4 39 20 4c |.#7:BNEcol...9 L| 00000c20 44 41 26 37 30 3a 43 4c 43 3a 41 44 43 23 26 37 |DA&70:CLC:ADC#&7| 00000c30 38 3a 53 54 41 26 37 30 3a 4c 44 41 26 37 31 3a |8:STA&70:LDA&71:| 00000c40 41 44 43 23 32 3a 53 54 41 26 37 31 3a 4a 4d 50 |ADC#2:STA&71:JMP| 00000c50 63 6f 6c 0d 01 fe 11 20 2e 66 69 6e 64 69 73 70 |col.... .findisp| 00000c60 20 52 54 53 0d 02 08 51 20 2e 6c 6f 72 6f 77 20 | RTS...Q .lorow | 00000c70 45 51 55 42 30 3a 45 51 55 42 26 38 30 3a 2e 78 |EQUB0:EQUB&80:.x| 00000c80 63 20 45 51 55 42 30 3a 2e 79 63 20 45 51 55 42 |c EQUB0:.yc EQUB| 00000c90 30 3a 2e 78 6f 66 66 20 45 51 55 42 30 3a 2e 79 |0:.xoff EQUB0:.y| 00000ca0 6f 66 66 20 45 51 55 42 30 3a 2e 63 68 61 72 20 |off EQUB0:.char | 00000cb0 45 51 55 42 30 0d 02 12 1f 20 5d 3a ed 3a ff 22 |EQUB0.... ]:.:."| 00000cc0 4c 4f 41 44 20 22 2b 66 69 6c 65 24 2b 22 20 32 |LOAD "+file$+" 2| 00000cd0 46 30 30 22 0d 02 1c 06 20 e1 0d 02 26 06 20 3a |F00".... ...&. :| 00000ce0 0d 02 30 15 20 dd f2 73 65 74 70 61 69 6e 74 28 |..0. ..setpaint(| 00000cf0 74 79 70 65 29 0d 02 3a 1c 20 e7 20 74 79 70 65 |type)..:. . type| 00000d00 3d 30 20 8c 20 3f 73 65 74 74 79 70 65 3d 26 42 |=0 . ?settype=&B| 00000d10 31 0d 02 44 1c 20 e7 20 74 79 70 65 3d 31 20 8c |1..D. . type=1 .| 00000d20 20 3f 73 65 74 74 79 70 65 3d 26 31 31 0d 02 4e | ?settype=&11..N| 00000d30 1c 20 e7 20 74 79 70 65 3d 32 20 8c 20 3f 73 65 |. . type=2 . ?se| 00000d40 74 74 79 70 65 3d 26 33 31 0d 02 58 1c 20 e7 20 |ttype=&31..X. . | 00000d50 74 79 70 65 3d 33 20 8c 20 3f 73 65 74 74 79 70 |type=3 . ?settyp| 00000d60 65 3d 26 35 31 0d 02 62 06 20 e1 0d ff |e=&51..b. ...| 00000d6d