Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199604.adf » Features » StarInfo/Vibe/V_TILE+

StarInfo/Vibe/V_TILE+

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199604.adf » Features
Filename: StarInfo/Vibe/V_TILE+
Read OK:
File size: 096A bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > V_TILE+
   11REM Original by Jan Vibe
   12REM RiscPC version by DA
   20
   30ON ERROR MODE 0:PRINT REPORT$" at line ";ERL:END
   40
   50PROCmode("X800 Y600 G256")
   60OFF
   70DIM TX%(1000),TY%(1000)
   80DIM spr &10000
   90spr!0=&FFFF
  100spr!4=0
  110spr!8=16
  120spr!12=16
  130radius%=128
  140diameter%=2*radius%
  150c%=64
  160d%=radius%/15
  170FOR i%=0 TO 255
  180 COLOUR i%,i%,i%,i%
  190NEXT
  200FOR Y%=0 TO diameter% STEP 2
  210 FOR X%=0 TO diameter% STEP 2
  220  C%=255-3*(SQR((X%-radius%)^2+(Y%-radius%)^2)+RND(3)-2)
  230  IF C%>255 C%=255
  240  IF C%<1 C%=1  
  250  SYS "OS_SetColour",0,C%
  260  POINT X%,Y%
  270 NEXT
  280NEXT
  290SYS "OS_SpriteOp",256+16,spr,"BALL",0,0,0,2*radius%,2*radius%
  300SYS "OS_SpriteOp",256+29,spr,"BALL"
  310
  320
  330CLS:T%=0:CT%=0
  340
  350
  360SYS "OS_SetColour",0,255
  370REPEAT
  380 REPEAT
  390  X%=RND(1600)
  400  Y%=RND(1200)
  410  T%+=1
  420 UNTIL POINT(X%,Y%)=0 OR T%=10000
  430 IF T%<10000 THEN
  440  CT%+=1
  450  TX%(CT%)=X%
  460  TY%(CT%)=Y%
  470  T%=0
  480  CIRCLE FILL X%,Y%,c%
  490 ENDIF
  500UNTILT%=10000
  510REM GCOL7
  520REM RECTANGLEFILL 0,0,1280,1024
  530
  540FORI%=c%TOc%/2-2STEP-2
  550 FORN%=1TOCT%
  560  X%=TX%(N%):Y%=TY%(N%)
  570  CX%=X%*(diameter%-2*c%)/1600+c%:CY%=Y%*(diameter%-2*c%)/1200+c%
  580  SYS "XOS_SpriteOp",256+61,spr,"BALL",0
  590  SYS "OS_SetColour",0,0
  600  RECTANGLE FILL 0,0,2*radius%
  610  SYS "OS_SetColour",0,255
  620  CIRCLE FILL CX%,CY%,I%
  630  SYS "XOS_SpriteOp",256+61,spr,0,0:OFF
  640  SYS "XOS_SpriteOp",256+34,spr,"BALL",X%-CX%,Y%-CY%,8
  650 NEXT
  660NEXT
  670
  680DIM pal% 4*256
  690i%=0
  700REPEAT
  710 r%=&C0+&3F*COSRAD(i%/3)
  720 g%=&C0+&3F*COSRAD(i%/5)
  730 b%=&C0+&3F*COSRAD(i%/7)
  740 FOR j%=0 TO 255
  750  a%=pal%+4*j%
  760  ?a%=0
  770  a%?1=(r%*j%)/256
  780  a%?2=(g%*j%)/256
  790  a%?3=(b%*j%)/256
  800 NEXT
  810 !pal%=0
  820 WAIT
  830 SYS "ColourTrans_WritePalette",-1,,pal% 
  840 i%+=1
  850UNTIL FALSE
  870
  880END
  890:
  900
  910DEF PROCmode(mode$)
  920LOCAL c$,ex,ey,mode,end
  930DIM mode 64
  940end=mode+20
  950!mode=1
  960mode!4=VALFN_m(mode$,"X","")
  970mode!8=VALFN_m(mode$,"Y","")
  980c$=FN_m(mode$,"C","*")
  990IF c$="*" THEN
 1000 c$=FN_m(mode$,"G","")
 1010 IF c$="256" !end=3:end!4=255:end+=8
 1020ENDIF
 1030mode!12=FN_bpp(c$)
 1040mode!16=VALFN_m(mode$,"F","-1")
 1050ex=VALFN_m(mode$,"EX","-1")
 1060IF ex<>-1 !end=4:end!4=ex:end+=8
 1070ey=VALFN_m(mode$,"EY","-1")
 1080IF ey<>-1 !end=5:end!4=ey:end+=8
 1090!end=-1
 1100MODE mode
 1110ENDPROC
 1120
 1130DEF FN_m(s$,p$,d$)
 1140LOCAL i,j
 1150i=INSTR(s$,p$)
 1160IF i<1 AND d$="" ERROR 490,"Missing "+p$
 1170IF i<1 THEN =d$
 1180j=INSTR(s$+" "," ",i+1)
 1190=MID$(s$,i+1,j-i-1)
 1200
 1210DEF FN_bpp(n$)
 1220CASE n$ OF
 1230 WHEN "2":=0
 1240 WHEN "4":=1
 1250 WHEN "16":=2
 1260 WHEN "256":=3
 1270 WHEN "32T","32t","32K","32k":=4
 1280 WHEN "16M","16m":=5
 1290 OTHERWISE: ERROR 490,"Bad parameter "+n$
 1300ENDCASE

