Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Extras » PDScheme/Atterer/!Crib/!RunImage
PDScheme/Atterer/!Crib/!RunImage
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_199609.adf » Extras |
Filename: | PDScheme/Atterer/!Crib/!RunImage |
Read OK: | ✔ |
File size: | 16ED bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1REM !RunImage for Crib 2REM written on 4-4-1996 by Richard 'Strider' Atterer 3REM This program is in the PD. I am not responsible for it! 4REM Happy cribbing - (but maybe you should see an oculist first) 5REM 6REM Address: Richard Atterer, Beethovenstr. 30, 86391 Stadtbergen, FRG 7 8@%=&1000509:ONERROR VDU4:PRINTTAB(3,3) REPORT$" (";ERL")":END 9 10get$="RAM:*" 11put$="RAM:CribImage" 12dpi%=360:gfx$="<Crib$Dir>.CharSet2":ch$="m":bold%=FALSE 13extraleading%=0:REM ver in pixels 14extraspacing%=0:REM hor in pixels 15uppercaseonly%=TRUE:REM set TRUE if your charset only has uppercase letters 16 17MODE29:sx%=1600:sy%=1200 18OSCLI"Pointer 1" 19REPEAT 20 CASE LEFT$(ch$,1)OF 21 WHEN"s":ch$="small ("+STR$(11/dpi%*72)+" pt) " 22 WHEN"m":ch$="medium ("+STR$(13/dpi%*72)+" pt) " 23 OTHERWISE ch$="large ("+STR$(17/dpi%*72)+" pt) " 24 ENDCASE 25 PRINTTAB(0,0)"C R I B"'"�������"' 26 PRINT"Written on 10/3/1996 by Richard �Strider� Atterer." 27 PRINT"This program is in the public domain."' 28 PRINT"Note that you need a text file in �RAM::RamDisc0.$� for this one to run!"'' 29 PRINT"Character set: ";ch$ 30 PRINT"dpi of your printer (for correct scaling): ";dpi%SPC10 31 IFbold%PRINT"Thick lines"ELSEPRINT"Thin lines " 32 PRINT''"Press: " 33 PRINT" 1 small character set, uppercase only (";11/dpi%*72" pt) " 34 PRINT" 2 medium character set, uppercase only (";13/dpi%*72" pt) " 35 PRINT" 3 large character set, uppercase only (";17/dpi%*72" pt) " 36 PRINT" 4 for 360 dpi" 37 PRINT" 5 for 180 dpi (360 dpi printing with doubled size)" 38 PRINT" 6 for 300 dpi" 39 PRINT" 7 for 150 dpi (300 dpi printing with doubled size)" 40 PRINT" 8 to enter other value for dpi" 41 PRINT" 9 to toggle thin/thick lines"' 42 PRINT"Press Space to start."''SPC40TAB(0,26) 43 a$=GET$ 44 CASEa$OF 45 WHEN"1":gfx$="<Crib$Dir>.CharSet1":ch$="s" 46 WHEN"2":gfx$="<Crib$Dir>.CharSet2":ch$="m" 47 WHEN"3":gfx$="<Crib$Dir>.CharSet3":ch$="l" 48 WHEN"4":dpi%=360 49 WHEN"5":dpi%=180 50 WHEN"6":dpi%=300 51 WHEN"7":dpi%=150 52 WHEN"8":INPUT"Value for dpi";dpi% 53 WHEN"9":bold%=NOTbold% 54 ENDCASE 55UNTIL a$=" " 56 57CLS:OFF:COLOUR 0,255,255,255:COLOUR 1,0,0,0 58MOUSE RECTANGLE 32,0,sx%-34,sy%-34 59VDU5:VDU23,17,7,%110,8;8;0,0:PROCpr(-2,sy%-18,"mm") 60VDU23,17,7,%100,9;8;0,0 61GCOL3,1:RECTANGLE FILL 0,0,30,sy%:RECTANGLE FILL 32,sy%-32,sx%,30 62ORIGIN 32,sy%-34 63 64PROCmessage("Choose X/Y size...") 65GCOL0 66FORi%=0TOFNmm(sx%) 67 a%=FNos(i%) 68 IFi%MOD5=0 THEN 69 LINEa%,4,a%,32:LINE-4,-a%,-32,-a% 70 PROCpr(a%-16,32,STR$i%):PROCpr(-34,-a%-4,STR$i%) 71 ELSE 72 LINEa%,16,a%,32:LINE-16,-a%,-32,-a% 73 ENDIF 74NEXTi% 75 76REM load and prepare character set 77a%=OPENINgfx$:len%=EXT#a%:CLOSE#a% 78IFlen%<((sx%*sy%)>>5) len%=((sx%*sy%)>>5) 79DIM sa% len%:!sa%=len%:sa%!8=16:SYS"OS_SpriteOp",256+9,sa% 80SYS"OS_SpriteOp",256+10,sa%,gfx$ 81DIMs%(255),width%(255) 82SYS"OS_SpriteOp",256+24,sa%,"ndef"TO,,ndef%:s%()=ndef% 83SYS"OS_SpriteOp",256+40,sa%,"ndef"TO,,,a%,height%:width%()=a% 84SYS"OS_SpriteOp",512+60,sa%,ndef%,0 TOA%,B%,C%,D% 85FORi%=0TO255 86 SYS"XOS_SpriteOp",256+24,sa%,STR$i%TO,,a%;b% 87 IF(b%AND1)=0 THEN 88 s%(i%)=a%:SYS"OS_SpriteOp",512+40,sa%,a%TO,,,width%(i%),b% 89 IFb%<>height% ERROR 1,"Height of sprite �"+STR$i%+"� wrong." 90 IFbold% SYS"OS_SpriteOp",512+60,sa%,a%,0:SYS"OS_SpriteOp",512+34,sa%,a%,2,0,1:SYS"OS_SpriteOp",512+34,sa%,a%,0,2,1 91 ENDIF 92NEXT 93SYS"OS_SpriteOp",A%,B%,C%,D% 94IFuppercaseonly%THEN 95 SYS"Territory_UpperCaseTable",-1 TOa% 96 FORi%=0TO255 97 IFs%(i%)=ndef% AND s%(a%?i%)<>ndef% s%(i%)=s%(a%?i%):width%(i%)=width%(a%?i%) 98 NEXT 99ENDIF 100 101REM load source text 102a%=OPENINget$:b%=EXT#a%:CLOSE#a% 103DIM get% b%+1:end%=get%+b%:OSCLI"Load "+get$+" "+STR$~get% 104IFend%?-1<>10 ?end%=10:end%+=1 105 106REPEAT 107 GCOL0:RECTANGLE FILL0,-sy%,sx%,sy% 108 109 PROCmessage("Choose X/Y size...") 110 oldx%=0:oldy%=0 111 GCOL3,1 112 REPEAT 113 MOUSEx%,y%,z% 114 x%=FNmm(x%)+.5:y%=FNmm(-y%)+.5 115 IFx%<>oldx%ORy%<>oldy% THEN 116 LINE FNos(oldx%),0,FNos(oldx%),-FNos(oldy%) 117 LINE 0,-FNos(oldy%),FNos(oldx%),-FNos(oldy%) 118 LINE FNos(x%),0,FNos(x%),-FNos(y%) 119 LINE 0,-FNos(y%),FNos(x%),-FNos(y%) 120 oldx%=x%:oldy%=y% 121 ENDIF 122 UNTIL z%AND4 123 xbox%=FNos(x%)>>1:ybox%=FNos(-y%)>>1 124 LINE xbox%<<1,0,xbox%<<1,ybox%<<1 125 LINE 0,ybox%<<1,xbox%<<1,ybox%<<1 126 REPEAT:MOUSEa%,a%,b%:UNTILb%=0 127 128 REM plot! 129 PROCmessage("(Click with right button to restart.)") 130 ptr%=get% 131 x%=0:y%=1-height%:lastspace%=-1:lastspacex%=0 132 REPEAT 133 a%=?ptr%:ptr%+=1:IFptr%=end% ybox%=0 134 IFa%=32 lastspace%=ptr%:lastspacex%=x%+width%(32) 135 IFa%=10THEN 136 lastspacex%=x%:x%=xbox%+1:lastspace%=ptr% 137 ELSE 138 SYS"OS_SpriteOp",546,sa%,s%(a%),x%<<1,y%<<1,0:x%+=width%(a%)+extraspacing% 139 ENDIF 140 IFx%>xbox%THEN 141 IFlastspace%=-1 lastspace%=ptr%-1:lastspacex%=x%-width%(a%) 142 GCOL0:RECTANGLE FILL lastspacex%<<1,y%<<1,sx%,(height%-1)<<1 143 x%=0:y%-=height%+extraleading%:ptr%=lastspace%:lastspace%=-1 144 ENDIF 145 MOUSE a%,a%,z% 146 UNTIL y%<ybox% OR(z%AND1)>0 147 IF(z%AND1)=0 THEN 148 PROCmessage("Click with left button to save and quit, with right button to restart") 149 REPEAT:MOUSEa%,a%,z%:UNTILz%=0 150 REPEAT:MOUSEa%,a%,z%:UNTILz%AND5 151 REPEAT:MOUSEa%,a%,b%:UNTILb%=0 152 ENDIF 153UNTIL(z%AND4)>0 154 155REM grab and save sprite (in Draw file) 156PROCmessage("") 157!sa%=len%:sa%!8=16:SYS"OS_SpriteOp",256+9,sa% 158SYS"OS_SpriteOp",256+16,sa%,"image",1,0,(y%+height%)<<1,xbox%<<1,0 159: 160SYS"OS_SpriteOp",256+40,sa%,"image"TO,,,x%,y% 161a%=OPENOUTput$:OSCLI"SetType "+put$+" aff" 162BPUT#a%,"Draw";:PROCput(201):PROCput(0):BPUT#a%,"Crib "; 163PROCput(0):PROCput(0):PROCput(x%*256*180/dpi%):PROCput(y%*256*180/dpi%) 164PROCput(5):REM Sprite object 165b%=sa%+sa%!8:PROCput(24+!b%) 166PROCput(0):PROCput(0):PROCput(x%*256*180/dpi%):PROCput(y%*256*180/dpi%) 167SYS"OS_GBPB",2,a%,b%,!b% 168CLOSE#a% 169: 170ORIGIN0,0:CLS:GCOL1:RECTANGLE FILL 0,0,sx%,sy% 171SYS"OS_SpriteOp",256+34,sa%,"image",16,16,0 172END 173 174 175REM give OS units for mm and v.v. 176DEF FNos(mm) 177=mm/25.4*2*dpi% 178DEF FNmm(os) 179=os*25.4/2/dpi% 180 181DEF PROCpr(x%,y%,a$) 182MOVEx%,y%:PRINTa$;:ENDPROC 183 184DEF PROCmessage(a$) 185GCOL0:RECTANGLE FILL 8,40-sy%,sx%,16:GCOL1:PROCpr(8,56-sy%,a$):ENDPROC 186 187DEF PROCput(x%) 188BPUT#a%,x%:BPUT#a%,x%>>8:BPUT#a%,x%>>16:BPUT#a%,x%>>24:ENDPROC
� !RunImage for Crib 7� written on 4-4-1996 by Richard 'Strider' Atterer >� This program is in the PD. I am not responsible for it! C� Happy cribbing - (but maybe you should see an oculist first) � I� Address: Richard Atterer, Beethovenstr. 30, 86391 Stadtbergen, FRG *@%=&1000509:� �4:�3,3) �$" (";�")":� get$="RAM:*" put$="RAM:CribImage" 7dpi%=360:gfx$="<Crib$Dir>.CharSet2":ch$="m":bold%=� #extraleading%=0:� ver in pixels #extraspacing%=0:� hor in pixels Juppercaseonly%=�:� set TRUE if your charset only has uppercase letters �29:sx%=1600:sy%=1200 �"Pointer 1" � Ȏ �ch$,1)� 4 �"s":ch$="small ("+�(11/dpi%*72)+" pt) " 5 �"m":ch$="medium ("+�(13/dpi%*72)+" pt) " 1 ch$="large ("+�(17/dpi%*72)+" pt) " � �0,0)"C R I B"'"�������"' ; �"Written on 10/3/1996 by Richard �Strider� Atterer." / �"This program is in the public domain."' S �"Note that you need a text file in �RAM::RamDisc0.$� for this one to run!"'' �"Character set: ";ch$ < �"dpi of your printer (for correct scaling): ";dpi%�10 ) �bold%�"Thick lines"��"Thin lines " �''"Press: " !I �" 1 small character set, uppercase only (";11/dpi%*72" pt) " "I �" 2 medium character set, uppercase only (";13/dpi%*72" pt) " #I �" 3 large character set, uppercase only (";17/dpi%*72" pt) " $ �" 4 for 360 dpi" %> �" 5 for 180 dpi (360 dpi printing with doubled size)" & �" 6 for 300 dpi" '> �" 7 for 150 dpi (300 dpi printing with doubled size)" (* �" 8 to enter other value for dpi" )) �" 9 to toggle thin/thick lines"' *) �"Press Space to start."''�40�0,26) + a$=� , Ȏa$� -/ �"1":gfx$="<Crib$Dir>.CharSet1":ch$="s" ./ �"2":gfx$="<Crib$Dir>.CharSet2":ch$="m" // �"3":gfx$="<Crib$Dir>.CharSet3":ch$="l" 0 �"4":dpi%=360 1 �"5":dpi%=180 2 �"6":dpi%=300 3 �"7":dpi%=150 4" �"8":�"Value for dpi";dpi% 5 �"9":bold%=�bold% 6 � 7� a$=" " 8 9!�:�:� 0,255,255,255:� 1,0,0,0 :ȗ ȓ 32,0,sx%-34,sy%-34 ;0�5:�23,17,7,%110,8;8;0,0:�pr(-2,sy%-18,"mm") <�23,17,7,%100,9;8;0,0 =0�3,1:ȓ Ȑ 0,0,30,sy%:ȓ Ȑ 32,sy%-32,sx%,30 >ȑ 32,sy%-34 ? @"�message("Choose X/Y size...") A�0 B�i%=0��mm(sx%) C a%=�os(i%) D �i%�5=0 � E# �a%,4,a%,32:�-4,-a%,-32,-a% F, �pr(a%-16,32,�i%):�pr(-34,-a%-4,�i%) G � H% �a%,16,a%,32:�-16,-a%,-32,-a% I � J�i% K L$� load and prepare character set Ma%=�gfx$:len%=�#a%:�#a% N,�len%<((sx%*sy%)>>5) len%=((sx%*sy%)>>5) O;� sa% len%:!sa%=len%:sa%!8=16:ș"OS_SpriteOp",256+9,sa% P#ș"OS_SpriteOp",256+10,sa%,gfx$ Q�s%(255),width%(255) R8ș"OS_SpriteOp",256+24,sa%,"ndef"�,,ndef%:s%()=ndef% S?ș"OS_SpriteOp",256+40,sa%,"ndef"�,,,a%,height%:width%()=a% T3ș"OS_SpriteOp",512+60,sa%,ndef%,0 �A%,B%,C%,D% U �i%=0�255 V- ș"XOS_SpriteOp",256+24,sa%,�i%�,,a%;b% W �(b%�1)=0 � X@ s%(i%)=a%:ș"OS_SpriteOp",512+40,sa%,a%�,,,width%(i%),b% Y< �b%<>height% � 1,"Height of sprite �"+�i%+"� wrong." Zv �bold% ș"OS_SpriteOp",512+60,sa%,a%,0:ș"OS_SpriteOp",512+34,sa%,a%,2,0,1:ș"OS_SpriteOp",512+34,sa%,a%,0,2,1 [ � \� ]ș"OS_SpriteOp",A%,B%,C%,D% ^�uppercaseonly%� _) ș"Territory_UpperCaseTable",-1 �a% ` �i%=0�255 aR �s%(i%)=ndef% � s%(a%?i%)<>ndef% s%(i%)=s%(a%?i%):width%(i%)=width%(a%?i%) b � c� d e� load source text fa%=�get$:b%=�#a%:�#a% g5� get% b%+1:end%=get%+b%:�"Load "+get$+" "+�~get% h!�end%?-1<>10 ?end%=10:end%+=1 i j� k �0:ȓ Ȑ0,-sy%,sx%,sy% l m$ �message("Choose X/Y size...") n oldx%=0:oldy%=0 o �3,1 p � q ȗx%,y%,z% r$ x%=�mm(x%)+.5:y%=�mm(-y%)+.5 s �x%<>oldx%�y%<>oldy% � t/ � �os(oldx%),0,�os(oldx%),-�os(oldy%) u0 � 0,-�os(oldy%),�os(oldx%),-�os(oldy%) v& � �os(x%),0,�os(x%),-�os(y%) w' � 0,-�os(y%),�os(x%),-�os(y%) x oldx%=x%:oldy%=y% y � z � z%�4 {( xbox%=�os(x%)>>1:ybox%=�os(-y%)>>1 |$ � xbox%<<1,0,xbox%<<1,ybox%<<1 }$ � 0,ybox%<<1,xbox%<<1,ybox%<<1 ~ �:ȗa%,a%,b%:�b%=0 � � plot! �7 �message("(Click with right button to restart.)") � ptr%=get% �3 x%=0:y%=1-height%:lastspace%=-1:lastspacex%=0 � � �+ a%=?ptr%:ptr%+=1:�ptr%=end% ybox%=0 �8 �a%=32 lastspace%=ptr%:lastspacex%=x%+width%(32) � �a%=10� �3 lastspacex%=x%:x%=xbox%+1:lastspace%=ptr% � � �S ș"OS_SpriteOp",546,sa%,s%(a%),x%<<1,y%<<1,0:x%+=width%(a%)+extraspacing% � � � �x%>xbox%� �D �lastspace%=-1 lastspace%=ptr%-1:lastspacex%=x%-width%(a%) �: �0:ȓ Ȑ lastspacex%<<1,y%<<1,sx%,(height%-1)<<1 �F x%=0:y%-=height%+extraleading%:ptr%=lastspace%:lastspace%=-1 � � � ȗ a%,a%,z% � � y%<ybox% �(z%�1)>0 � �(z%�1)=0 � �Y �message("Click with left button to save and quit, with right button to restart") � �:ȗa%,a%,z%:�z%=0 � �:ȗa%,a%,z%:�z%�5 � �:ȗa%,a%,b%:�b%=0 � � � �(z%�4)>0 � �)� grab and save sprite (in Draw file) ��message("") �0!sa%=len%:sa%!8=16:ș"OS_SpriteOp",256+9,sa% �Eș"OS_SpriteOp",256+16,sa%,"image",1,0,(y%+height%)<<1,xbox%<<1,0 �: �/ș"OS_SpriteOp",256+40,sa%,"image"�,,,x%,y% �$a%=�put$:�"SetType "+put$+" aff" �7�#a%,"Draw";:�put(201):�put(0):�#a%,"Crib "; �?�put(0):�put(0):�put(x%*256*180/dpi%):�put(y%*256*180/dpi%) ��put(5):� Sprite object �b%=sa%+sa%!8:�put(24+!b%) �?�put(0):�put(0):�put(x%*256*180/dpi%):�put(y%*256*180/dpi%) �ș"OS_GBPB",2,a%,b%,!b% ��#a% �: � ȑ0,0:�:�1:ȓ Ȑ 0,0,sx%,sy% �.ș"OS_SpriteOp",256+34,sa%,"image",16,16,0 �� � � �#� give OS units for mm and v.v. � � �os(mm) �=mm/25.4*2*dpi% � � �mm(os) �=os*25.4/2/dpi% � �� �pr(x%,y%,a$) ��x%,y%:�a$;:� � �� �message(a$) �2�0:ȓ Ȑ 8,40-sy%,sx%,16:�1:�pr(8,56-sy%,a$):� � �� �put(x%) �0�#a%,x%:�#a%,x%>>8:�#a%,x%>>16:�#a%,x%>>24:� �
00000000 0d 00 01 19 f4 20 20 21 52 75 6e 49 6d 61 67 65 |..... !RunImage| 00000010 20 66 6f 72 20 43 72 69 62 0d 00 02 37 f4 20 20 | for Crib...7. | 00000020 77 72 69 74 74 65 6e 20 6f 6e 20 34 2d 34 2d 31 |written on 4-4-1| 00000030 39 39 36 20 62 79 20 52 69 63 68 61 72 64 20 27 |996 by Richard '| 00000040 53 74 72 69 64 65 72 27 20 41 74 74 65 72 65 72 |Strider' Atterer| 00000050 0d 00 03 3e f4 20 20 54 68 69 73 20 70 72 6f 67 |...>. This prog| 00000060 72 61 6d 20 69 73 20 69 6e 20 74 68 65 20 50 44 |ram is in the PD| 00000070 2e 20 49 20 61 6d 20 6e 6f 74 20 72 65 73 70 6f |. I am not respo| 00000080 6e 73 69 62 6c 65 20 66 6f 72 20 69 74 21 0d 00 |nsible for it!..| 00000090 04 43 f4 20 20 48 61 70 70 79 20 63 72 69 62 62 |.C. Happy cribb| 000000a0 69 6e 67 20 2d 20 28 62 75 74 20 6d 61 79 62 65 |ing - (but maybe| 000000b0 20 79 6f 75 20 73 68 6f 75 6c 64 20 73 65 65 20 | you should see | 000000c0 61 6e 20 6f 63 75 6c 69 73 74 20 66 69 72 73 74 |an oculist first| 000000d0 29 0d 00 05 05 f4 0d 00 06 49 f4 20 20 41 64 64 |)........I. Add| 000000e0 72 65 73 73 3a 20 52 69 63 68 61 72 64 20 41 74 |ress: Richard At| 000000f0 74 65 72 65 72 2c 20 42 65 65 74 68 6f 76 65 6e |terer, Beethoven| 00000100 73 74 72 2e 20 33 30 2c 20 38 36 33 39 31 20 53 |str. 30, 86391 S| 00000110 74 61 64 74 62 65 72 67 65 6e 2c 20 46 52 47 0d |tadtbergen, FRG.| 00000120 00 07 04 0d 00 08 2a 40 25 3d 26 31 30 30 30 35 |......*@%=&10005| 00000130 30 39 3a ee 85 20 ef 34 3a f1 8a 33 2c 33 29 20 |09:.. .4:..3,3) | 00000140 f6 24 22 20 28 22 3b 9e 22 29 22 3a e0 0d 00 09 |.$" (";.")":....| 00000150 04 0d 00 0a 10 67 65 74 24 3d 22 52 41 4d 3a 2a |.....get$="RAM:*| 00000160 22 0d 00 0b 18 70 75 74 24 3d 22 52 41 4d 3a 43 |"....put$="RAM:C| 00000170 72 69 62 49 6d 61 67 65 22 0d 00 0c 37 64 70 69 |ribImage"...7dpi| 00000180 25 3d 33 36 30 3a 67 66 78 24 3d 22 3c 43 72 69 |%=360:gfx$="<Cri| 00000190 62 24 44 69 72 3e 2e 43 68 61 72 53 65 74 32 22 |b$Dir>.CharSet2"| 000001a0 3a 63 68 24 3d 22 6d 22 3a 62 6f 6c 64 25 3d a3 |:ch$="m":bold%=.| 000001b0 0d 00 0d 23 65 78 74 72 61 6c 65 61 64 69 6e 67 |...#extraleading| 000001c0 25 3d 30 3a f4 20 76 65 72 20 69 6e 20 70 69 78 |%=0:. ver in pix| 000001d0 65 6c 73 0d 00 0e 23 65 78 74 72 61 73 70 61 63 |els...#extraspac| 000001e0 69 6e 67 25 3d 30 3a f4 20 68 6f 72 20 69 6e 20 |ing%=0:. hor in | 000001f0 70 69 78 65 6c 73 0d 00 0f 4a 75 70 70 65 72 63 |pixels...Jupperc| 00000200 61 73 65 6f 6e 6c 79 25 3d b9 3a f4 20 73 65 74 |aseonly%=.:. set| 00000210 20 54 52 55 45 20 69 66 20 79 6f 75 72 20 63 68 | TRUE if your ch| 00000220 61 72 73 65 74 20 6f 6e 6c 79 20 68 61 73 20 75 |arset only has u| 00000230 70 70 65 72 63 61 73 65 20 6c 65 74 74 65 72 73 |ppercase letters| 00000240 0d 00 10 04 0d 00 11 19 eb 32 39 3a 73 78 25 3d |.........29:sx%=| 00000250 31 36 30 30 3a 73 79 25 3d 31 32 30 30 0d 00 12 |1600:sy%=1200...| 00000260 10 ff 22 50 6f 69 6e 74 65 72 20 31 22 0d 00 13 |.."Pointer 1"...| 00000270 05 f5 0d 00 14 11 20 20 c8 8e 20 c0 63 68 24 2c |...... .. .ch$,| 00000280 31 29 ca 0d 00 15 34 20 20 20 20 c9 22 73 22 3a |1)....4 ."s":| 00000290 63 68 24 3d 22 73 6d 61 6c 6c 20 28 22 2b c3 28 |ch$="small ("+.(| 000002a0 31 31 2f 64 70 69 25 2a 37 32 29 2b 22 20 70 74 |11/dpi%*72)+" pt| 000002b0 29 20 20 20 20 20 22 0d 00 16 35 20 20 20 20 c9 |) "...5 .| 000002c0 22 6d 22 3a 63 68 24 3d 22 6d 65 64 69 75 6d 20 |"m":ch$="medium | 000002d0 28 22 2b c3 28 31 33 2f 64 70 69 25 2a 37 32 29 |("+.(13/dpi%*72)| 000002e0 2b 22 20 70 74 29 20 20 20 20 20 22 0d 00 17 31 |+" pt) "...1| 000002f0 20 20 20 20 7f 20 63 68 24 3d 22 6c 61 72 67 65 | . ch$="large| 00000300 20 28 22 2b c3 28 31 37 2f 64 70 69 25 2a 37 32 | ("+.(17/dpi%*72| 00000310 29 2b 22 20 70 74 29 20 20 20 20 20 22 0d 00 18 |)+" pt) "...| 00000320 07 20 20 cb 0d 00 19 20 20 20 f1 8a 30 2c 30 29 |. .... ..0,0)| 00000330 22 43 20 52 20 49 20 42 22 27 22 98 98 98 98 98 |"C R I B"'".....| 00000340 98 98 22 27 0d 00 1a 3b 20 20 f1 22 57 72 69 74 |.."'...; ."Writ| 00000350 74 65 6e 20 6f 6e 20 31 30 2f 33 2f 31 39 39 36 |ten on 10/3/1996| 00000360 20 62 79 20 52 69 63 68 61 72 64 20 90 53 74 72 | by Richard .Str| 00000370 69 64 65 72 91 20 41 74 74 65 72 65 72 2e 22 0d |ider. Atterer.".| 00000380 00 1b 2f 20 20 f1 22 54 68 69 73 20 70 72 6f 67 |../ ."This prog| 00000390 72 61 6d 20 69 73 20 69 6e 20 74 68 65 20 70 75 |ram is in the pu| 000003a0 62 6c 69 63 20 64 6f 6d 61 69 6e 2e 22 27 0d 00 |blic domain."'..| 000003b0 1c 53 20 20 f1 22 4e 6f 74 65 20 74 68 61 74 20 |.S ."Note that | 000003c0 79 6f 75 20 6e 65 65 64 20 61 20 74 65 78 74 20 |you need a text | 000003d0 66 69 6c 65 20 69 6e 20 94 52 41 4d 3a 3a 52 61 |file in .RAM::Ra| 000003e0 6d 44 69 73 63 30 2e 24 95 20 66 6f 72 20 74 68 |mDisc0.$. for th| 000003f0 69 73 20 6f 6e 65 20 74 6f 20 72 75 6e 21 22 27 |is one to run!"'| 00000400 27 0d 00 1d 1c 20 20 f1 22 43 68 61 72 61 63 74 |'.... ."Charact| 00000410 65 72 20 73 65 74 3a 20 22 3b 63 68 24 0d 00 1e |er set: ";ch$...| 00000420 3c 20 20 f1 22 64 70 69 20 6f 66 20 79 6f 75 72 |< ."dpi of your| 00000430 20 70 72 69 6e 74 65 72 20 28 66 6f 72 20 63 6f | printer (for co| 00000440 72 72 65 63 74 20 73 63 61 6c 69 6e 67 29 3a 20 |rrect scaling): | 00000450 22 3b 64 70 69 25 89 31 30 0d 00 1f 29 20 20 e7 |";dpi%.10...) .| 00000460 62 6f 6c 64 25 f1 22 54 68 69 63 6b 20 6c 69 6e |bold%."Thick lin| 00000470 65 73 22 8b f1 22 54 68 69 6e 20 6c 69 6e 65 73 |es".."Thin lines| 00000480 20 22 0d 00 20 12 20 20 f1 27 27 22 50 72 65 73 | ".. . .''"Pres| 00000490 73 3a 20 22 0d 00 21 49 20 20 f1 22 20 20 31 20 |s: "..!I ." 1 | 000004a0 20 20 73 6d 61 6c 6c 20 63 68 61 72 61 63 74 65 | small characte| 000004b0 72 20 73 65 74 2c 20 75 70 70 65 72 63 61 73 65 |r set, uppercase| 000004c0 20 6f 6e 6c 79 20 28 22 3b 31 31 2f 64 70 69 25 | only (";11/dpi%| 000004d0 2a 37 32 22 20 70 74 29 20 20 20 20 22 0d 00 22 |*72" pt) ".."| 000004e0 49 20 20 f1 22 20 20 32 20 20 6d 65 64 69 75 6d |I ." 2 medium| 000004f0 20 63 68 61 72 61 63 74 65 72 20 73 65 74 2c 20 | character set, | 00000500 75 70 70 65 72 63 61 73 65 20 6f 6e 6c 79 20 28 |uppercase only (| 00000510 22 3b 31 33 2f 64 70 69 25 2a 37 32 22 20 70 74 |";13/dpi%*72" pt| 00000520 29 20 20 20 20 22 0d 00 23 49 20 20 f1 22 20 20 |) "..#I ." | 00000530 33 20 20 20 6c 61 72 67 65 20 63 68 61 72 61 63 |3 large charac| 00000540 74 65 72 20 73 65 74 2c 20 75 70 70 65 72 63 61 |ter set, upperca| 00000550 73 65 20 6f 6e 6c 79 20 28 22 3b 31 37 2f 64 70 |se only (";17/dp| 00000560 69 25 2a 37 32 22 20 70 74 29 20 20 20 20 22 0d |i%*72" pt) ".| 00000570 00 24 19 20 20 f1 22 20 20 34 20 20 66 6f 72 20 |.$. ." 4 for | 00000580 33 36 30 20 64 70 69 22 0d 00 25 3e 20 20 f1 22 |360 dpi"..%> ."| 00000590 20 20 35 20 20 66 6f 72 20 31 38 30 20 64 70 69 | 5 for 180 dpi| 000005a0 20 28 33 36 30 20 64 70 69 20 70 72 69 6e 74 69 | (360 dpi printi| 000005b0 6e 67 20 77 69 74 68 20 64 6f 75 62 6c 65 64 20 |ng with doubled | 000005c0 73 69 7a 65 29 22 0d 00 26 19 20 20 f1 22 20 20 |size)"..&. ." | 000005d0 36 20 20 66 6f 72 20 33 30 30 20 64 70 69 22 0d |6 for 300 dpi".| 000005e0 00 27 3e 20 20 f1 22 20 20 37 20 20 66 6f 72 20 |.'> ." 7 for | 000005f0 31 35 30 20 64 70 69 20 28 33 30 30 20 64 70 69 |150 dpi (300 dpi| 00000600 20 70 72 69 6e 74 69 6e 67 20 77 69 74 68 20 64 | printing with d| 00000610 6f 75 62 6c 65 64 20 73 69 7a 65 29 22 0d 00 28 |oubled size)"..(| 00000620 2a 20 20 f1 22 20 20 38 20 20 74 6f 20 65 6e 74 |* ." 8 to ent| 00000630 65 72 20 6f 74 68 65 72 20 76 61 6c 75 65 20 66 |er other value f| 00000640 6f 72 20 64 70 69 22 0d 00 29 29 20 20 f1 22 20 |or dpi"..)) ." | 00000650 20 39 20 20 74 6f 20 74 6f 67 67 6c 65 20 74 68 | 9 to toggle th| 00000660 69 6e 2f 74 68 69 63 6b 20 6c 69 6e 65 73 22 27 |in/thick lines"'| 00000670 0d 00 2a 29 20 20 f1 22 50 72 65 73 73 20 53 70 |..*) ."Press Sp| 00000680 61 63 65 20 74 6f 20 73 74 61 72 74 2e 22 27 27 |ace to start."''| 00000690 89 34 30 8a 30 2c 32 36 29 0d 00 2b 0a 20 20 61 |.40.0,26)..+. a| 000006a0 24 3d be 0d 00 2c 0b 20 20 c8 8e 61 24 ca 0d 00 |$=...,. ..a$...| 000006b0 2d 2f 20 20 20 20 c9 22 31 22 3a 67 66 78 24 3d |-/ ."1":gfx$=| 000006c0 22 3c 43 72 69 62 24 44 69 72 3e 2e 43 68 61 72 |"<Crib$Dir>.Char| 000006d0 53 65 74 31 22 3a 63 68 24 3d 22 73 22 0d 00 2e |Set1":ch$="s"...| 000006e0 2f 20 20 20 20 c9 22 32 22 3a 67 66 78 24 3d 22 |/ ."2":gfx$="| 000006f0 3c 43 72 69 62 24 44 69 72 3e 2e 43 68 61 72 53 |<Crib$Dir>.CharS| 00000700 65 74 32 22 3a 63 68 24 3d 22 6d 22 0d 00 2f 2f |et2":ch$="m"..//| 00000710 20 20 20 20 c9 22 33 22 3a 67 66 78 24 3d 22 3c | ."3":gfx$="<| 00000720 43 72 69 62 24 44 69 72 3e 2e 43 68 61 72 53 65 |Crib$Dir>.CharSe| 00000730 74 33 22 3a 63 68 24 3d 22 6c 22 0d 00 30 15 20 |t3":ch$="l"..0. | 00000740 20 20 20 c9 22 34 22 3a 64 70 69 25 3d 33 36 30 | ."4":dpi%=360| 00000750 0d 00 31 15 20 20 20 20 c9 22 35 22 3a 64 70 69 |..1. ."5":dpi| 00000760 25 3d 31 38 30 0d 00 32 15 20 20 20 20 c9 22 36 |%=180..2. ."6| 00000770 22 3a 64 70 69 25 3d 33 30 30 0d 00 33 15 20 20 |":dpi%=300..3. | 00000780 20 20 c9 22 37 22 3a 64 70 69 25 3d 31 35 30 0d | ."7":dpi%=150.| 00000790 00 34 22 20 20 20 20 c9 22 38 22 3a e8 22 56 61 |.4" ."8":."Va| 000007a0 6c 75 65 20 66 6f 72 20 64 70 69 22 3b 64 70 69 |lue for dpi";dpi| 000007b0 25 0d 00 35 19 20 20 20 20 c9 22 39 22 3a 62 6f |%..5. ."9":bo| 000007c0 6c 64 25 3d ac 62 6f 6c 64 25 0d 00 36 07 20 20 |ld%=.bold%..6. | 000007d0 cb 0d 00 37 0c fd 20 61 24 3d 22 20 22 0d 00 38 |...7.. a$=" "..8| 000007e0 04 0d 00 39 21 db 3a 87 3a fb 20 30 2c 32 35 35 |...9!.:.:. 0,255| 000007f0 2c 32 35 35 2c 32 35 35 3a fb 20 31 2c 30 2c 30 |,255,255:. 1,0,0| 00000800 2c 30 0d 00 3a 1c c8 97 20 c8 93 20 33 32 2c 30 |,0..:... .. 32,0| 00000810 2c 73 78 25 2d 33 34 2c 73 79 25 2d 33 34 0d 00 |,sx%-34,sy%-34..| 00000820 3b 30 ef 35 3a ef 32 33 2c 31 37 2c 37 2c 25 31 |;0.5:.23,17,7,%1| 00000830 31 30 2c 38 3b 38 3b 30 2c 30 3a f2 70 72 28 2d |10,8;8;0,0:.pr(-| 00000840 32 2c 73 79 25 2d 31 38 2c 22 6d 6d 22 29 0d 00 |2,sy%-18,"mm")..| 00000850 3c 19 ef 32 33 2c 31 37 2c 37 2c 25 31 30 30 2c |<..23,17,7,%100,| 00000860 39 3b 38 3b 30 2c 30 0d 00 3d 30 e6 33 2c 31 3a |9;8;0,0..=0.3,1:| 00000870 c8 93 20 c8 90 20 30 2c 30 2c 33 30 2c 73 79 25 |.. .. 0,0,30,sy%| 00000880 3a c8 93 20 c8 90 20 33 32 2c 73 79 25 2d 33 32 |:.. .. 32,sy%-32| 00000890 2c 73 78 25 2c 33 30 0d 00 3e 10 c8 91 20 33 32 |,sx%,30..>... 32| 000008a0 2c 73 79 25 2d 33 34 0d 00 3f 04 0d 00 40 22 f2 |,sy%-34..?...@".| 000008b0 6d 65 73 73 61 67 65 28 22 43 68 6f 6f 73 65 20 |message("Choose | 000008c0 58 2f 59 20 73 69 7a 65 2e 2e 2e 22 29 0d 00 41 |X/Y size...")..A| 000008d0 06 e6 30 0d 00 42 12 e3 69 25 3d 30 b8 a4 6d 6d |..0..B..i%=0..mm| 000008e0 28 73 78 25 29 0d 00 43 10 20 20 61 25 3d a4 6f |(sx%)..C. a%=.o| 000008f0 73 28 69 25 29 0d 00 44 0f 20 20 e7 69 25 83 35 |s(i%)..D. .i%.5| 00000900 3d 30 20 8c 0d 00 45 23 20 20 20 20 86 61 25 2c |=0 ...E# .a%,| 00000910 34 2c 61 25 2c 33 32 3a 86 2d 34 2c 2d 61 25 2c |4,a%,32:.-4,-a%,| 00000920 2d 33 32 2c 2d 61 25 0d 00 46 2c 20 20 20 20 f2 |-32,-a%..F, .| 00000930 70 72 28 61 25 2d 31 36 2c 33 32 2c c3 69 25 29 |pr(a%-16,32,.i%)| 00000940 3a f2 70 72 28 2d 33 34 2c 2d 61 25 2d 34 2c c3 |:.pr(-34,-a%-4,.| 00000950 69 25 29 0d 00 47 09 20 20 20 20 cc 0d 00 48 25 |i%)..G. ...H%| 00000960 20 20 20 20 86 61 25 2c 31 36 2c 61 25 2c 33 32 | .a%,16,a%,32| 00000970 3a 86 2d 31 36 2c 2d 61 25 2c 2d 33 32 2c 2d 61 |:.-16,-a%,-32,-a| 00000980 25 0d 00 49 07 20 20 cd 0d 00 4a 07 ed 69 25 0d |%..I. ...J..i%.| 00000990 00 4b 04 0d 00 4c 24 f4 20 6c 6f 61 64 20 61 6e |.K...L$. load an| 000009a0 64 20 70 72 65 70 61 72 65 20 63 68 61 72 61 63 |d prepare charac| 000009b0 74 65 72 20 73 65 74 0d 00 4d 1b 61 25 3d 8e 67 |ter set..M.a%=.g| 000009c0 66 78 24 3a 6c 65 6e 25 3d a2 23 61 25 3a d9 23 |fx$:len%=.#a%:.#| 000009d0 61 25 0d 00 4e 2c e7 6c 65 6e 25 3c 28 28 73 78 |a%..N,.len%<((sx| 000009e0 25 2a 73 79 25 29 3e 3e 35 29 20 6c 65 6e 25 3d |%*sy%)>>5) len%=| 000009f0 28 28 73 78 25 2a 73 79 25 29 3e 3e 35 29 0d 00 |((sx%*sy%)>>5)..| 00000a00 4f 3b de 20 73 61 25 20 6c 65 6e 25 3a 21 73 61 |O;. sa% len%:!sa| 00000a10 25 3d 6c 65 6e 25 3a 73 61 25 21 38 3d 31 36 3a |%=len%:sa%!8=16:| 00000a20 c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c |.."OS_SpriteOp",| 00000a30 32 35 36 2b 39 2c 73 61 25 0d 00 50 23 c8 99 22 |256+9,sa%..P#.."| 00000a40 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 35 36 |OS_SpriteOp",256| 00000a50 2b 31 30 2c 73 61 25 2c 67 66 78 24 0d 00 51 18 |+10,sa%,gfx$..Q.| 00000a60 de 73 25 28 32 35 35 29 2c 77 69 64 74 68 25 28 |.s%(255),width%(| 00000a70 32 35 35 29 0d 00 52 38 c8 99 22 4f 53 5f 53 70 |255)..R8.."OS_Sp| 00000a80 72 69 74 65 4f 70 22 2c 32 35 36 2b 32 34 2c 73 |riteOp",256+24,s| 00000a90 61 25 2c 22 6e 64 65 66 22 b8 2c 2c 6e 64 65 66 |a%,"ndef".,,ndef| 00000aa0 25 3a 73 25 28 29 3d 6e 64 65 66 25 0d 00 53 3f |%:s%()=ndef%..S?| 00000ab0 c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c |.."OS_SpriteOp",| 00000ac0 32 35 36 2b 34 30 2c 73 61 25 2c 22 6e 64 65 66 |256+40,sa%,"ndef| 00000ad0 22 b8 2c 2c 2c 61 25 2c 68 65 69 67 68 74 25 3a |".,,,a%,height%:| 00000ae0 77 69 64 74 68 25 28 29 3d 61 25 0d 00 54 33 c8 |width%()=a%..T3.| 00000af0 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 35 |."OS_SpriteOp",5| 00000b00 31 32 2b 36 30 2c 73 61 25 2c 6e 64 65 66 25 2c |12+60,sa%,ndef%,| 00000b10 30 20 b8 41 25 2c 42 25 2c 43 25 2c 44 25 0d 00 |0 .A%,B%,C%,D%..| 00000b20 55 0d e3 69 25 3d 30 b8 32 35 35 0d 00 56 2d 20 |U..i%=0.255..V- | 00000b30 20 c8 99 22 58 4f 53 5f 53 70 72 69 74 65 4f 70 | .."XOS_SpriteOp| 00000b40 22 2c 32 35 36 2b 32 34 2c 73 61 25 2c c3 69 25 |",256+24,sa%,.i%| 00000b50 b8 2c 2c 61 25 3b 62 25 0d 00 57 11 20 20 e7 28 |.,,a%;b%..W. .(| 00000b60 62 25 80 31 29 3d 30 20 8c 0d 00 58 40 20 20 20 |b%.1)=0 ...X@ | 00000b70 20 73 25 28 69 25 29 3d 61 25 3a c8 99 22 4f 53 | s%(i%)=a%:.."OS| 00000b80 5f 53 70 72 69 74 65 4f 70 22 2c 35 31 32 2b 34 |_SpriteOp",512+4| 00000b90 30 2c 73 61 25 2c 61 25 b8 2c 2c 2c 77 69 64 74 |0,sa%,a%.,,,widt| 00000ba0 68 25 28 69 25 29 2c 62 25 0d 00 59 3c 20 20 20 |h%(i%),b%..Y< | 00000bb0 20 e7 62 25 3c 3e 68 65 69 67 68 74 25 20 85 20 | .b%<>height% . | 00000bc0 31 2c 22 48 65 69 67 68 74 20 6f 66 20 73 70 72 |1,"Height of spr| 00000bd0 69 74 65 20 94 22 2b c3 69 25 2b 22 95 20 77 72 |ite ."+.i%+". wr| 00000be0 6f 6e 67 2e 22 0d 00 5a 76 20 20 20 20 e7 62 6f |ong."..Zv .bo| 00000bf0 6c 64 25 20 c8 99 22 4f 53 5f 53 70 72 69 74 65 |ld% .."OS_Sprite| 00000c00 4f 70 22 2c 35 31 32 2b 36 30 2c 73 61 25 2c 61 |Op",512+60,sa%,a| 00000c10 25 2c 30 3a c8 99 22 4f 53 5f 53 70 72 69 74 65 |%,0:.."OS_Sprite| 00000c20 4f 70 22 2c 35 31 32 2b 33 34 2c 73 61 25 2c 61 |Op",512+34,sa%,a| 00000c30 25 2c 32 2c 30 2c 31 3a c8 99 22 4f 53 5f 53 70 |%,2,0,1:.."OS_Sp| 00000c40 72 69 74 65 4f 70 22 2c 35 31 32 2b 33 34 2c 73 |riteOp",512+34,s| 00000c50 61 25 2c 61 25 2c 30 2c 32 2c 31 0d 00 5b 07 20 |a%,a%,0,2,1..[. | 00000c60 20 cd 0d 00 5c 05 ed 0d 00 5d 1f c8 99 22 4f 53 | ...\....]..."OS| 00000c70 5f 53 70 72 69 74 65 4f 70 22 2c 41 25 2c 42 25 |_SpriteOp",A%,B%| 00000c80 2c 43 25 2c 44 25 0d 00 5e 14 e7 75 70 70 65 72 |,C%,D%..^..upper| 00000c90 63 61 73 65 6f 6e 6c 79 25 8c 0d 00 5f 29 20 20 |caseonly%..._) | 00000ca0 c8 99 22 54 65 72 72 69 74 6f 72 79 5f 55 70 70 |.."Territory_Upp| 00000cb0 65 72 43 61 73 65 54 61 62 6c 65 22 2c 2d 31 20 |erCaseTable",-1 | 00000cc0 b8 61 25 0d 00 60 0f 20 20 e3 69 25 3d 30 b8 32 |.a%..`. .i%=0.2| 00000cd0 35 35 0d 00 61 52 20 20 20 20 e7 73 25 28 69 25 |55..aR .s%(i%| 00000ce0 29 3d 6e 64 65 66 25 20 80 20 73 25 28 61 25 3f |)=ndef% . s%(a%?| 00000cf0 69 25 29 3c 3e 6e 64 65 66 25 20 73 25 28 69 25 |i%)<>ndef% s%(i%| 00000d00 29 3d 73 25 28 61 25 3f 69 25 29 3a 77 69 64 74 |)=s%(a%?i%):widt| 00000d10 68 25 28 69 25 29 3d 77 69 64 74 68 25 28 61 25 |h%(i%)=width%(a%| 00000d20 3f 69 25 29 0d 00 62 07 20 20 ed 0d 00 63 05 cd |?i%)..b. ...c..| 00000d30 0d 00 64 04 0d 00 65 16 f4 20 6c 6f 61 64 20 73 |..d...e.. load s| 00000d40 6f 75 72 63 65 20 74 65 78 74 0d 00 66 19 61 25 |ource text..f.a%| 00000d50 3d 8e 67 65 74 24 3a 62 25 3d a2 23 61 25 3a d9 |=.get$:b%=.#a%:.| 00000d60 23 61 25 0d 00 67 35 de 20 67 65 74 25 20 62 25 |#a%..g5. get% b%| 00000d70 2b 31 3a 65 6e 64 25 3d 67 65 74 25 2b 62 25 3a |+1:end%=get%+b%:| 00000d80 ff 22 4c 6f 61 64 20 22 2b 67 65 74 24 2b 22 20 |."Load "+get$+" | 00000d90 22 2b c3 7e 67 65 74 25 0d 00 68 21 e7 65 6e 64 |"+.~get%..h!.end| 00000da0 25 3f 2d 31 3c 3e 31 30 20 3f 65 6e 64 25 3d 31 |%?-1<>10 ?end%=1| 00000db0 30 3a 65 6e 64 25 2b 3d 31 0d 00 69 04 0d 00 6a |0:end%+=1..i...j| 00000dc0 05 f5 0d 00 6b 1c 20 20 e6 30 3a c8 93 20 c8 90 |....k. .0:.. ..| 00000dd0 30 2c 2d 73 79 25 2c 73 78 25 2c 73 79 25 0d 00 |0,-sy%,sx%,sy%..| 00000de0 6c 06 20 20 0d 00 6d 24 20 20 f2 6d 65 73 73 61 |l. ..m$ .messa| 00000df0 67 65 28 22 43 68 6f 6f 73 65 20 58 2f 59 20 73 |ge("Choose X/Y s| 00000e00 69 7a 65 2e 2e 2e 22 29 0d 00 6e 15 20 20 6f 6c |ize...")..n. ol| 00000e10 64 78 25 3d 30 3a 6f 6c 64 79 25 3d 30 0d 00 6f |dx%=0:oldy%=0..o| 00000e20 0a 20 20 e6 33 2c 31 0d 00 70 07 20 20 f5 0d 00 |. .3,1..p. ...| 00000e30 71 12 20 20 20 20 c8 97 78 25 2c 79 25 2c 7a 25 |q. ..x%,y%,z%| 00000e40 0d 00 72 24 20 20 20 20 78 25 3d a4 6d 6d 28 78 |..r$ x%=.mm(x| 00000e50 25 29 2b 2e 35 3a 79 25 3d a4 6d 6d 28 2d 79 25 |%)+.5:y%=.mm(-y%| 00000e60 29 2b 2e 35 0d 00 73 1e 20 20 20 20 e7 78 25 3c |)+.5..s. .x%<| 00000e70 3e 6f 6c 64 78 25 84 79 25 3c 3e 6f 6c 64 79 25 |>oldx%.y%<>oldy%| 00000e80 20 8c 0d 00 74 2f 20 20 20 20 20 20 86 20 a4 6f | ...t/ . .o| 00000e90 73 28 6f 6c 64 78 25 29 2c 30 2c a4 6f 73 28 6f |s(oldx%),0,.os(o| 00000ea0 6c 64 78 25 29 2c 2d a4 6f 73 28 6f 6c 64 79 25 |ldx%),-.os(oldy%| 00000eb0 29 0d 00 75 30 20 20 20 20 20 20 86 20 30 2c 2d |)..u0 . 0,-| 00000ec0 a4 6f 73 28 6f 6c 64 79 25 29 2c a4 6f 73 28 6f |.os(oldy%),.os(o| 00000ed0 6c 64 78 25 29 2c 2d a4 6f 73 28 6f 6c 64 79 25 |ldx%),-.os(oldy%| 00000ee0 29 0d 00 76 26 20 20 20 20 20 20 86 20 a4 6f 73 |)..v& . .os| 00000ef0 28 78 25 29 2c 30 2c a4 6f 73 28 78 25 29 2c 2d |(x%),0,.os(x%),-| 00000f00 a4 6f 73 28 79 25 29 0d 00 77 27 20 20 20 20 20 |.os(y%)..w' | 00000f10 20 86 20 30 2c 2d a4 6f 73 28 79 25 29 2c a4 6f | . 0,-.os(y%),.o| 00000f20 73 28 78 25 29 2c 2d a4 6f 73 28 79 25 29 0d 00 |s(x%),-.os(y%)..| 00000f30 78 1b 20 20 20 20 20 20 6f 6c 64 78 25 3d 78 25 |x. oldx%=x%| 00000f40 3a 6f 6c 64 79 25 3d 79 25 0d 00 79 09 20 20 20 |:oldy%=y%..y. | 00000f50 20 cd 0d 00 7a 0c 20 20 fd 20 7a 25 80 34 0d 00 | ...z. . z%.4..| 00000f60 7b 28 20 20 78 62 6f 78 25 3d a4 6f 73 28 78 25 |{( xbox%=.os(x%| 00000f70 29 3e 3e 31 3a 79 62 6f 78 25 3d a4 6f 73 28 2d |)>>1:ybox%=.os(-| 00000f80 79 25 29 3e 3e 31 0d 00 7c 24 20 20 86 20 78 62 |y%)>>1..|$ . xb| 00000f90 6f 78 25 3c 3c 31 2c 30 2c 78 62 6f 78 25 3c 3c |ox%<<1,0,xbox%<<| 00000fa0 31 2c 79 62 6f 78 25 3c 3c 31 0d 00 7d 24 20 20 |1,ybox%<<1..}$ | 00000fb0 86 20 30 2c 79 62 6f 78 25 3c 3c 31 2c 78 62 6f |. 0,ybox%<<1,xbo| 00000fc0 78 25 3c 3c 31 2c 79 62 6f 78 25 3c 3c 31 0d 00 |x%<<1,ybox%<<1..| 00000fd0 7e 18 20 20 f5 3a c8 97 61 25 2c 61 25 2c 62 25 |~. .:..a%,a%,b%| 00000fe0 3a fd 62 25 3d 30 0d 00 7f 04 0d 00 80 0d 20 20 |:.b%=0........ | 00000ff0 f4 20 70 6c 6f 74 21 0d 00 81 37 20 20 f2 6d 65 |. plot!...7 .me| 00001000 73 73 61 67 65 28 22 28 43 6c 69 63 6b 20 77 69 |ssage("(Click wi| 00001010 74 68 20 72 69 67 68 74 20 62 75 74 74 6f 6e 20 |th right button | 00001020 74 6f 20 72 65 73 74 61 72 74 2e 29 22 29 0d 00 |to restart.)")..| 00001030 82 0f 20 20 70 74 72 25 3d 67 65 74 25 0d 00 83 |.. ptr%=get%...| 00001040 33 20 20 78 25 3d 30 3a 79 25 3d 31 2d 68 65 69 |3 x%=0:y%=1-hei| 00001050 67 68 74 25 3a 6c 61 73 74 73 70 61 63 65 25 3d |ght%:lastspace%=| 00001060 2d 31 3a 6c 61 73 74 73 70 61 63 65 78 25 3d 30 |-1:lastspacex%=0| 00001070 0d 00 84 07 20 20 f5 0d 00 85 2b 20 20 20 20 61 |.... ....+ a| 00001080 25 3d 3f 70 74 72 25 3a 70 74 72 25 2b 3d 31 3a |%=?ptr%:ptr%+=1:| 00001090 e7 70 74 72 25 3d 65 6e 64 25 20 79 62 6f 78 25 |.ptr%=end% ybox%| 000010a0 3d 30 0d 00 86 38 20 20 20 20 e7 61 25 3d 33 32 |=0...8 .a%=32| 000010b0 20 6c 61 73 74 73 70 61 63 65 25 3d 70 74 72 25 | lastspace%=ptr%| 000010c0 3a 6c 61 73 74 73 70 61 63 65 78 25 3d 78 25 2b |:lastspacex%=x%+| 000010d0 77 69 64 74 68 25 28 33 32 29 0d 00 87 0f 20 20 |width%(32).... | 000010e0 20 20 e7 61 25 3d 31 30 8c 0d 00 88 33 20 20 20 | .a%=10....3 | 000010f0 20 20 20 6c 61 73 74 73 70 61 63 65 78 25 3d 78 | lastspacex%=x| 00001100 25 3a 78 25 3d 78 62 6f 78 25 2b 31 3a 6c 61 73 |%:x%=xbox%+1:las| 00001110 74 73 70 61 63 65 25 3d 70 74 72 25 0d 00 89 0b |tspace%=ptr%....| 00001120 20 20 20 20 20 20 cc 0d 00 8a 53 20 20 20 20 20 | ....S | 00001130 20 c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 | .."OS_SpriteOp"| 00001140 2c 35 34 36 2c 73 61 25 2c 73 25 28 61 25 29 2c |,546,sa%,s%(a%),| 00001150 78 25 3c 3c 31 2c 79 25 3c 3c 31 2c 30 3a 78 25 |x%<<1,y%<<1,0:x%| 00001160 2b 3d 77 69 64 74 68 25 28 61 25 29 2b 65 78 74 |+=width%(a%)+ext| 00001170 72 61 73 70 61 63 69 6e 67 25 0d 00 8b 09 20 20 |raspacing%.... | 00001180 20 20 cd 0d 00 8c 12 20 20 20 20 e7 78 25 3e 78 | ..... .x%>x| 00001190 62 6f 78 25 8c 0d 00 8d 44 20 20 20 20 20 20 e7 |box%....D .| 000011a0 6c 61 73 74 73 70 61 63 65 25 3d 2d 31 20 6c 61 |lastspace%=-1 la| 000011b0 73 74 73 70 61 63 65 25 3d 70 74 72 25 2d 31 3a |stspace%=ptr%-1:| 000011c0 6c 61 73 74 73 70 61 63 65 78 25 3d 78 25 2d 77 |lastspacex%=x%-w| 000011d0 69 64 74 68 25 28 61 25 29 0d 00 8e 3a 20 20 20 |idth%(a%)...: | 000011e0 20 20 20 e6 30 3a c8 93 20 c8 90 20 6c 61 73 74 | .0:.. .. last| 000011f0 73 70 61 63 65 78 25 3c 3c 31 2c 79 25 3c 3c 31 |spacex%<<1,y%<<1| 00001200 2c 73 78 25 2c 28 68 65 69 67 68 74 25 2d 31 29 |,sx%,(height%-1)| 00001210 3c 3c 31 0d 00 8f 46 20 20 20 20 20 20 78 25 3d |<<1...F x%=| 00001220 30 3a 79 25 2d 3d 68 65 69 67 68 74 25 2b 65 78 |0:y%-=height%+ex| 00001230 74 72 61 6c 65 61 64 69 6e 67 25 3a 70 74 72 25 |traleading%:ptr%| 00001240 3d 6c 61 73 74 73 70 61 63 65 25 3a 6c 61 73 74 |=lastspace%:last| 00001250 73 70 61 63 65 25 3d 2d 31 0d 00 90 09 20 20 20 |space%=-1.... | 00001260 20 cd 0d 00 91 13 20 20 20 20 c8 97 20 61 25 2c | ..... .. a%,| 00001270 61 25 2c 7a 25 0d 00 92 1a 20 20 fd 20 79 25 3c |a%,z%.... . y%<| 00001280 79 62 6f 78 25 20 84 28 7a 25 80 31 29 3e 30 0d |ybox% .(z%.1)>0.| 00001290 00 93 11 20 20 e7 28 7a 25 80 31 29 3d 30 20 8c |... .(z%.1)=0 .| 000012a0 0d 00 94 59 20 20 20 20 f2 6d 65 73 73 61 67 65 |...Y .message| 000012b0 28 22 43 6c 69 63 6b 20 77 69 74 68 20 6c 65 66 |("Click with lef| 000012c0 74 20 62 75 74 74 6f 6e 20 74 6f 20 73 61 76 65 |t button to save| 000012d0 20 61 6e 64 20 71 75 69 74 2c 20 77 69 74 68 20 | and quit, with | 000012e0 72 69 67 68 74 20 62 75 74 74 6f 6e 20 74 6f 20 |right button to | 000012f0 72 65 73 74 61 72 74 22 29 0d 00 95 1a 20 20 20 |restart").... | 00001300 20 f5 3a c8 97 61 25 2c 61 25 2c 7a 25 3a fd 7a | .:..a%,a%,z%:.z| 00001310 25 3d 30 0d 00 96 1a 20 20 20 20 f5 3a c8 97 61 |%=0.... .:..a| 00001320 25 2c 61 25 2c 7a 25 3a fd 7a 25 80 35 0d 00 97 |%,a%,z%:.z%.5...| 00001330 1a 20 20 20 20 f5 3a c8 97 61 25 2c 61 25 2c 62 |. .:..a%,a%,b| 00001340 25 3a fd 62 25 3d 30 0d 00 98 08 20 20 20 cd 0d |%:.b%=0.... ..| 00001350 00 99 0d fd 28 7a 25 80 34 29 3e 30 0d 00 9a 04 |....(z%.4)>0....| 00001360 0d 00 9b 29 f4 20 67 72 61 62 20 61 6e 64 20 73 |...). grab and s| 00001370 61 76 65 20 73 70 72 69 74 65 20 28 69 6e 20 44 |ave sprite (in D| 00001380 72 61 77 20 66 69 6c 65 29 0d 00 9c 10 f2 6d 65 |raw file).....me| 00001390 73 73 61 67 65 28 22 22 29 0d 00 9d 30 21 73 61 |ssage("")...0!sa| 000013a0 25 3d 6c 65 6e 25 3a 73 61 25 21 38 3d 31 36 3a |%=len%:sa%!8=16:| 000013b0 c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c |.."OS_SpriteOp",| 000013c0 32 35 36 2b 39 2c 73 61 25 0d 00 9e 45 c8 99 22 |256+9,sa%...E.."| 000013d0 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 35 36 |OS_SpriteOp",256| 000013e0 2b 31 36 2c 73 61 25 2c 22 69 6d 61 67 65 22 2c |+16,sa%,"image",| 000013f0 31 2c 30 2c 28 79 25 2b 68 65 69 67 68 74 25 29 |1,0,(y%+height%)| 00001400 3c 3c 31 2c 78 62 6f 78 25 3c 3c 31 2c 30 0d 00 |<<1,xbox%<<1,0..| 00001410 9f 05 3a 0d 00 a0 2f c8 99 22 4f 53 5f 53 70 72 |..:.../.."OS_Spr| 00001420 69 74 65 4f 70 22 2c 32 35 36 2b 34 30 2c 73 61 |iteOp",256+40,sa| 00001430 25 2c 22 69 6d 61 67 65 22 b8 2c 2c 2c 78 25 2c |%,"image".,,,x%,| 00001440 79 25 0d 00 a1 24 61 25 3d ae 70 75 74 24 3a ff |y%...$a%=.put$:.| 00001450 22 53 65 74 54 79 70 65 20 22 2b 70 75 74 24 2b |"SetType "+put$+| 00001460 22 20 61 66 66 22 0d 00 a2 37 d5 23 61 25 2c 22 |" aff"...7.#a%,"| 00001470 44 72 61 77 22 3b 3a f2 70 75 74 28 32 30 31 29 |Draw";:.put(201)| 00001480 3a f2 70 75 74 28 30 29 3a d5 23 61 25 2c 22 43 |:.put(0):.#a%,"C| 00001490 72 69 62 20 20 20 20 20 20 20 20 22 3b 0d 00 a3 |rib ";...| 000014a0 3f f2 70 75 74 28 30 29 3a f2 70 75 74 28 30 29 |?.put(0):.put(0)| 000014b0 3a f2 70 75 74 28 78 25 2a 32 35 36 2a 31 38 30 |:.put(x%*256*180| 000014c0 2f 64 70 69 25 29 3a f2 70 75 74 28 79 25 2a 32 |/dpi%):.put(y%*2| 000014d0 35 36 2a 31 38 30 2f 64 70 69 25 29 0d 00 a4 1b |56*180/dpi%)....| 000014e0 f2 70 75 74 28 35 29 3a f4 20 53 70 72 69 74 65 |.put(5):. Sprite| 000014f0 20 6f 62 6a 65 63 74 0d 00 a5 1d 62 25 3d 73 61 | object....b%=sa| 00001500 25 2b 73 61 25 21 38 3a f2 70 75 74 28 32 34 2b |%+sa%!8:.put(24+| 00001510 21 62 25 29 0d 00 a6 3f f2 70 75 74 28 30 29 3a |!b%)...?.put(0):| 00001520 f2 70 75 74 28 30 29 3a f2 70 75 74 28 78 25 2a |.put(0):.put(x%*| 00001530 32 35 36 2a 31 38 30 2f 64 70 69 25 29 3a f2 70 |256*180/dpi%):.p| 00001540 75 74 28 79 25 2a 32 35 36 2a 31 38 30 2f 64 70 |ut(y%*256*180/dp| 00001550 69 25 29 0d 00 a7 1b c8 99 22 4f 53 5f 47 42 50 |i%)......"OS_GBP| 00001560 42 22 2c 32 2c 61 25 2c 62 25 2c 21 62 25 0d 00 |B",2,a%,b%,!b%..| 00001570 a8 08 d9 23 61 25 0d 00 a9 05 3a 0d 00 aa 20 c8 |...#a%....:... .| 00001580 91 30 2c 30 3a db 3a e6 31 3a c8 93 20 c8 90 20 |.0,0:.:.1:.. .. | 00001590 30 2c 30 2c 73 78 25 2c 73 79 25 0d 00 ab 2e c8 |0,0,sx%,sy%.....| 000015a0 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 |."OS_SpriteOp",2| 000015b0 35 36 2b 33 34 2c 73 61 25 2c 22 69 6d 61 67 65 |56+34,sa%,"image| 000015c0 22 2c 31 36 2c 31 36 2c 30 0d 00 ac 05 e0 0d 00 |",16,16,0.......| 000015d0 ad 04 0d 00 ae 04 0d 00 af 23 f4 20 67 69 76 65 |.........#. give| 000015e0 20 4f 53 20 75 6e 69 74 73 20 66 6f 72 20 6d 6d | OS units for mm| 000015f0 20 61 6e 64 20 76 2e 76 2e 0d 00 b0 0d dd 20 a4 | and v.v...... .| 00001600 6f 73 28 6d 6d 29 0d 00 b1 13 3d 6d 6d 2f 32 35 |os(mm)....=mm/25| 00001610 2e 34 2a 32 2a 64 70 69 25 0d 00 b2 0d dd 20 a4 |.4*2*dpi%..... .| 00001620 6d 6d 28 6f 73 29 0d 00 b3 13 3d 6f 73 2a 32 35 |mm(os)....=os*25| 00001630 2e 34 2f 32 2f 64 70 69 25 0d 00 b4 04 0d 00 b5 |.4/2/dpi%.......| 00001640 13 dd 20 f2 70 72 28 78 25 2c 79 25 2c 61 24 29 |.. .pr(x%,y%,a$)| 00001650 0d 00 b6 11 ec 78 25 2c 79 25 3a f1 61 24 3b 3a |.....x%,y%:.a$;:| 00001660 e1 0d 00 b7 04 0d 00 b8 12 dd 20 f2 6d 65 73 73 |.......... .mess| 00001670 61 67 65 28 61 24 29 0d 00 b9 32 e6 30 3a c8 93 |age(a$)...2.0:..| 00001680 20 c8 90 20 38 2c 34 30 2d 73 79 25 2c 73 78 25 | .. 8,40-sy%,sx%| 00001690 2c 31 36 3a e6 31 3a f2 70 72 28 38 2c 35 36 2d |,16:.1:.pr(8,56-| 000016a0 73 79 25 2c 61 24 29 3a e1 0d 00 ba 04 0d 00 bb |sy%,a$):........| 000016b0 0e dd 20 f2 70 75 74 28 78 25 29 0d 00 bc 30 d5 |.. .put(x%)...0.| 000016c0 23 61 25 2c 78 25 3a d5 23 61 25 2c 78 25 3e 3e |#a%,x%:.#a%,x%>>| 000016d0 38 3a d5 23 61 25 2c 78 25 3e 3e 31 36 3a d5 23 |8:.#a%,x%>>16:.#| 000016e0 61 25 2c 78 25 3e 3e 32 34 3a e1 0d ff |a%,x%>>24:...| 000016ed