� > V_TILE+
� Original by Jan Vibe
� RiscPC version by DA

� � � 0:� �$" at line ";�:�
(
2�mode("X800 Y600 G256")
<�
F� TX%(1000),TY%(1000)
P� spr &10000
Zspr!0=&FFFF
dspr!4=0
nspr!8=16
x
spr!12=16
�radius%=128
�diameter%=2*radius%
�	c%=64
�d%=radius%/15
�� i%=0 � 255
� � i%,i%,i%,i%
��
�� Y%=0 � diameter% � 2
� � X%=0 � diameter% � 2
�8  C%=255-3*(�((X%-radius%)^2+(Y%-radius%)^2)+�(3)-2)
�  � C%>255 C%=255
�  � C%<1 C%=1  
�  ș "OS_SetColour",0,C%
  Ȓ X%,Y%
 �
�
"@ș "OS_SpriteOp",256+16,spr,"BALL",0,0,0,2*radius%,2*radius%
,&ș "OS_SpriteOp",256+29,spr,"BALL"
6
@
J�:T%=0:CT%=0
T
^
hș "OS_SetColour",0,255
r�
| �
�  X%=�(1600)
�  Y%=�(1200)
�  T%+=1
� � �X%,Y%)=0 � T%=10000
� � T%<10000 �
�  CT%+=1
�  TX%(CT%)=X%
�  TY%(CT%)=Y%
�
  T%=0
�  ȏ Ȑ X%,Y%,c%
� �
�
�T%=10000
�� GCOL7
!� RECTANGLEFILL 0,0,1280,1024

�I%=c%�c%/2-2�-2
& �N%=1�CT%
0  X%=TX%(N%):Y%=TY%(N%)
:E  CX%=X%*(diameter%-2*c%)/1600+c%:CY%=Y%*(diameter%-2*c%)/1200+c%
D+  ș "XOS_SpriteOp",256+61,spr,"BALL",0
N  ș "OS_SetColour",0,0
X  ȓ Ȑ 0,0,2*radius%
b  ș "OS_SetColour",0,255
l  ȏ Ȑ CX%,CY%,I%
v(  ș "XOS_SpriteOp",256+61,spr,0,0:�
�9  ș "XOS_SpriteOp",256+34,spr,"BALL",X%-CX%,Y%-CY%,8
� �
��
�
�� pal% 4*256
�i%=0
��
� r%=&C0+&3F*��(i%/3)
� g%=&C0+&3F*��(i%/5)
� b%=&C0+&3F*��(i%/7)
� � j%=0 � 255
�  a%=pal%+4*j%
�  ?a%=0
  a%?1=(r%*j%)/256
  a%?2=(g%*j%)/256
  a%?3=(b%*j%)/256
  �
* !pal%=0
4 Ȗ
>, ș "ColourTrans_WritePalette",-1,,pal% 
H
 i%+=1
R� �
f
p�
z:
�
�� �mode(mode$)
�� c$,ex,ey,mode,end
�
� mode 64
�end=mode+20
�!mode=1
�mode!4=��_m(mode$,"X","")
�mode!8=��_m(mode$,"Y","")
�c$=�_m(mode$,"C","*")
�� c$="*" �
� c$=�_m(mode$,"G","")
�' � c$="256" !end=3:end!4=255:end+=8
��
mode!12=�_bpp(c$)
 mode!16=��_m(mode$,"F","-1")
ex=��_m(mode$,"EX","-1")
$#� ex<>-1 !end=4:end!4=ex:end+=8
.ey=��_m(mode$,"EY","-1")
8#� ey<>-1 !end=5:end!4=ey:end+=8
B!end=-1
L
� mode
V�
`
j� �_m(s$,p$,d$)
t	� i,j
~
i=�s$,p$)
�%� i<1 � d$="" � 490,"Missing "+p$
�� i<1 � =d$
�j=�s$+" "," ",i+1)
�=�s$,i+1,j-i-1)
�
�� �_bpp(n$)
�Ȏ n$ �
�
 � "2":=0
�
 � "4":=1
� � "16":=2
� � "256":=3
�! � "32T","32t","32K","32k":=4
 � "16M","16m":=5

! : � 490,"Bad parameter "+n$
�
�
00000000  0d 00 0a 0f f4 20 3e 20  56 5f 54 49 4c 45 2b 0d  |..... > V_TILE+.|
00000010  00 0b 1a f4 20 4f 72 69  67 69 6e 61 6c 20 62 79  |.... Original by|
00000020  20 4a 61 6e 20 56 69 62  65 0d 00 0c 1a f4 20 52  | Jan Vibe..... R|
00000030  69 73 63 50 43 20 76 65  72 73 69 6f 6e 20 62 79  |iscPC version by|
00000040  20 44 41 0d 00 14 04 0d  00 1e 1f ee 20 85 20 eb  | DA......... . .|
00000050  20 30 3a f1 20 f6 24 22  20 61 74 20 6c 69 6e 65  | 0:. .$" at line|
00000060  20 22 3b 9e 3a e0 0d 00  28 04 0d 00 32 1b f2 6d  | ";.:...(...2..m|
00000070  6f 64 65 28 22 58 38 30  30 20 59 36 30 30 20 47  |ode("X800 Y600 G|
00000080  32 35 36 22 29 0d 00 3c  05 87 0d 00 46 19 de 20  |256")..<....F.. |
00000090  54 58 25 28 31 30 30 30  29 2c 54 59 25 28 31 30  |TX%(1000),TY%(10|
000000a0  30 30 29 0d 00 50 10 de  20 73 70 72 20 26 31 30  |00)..P.. spr &10|
000000b0  30 30 30 0d 00 5a 0f 73  70 72 21 30 3d 26 46 46  |000..Z.spr!0=&FF|
000000c0  46 46 0d 00 64 0b 73 70  72 21 34 3d 30 0d 00 6e  |FF..d.spr!4=0..n|
000000d0  0c 73 70 72 21 38 3d 31  36 0d 00 78 0d 73 70 72  |.spr!8=16..x.spr|
000000e0  21 31 32 3d 31 36 0d 00  82 0f 72 61 64 69 75 73  |!12=16....radius|
000000f0  25 3d 31 32 38 0d 00 8c  17 64 69 61 6d 65 74 65  |%=128....diamete|
00000100  72 25 3d 32 2a 72 61 64  69 75 73 25 0d 00 96 09  |r%=2*radius%....|
00000110  63 25 3d 36 34 0d 00 a0  11 64 25 3d 72 61 64 69  |c%=64....d%=radi|
00000120  75 73 25 2f 31 35 0d 00  aa 10 e3 20 69 25 3d 30  |us%/15..... i%=0|
00000130  20 b8 20 32 35 35 0d 00  b4 12 20 fb 20 69 25 2c  | . 255.... . i%,|
00000140  69 25 2c 69 25 2c 69 25  0d 00 be 05 ed 0d 00 c8  |i%,i%,i%........|
00000150  1a e3 20 59 25 3d 30 20  b8 20 64 69 61 6d 65 74  |.. Y%=0 . diamet|
00000160  65 72 25 20 88 20 32 0d  00 d2 1b 20 e3 20 58 25  |er% . 2.... . X%|
00000170  3d 30 20 b8 20 64 69 61  6d 65 74 65 72 25 20 88  |=0 . diameter% .|
00000180  20 32 0d 00 dc 38 20 20  43 25 3d 32 35 35 2d 33  | 2...8  C%=255-3|
00000190  2a 28 b6 28 28 58 25 2d  72 61 64 69 75 73 25 29  |*(.((X%-radius%)|
000001a0  5e 32 2b 28 59 25 2d 72  61 64 69 75 73 25 29 5e  |^2+(Y%-radius%)^|
000001b0  32 29 2b b3 28 33 29 2d  32 29 0d 00 e6 15 20 20  |2)+.(3)-2)....  |
000001c0  e7 20 43 25 3e 32 35 35  20 43 25 3d 32 35 35 0d  |. C%>255 C%=255.|
000001d0  00 f0 13 20 20 e7 20 43  25 3c 31 20 43 25 3d 31  |...  . C%<1 C%=1|
000001e0  20 20 0d 00 fa 1c 20 20  c8 99 20 22 4f 53 5f 53  |  ....  .. "OS_S|
000001f0  65 74 43 6f 6c 6f 75 72  22 2c 30 2c 43 25 0d 01  |etColour",0,C%..|
00000200  04 0e 20 20 c8 92 20 58  25 2c 59 25 0d 01 0e 06  |..  .. X%,Y%....|
00000210  20 ed 0d 01 18 05 ed 0d  01 22 40 c8 99 20 22 4f  | ........"@.. "O|
00000220  53 5f 53 70 72 69 74 65  4f 70 22 2c 32 35 36 2b  |S_SpriteOp",256+|
00000230  31 36 2c 73 70 72 2c 22  42 41 4c 4c 22 2c 30 2c  |16,spr,"BALL",0,|
00000240  30 2c 30 2c 32 2a 72 61  64 69 75 73 25 2c 32 2a  |0,0,2*radius%,2*|
00000250  72 61 64 69 75 73 25 0d  01 2c 26 c8 99 20 22 4f  |radius%..,&.. "O|
00000260  53 5f 53 70 72 69 74 65  4f 70 22 2c 32 35 36 2b  |S_SpriteOp",256+|
00000270  32 39 2c 73 70 72 2c 22  42 41 4c 4c 22 0d 01 36  |29,spr,"BALL"..6|
00000280  04 0d 01 40 04 0d 01 4a  10 db 3a 54 25 3d 30 3a  |...@...J..:T%=0:|
00000290  43 54 25 3d 30 0d 01 54  04 0d 01 5e 04 0d 01 68  |CT%=0..T...^...h|
000002a0  1b c8 99 20 22 4f 53 5f  53 65 74 43 6f 6c 6f 75  |... "OS_SetColou|
000002b0  72 22 2c 30 2c 32 35 35  0d 01 72 05 f5 0d 01 7c  |r",0,255..r....||
000002c0  06 20 f5 0d 01 86 10 20  20 58 25 3d b3 28 31 36  |. .....  X%=.(16|
000002d0  30 30 29 0d 01 90 10 20  20 59 25 3d b3 28 31 32  |00)....  Y%=.(12|
000002e0  30 30 29 0d 01 9a 0b 20  20 54 25 2b 3d 31 0d 01  |00)....  T%+=1..|
000002f0  a4 1b 20 fd 20 b0 58 25  2c 59 25 29 3d 30 20 84  |.. . .X%,Y%)=0 .|
00000300  20 54 25 3d 31 30 30 30  30 0d 01 ae 11 20 e7 20  | T%=10000.... . |
00000310  54 25 3c 31 30 30 30 30  20 8c 0d 01 b8 0c 20 20  |T%<10000 .....  |
00000320  43 54 25 2b 3d 31 0d 01  c2 11 20 20 54 58 25 28  |CT%+=1....  TX%(|
00000330  43 54 25 29 3d 58 25 0d  01 cc 11 20 20 54 59 25  |CT%)=X%....  TY%|
00000340  28 43 54 25 29 3d 59 25  0d 01 d6 0a 20 20 54 25  |(CT%)=Y%....  T%|
00000350  3d 30 0d 01 e0 14 20 20  c8 8f 20 c8 90 20 58 25  |=0....  .. .. X%|
00000360  2c 59 25 2c 63 25 0d 01  ea 06 20 cd 0d 01 f4 0d  |,Y%,c%.... .....|
00000370  fd 54 25 3d 31 30 30 30  30 0d 01 fe 0b f4 20 47  |.T%=10000..... G|
00000380  43 4f 4c 37 0d 02 08 21  f4 20 52 45 43 54 41 4e  |COL7...!. RECTAN|
00000390  47 4c 45 46 49 4c 4c 20  30 2c 30 2c 31 32 38 30  |GLEFILL 0,0,1280|
000003a0  2c 31 30 32 34 0d 02 12  04 0d 02 1c 14 e3 49 25  |,1024.........I%|
000003b0  3d 63 25 b8 63 25 2f 32  2d 32 88 2d 32 0d 02 26  |=c%.c%/2-2.-2..&|
000003c0  0e 20 e3 4e 25 3d 31 b8  43 54 25 0d 02 30 1b 20  |. .N%=1.CT%..0. |
000003d0  20 58 25 3d 54 58 25 28  4e 25 29 3a 59 25 3d 54  | X%=TX%(N%):Y%=T|
000003e0  59 25 28 4e 25 29 0d 02  3a 45 20 20 43 58 25 3d  |Y%(N%)..:E  CX%=|
000003f0  58 25 2a 28 64 69 61 6d  65 74 65 72 25 2d 32 2a  |X%*(diameter%-2*|
00000400  63 25 29 2f 31 36 30 30  2b 63 25 3a 43 59 25 3d  |c%)/1600+c%:CY%=|
00000410  59 25 2a 28 64 69 61 6d  65 74 65 72 25 2d 32 2a  |Y%*(diameter%-2*|
00000420  63 25 29 2f 31 32 30 30  2b 63 25 0d 02 44 2b 20  |c%)/1200+c%..D+ |
00000430  20 c8 99 20 22 58 4f 53  5f 53 70 72 69 74 65 4f  | .. "XOS_SpriteO|
00000440  70 22 2c 32 35 36 2b 36  31 2c 73 70 72 2c 22 42  |p",256+61,spr,"B|
00000450  41 4c 4c 22 2c 30 0d 02  4e 1b 20 20 c8 99 20 22  |ALL",0..N.  .. "|
00000460  4f 53 5f 53 65 74 43 6f  6c 6f 75 72 22 2c 30 2c  |OS_SetColour",0,|
00000470  30 0d 02 58 19 20 20 c8  93 20 c8 90 20 30 2c 30  |0..X.  .. .. 0,0|
00000480  2c 32 2a 72 61 64 69 75  73 25 0d 02 62 1d 20 20  |,2*radius%..b.  |
00000490  c8 99 20 22 4f 53 5f 53  65 74 43 6f 6c 6f 75 72  |.. "OS_SetColour|
000004a0  22 2c 30 2c 32 35 35 0d  02 6c 16 20 20 c8 8f 20  |",0,255..l.  .. |
000004b0  c8 90 20 43 58 25 2c 43  59 25 2c 49 25 0d 02 76  |.. CX%,CY%,I%..v|
000004c0  28 20 20 c8 99 20 22 58  4f 53 5f 53 70 72 69 74  |(  .. "XOS_Sprit|
000004d0  65 4f 70 22 2c 32 35 36  2b 36 31 2c 73 70 72 2c  |eOp",256+61,spr,|
000004e0  30 2c 30 3a 87 0d 02 80  39 20 20 c8 99 20 22 58  |0,0:....9  .. "X|
000004f0  4f 53 5f 53 70 72 69 74  65 4f 70 22 2c 32 35 36  |OS_SpriteOp",256|
00000500  2b 33 34 2c 73 70 72 2c  22 42 41 4c 4c 22 2c 58  |+34,spr,"BALL",X|
00000510  25 2d 43 58 25 2c 59 25  2d 43 59 25 2c 38 0d 02  |%-CX%,Y%-CY%,8..|
00000520  8a 06 20 ed 0d 02 94 05  ed 0d 02 9e 04 0d 02 a8  |.. .............|
00000530  10 de 20 70 61 6c 25 20  34 2a 32 35 36 0d 02 b2  |.. pal% 4*256...|
00000540  08 69 25 3d 30 0d 02 bc  05 f5 0d 02 c6 18 20 72  |.i%=0......... r|
00000550  25 3d 26 43 30 2b 26 33  46 2a 9b b2 28 69 25 2f  |%=&C0+&3F*..(i%/|
00000560  33 29 0d 02 d0 18 20 67  25 3d 26 43 30 2b 26 33  |3).... g%=&C0+&3|
00000570  46 2a 9b b2 28 69 25 2f  35 29 0d 02 da 18 20 62  |F*..(i%/5).... b|
00000580  25 3d 26 43 30 2b 26 33  46 2a 9b b2 28 69 25 2f  |%=&C0+&3F*..(i%/|
00000590  37 29 0d 02 e4 11 20 e3  20 6a 25 3d 30 20 b8 20  |7).... . j%=0 . |
000005a0  32 35 35 0d 02 ee 12 20  20 61 25 3d 70 61 6c 25  |255....  a%=pal%|
000005b0  2b 34 2a 6a 25 0d 02 f8  0b 20 20 3f 61 25 3d 30  |+4*j%....  ?a%=0|
000005c0  0d 03 02 16 20 20 61 25  3f 31 3d 28 72 25 2a 6a  |....  a%?1=(r%*j|
000005d0  25 29 2f 32 35 36 0d 03  0c 16 20 20 61 25 3f 32  |%)/256....  a%?2|
000005e0  3d 28 67 25 2a 6a 25 29  2f 32 35 36 0d 03 16 16  |=(g%*j%)/256....|
000005f0  20 20 61 25 3f 33 3d 28  62 25 2a 6a 25 29 2f 32  |  a%?3=(b%*j%)/2|
00000600  35 36 0d 03 20 06 20 ed  0d 03 2a 0c 20 21 70 61  |56.. . ...*. !pa|
00000610  6c 25 3d 30 0d 03 34 07  20 c8 96 0d 03 3e 2c 20  |l%=0..4. ....>, |
00000620  c8 99 20 22 43 6f 6c 6f  75 72 54 72 61 6e 73 5f  |.. "ColourTrans_|
00000630  57 72 69 74 65 50 61 6c  65 74 74 65 22 2c 2d 31  |WritePalette",-1|
00000640  2c 2c 70 61 6c 25 20 0d  03 48 0a 20 69 25 2b 3d  |,,pal% ..H. i%+=|
00000650  31 0d 03 52 07 fd 20 a3  0d 03 66 04 0d 03 70 05  |1..R.. ...f...p.|
00000660  e0 0d 03 7a 05 3a 0d 03  84 04 0d 03 8e 12 dd 20  |...z.:......... |
00000670  f2 6d 6f 64 65 28 6d 6f  64 65 24 29 0d 03 98 17  |.mode(mode$)....|
00000680  ea 20 63 24 2c 65 78 2c  65 79 2c 6d 6f 64 65 2c  |. c$,ex,ey,mode,|
00000690  65 6e 64 0d 03 a2 0d de  20 6d 6f 64 65 20 36 34  |end..... mode 64|
000006a0  0d 03 ac 0f 65 6e 64 3d  6d 6f 64 65 2b 32 30 0d  |....end=mode+20.|
000006b0  03 b6 0b 21 6d 6f 64 65  3d 31 0d 03 c0 1d 6d 6f  |...!mode=1....mo|
000006c0  64 65 21 34 3d bb a4 5f  6d 28 6d 6f 64 65 24 2c  |de!4=.._m(mode$,|
000006d0  22 58 22 2c 22 22 29 0d  03 ca 1d 6d 6f 64 65 21  |"X","")....mode!|
000006e0  38 3d bb a4 5f 6d 28 6d  6f 64 65 24 2c 22 59 22  |8=.._m(mode$,"Y"|
000006f0  2c 22 22 29 0d 03 d4 19  63 24 3d a4 5f 6d 28 6d  |,"")....c$=._m(m|
00000700  6f 64 65 24 2c 22 43 22  2c 22 2a 22 29 0d 03 de  |ode$,"C","*")...|
00000710  0e e7 20 63 24 3d 22 2a  22 20 8c 0d 03 e8 19 20  |.. c$="*" ..... |
00000720  63 24 3d a4 5f 6d 28 6d  6f 64 65 24 2c 22 47 22  |c$=._m(mode$,"G"|
00000730  2c 22 22 29 0d 03 f2 27  20 e7 20 63 24 3d 22 32  |,"")...' . c$="2|
00000740  35 36 22 20 21 65 6e 64  3d 33 3a 65 6e 64 21 34  |56" !end=3:end!4|
00000750  3d 32 35 35 3a 65 6e 64  2b 3d 38 0d 03 fc 05 cd  |=255:end+=8.....|
00000760  0d 04 06 15 6d 6f 64 65  21 31 32 3d a4 5f 62 70  |....mode!12=._bp|
00000770  70 28 63 24 29 0d 04 10  20 6d 6f 64 65 21 31 36  |p(c$)... mode!16|
00000780  3d bb a4 5f 6d 28 6d 6f  64 65 24 2c 22 46 22 2c  |=.._m(mode$,"F",|
00000790  22 2d 31 22 29 0d 04 1a  1c 65 78 3d bb a4 5f 6d  |"-1")....ex=.._m|
000007a0  28 6d 6f 64 65 24 2c 22  45 58 22 2c 22 2d 31 22  |(mode$,"EX","-1"|
000007b0  29 0d 04 24 23 e7 20 65  78 3c 3e 2d 31 20 21 65  |)..$#. ex<>-1 !e|
000007c0  6e 64 3d 34 3a 65 6e 64  21 34 3d 65 78 3a 65 6e  |nd=4:end!4=ex:en|
000007d0  64 2b 3d 38 0d 04 2e 1c  65 79 3d bb a4 5f 6d 28  |d+=8....ey=.._m(|
000007e0  6d 6f 64 65 24 2c 22 45  59 22 2c 22 2d 31 22 29  |mode$,"EY","-1")|
000007f0  0d 04 38 23 e7 20 65 79  3c 3e 2d 31 20 21 65 6e  |..8#. ey<>-1 !en|
00000800  64 3d 35 3a 65 6e 64 21  34 3d 65 79 3a 65 6e 64  |d=5:end!4=ey:end|
00000810  2b 3d 38 0d 04 42 0b 21  65 6e 64 3d 2d 31 0d 04  |+=8..B.!end=-1..|
00000820  4c 0a eb 20 6d 6f 64 65  0d 04 56 05 e1 0d 04 60  |L.. mode..V....`|
00000830  04 0d 04 6a 13 dd 20 a4  5f 6d 28 73 24 2c 70 24  |...j.. ._m(s$,p$|
00000840  2c 64 24 29 0d 04 74 09  ea 20 69 2c 6a 0d 04 7e  |,d$)..t.. i,j..~|
00000850  0d 69 3d a7 73 24 2c 70  24 29 0d 04 88 25 e7 20  |.i=.s$,p$)...%. |
00000860  69 3c 31 20 80 20 64 24  3d 22 22 20 85 20 34 39  |i<1 . d$="" . 49|
00000870  30 2c 22 4d 69 73 73 69  6e 67 20 22 2b 70 24 0d  |0,"Missing "+p$.|
00000880  04 92 0f e7 20 69 3c 31  20 8c 20 3d 64 24 0d 04  |.... i<1 . =d$..|
00000890  9c 16 6a 3d a7 73 24 2b  22 20 22 2c 22 20 22 2c  |..j=.s$+" "," ",|
000008a0  69 2b 31 29 0d 04 a6 13  3d c1 73 24 2c 69 2b 31  |i+1)....=.s$,i+1|
000008b0  2c 6a 2d 69 2d 31 29 0d  04 b0 04 0d 04 ba 0f dd  |,j-i-1).........|
000008c0  20 a4 5f 62 70 70 28 6e  24 29 0d 04 c4 0b c8 8e  | ._bpp(n$)......|
000008d0  20 6e 24 20 ca 0d 04 ce  0d 20 c9 20 22 32 22 3a  | n$ ..... . "2":|
000008e0  3d 30 0d 04 d8 0d 20 c9  20 22 34 22 3a 3d 31 0d  |=0.... . "4":=1.|
000008f0  04 e2 0e 20 c9 20 22 31  36 22 3a 3d 32 0d 04 ec  |... . "16":=2...|
00000900  0f 20 c9 20 22 32 35 36  22 3a 3d 33 0d 04 f6 21  |. . "256":=3...!|
00000910  20 c9 20 22 33 32 54 22  2c 22 33 32 74 22 2c 22  | . "32T","32t","|
00000920  33 32 4b 22 2c 22 33 32  6b 22 3a 3d 34 0d 05 00  |32K","32k":=4...|
00000930  15 20 c9 20 22 31 36 4d  22 2c 22 31 36 6d 22 3a  |. . "16M","16m":|
00000940  3d 35 0d 05 0a 21 20 7f  3a 20 85 20 34 39 30 2c  |=5...! .: . 490,|
00000950  22 42 61 64 20 70 61 72  61 6d 65 74 65 72 20 22  |"Bad parameter "|
00000960  2b 6e 24 0d 05 14 05 cb  0d ff                    |+n$.......|
0000096a