Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403_2.adf » Disk2Mar94 » !AWMar94/Goodies/CFSMove/!CfsMove/!RunImage
!AWMar94/Goodies/CFSMove/!CfsMove/!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_ArchimedesWorld_199403_2.adf » Disk2Mar94 |
Filename: | !AWMar94/Goodies/CFSMove/!CfsMove/!RunImage |
Read OK: | ✔ |
File size: | 3F75 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10 REM><cfsMove$Dir>.!RunImage 20 REM ************************************* 30 REM ** ** 40 REM ** RISC OS Multi-Tasking Program ** 50 REM ** ** 60 REM ** Stephen John Bayliss LEN ** 70 REM ** ** 80 REM ************************************* 90 : 100 PROCInitilise 110 PROCSetUp 120 PROCIcon_Bar_Sprite("!iconbar",Dir$+".!Sprites",-1,1,"CfsMve") 130 PROCReadTemplates 140 PROCSetUpIconBarInfo 150 ONERROR ONERROROFF:PROCreport("Don't panic, it's only a little error","",REPORT$," at line "+STR$ERL," Things will resume to normal ") 160 PROCRunUnderRisc 170 END 180 : 190 REM ---------- Set Up Desk Top ---------- 200 : 210 DEF PROCInitilise 220 Task_Name$="!CfsMove":Dir$="<cfsMove$Dir>":IconSprites%=0 230 DIM buffer% 1000 240 DIM q% 2000 250 DIM block% &200 260 Task = &4B534154 : REM ASCII representaion of 'TASK' 270 Wimp_Version = 2 : REM Current WIMP version number (at least 2) 280 SYS "Wimp_Initialise",Wimp_Version*100,Task,Task_Name$ TO ,Task_Handle 290 ENDPROC 300 : 310 DEF PROCSetUp 320 file$="<Unknown>":error%=FALSE:filein$="":fileout$="":max=75:key%=FALSE 330 DIM prog$(max),path$(max),w%(max),dir2$(max) 340 ENDPROC 350 : 360 REM ---------- Runing In The Desk Top ---------- 370 : 380 DEF PROCRunUnderRisc 390 REPEAT 400 SYS "Wimp_Poll",0,q% TO buffer% 410 CASE buffer% OF 420 WHEN 2 :PROCOpen_Window(!q%,q%!4,q%!8,q%!12,q%!16,q%!20,q%!24,q%!28) 430 WHEN 3 :PROCClose_Window(!q%) 440 WHEN 6 :PROCcheckmouse(!q%,q%!4,q%!8,q%!12,q%!16,q%!20) 450 WHEN 7 :PROCdrag_end 460 WHEN 8 :PROCkey(q%!0,q%!4,q%!8,q%!24) 470 WHEN 9 :PROCmenuselect(q%) 480 WHEN 17,18 :PROCReceive(q%) 490 ENDCASE 500 IF error%=TRUE THEN 510 MOUSE X,Y,Z 520 IF X<250 THEN MOUSE TO 250,Y 530 IF X>1019 THEN MOUSE TO 1019,Y 540 IF Y<250 THEN MOUSE TO X,250 550 IF Y>639 THEN MOUSE TO X,639 560 IF FNiconstate(Report%,2)="&17219039" AND Z=4 THEN error%=FALSE:PROCClose_Window(Report%) 570 ENDIF 580 UNTIL FALSE 590 ENDPROC 600 : 610 REM ---------- When A Key Is Pressed ---------- 620 : 630 DEFPROCistate(q%!0,q%!4) 640 SYS&400CE,,q% 650 ENDPROC 660 : 670 REM ---------- Create Wimp Menu ---------- 680 : 690 DEF PROCcheckmouse(x%,y%,Key%,Window%,Icon%,Other%) 700 REM > =Show Window Syntax >Text.Window_Name 710 REM < =Fade Out Text Syntax <Text 720 REM @ =Tick Item Syntax @Text 730 REM ~ =Sub Menus Syntax ~Text\Sub_Menu$\Sub_Menu_Title 740 REM : =Doted Line Syntax :Text 750 REM , =Split Up Text Syntax Text,Text 760 IF file$="<Unknown>" THEN iconmenu$=":>Info.Info%,:<>Save.Save%,Quit" 770 IF file$<>"<Unknown>" THEN iconmenu$=":>Info.Info%,:>Save.Save%,Quit" 780 NoInMen=4.25 790 LOCAL mb%,window,icon 800 window=q%!12:icon=q%!16:mx%=q%!0:my%=q%!4:mb%=q%!8 810 CASE Window% OF 820 WHEN -2 :REM Icon Bar 830 IF Key%=4 THEN PROCOpen_Window(Tran%,230,0,9000,518,q%!20,q%!24,-1) 840 IF Key%=2 THEN PROCdomenu(1,menubuf%,iconmenu$,Task_Name$,x%-64,96+(NoInMen+1)*40) 850 860 WHEN Save% 870 CASE mb% OF 880 WHEN 4,1 890 CASE icon OF 900 WHEN 9 : PROCdrag_it 910 ENDCASE 920 ENDCASE 930 940 WHEN Tran% 950 IF FNiconstate(Tran%,3)="&C721903D" THEN PROCSave 960 IF FNiconstate(Tran%,14)="&C721903D" AND filein$<>"" THEN OSCLI"Filer_OpenDir "+fileinpath$ 970 IF FNiconstate(Tran%,15)="&C721903D" AND filein$<>"" THEN OSCLI"Filer_OpenDir "+fileoutpath$ 980 IF FNiconstate(Tran%,16)="&C721913D" THEN 990 SWAP fileinpath$,fileoutpath$:SWAP filein$,fileout$ 1000 PROCput_icon_text(q%,Tran%,10,filein$,-1) 1010 PROCput_icon_text(q%,Tran%,13,fileout$,-1) 1020 ENDIF 1030 MOUSE X,Y,Z 1040 IF Key%=2 THEN PROCdomenu(1,menubuf%,iconmenu$,Task_Name$,X-85,Y-140+(NoInMen+1)*40) 1050 ENDCASE 1060 ENDPROC 1070 : 1080 REM ---------- Recive Wimp Menu ---------- 1090 : 1100 DEF PROCmenuselect(menus%) 1110 LOCAL a,a$,level1$,level2$,level3$,recat 1120 recat%=FALSE 1130 SYS "Wimp_DecodeMenu",,(menubuf%+4),menus%,STRING$(200," ")TO,,,a$ 1140 again%=TRUE 1150 IF a$="" THEN ENDPROC 1160 level1$=FNpar(a$,".",a) 1170 IF LEFT$(level1$,1)="'" THEN level1$=level1$+FNpar(a$,".",a) 1180 level2$=FNpar(a$,".",a):level3$=FNpar(a$,".",a) 1190 IF level1$="Quit" THEN PROCFinish 1200 IF again%=TRUE THEN PROCdomenu(1,menubuf%,iconmenu$,Task_Name$,x%-64,96+(NoInMen+1)*40) 1210 SYS "Hourglass_Smash" 1220 ENDPROC 1230 : 1240 DEF PROCReceive(q%) 1250 CASE q%!16 OF 1260 1270 WHEN 2 1280 savename$=FNstring(q%+44) 1290 PROCput_icon_text(q%,Save%,6,savename$,-1) 1300 PROCSave 1310 1320 WHEN &3 1330 SYS "Hourglass_On" 1340 filein$=FNGetStr(q%+44):dir%=FALSE 1350 orgfile$=filein$ 1360 PROCinfo(filein$) 1370 IF dir%<>TRUE THEN 1380 IF LEFT$(filein$,4)="CFS#" THEN fileout$=RIGHT$(filein$,LEN(filein$)-4) 1390 IF LEFT$(filein$,4)<>"CFS#" AND filetype$="D96" THEN fileout$=filein$:filein$="CFS#"+fileout$ 1400 IF LEFT$(filein$,4)<>"CFS#" AND filetype$<>"D96" THEN fileout$="CFS#"+filein$ 1410 IF filetype$="D96" THEN PROCinfo(filein$):ste%=FNicon_newsprite(Save%,9,"file_"+filetype$,-1) ELSE ste%=FNicon_newsprite(Save%,9,"file_D96",-1) 1420 ELSE 1430 IF LEFT$(filein$,4)="CFS#" THEN fileout$=RIGHT$(filein$,LEN(filein$)-4) 1440 IF LEFT$(filein$,4)<>"CFS#" THEN fileout$="CFS#"+filein$ 1450 ste%=FNicon_newsprite(Save%,9,FNchopdir(filein$,"."),-1) 1460 ENDIF 1470 1480 fileinpath$=filein$:REPEAT:fileinpath$=LEFT$(fileinpath$,LEN(fileinpath$)-1):UNTIL RIGHT$(fileinpath$,1)=".":fileinpath$=LEFT$(fileinpath$,LEN(fileinpath$)-1) 1490 1500 fileoutpath$=fileout$:REPEAT:fileoutpath$=LEFT$(fileoutpath$,LEN(fileoutpath$)-1):UNTIL RIGHT$(fileoutpath$,1)=".":fileoutpath$=LEFT$(fileoutpath$,LEN(fileoutpath$)-1) 1510 1520 PROCput_icon_text(q%,Tran%,10,filein$,-1) 1530 PROCput_icon_text(q%,Tran%,13,fileout$,-1) 1540 PROCput_icon_text(q%,Save%,6,fileout$,-1) 1550 PROCOpen_Window(Tran%,230,0,9000,518,q%!20,q%!24,-1) 1560 SYS "Hourglass_Smash" 1570 VDU7 1580 ENDCASE 1590 ENDPROC 1600 : 1610 DEF PROCFinish 1620 SYS "Wimp_CloseDown":END 1630 ENDPROC 1640 : 1650 REM ---------- Load In Sprites ---------- 1660 : 1670 DEF PROCIcon_Bar_Sprite(SPName$,SpriteFile$,LorR,Text_NoText,Text$) 1680 handle%=OPENIN(SpriteFile$):len%=EXT#handle%+16:CLOSE#handle% 1690 DIM sprites% len% 1700 !sprites%=len%:sprites%!8=1 1710 SYS "OS_SpriteOp",&109,sprites% 1720 SYS "OS_SpriteOp",&10A,sprites%,SpriteFile$ 1730 DIM IconText% 4 1740 IF Text_NoText=0 THEN 1750 PROCIconBar(LorR,SPName$) 1760 ELSE 1770 iconbar%=FNIconBarText(LorR,SPName$,1) 1780 $IconText%=Text$:q%!0=-1 1790 q%!4=iconbar%:q%!8=0:q%!12=0:SYS "Wimp_SetIconState",,q% 1800 ENDIF 1810 IconSprites%=1 1820 ENDPROC 1830 : 1840 DEF FNIconBarText(LorR,spname$,spritearea%) 1850 LOCAL ic% 1860 !q%=LorR:q%!4=0:q%!8=-16:q%!12=96:q%!16=95:q%!20=&1701210B 1870 DIM isbarsp% 14 1880 $isbarsp%="s"+spname$:q%!24=IconText%:q%!28=isbarsp%:q%!32=3 1890 SYS "Wimp_CreateIcon",,q% TO ic% 1900 =ic% 1910 : 1920 DEF PROCIconBar(LorR,Sprite$) 1930 !q%=LorR:q%!4=0:q%!8=0:q%!12=68:q%!16=68 1940 q%!20=&2002:$(q%+24)=Sprite$:SYS "Wimp_CreateIcon",,q% TO iconbar% 1950 ENDPROC 1960 : 1970 REM ---------- Load In Templates ---------- 1980 : 1990 DEF PROCReadTemplates 2000 SYS "Wimp_OpenTemplate",,"<cfsMove$Dir>.Templates" 2010 Info% = FNtemplate("info") 2020 Tran% = FNtemplate("tran") 2030 Report% = FNtemplate("report") 2040 Save% = FNtemplate("save") 2050 SYS "Wimp_CloseTemplate" 2060 ENDPROC 2070 : 2080 DEF FNtemplate(id$) 2090 LOCAL handle,pos 2100 maxws%=&750 2110 DIM ws% maxws% 2120 DIM q% 600 2130 SYS "Wimp_LoadTemplate",,q%,ws%,ws%+maxws%,-1,id$,0 TO ,,curws%,,,,pos 2140 IF pos=0 THEN ERROR 1,"Template '"+id$+"' not found" 2150 SYS "Wimp_CreateWindow",,q% TO handle 2160 =handle 2170 : 2180 REM ---------- Window Controlers ---------- 2190 : 2200 DEFFNicon_newsprite(handle%,icon%,newname$,redraw) 2210 block%!0=handle% 2220 block%!4=icon% 2230 SYS "Wimp_GetIconState",,block% 2240 SYS "Wimp_DeleteIcon",,block% 2250 block%!4=block%!8 2260 block%!8=block%!12 2270 block%!12=block%!16 2280 block%!16=block%!20 2290 block%!20=&3002 2300 $(block%+24)=newname$ 2310 SYS "Wimp_CreateIcon",,block% TO icon% 2320 IF redraw THEN SYS "Wimp_ForceRedraw",block%!0,block%!4,block%!8,block%!12,block%!16 2330 =icon% 2340 : 2350 DEF PROCOpen_Window(handle%,x0%,y0%,x1%,y1%,scx%,scy%,bhandle%) 2360 IF handle%=-1 THEN ENDPROC 2370 q%!0=handle%:q%!28=bhandle% 2380 q%!4=x0%:q%!8=y0%:q%!12=x1%:q%!16=y1% 2390 q%!20=scx%:q%!24=scy% 2400 SYS "Wimp_OpenWindow",,q% 2410 ENDPROC 2420 : 2430 DEF PROCClose_Window(handle%) 2440 !q%=handle% 2450 SYS "Wimp_CloseWindow",,q% 2460 ENDPROC 2470 : 2480 REM ---------- Wimp Menu Procedures ---------- 2490 : 2500 DEF PROCSetUpIconBarInfo 2510 wbcol=&3:tbcol=&2:sco=&3:mbcol=&0:wfcol=&7:tfcol=&7 2520 sci=&D:tbcol2=&C:black=&7:white=&0:cyan=9:lightgrey=1 2530 DIM menubuf% 500 2540 ENDPROC 2550 : 2560 DEF PROCdomenu(handle%,menuptr%,menu$,menutitle$,x,y) 2570 LOCAL dummy%,next% 2580 next%=menuptr%+4:menuptr%!0=handle% 2590 dummy%=FNc_m(next%,menu$,menutitle$) 2600 SYS "Wimp_CreateMenu",,dummy%,x,y 2610 ENDPROC 2620 : 2630 DEF FNc_m(menuptr%,menu$,menutitle$) 2640 LOCAL i%,call%,item$,w,l 2650 call%=menuptr%:w=LENmenutitle$:next%+=52 2660 FOR i%=0TOLENmenu$ 2670 IF MID$(menu$,i%,1)="," THEN next%+=24 2680 NEXT 2690 i%=0:menuptr%!20=40:$menuptr%=menutitle$ 2700 menuptr%?12=tfcol:menuptr%?13=2:menuptr%?14=wfcol:menuptr%?15=mbcol 2710 menuptr%!24=0:menuptr%+=28 2720 REPEAT 2730 item$=FNpar(menu$,",",i%):menuptr%=FNmenuitem(menuptr%,item$,l) 2740 w=FNmax(l,w) 2750 UNTIL item$="" 2760 call%!16=16*w+12 2770 menuptr%!-24=(menuptr%!-24)OR&80 2780 =call% 2790 : 2800 DEF FNmenuitem(ptr%,text$,RETURN l) 2810 IF text$="" =ptr% 2820 LOCAL a,t$,text 2830 text=TRUE 2840 pad$=" ":a=0:!ptr%=0:ptr%!8=&07000021:ptr%!4=-1 2850 IF LEFT$(text$,1)=":"!ptr%=!ptr% OR 2:text$=MID$(text$,2) 2860 IF LEFT$(text$,1)="<"ptr%!8=ptr%!8 OR 2^22:text$=MID$(text$,2) 2870 IF LEFT$(text$,1)="@"!ptr%=!menuptr% OR 1:text$=MID$(text$,2) 2880 IF LEFT$(text$,1)="`" THEN 2890 text$=MID$(text$,2):ptr%!8=&07000121 2900 !ptr%=!ptr% OR 4:t$=FNpar(text$,"\",a) 2910 ptr%!12=EVAL(t$):t$=FNpar(text$,"\",a) 2920 ptr%!16=EVAL(t$):t$=FNpar(text$,"\",a) 2930 ptr%!20=EVAL(t$):text=FALSE:text$="" 2940 ENDIF 2950 IF LEFT$(text$,1)=">" THEN 2960 text$=MID$(text$,2):t$=FNpar(text$,".",a) 2970 ptr%!4=EVAL(FNpar(text$,".",a)):text$=t$ 2980 ENDIF 2990 IF LEFT$(text$,1)="~" THEN 3000 text$=MID$(text$,2):t$=FNpar(text$,"\",a) 3010 ptr%!4=EVAL("FNc_m(next%,"+FNpar(text$,"\",a)+","+CHR$34+FNpar(text$,"\",a)+CHR$34+")") 3020 text$=t$ 3030 ENDIF 3040 IF text THEN $(ptr%+12)=text$ 3050 l=LENtext$ 3060 =ptr%+24 3070 : 3080 DEF FNmemtostr(ptr,ml) 3090 LOCAL f$,max:max=ptr+ml 3100 WHILE ?ptr AND ptr<=max f$+=CHR$?ptr:ptr+=1 3110 ENDWHILE 3120 =f$ 3130 : 3140 DEF FNpar(a$,s$,RETURN i%) 3150 LOCAL i1% 3160 i1%=i%+1:i%=INSTR(a$+s$,s$,i1%) 3170 =MID$(a$,i1%,i%-i1%) 3180 : 3190 DEF FNmax(a,b):IFa>b=a ELSE=b 3200 : 3210 DEF FNmin(a,b):IFa<b=a ELSE=b 3220 : 3230 DEF FNiconstate(wh%,ih%) 3240 q%!0=wh%:q%!4=ih% 3250 SYS "Wimp_GetIconState",,q% 3260 iflg%=q%!24:iflg$="&"+STR$~iflg% 3270 =iflg$ 3280 : 3290 DEFPROCput_icon_text(q%,whandle%,ihandle%,data$,redraw) 3300 q%!0=whandle% 3310 q%!4=ihandle% 3320 SYS "Wimp_GetIconState",,q% 3330 $(q%!28)=data$ 3340 IF redraw THEN 3350 SYS "Wimp_ForceRedraw",whandle%,q%!8,q%!12,q%!16,q%!20 3360 ENDIF 3370 ENDPROC 3380 : 3390 DEFFN_ReadIconText(ih%,wh%) 3400 LOCAL Result$ 3410 q%!0=wh% 3420 q%!4=ih% 3430 SYS "Wimp_GetIconState",,q% 3440 IF (q%!24 AND (1<<8))<>0 THEN Result$=$(q%!28) ELSE Result$=$(q%+28) 3450 =Result$ 3460 : 3470 DEF FNGetStr(s%) : REM get string 3480 LOCAL n$ 3490 WHILE?s%:n$+=CHR$?s%:s%+=1:ENDWHILE 3500 =n$ 3510 : 3520 DEFPROCreport(line1$,line2$,line3$,line4$,line5$) 3530 VDU6:OSCLI"SHUT" 3540 IF ERR=67798 OR ERR=214 THEN line5$="Please check your save file path." 3550 IF ERR=20 THEN line5$="I'm not Einstein you now. Use small lines" 3560 SYS "Hourglass_Smash" 3570 PROCput_icon_text(q%,Report%,4,line1$,-1) 3580 PROCput_icon_text(q%,Report%,5,line2$,-1) 3590 PROCput_icon_text(q%,Report%,6,line3$,-1) 3600 PROCput_icon_text(q%,Report%,7,line4$,-1) 3610 PROCput_icon_text(q%,Report%,8,line5$,-1) 3620 PROCOpen_Window(Report%,250,0,9000,600,q%!20,q%!24,-1) 3630 error%=TRUE 3640 ENDPROC 3650 : 3660 DEFPROCkey(window%,ic,x%,asc%) 3670 stev%=asc% 3680 CASE asc% OF 3690 WHEN 13 : PROCcaret 3700 ENDCASE 3710 ENDPROC 3720 : 3730 DEF PROCcaret 3740 SYS "Wimp_GetCaretPosition",,q% 3750 window%=q%!0 3760 icon%=q%!4+1 3770 CASE window% OF 3780 WHEN Save% 3790 CASE icon% OF 3800 WHEN 7 : icon%=6 3810 key%=TRUE:PROCSave:ENDCASE:ENDCASE:ENDPROC 3820 ENDCASE 3830 ENDCASE 3840 SYS "Wimp_SetCaretPosition",window%,icon%,,,-1,LEN(FN_ReadIconText(icon%,window%)) 3850 ENDPROC 3860 : 3870 REM -------------------------- Drag Box Proc's -------------------------- 3880 : 3890 DEF PROCdrag_it 3900 !q%=Save% 3910 q%!4=9 3920 SYS"Wimp_GetIconState",,q% 3930 dbminx%=q%!8 3940 dbminy%=q%!12 3950 dbmaxx%=q%!16 3960 dbmaxy%=q%!20 3970 !q%=Save% 3980 SYS "Wimp_GetWindowInfo",,q% 3990 wx0%=q%!4 4000 wy0%=q%!8 4010 wx1%=q%!12 4020 wy1%=q%!16 4030 !q%=Save% 4040 q%!4=5 4050 q%!8=wx0%+dbminx% 4060 q%!12=wy1%+dbminy% 4070 q%!16=wx0%+dbmaxx% 4080 q%!20=wy1%+dbmaxy% 4090 q%!24=0 4100 q%!28=0 4110 SYS "Wimp_DragBox",,q% 4120 ENDPROC 4130 : 4140 DEF PROCdrag_end 4150 SYS "Wimp_GetPointerInfo",,q% 4160 dbmx%=!q% 4170 dbmy%=q%!4 4180 dbw%=q%!12 4190 dbi%=q%!16 4200 !q%=Save% 4210 q%!4=6 4220 SYS "Wimp_GetIconState",,q% 4230 savename$=$(q%!28) 4240 PROCsend(savename$) 4250 ENDIF 4260 ENDPROC 4270 : 4280 DEF PROCsend(leafname$) 4290 IF INSTR(leafname$,".")<>0 THEN leafname$=FNleaf(leafname$) 4300 !q%=52+(LEN(leafname$) DIV 4)*4 4310 q%!12=0 4320 q%!16=1 4330 q%!20=dbw% 4340 q%!24=dbi% 4350 q%!28=dbmx% 4360 q%!32=dbmy% 4370 q%!36=1 4380 q%!40=&FFF 4390 $(q%+44)=leafname$+CHR$0 4400 SYS "Wimp_SendMessage",17,q%,dbw% 4410 ENDPROC 4420 : 4430 DEFFNstring(a%) 4440 LOCALb$:b$="":WHILE?a%<>0 :b$+=CHR$?a%:a%+=1:ENDWHILE 4450 =b$ 4460 : 4470 DEFFNleaf(path$) 4480 WHILE INSTR(path$,".") 4490 path$=MID$(path$,INSTR(path$,".")+1) 4500 ENDWHILE 4510 =path$ 4520 : 4530 REM --------------------------- Main Program --------------------------- 4540 : 4550 DEFPROCSave 4560 IF filein$="" THEN ENDPROC 4570 SYS "Hourglass_On" 4580 same%=FALSE 4590 SYS "Wimp_CreateMenu",-1,-1 4600 IF fileout$<>FN_ReadIconText(6,Save%) AND key%=TRUE THEN 4610 fileout$=FN_ReadIconText(6,Save%):same%=TRUE 4620 IF LEFT$(fileout$,4)<>"CFS#" THEN fileout$="CFS#"+fileout$ 4630 ENDIF 4640 IF dir%=FALSE THEN 4650 OSCLI"COPY "+filein$+" "+fileout$+" A ~C F R" 4660 ENDIF 4670 IF dir%=TRUE THEN 4680 IF LEFT$(filein$,4)="CFS#" THEN 4690 OSCLI"COPY "+filein$+" "+fileout$+" A ~C F R" 4700 ENDIF 4710 IF LEFT$(filein$,4)<>"CFS#" THEN 4720 PROCcat(filein$) 4730 FORI=1TOn% 4740 copy$=path$(I)+"."+FNchopdir(prog$(I),".") 4750 to$="CFS#"+copy$ 4760 PROCinfo(copy$) 4770 IF filetype$<>"D96" AND filetype$<>"FF9" AND FNchopdir(copy$,".")<>"!Boot" AND FNchopdir(copy$,".")<>"!boot" THEN OSCLI"COPY "+copy$+" "+to$+" A ~C F R" 4780 NEXT I 4790 ENDIF 4800 ENDIF 4810 IF same%=TRUE AND LEFT$(fileout$,4)<>"CFS#" THEN filein$="CFS#"+fileout$ 4820 IF same%=TRUE AND LEFT$(fileout$,4)="CFS#" THEN filein$=RIGHT$(fileout$,LEN(fileout$)-4) 4830 IF same%=TRUE THEN orgfile$=filein$ 4840 SWAP filein$,fileout$ 4850 SWAP fileinpath$,fileoutpath$ 4860 PROCinfo(orgfile$) 4870 IF dir%=FALSE THEN 4880 IF filetype$="D96" THEN PROCinfo(filein$):ste%=FNicon_newsprite(Save%,9,"file_"+filetype$,-1) ELSE ste%=FNicon_newsprite(Save%,9,"file_D96",-1) 4890 ENDIF 4900 PROCinfo(filein$) 4910 PROCput_icon_text(q%,Tran%,10,filein$,-1) 4920 PROCput_icon_text(q%,Tran%,13,fileout$,-1) 4930 PROCput_icon_text(q%,Save%,6,fileout$,-1) 4940 VDU7 4950 PROCClose_Window(Tran%) 4960 GCOL0,7:MOVE0,0:DRAW1300,0 4970 SYS "Hourglass_Smash" 4980 key%=FALSE 4990 ENDPROC 5000 : 5010 DEFPROCinfo(file2$) 5020 file$=file2$ 5030 SYS "OS_File",5,file2$ TO type%,,load%,exec%,size% 5040 IF type%=2 THEN dir%=TRUE:ENDPROC 5050 SYS "OS_FSControl",18,,(&FFF AND load%>>>8) TO ,,b%,c% 5060 filename$=CHR$(b% AND &FF)+CHR$((b%>>8) AND &FF)+CHR$((b%>>16) AND &FF)+CHR$((b%>>24)AND &FF) 5070 filename$+=CHR$(c% AND &FF)+CHR$((c%>>8) AND &FF)+CHR$((c%>>16) AND &FF)+CHR$((c%>>24)AND &FF) 5080 filetype$="&"+STR$~(&FFF AND load%>>>8) 5090 date=block% 5100 date?4=load% AND &FF 5110 date?3=exec%>>24 AND &FF 5120 date?2=exec%>>16 AND &FF 5130 date?1=exec%>>8 AND &FF 5140 date?0=exec% AND &FF 5150 SYS "OS_ConvertStandardDateAndTime",date,block%,28 5160 filedate$=LEFT$($block%,20) 5170 CASE TRUE OF 5180 WHEN size%>=1024 : size$=STR$(size%DIV1024)+"."+STR$(size%MOD1024)+"K" 5190 OTHERWISE 5200 size$=STR$size% 5210 ENDCASE 5220 load$="&"+STR$~(load%) 5230 exec$="&"+STR$~(exec%) 5240 filetype$=RIGHT$(filetype$,LEN(filetype$)-1) 5250 REM file$ 5260 REM filetype$ 5270 REM filename$ 5280 REM load$ 5290 REM exec$ 5300 REM size$ 5310 REM filedate$ 5320 ENDPROC 5330 : 5340 DEF FNchopstr(n$,chr$) 5350 TIME=0 5360 REPEAT 5370 n$=LEFT$(n$,LEN(n$)-1) 5380 IF TIME>500 THEN END 5390 UNTIL RIGHT$(n$,1)=chr$ 5400 n$=LEFT$(n$,LEN(n$)-1) 5410 =n$ 5420 : 5430 DEF FNchopdir(n$,chr$) 5440 dir2$=n$:count%=0:TIME=0 5450 REPEAT 5460 count%+=1 5470 dir2$=LEFT$(dir2$,LEN(dir2$)-1) 5480 IF TIME>500 THEN END 5490 UNTIL RIGHT$(dir2$,1)=chr$ 5500 dir2$=RIGHT$(n$,count%) 5510 =dir2$ 5520 : 5530 DEF PROCcat(root$) 5540 n%=0:length%=LEN(root$):maxn%=0:maxn2%=0 5550 stephen%=FNbranch(root$,root$,0):n%-=1 5560 REM FORI=1TOn%:PRINTpath$(I)+"."+FNchopdir(prog$(I),"."):NEXTI 5570 ENDPROC 5580 : 5590 DEF FNbranch(f$,leaf$,y%) 5600 LOCAL i%,l% 5610 l%=n% 5620 n%+=1 5630 REM Just File Names 5640 n2$=STR$(y%)+"."+leaf$ 5650 SYS "XOS_File",5,f$ TO type% 5660 REM Full File Path 5670 n$=f$ 5680 n$=FNchopstr(n$,".") 5690 IF RIGHT$(n$,1)<>"$" THEN dir2$(l%)=FNchopdir(n$,".") 5700 IF LEN(n$)>length% THEN n2$=""+n2$ 5710 IF y%>maxn% THEN maxn%=y% 5720 IF y%=0 THEN maxn2%+=1 5730 IF type%=2 THEN 5740 i%=0:dick2%=0 5750 REPEAT 5760 SYS "XOS_GBPB",9,f$,q%,1,i%,&100,"*" TO ,,,r%,i% 5770 IF r%>0 THEN 5780 VDU21 5790 REM PRINTSPC12;CHR$13; 5800 SYS "OS_Write0",q% TO j% 5810 VDU6 5820 path$(n%-1)=n$ 5830 prog$(n%-1)=n2$ 5840 j%?-1=13 5850 w%(l%)+=FNbranch(f$+"."+$q%,$q%,y%+1) 5860 ENDIF 5870 UNTIL i%=-1 5880 prog$(n%-1)=n2$:path$(n%-1)=n$ 5890 ENDIF 5900 IF w%(l%)<LEN(leaf$)+2 w%(l%)=LEN(leaf$)+2 5910 =w%(l%)
�><cfsMove$Dir>.!RunImage , � ************************************* , � ** ** (, � ** RISC OS Multi-Tasking Program ** 2, � ** ** <, � ** Stephen John Bayliss � ** F, � ** ** P, � ************************************* Z : d �Initilise n �SetUp x@ �Icon_Bar_Sprite("!iconbar",Dir$+".!Sprites",-1,1,"CfsMve") � �ReadTemplates � �SetUpIconBarInfo �r � :�report("Don't panic, it's only a little error","",�$," at line "+Þ," Things will resume to normal ") � �RunUnderRisc � � � : �F � ---------- Set Up Desk Top ---------- � : � � �Initilise �> Task_Name$="!CfsMove":Dir$="<cfsMove$Dir>":IconSprites%=0 � � buffer% 1000 � � q% 2000 � � block% &200 ; Task = &4B534154 : � ASCII representaion of 'TASK' F Wimp_Version = 2 : � Current WIMP version number (at least 2) I ș "Wimp_Initialise",Wimp_Version*100,Task,Task_Name$ � ,Task_Handle " � , : 6 � �SetUp @D file$="<Unknown>":error%=�:filein$="":fileout$="":max=75:key%=� J/ � prog$(max),path$(max),w%(max),dir2$(max) T � ^ : hF � ---------- Runing In The Desk Top ---------- r : | � �RunUnderRisc � � �$ ș "Wimp_Poll",0,q% � buffer% � Ȏ buffer% � �H � 2 :�Open_Window(!q%,q%!4,q%!8,q%!12,q%!16,q%!20,q%!24,q%!28) �! � 3 :�Close_Window(!q%) �; � 6 :�checkmouse(!q%,q%!4,q%!8,q%!12,q%!16,q%!20) � � 7 :�drag_end �) � 8 :�key(q%!0,q%!4,q%!8,q%!24) � � 9 :�menuselect(q%) � � 17,18 :�Receive(q%) � � � � error%=� � � ȗ X,Y,Z � X<250 � ȗ � 250,Y � X>1019 � ȗ � 1019,Y � Y<250 � ȗ � X,250 & � Y>639 � ȗ � X,639 0R � �iconstate(Report%,2)="&17219039" � Z=4 � error%=�:�Close_Window(Report%) : � D � � N � X : bF � ---------- When A Key Is Pressed ---------- l : v ��istate(q%!0,q%!4) � ș&400CE,,q% � � � : �F � ---------- Create Wimp Menu ---------- � : �3 � �checkmouse(x%,y%,Key%,Window%,Icon%,Other%) �1 � > =Show Window Syntax >Text.Window_Name �% � < =Fade Out Text Syntax <Text �% � @ =Tick Item Syntax @Text �> � ~ =Sub Menus Syntax ~Text\Sub_Menu$\Sub_Menu_Title �% � : =Doted Line Syntax :Text �) � , =Split Up Text Syntax Text,Text �F � file$="<Unknown>" � iconmenu$=":>Info.Info%,:<>Save.Save%,Quit" F � file$<>"<Unknown>" � iconmenu$=":>Info.Info%,:>Save.Save%,Quit" NoInMen=4.25 � mb%,window,icon 7 window=q%!12:icon=q%!16:mx%=q%!0:my%=q%!4:mb%=q%!8 * Ȏ Window% � 4 � -2 :� Icon Bar >D � Key%=4 � �Open_Window(Tran%,230,0,9000,518,q%!20,q%!24,-1) HS � Key%=2 � �domenu(1,menubuf%,iconmenu$,Task_Name$,x%-64,96+(NoInMen+1)*40) R \ � Save% f Ȏ mb% � p � 4,1 z Ȏ icon � � � 9 : �drag_it � � � � � � � Tran% �1 � �iconstate(Tran%,3)="&C721903D" � �Save �X � �iconstate(Tran%,14)="&C721903D" � filein$<>"" � �"Filer_OpenDir "+fileinpath$ �Y � �iconstate(Tran%,15)="&C721903D" � filein$<>"" � �"Filer_OpenDir "+fileoutpath$ �, � �iconstate(Tran%,16)="&C721913D" � �8 Ȕ fileinpath$,fileoutpath$:Ȕ filein$,fileout$ �/ �put_icon_text(q%,Tran%,10,filein$,-1) �0 �put_icon_text(q%,Tran%,13,fileout$,-1) � � ȗ X,Y,Z U � Key%=2 � �domenu(1,menubuf%,iconmenu$,Task_Name$,X-85,Y-140+(NoInMen+1)*40) � $ � . : 8F � ---------- Recive Wimp Menu ---------- B : L � �menuselect(menus%) V) � a,a$,level1$,level2$,level3$,recat ` recat%=� j> ș "Wimp_DecodeMenu",,(menubuf%+4),menus%,�200," ")�,,,a$ t again%=� ~ � a$="" � � � level1$=�par(a$,".",a) �7 � �level1$,1)="'" � level1$=level1$+�par(a$,".",a) �2 level2$=�par(a$,".",a):level3$=�par(a$,".",a) � � level1$="Quit" � �Finish �R � again%=� � �domenu(1,menubuf%,iconmenu$,Task_Name$,x%-64,96+(NoInMen+1)*40) � ș "Hourglass_Smash" � � � : � � �Receive(q%) � Ȏ q%!16 � � � � 2 savename$=�string(q%+44) . �put_icon_text(q%,Save%,6,savename$,-1) �Save ( � &3 2 ș "Hourglass_On" <$ filein$=�GetStr(q%+44):dir%=� F orgfile$=filein$ P �info(filein$) Z � dir%<>� � d= � �filein$,4)="CFS#" � fileout$=�filein$,�(filein$)-4) nY � �filein$,4)<>"CFS#" � filetype$="D96" � fileout$=filein$:filein$="CFS#"+fileout$ xI � �filein$,4)<>"CFS#" � filetype$<>"D96" � fileout$="CFS#"+filein$ �� � filetype$="D96" � �info(filein$):ste%=�icon_newsprite(Save%,9,"file_"+filetype$,-1) � ste%=�icon_newsprite(Save%,9,"file_D96",-1) � � �= � �filein$,4)="CFS#" � fileout$=�filein$,�(filein$)-4) �6 � �filein$,4)<>"CFS#" � fileout$="CFS#"+filein$ �= ste%=�icon_newsprite(Save%,9,�chopdir(filein$,"."),-1) � � � Ȉ fileinpath$=filein$:�:fileinpath$=�fileinpath$,�(fileinpath$)-1):� �fileinpath$,1)=".":fileinpath$=�fileinpath$,�(fileinpath$)-1) � ܑ fileoutpath$=fileout$:�:fileoutpath$=�fileoutpath$,�(fileoutpath$)-1):� �fileoutpath$,1)=".":fileoutpath$=�fileoutpath$,�(fileoutpath$)-1) � �- �put_icon_text(q%,Tran%,10,filein$,-1) �. �put_icon_text(q%,Tran%,13,fileout$,-1) - �put_icon_text(q%,Save%,6,fileout$,-1) 8 �Open_Window(Tran%,230,0,9000,518,q%!20,q%!24,-1) ș "Hourglass_Smash" " �7 , � 6 � @ : J � �Finish T ș "Wimp_CloseDown":� ^ � h : rF � ---------- Load In Sprites ---------- | : �C � �Icon_Bar_Sprite(SPName$,SpriteFile$,LorR,Text_NoText,Text$) �7 handle%=�(SpriteFile$):len%=�#handle%+16:�#handle% � � sprites% len% � !sprites%=len%:sprites%!8=1 �# ș "OS_SpriteOp",&109,sprites% �/ ș "OS_SpriteOp",&10A,sprites%,SpriteFile$ � � IconText% 4 � � Text_NoText=0 � � �IconBar(LorR,SPName$) � � �, iconbar%=�IconBarText(LorR,SPName$,1) � $IconText%=Text$:q%!0=-1 �> q%!4=iconbar%:q%!8=0:q%!12=0:ș "Wimp_SetIconState",,q% � IconSprites%=1 � & : 0- � �IconBarText(LorR,spname$,spritearea%) : � ic% D? !q%=LorR:q%!4=0:q%!8=-16:q%!12=96:q%!16=95:q%!20=&1701210B N � isbarsp% 14 XA $isbarsp%="s"+spname$:q%!24=IconText%:q%!28=isbarsp%:q%!32=3 b# ș "Wimp_CreateIcon",,q% � ic% l =ic% v : � � �IconBar(LorR,Sprite$) �- !q%=LorR:q%!4=0:q%!8=0:q%!12=68:q%!16=68 �E q%!20=&2002:$(q%+24)=Sprite$:ș "Wimp_CreateIcon",,q% � iconbar% � � � : �F � ---------- Load In Templates ---------- � : � � �ReadTemplates �6 ș "Wimp_OpenTemplate",,"<cfsMove$Dir>.Templates" � Info% = �template("info") � Tran% = �template("tran") �" Report% = �template("report") �! Save% = �template("save") ș "Wimp_CloseTemplate" � : � �template(id$) * � handle,pos 4 maxws%=&750 > � ws% maxws% H � q% 600 RI ș "Wimp_LoadTemplate",,q%,ws%,ws%+maxws%,-1,id$,0 � ,,curws%,,,,pos \1 � pos=0 � � 1,"Template '"+id$+"' not found" f( ș "Wimp_CreateWindow",,q% � handle p =handle z : �F � ---------- Window Controlers ---------- � : �4 ݤicon_newsprite(handle%,icon%,newname$,redraw) � block%!0=handle% � block%!4=icon% �# ș "Wimp_GetIconState",,block% �! ș "Wimp_DeleteIcon",,block% � block%!4=block%!8 � block%!8=block%!12 � block%!12=block%!16 � block%!16=block%!20 � block%!20=&3002 � $(block%+24)=newname$ ) ș "Wimp_CreateIcon",,block% � icon% T � redraw � ș "Wimp_ForceRedraw",block%!0,block%!4,block%!8,block%!12,block%!16 =icon% $ : .? � �Open_Window(handle%,x0%,y0%,x1%,y1%,scx%,scy%,bhandle%) 8 � handle%=-1 � � B q%!0=handle%:q%!28=bhandle% L* q%!4=x0%:q%!8=y0%:q%!12=x1%:q%!16=y1% V q%!20=scx%:q%!24=scy% ` ș "Wimp_OpenWindow",,q% j � t : ~ � �Close_Window(handle%) � !q%=handle% � ș "Wimp_CloseWindow",,q% � � � : �F � ---------- Wimp Menu Procedures ---------- � : � � �SetUpIconBarInfo �8 wbcol=&3:tbcol=&2:sco=&3:mbcol=&0:wfcol=&7:tfcol=&7 �: sci=&D:tbcol2=&C:black=&7:white=&0:cyan=9:lightgrey=1 � � menubuf% 500 � � � : 5 � �domenu(handle%,menuptr%,menu$,menutitle$,x,y) � dummy%,next% ( next%=menuptr%+4:menuptr%!0=handle% ( dummy%=�c_m(next%,menu$,menutitle$) (% ș "Wimp_CreateMenu",,dummy%,x,y 2 � < : F& � �c_m(menuptr%,menu$,menutitle$) P � i%,call%,item$,w,l Z+ call%=menuptr%:w=�menutitle$:next%+=52 d � i%=0��menu$ n% � �menu$,i%,1)="," � next%+=24 x � �- i%=0:menuptr%!20=40:$menuptr%=menutitle$ �H menuptr%?12=tfcol:menuptr%?13=2:menuptr%?14=wfcol:menuptr%?15=mbcol � menuptr%!24=0:menuptr%+=28 � � �D item$=�par(menu$,",",i%):menuptr%=�menuitem(menuptr%,item$,l) � w=�max(l,w) � � item$="" � call%!16=16*w+12 �$ menuptr%!-24=(menuptr%!-24)�&80 � =call% � : � � �menuitem(ptr%,text$,� l) � � text$="" =ptr% � a,t$,text text=� 6 pad$=" ":a=0:!ptr%=0:ptr%!8=&07000021:ptr%!4=-1 "3 � �text$,1)=":"!ptr%=!ptr% � 2:text$=�text$,2) ,8 � �text$,1)="<"ptr%!8=ptr%!8 � 2^22:text$=�text$,2) 67 � �text$,1)="@"!ptr%=!menuptr% � 1:text$=�text$,2) @ � �text$,1)="`" � J' text$=�text$,2):ptr%!8=&07000121 T+ !ptr%=!ptr% � 4:t$=�par(text$,"\",a) ^) ptr%!12=�(t$):t$=�par(text$,"\",a) h) ptr%!16=�(t$):t$=�par(text$,"\",a) r$ ptr%!20=�(t$):text=�:text$="" | � � � �text$,1)=">" � �+ text$=�text$,2):t$=�par(text$,".",a) �+ ptr%!4=�(�par(text$,".",a)):text$=t$ � � � � �text$,1)="~" � �+ text$=�text$,2):t$=�par(text$,"\",a) �S ptr%!4=�("FNc_m(next%,"+�par(text$,"\",a)+","+�34+�par(text$,"\",a)+�34+")") � text$=t$ � � � � text � $(ptr%+12)=text$ � l=�text$ � =ptr%+24 � : � �memtostr(ptr,ml) � f$,max:max=ptr+ml ( ȕ ?ptr � ptr<=max f$+=�?ptr:ptr+=1 & � 0 =f$ : : D � �par(a$,s$,� i%) N � i1% X i1%=i%+1:i%=�a$+s$,s$,i1%) b =�a$,i1%,i%-i1%) l : v � �max(a,b):�a>b=a �=b � : � � �min(a,b):�a<b=a �=b � : � � �iconstate(wh%,ih%) � q%!0=wh%:q%!4=ih% � ș "Wimp_GetIconState",,q% �" iflg%=q%!24:iflg$="&"+�~iflg% � =iflg$ � : �7 ��put_icon_text(q%,whandle%,ihandle%,data$,redraw) � q%!0=whandle% � q%!4=ihandle% � ș "Wimp_GetIconState",,q% $(q%!28)=data$ � redraw � < ș "Wimp_ForceRedraw",whandle%,q%!8,q%!12,q%!16,q%!20 � * � 4 : > ݤ_ReadIconText(ih%,wh%) H � Result$ R q%!0=wh% \ q%!4=ih% f ș "Wimp_GetIconState",,q% p@ � (q%!24 � (1<<8))<>0 � Result$=$(q%!28) � Result$=$(q%+28) z =Result$ � : �! � �GetStr(s%) : � get string � � n$ � ȕ?s%:n$+=�?s%:s%+=1:� � =n$ � : �1 ��report(line1$,line2$,line3$,line4$,line5$) � �6:�"SHUT" �C � �=67798 � �=214 � line5$="Please check your save file path." �@ � �=20 � line5$="I'm not Einstein you now. Use small lines" � ș "Hourglass_Smash" �+ �put_icon_text(q%,Report%,4,line1$,-1) �+ �put_icon_text(q%,Report%,5,line2$,-1) + �put_icon_text(q%,Report%,6,line3$,-1) + �put_icon_text(q%,Report%,7,line4$,-1) + �put_icon_text(q%,Report%,8,line5$,-1) $8 �Open_Window(Report%,250,0,9000,600,q%!20,q%!24,-1) . error%=� 8 � B : L ��key(window%,ic,x%,asc%) V stev%=asc% ` Ȏ asc% � j � 13 : �caret t � ~ � � : � � �caret �# ș "Wimp_GetCaretPosition",,q% � window%=q%!0 � icon%=q%!4+1 � Ȏ window% � � � Save% � Ȏ icon% � � � 7 : icon%=6 � key%=�:�Save:�:�:� � � � � S ș "Wimp_SetCaretPosition",window%,icon%,,,-1,�(�_ReadIconText(icon%,window%)) � : L � -------------------------- Drag Box Proc's -------------------------- ( : 2 � �drag_it < !q%=Save% F q%!4=9 P ș"Wimp_GetIconState",,q% Z dbminx%=q%!8 d dbminy%=q%!12 n dbmaxx%=q%!16 x dbmaxy%=q%!20 � !q%=Save% � ș "Wimp_GetWindowInfo",,q% � wx0%=q%!4 � wy0%=q%!8 � wx1%=q%!12 � wy1%=q%!16 � !q%=Save% � q%!4=5 � q%!8=wx0%+dbminx% � q%!12=wy1%+dbminy% � q%!16=wx0%+dbmaxx% � q%!20=wy1%+dbmaxy% � q%!24=0 q%!28=0 ș "Wimp_DragBox",,q% � " : , � �drag_end 6! ș "Wimp_GetPointerInfo",,q% @ dbmx%=!q% J dbmy%=q%!4 T dbw%=q%!12 ^ dbi%=q%!16 h !q%=Save% r q%!4=6 | ș "Wimp_GetIconState",,q% � savename$=$(q%!28) � �send(savename$) � � � � � : � � �send(leafname$) �6 � �leafname$,".")<>0 � leafname$=�leaf(leafname$) � !q%=52+(�(leafname$) � 4)*4 � q%!12=0 � q%!16=1 � q%!20=dbw% � q%!24=dbi% � q%!28=dbmx% q%!32=dbmy% q%!36=1 q%!40=&FFF & $(q%+44)=leafname$+�0 0% ș "Wimp_SendMessage",17,q%,dbw% : � D : N ݤstring(a%) X) �b$:b$="":ȕ?a%<>0 :b$+=�?a%:a%+=1:� b =b$ l : v ݤleaf(path$) � ȕ �path$,".") � path$=�path$,�path$,".")+1) � � � =path$ � : �K � --------------------------- Main Program --------------------------- � : � ��Save � � filein$="" � � � ș "Hourglass_On" � same%=� � ș "Wimp_CreateMenu",-1,-1 �3 � fileout$<>�_ReadIconText(6,Save%) � key%=� � . fileout$=�_ReadIconText(6,Save%):same%=� 7 � �fileout$,4)<>"CFS#" � fileout$="CFS#"+fileout$ � � dir%=� � */ �"COPY "+filein$+" "+fileout$+" A ~C F R" 4 � > � dir%=� � H � �filein$,4)="CFS#" � R0 �"COPY "+filein$+" "+fileout$+" A ~C F R" \ � f � �filein$,4)<>"CFS#" � p �cat(filein$) z �I=1�n% �1 copy$=path$(I)+"."+�chopdir(prog$(I),".") � to$="CFS#"+copy$ � �info(copy$) �� � filetype$<>"D96" � filetype$<>"FF9" � �chopdir(copy$,".")<>"!Boot" � �chopdir(copy$,".")<>"!boot" � �"COPY "+copy$+" "+to$+" A ~C F R" � � I � � � � �? � same%=� � �fileout$,4)<>"CFS#" � filein$="CFS#"+fileout$ �G � same%=� � �fileout$,4)="CFS#" � filein$=�fileout$,�(fileout$)-4) �! � same%=� � orgfile$=filein$ � Ȕ filein$,fileout$ � Ȕ fileinpath$,fileoutpath$ � �info(orgfile$) � dir%=� � � � filetype$="D96" � �info(filein$):ste%=�icon_newsprite(Save%,9,"file_"+filetype$,-1) � ste%=�icon_newsprite(Save%,9,"file_D96",-1) � $ �info(filein$) .+ �put_icon_text(q%,Tran%,10,filein$,-1) 8, �put_icon_text(q%,Tran%,13,fileout$,-1) B+ �put_icon_text(q%,Save%,6,fileout$,-1) L �7 V �Close_Window(Tran%) ` �0,7:�0,0:�1300,0 j ș "Hourglass_Smash" t key%=� ~ � � : � ��info(file2$) � file$=file2$ �5 ș "OS_File",5,file2$ � type%,,load%,exec%,size% � � type%=2 � dir%=�:� �7 ș "OS_FSControl",18,,(&FFF � load%>>>8) � ,,b%,c% �N filename$=�(b% � &FF)+�((b%>>8) � &FF)+�((b%>>16) � &FF)+�((b%>>24)� &FF) �O filename$+=�(c% � &FF)+�((c%>>8) � &FF)+�((c%>>16) � &FF)+�((c%>>24)� &FF) �' filetype$="&"+�~(&FFF � load%>>>8) � date=block% � date?4=load% � &FF � date?3=exec%>>24 � &FF date?2=exec%>>16 � &FF date?1=exec%>>8 � &FF date?0=exec% � &FF 6 ș "OS_ConvertStandardDateAndTime",date,block%,28 ( filedate$=�$block%,20) 2 Ȏ � � <D � size%>=1024 : size$=�(size%�1024)+"."+�(size%�1024)+"K" F P size$=�size% Z � d load$="&"+�~(load%) n exec$="&"+�~(exec%) x) filetype$=�filetype$,�(filetype$)-1) � � file$ � � filetype$ � � filename$ � � load$ � � exec$ � � size$ � � filedate$ � � � : � � �chopstr(n$,chr$) � �=0 � � � n$=�n$,�(n$)-1) � �>500 � � � �n$,1)=chr$ n$=�n$,�(n$)-1) " =n$ , : 6 � �chopdir(n$,chr$) @ dir2$=n$:count%=0:�=0 J � T count%+=1 ^ dir2$=�dir2$,�(dir2$)-1) h � �>500 � � r � �dir2$,1)=chr$ | dir2$=�n$,count%) � =dir2$ � : � � �cat(root$) �+ n%=0:length%=�(root$):maxn%=0:maxn2%=0 �* stephen%=�branch(root$,root$,0):n%-=1 �A � FORI=1TOn%:PRINTpath$(I)+"."+FNchopdir(prog$(I),"."):NEXTI � � � : � � �branch(f$,leaf$,y%) � � i%,l% � l%=n% � n%+=1 � � Just File Names n2$=�(y%)+"."+leaf$ ș "XOS_File",5,f$ � type% � Full File Path & n$=f$ 0 n$=�chopstr(n$,".") :/ � �n$,1)<>"$" � dir2$(l%)=�chopdir(n$,".") D! � �(n$)>length% � n2$=""+n2$ N � y%>maxn% � maxn%=y% X � y%=0 � maxn2%+=1 b � type%=2 � l i%=0:dick2%=0 v � �4 ș "XOS_GBPB",9,f$,q%,1,i%,&100,"*" � ,,,r%,i% � � r%>0 � � �21 � � PRINTSPC12;CHR$13; � ș "OS_Write0",q% � j% � �6 � path$(n%-1)=n$ � prog$(n%-1)=n2$ � j%?-1=13 �+ w%(l%)+=�branch(f$+"."+$q%,$q%,y%+1) � � � � i%=-1 �# prog$(n%-1)=n2$:path$(n%-1)=n$ � * � w%(l%)<�(leaf$)+2 w%(l%)=�(leaf$)+2 =w%(l%) �
00000000 0d 00 0a 1e 20 f4 3e 3c 63 66 73 4d 6f 76 65 24 |.... .><cfsMove$| 00000010 44 69 72 3e 2e 21 52 75 6e 49 6d 61 67 65 0d 00 |Dir>.!RunImage..| 00000020 14 2c 20 f4 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |., . ***********| 00000030 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 00000040 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 00 1e 2c 20 f4 |**********..., .| 00000050 20 2a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ** | 00000060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000070 20 20 20 20 2a 2a 0d 00 28 2c 20 f4 20 2a 2a 20 | **..(, . ** | 00000080 20 52 49 53 43 20 4f 53 20 4d 75 6c 74 69 2d 54 | RISC OS Multi-T| 00000090 61 73 6b 69 6e 67 20 50 72 6f 67 72 61 6d 20 20 |asking Program | 000000a0 2a 2a 0d 00 32 2c 20 f4 20 2a 2a 20 20 20 20 20 |**..2, . ** | 000000b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 2a 2a 0d 00 | **..| 000000d0 3c 2c 20 f4 20 2a 2a 20 20 20 20 20 53 74 65 70 |<, . ** Step| 000000e0 68 65 6e 20 4a 6f 68 6e 20 42 61 79 6c 69 73 73 |hen John Bayliss| 000000f0 20 a9 20 20 20 20 20 20 2a 2a 0d 00 46 2c 20 f4 | . **..F, .| 00000100 20 2a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ** | 00000110 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000120 20 20 20 20 2a 2a 0d 00 50 2c 20 f4 20 2a 2a 2a | **..P, . ***| 00000130 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000150 2a 2a 0d 00 5a 06 20 3a 0d 00 64 0f 20 f2 49 6e |**..Z. :..d. .In| 00000160 69 74 69 6c 69 73 65 0d 00 6e 0b 20 f2 53 65 74 |itilise..n. .Set| 00000170 55 70 0d 00 78 40 20 f2 49 63 6f 6e 5f 42 61 72 |Up..x@ .Icon_Bar| 00000180 5f 53 70 72 69 74 65 28 22 21 69 63 6f 6e 62 61 |_Sprite("!iconba| 00000190 72 22 2c 44 69 72 24 2b 22 2e 21 53 70 72 69 74 |r",Dir$+".!Sprit| 000001a0 65 73 22 2c 2d 31 2c 31 2c 22 43 66 73 4d 76 65 |es",-1,1,"CfsMve| 000001b0 22 29 0d 00 82 13 20 f2 52 65 61 64 54 65 6d 70 |").... .ReadTemp| 000001c0 6c 61 74 65 73 0d 00 8c 16 20 f2 53 65 74 55 70 |lates.... .SetUp| 000001d0 49 63 6f 6e 42 61 72 49 6e 66 6f 0d 00 96 72 20 |IconBarInfo...r | 000001e0 ee 85 20 ee 85 87 3a f2 72 65 70 6f 72 74 28 22 |.. ...:.report("| 000001f0 44 6f 6e 27 74 20 70 61 6e 69 63 2c 20 69 74 27 |Don't panic, it'| 00000200 73 20 6f 6e 6c 79 20 61 20 6c 69 74 74 6c 65 20 |s only a little | 00000210 65 72 72 6f 72 22 2c 22 22 2c f6 24 2c 22 20 61 |error","",.$," a| 00000220 74 20 6c 69 6e 65 20 22 2b c3 9e 2c 22 20 54 68 |t line "+..," Th| 00000230 69 6e 67 73 20 77 69 6c 6c 20 72 65 73 75 6d 65 |ings will resume| 00000240 20 74 6f 20 6e 6f 72 6d 61 6c 20 22 29 0d 00 a0 | to normal ")...| 00000250 12 20 f2 52 75 6e 55 6e 64 65 72 52 69 73 63 0d |. .RunUnderRisc.| 00000260 00 aa 06 20 e0 0d 00 b4 06 20 3a 0d 00 be 46 20 |... ..... :...F | 00000270 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 20 20 20 |. ---------- | 00000280 20 20 20 20 20 20 20 53 65 74 20 55 70 20 44 65 | Set Up De| 00000290 73 6b 20 54 6f 70 20 20 20 20 20 20 20 20 20 20 |sk Top | 000002a0 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | ---------| 000002b0 2d 0d 00 c8 06 20 3a 0d 00 d2 11 20 dd 20 f2 49 |-.... :.... . .I| 000002c0 6e 69 74 69 6c 69 73 65 0d 00 dc 3e 20 54 61 73 |nitilise...> Tas| 000002d0 6b 5f 4e 61 6d 65 24 3d 22 21 43 66 73 4d 6f 76 |k_Name$="!CfsMov| 000002e0 65 22 3a 44 69 72 24 3d 22 3c 63 66 73 4d 6f 76 |e":Dir$="<cfsMov| 000002f0 65 24 44 69 72 3e 22 3a 49 63 6f 6e 53 70 72 69 |e$Dir>":IconSpri| 00000300 74 65 73 25 3d 30 0d 00 e6 13 20 de 20 62 75 66 |tes%=0.... . buf| 00000310 66 65 72 25 20 31 30 30 30 0d 00 f0 0e 20 de 20 |fer% 1000.... . | 00000320 71 25 20 32 30 30 30 0d 00 fa 12 20 de 20 62 6c |q% 2000.... . bl| 00000330 6f 63 6b 25 20 26 32 30 30 0d 01 04 3b 20 54 61 |ock% &200...; Ta| 00000340 73 6b 20 3d 20 26 34 42 35 33 34 31 35 34 20 20 |sk = &4B534154 | 00000350 20 20 20 3a 20 f4 20 41 53 43 49 49 20 72 65 70 | : . ASCII rep| 00000360 72 65 73 65 6e 74 61 69 6f 6e 20 6f 66 20 27 54 |resentaion of 'T| 00000370 41 53 4b 27 0d 01 0e 46 20 57 69 6d 70 5f 56 65 |ASK'...F Wimp_Ve| 00000380 72 73 69 6f 6e 20 3d 20 32 20 20 20 20 20 3a 20 |rsion = 2 : | 00000390 f4 20 43 75 72 72 65 6e 74 20 57 49 4d 50 20 76 |. Current WIMP v| 000003a0 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 20 28 61 |ersion number (a| 000003b0 74 20 6c 65 61 73 74 20 32 29 0d 01 18 49 20 c8 |t least 2)...I .| 000003c0 99 20 22 57 69 6d 70 5f 49 6e 69 74 69 61 6c 69 |. "Wimp_Initiali| 000003d0 73 65 22 2c 57 69 6d 70 5f 56 65 72 73 69 6f 6e |se",Wimp_Version| 000003e0 2a 31 30 30 2c 54 61 73 6b 2c 54 61 73 6b 5f 4e |*100,Task,Task_N| 000003f0 61 6d 65 24 20 b8 20 2c 54 61 73 6b 5f 48 61 6e |ame$ . ,Task_Han| 00000400 64 6c 65 0d 01 22 06 20 e1 0d 01 2c 06 20 3a 0d |dle..". ...,. :.| 00000410 01 36 0d 20 dd 20 f2 53 65 74 55 70 0d 01 40 44 |.6. . .SetUp..@D| 00000420 20 66 69 6c 65 24 3d 22 3c 55 6e 6b 6e 6f 77 6e | file$="<Unknown| 00000430 3e 22 3a 65 72 72 6f 72 25 3d a3 3a 66 69 6c 65 |>":error%=.:file| 00000440 69 6e 24 3d 22 22 3a 66 69 6c 65 6f 75 74 24 3d |in$="":fileout$=| 00000450 22 22 3a 6d 61 78 3d 37 35 3a 6b 65 79 25 3d a3 |"":max=75:key%=.| 00000460 0d 01 4a 2f 20 de 20 70 72 6f 67 24 28 6d 61 78 |..J/ . prog$(max| 00000470 29 2c 70 61 74 68 24 28 6d 61 78 29 2c 77 25 28 |),path$(max),w%(| 00000480 6d 61 78 29 2c 64 69 72 32 24 28 6d 61 78 29 0d |max),dir2$(max).| 00000490 01 54 06 20 e1 0d 01 5e 06 20 3a 0d 01 68 46 20 |.T. ...^. :..hF | 000004a0 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 20 20 20 |. ---------- | 000004b0 20 20 20 52 75 6e 69 6e 67 20 49 6e 20 54 68 65 | Runing In The| 000004c0 20 44 65 73 6b 20 54 6f 70 20 20 20 20 20 20 20 | Desk Top | 000004d0 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | ---------| 000004e0 2d 0d 01 72 06 20 3a 0d 01 7c 14 20 dd 20 f2 52 |-..r. :..|. . .R| 000004f0 75 6e 55 6e 64 65 72 52 69 73 63 0d 01 86 06 20 |unUnderRisc.... | 00000500 f5 0d 01 90 24 20 20 20 c8 99 20 22 57 69 6d 70 |....$ .. "Wimp| 00000510 5f 50 6f 6c 6c 22 2c 30 2c 71 25 20 b8 20 62 75 |_Poll",0,q% . bu| 00000520 66 66 65 72 25 0d 01 9a 13 20 20 20 c8 8e 20 62 |ffer%.... .. b| 00000530 75 66 66 65 72 25 20 ca 0d 01 a4 48 20 20 20 20 |uffer% ....H | 00000540 20 c9 20 32 20 20 3a f2 4f 70 65 6e 5f 57 69 6e | . 2 :.Open_Win| 00000550 64 6f 77 28 21 71 25 2c 71 25 21 34 2c 71 25 21 |dow(!q%,q%!4,q%!| 00000560 38 2c 71 25 21 31 32 2c 71 25 21 31 36 2c 71 25 |8,q%!12,q%!16,q%| 00000570 21 32 30 2c 71 25 21 32 34 2c 71 25 21 32 38 29 |!20,q%!24,q%!28)| 00000580 0d 01 ae 21 20 20 20 20 20 c9 20 33 20 20 3a f2 |...! . 3 :.| 00000590 43 6c 6f 73 65 5f 57 69 6e 64 6f 77 28 21 71 25 |Close_Window(!q%| 000005a0 29 0d 01 b8 3b 20 20 20 20 20 c9 20 36 20 20 3a |)...; . 6 :| 000005b0 f2 63 68 65 63 6b 6d 6f 75 73 65 28 21 71 25 2c |.checkmouse(!q%,| 000005c0 71 25 21 34 2c 71 25 21 38 2c 71 25 21 31 32 2c |q%!4,q%!8,q%!12,| 000005d0 71 25 21 31 36 2c 71 25 21 32 30 29 0d 01 c2 18 |q%!16,q%!20)....| 000005e0 20 20 20 20 20 c9 20 37 20 20 3a f2 64 72 61 67 | . 7 :.drag| 000005f0 5f 65 6e 64 0d 01 cc 29 20 20 20 20 20 c9 20 38 |_end...) . 8| 00000600 20 20 3a f2 6b 65 79 28 71 25 21 30 2c 71 25 21 | :.key(q%!0,q%!| 00000610 34 2c 71 25 21 38 2c 71 25 21 32 34 29 0d 01 d6 |4,q%!8,q%!24)...| 00000620 1e 20 20 20 20 20 c9 20 39 20 20 3a f2 6d 65 6e |. . 9 :.men| 00000630 75 73 65 6c 65 63 74 28 71 25 29 0d 01 e0 1e 20 |uselect(q%).... | 00000640 20 20 20 20 c9 20 31 37 2c 31 38 20 3a f2 52 65 | . 17,18 :.Re| 00000650 63 65 69 76 65 28 71 25 29 0d 01 ea 0a 20 20 20 |ceive(q%).... | 00000660 20 20 cb 0d 01 f4 12 20 20 e7 20 65 72 72 6f 72 | ..... . error| 00000670 25 3d b9 20 8c 0d 01 fe 0f 20 20 20 c8 97 20 58 |%=. ..... .. X| 00000680 2c 59 2c 5a 0d 02 08 1b 20 20 20 e7 20 58 3c 32 |,Y,Z.... . X<2| 00000690 35 30 20 8c 20 c8 97 20 b8 20 32 35 30 2c 59 0d |50 . .. . 250,Y.| 000006a0 02 12 1d 20 20 20 e7 20 58 3e 31 30 31 39 20 8c |... . X>1019 .| 000006b0 20 c8 97 20 b8 20 31 30 31 39 2c 59 0d 02 1c 1b | .. . 1019,Y....| 000006c0 20 20 20 e7 20 59 3c 32 35 30 20 8c 20 c8 97 20 | . Y<250 . .. | 000006d0 b8 20 58 2c 32 35 30 0d 02 26 1b 20 20 20 e7 20 |. X,250..&. . | 000006e0 59 3e 36 33 39 20 8c 20 c8 97 20 b8 20 58 2c 36 |Y>639 . .. . X,6| 000006f0 33 39 0d 02 30 52 20 20 20 e7 20 a4 69 63 6f 6e |39..0R . .icon| 00000700 73 74 61 74 65 28 52 65 70 6f 72 74 25 2c 32 29 |state(Report%,2)| 00000710 3d 22 26 31 37 32 31 39 30 33 39 22 20 80 20 5a |="&17219039" . Z| 00000720 3d 34 20 8c 20 65 72 72 6f 72 25 3d a3 3a f2 43 |=4 . error%=.:.C| 00000730 6c 6f 73 65 5f 57 69 6e 64 6f 77 28 52 65 70 6f |lose_Window(Repo| 00000740 72 74 25 29 0d 02 3a 07 20 20 cd 0d 02 44 08 20 |rt%)..:. ...D. | 00000750 fd 20 a3 0d 02 4e 06 20 e1 0d 02 58 06 20 3a 0d |. ...N. ...X. :.| 00000760 02 62 46 20 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |.bF . ----------| 00000770 20 20 20 20 20 20 20 20 20 57 68 65 6e 20 41 20 | When A | 00000780 4b 65 79 20 49 73 20 50 72 65 73 73 65 64 20 20 |Key Is Pressed | 00000790 20 20 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d 2d | -----| 000007a0 2d 2d 2d 2d 2d 0d 02 6c 06 20 3a 0d 02 76 18 20 |-----..l. :..v. | 000007b0 dd f2 69 73 74 61 74 65 28 71 25 21 30 2c 71 25 |..istate(q%!0,q%| 000007c0 21 34 29 0d 02 80 11 20 c8 99 26 34 30 30 43 45 |!4).... ..&400CE| 000007d0 2c 2c 71 25 0d 02 8a 06 20 e1 0d 02 94 06 20 3a |,,q%.... ..... :| 000007e0 0d 02 9e 46 20 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d |...F . ---------| 000007f0 2d 20 20 20 20 20 20 20 20 20 20 20 43 72 65 61 |- Crea| 00000800 74 65 20 57 69 6d 70 20 4d 65 6e 75 20 20 20 20 |te Wimp Menu | 00000810 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d | ----| 00000820 2d 2d 2d 2d 2d 2d 0d 02 a8 06 20 3a 0d 02 b2 33 |------.... :...3| 00000830 20 dd 20 f2 63 68 65 63 6b 6d 6f 75 73 65 28 78 | . .checkmouse(x| 00000840 25 2c 79 25 2c 4b 65 79 25 2c 57 69 6e 64 6f 77 |%,y%,Key%,Window| 00000850 25 2c 49 63 6f 6e 25 2c 4f 74 68 65 72 25 29 0d |%,Icon%,Other%).| 00000860 02 bc 31 20 f4 20 3e 20 3d 53 68 6f 77 20 57 69 |..1 . > =Show Wi| 00000870 6e 64 6f 77 20 20 20 20 53 79 6e 74 61 78 20 3e |ndow Syntax >| 00000880 54 65 78 74 2e 57 69 6e 64 6f 77 5f 4e 61 6d 65 |Text.Window_Name| 00000890 0d 02 c6 25 20 f4 20 3c 20 3d 46 61 64 65 20 4f |...% . < =Fade O| 000008a0 75 74 20 54 65 78 74 20 20 53 79 6e 74 61 78 20 |ut Text Syntax | 000008b0 3c 54 65 78 74 0d 02 d0 25 20 f4 20 40 20 3d 54 |<Text...% . @ =T| 000008c0 69 63 6b 20 49 74 65 6d 20 20 20 20 20 20 53 79 |ick Item Sy| 000008d0 6e 74 61 78 20 40 54 65 78 74 0d 02 da 3e 20 f4 |ntax @Text...> .| 000008e0 20 7e 20 3d 53 75 62 20 4d 65 6e 75 73 20 20 20 | ~ =Sub Menus | 000008f0 20 20 20 53 79 6e 74 61 78 20 7e 54 65 78 74 5c | Syntax ~Text\| 00000900 53 75 62 5f 4d 65 6e 75 24 5c 53 75 62 5f 4d 65 |Sub_Menu$\Sub_Me| 00000910 6e 75 5f 54 69 74 6c 65 0d 02 e4 25 20 f4 20 3a |nu_Title...% . :| 00000920 20 3d 44 6f 74 65 64 20 4c 69 6e 65 20 20 20 20 | =Doted Line | 00000930 20 53 79 6e 74 61 78 20 3a 54 65 78 74 0d 02 ee | Syntax :Text...| 00000940 29 20 f4 20 2c 20 3d 53 70 6c 69 74 20 55 70 20 |) . , =Split Up | 00000950 54 65 78 74 20 20 53 79 6e 74 61 78 20 54 65 78 |Text Syntax Tex| 00000960 74 2c 54 65 78 74 0d 02 f8 46 20 e7 20 66 69 6c |t,Text...F . fil| 00000970 65 24 3d 22 3c 55 6e 6b 6e 6f 77 6e 3e 22 20 8c |e$="<Unknown>" .| 00000980 20 69 63 6f 6e 6d 65 6e 75 24 3d 22 3a 3e 49 6e | iconmenu$=":>In| 00000990 66 6f 2e 49 6e 66 6f 25 2c 3a 3c 3e 53 61 76 65 |fo.Info%,:<>Save| 000009a0 2e 53 61 76 65 25 2c 51 75 69 74 22 0d 03 02 46 |.Save%,Quit"...F| 000009b0 20 e7 20 66 69 6c 65 24 3c 3e 22 3c 55 6e 6b 6e | . file$<>"<Unkn| 000009c0 6f 77 6e 3e 22 20 8c 20 69 63 6f 6e 6d 65 6e 75 |own>" . iconmenu| 000009d0 24 3d 22 3a 3e 49 6e 66 6f 2e 49 6e 66 6f 25 2c |$=":>Info.Info%,| 000009e0 3a 3e 53 61 76 65 2e 53 61 76 65 25 2c 51 75 69 |:>Save.Save%,Qui| 000009f0 74 22 0d 03 0c 11 20 4e 6f 49 6e 4d 65 6e 3d 34 |t".... NoInMen=4| 00000a00 2e 32 35 0d 03 16 16 20 ea 20 6d 62 25 2c 77 69 |.25.... . mb%,wi| 00000a10 6e 64 6f 77 2c 69 63 6f 6e 0d 03 20 37 20 77 69 |ndow,icon.. 7 wi| 00000a20 6e 64 6f 77 3d 71 25 21 31 32 3a 69 63 6f 6e 3d |ndow=q%!12:icon=| 00000a30 71 25 21 31 36 3a 6d 78 25 3d 71 25 21 30 3a 6d |q%!16:mx%=q%!0:m| 00000a40 79 25 3d 71 25 21 34 3a 6d 62 25 3d 71 25 21 38 |y%=q%!4:mb%=q%!8| 00000a50 0d 03 2a 11 20 c8 8e 20 57 69 6e 64 6f 77 25 20 |..*. .. Window% | 00000a60 ca 0d 03 34 1a 20 20 20 c9 20 2d 32 20 20 20 20 |...4. . -2 | 00000a70 3a f4 20 49 63 6f 6e 20 42 61 72 0d 03 3e 44 20 |:. Icon Bar..>D | 00000a80 20 20 20 e7 20 4b 65 79 25 3d 34 20 8c 20 f2 4f | . Key%=4 . .O| 00000a90 70 65 6e 5f 57 69 6e 64 6f 77 28 54 72 61 6e 25 |pen_Window(Tran%| 00000aa0 2c 32 33 30 2c 30 2c 39 30 30 30 2c 35 31 38 2c |,230,0,9000,518,| 00000ab0 71 25 21 32 30 2c 71 25 21 32 34 2c 2d 31 29 0d |q%!20,q%!24,-1).| 00000ac0 03 48 53 20 20 20 20 e7 20 4b 65 79 25 3d 32 20 |.HS . Key%=2 | 00000ad0 8c 20 f2 64 6f 6d 65 6e 75 28 31 2c 6d 65 6e 75 |. .domenu(1,menu| 00000ae0 62 75 66 25 2c 69 63 6f 6e 6d 65 6e 75 24 2c 54 |buf%,iconmenu$,T| 00000af0 61 73 6b 5f 4e 61 6d 65 24 2c 78 25 2d 36 34 2c |ask_Name$,x%-64,| 00000b00 39 36 2b 28 4e 6f 49 6e 4d 65 6e 2b 31 29 2a 34 |96+(NoInMen+1)*4| 00000b10 30 29 0d 03 52 04 0d 03 5c 0e 20 20 20 c9 20 53 |0)..R...\. . S| 00000b20 61 76 65 25 0d 03 66 10 20 20 20 20 c8 8e 20 6d |ave%..f. .. m| 00000b30 62 25 20 ca 0d 03 70 0e 20 20 20 20 20 c9 20 34 |b% ...p. . 4| 00000b40 2c 31 0d 03 7a 13 20 20 20 20 20 20 c8 8e 20 69 |,1..z. .. i| 00000b50 63 6f 6e 20 ca 0d 03 84 19 20 20 20 20 20 20 20 |con ..... | 00000b60 c9 20 39 20 3a 20 f2 64 72 61 67 5f 69 74 0d 03 |. 9 : .drag_it..| 00000b70 8e 0b 20 20 20 20 20 20 cb 0d 03 98 09 20 20 20 |.. ..... | 00000b80 20 cb 0d 03 a2 04 0d 03 ac 0e 20 20 20 c9 20 54 | ......... . T| 00000b90 72 61 6e 25 0d 03 b6 31 20 20 20 20 e7 20 a4 69 |ran%...1 . .i| 00000ba0 63 6f 6e 73 74 61 74 65 28 54 72 61 6e 25 2c 33 |constate(Tran%,3| 00000bb0 29 3d 22 26 43 37 32 31 39 30 33 44 22 20 8c 20 |)="&C721903D" . | 00000bc0 f2 53 61 76 65 0d 03 c0 58 20 20 20 20 e7 20 a4 |.Save...X . .| 00000bd0 69 63 6f 6e 73 74 61 74 65 28 54 72 61 6e 25 2c |iconstate(Tran%,| 00000be0 31 34 29 3d 22 26 43 37 32 31 39 30 33 44 22 20 |14)="&C721903D" | 00000bf0 80 20 66 69 6c 65 69 6e 24 3c 3e 22 22 20 8c 20 |. filein$<>"" . | 00000c00 ff 22 46 69 6c 65 72 5f 4f 70 65 6e 44 69 72 20 |."Filer_OpenDir | 00000c10 22 2b 66 69 6c 65 69 6e 70 61 74 68 24 0d 03 ca |"+fileinpath$...| 00000c20 59 20 20 20 20 e7 20 a4 69 63 6f 6e 73 74 61 74 |Y . .iconstat| 00000c30 65 28 54 72 61 6e 25 2c 31 35 29 3d 22 26 43 37 |e(Tran%,15)="&C7| 00000c40 32 31 39 30 33 44 22 20 80 20 66 69 6c 65 69 6e |21903D" . filein| 00000c50 24 3c 3e 22 22 20 8c 20 ff 22 46 69 6c 65 72 5f |$<>"" . ."Filer_| 00000c60 4f 70 65 6e 44 69 72 20 22 2b 66 69 6c 65 6f 75 |OpenDir "+fileou| 00000c70 74 70 61 74 68 24 0d 03 d4 2c 20 20 20 20 e7 20 |tpath$..., . | 00000c80 a4 69 63 6f 6e 73 74 61 74 65 28 54 72 61 6e 25 |.iconstate(Tran%| 00000c90 2c 31 36 29 3d 22 26 43 37 32 31 39 31 33 44 22 |,16)="&C721913D"| 00000ca0 20 8c 0d 03 de 38 20 20 20 20 20 c8 94 20 66 69 | ....8 .. fi| 00000cb0 6c 65 69 6e 70 61 74 68 24 2c 66 69 6c 65 6f 75 |leinpath$,fileou| 00000cc0 74 70 61 74 68 24 3a c8 94 20 66 69 6c 65 69 6e |tpath$:.. filein| 00000cd0 24 2c 66 69 6c 65 6f 75 74 24 0d 03 e8 2f 20 20 |$,fileout$.../ | 00000ce0 20 20 20 f2 70 75 74 5f 69 63 6f 6e 5f 74 65 78 | .put_icon_tex| 00000cf0 74 28 71 25 2c 54 72 61 6e 25 2c 31 30 2c 66 69 |t(q%,Tran%,10,fi| 00000d00 6c 65 69 6e 24 2c 2d 31 29 0d 03 f2 30 20 20 20 |lein$,-1)...0 | 00000d10 20 20 f2 70 75 74 5f 69 63 6f 6e 5f 74 65 78 74 | .put_icon_text| 00000d20 28 71 25 2c 54 72 61 6e 25 2c 31 33 2c 66 69 6c |(q%,Tran%,13,fil| 00000d30 65 6f 75 74 24 2c 2d 31 29 0d 03 fc 09 20 20 20 |eout$,-1).... | 00000d40 20 cd 0d 04 06 10 20 20 20 20 c8 97 20 58 2c 59 | ..... .. X,Y| 00000d50 2c 5a 0d 04 10 55 20 20 20 20 e7 20 4b 65 79 25 |,Z...U . Key%| 00000d60 3d 32 20 8c 20 f2 64 6f 6d 65 6e 75 28 31 2c 6d |=2 . .domenu(1,m| 00000d70 65 6e 75 62 75 66 25 2c 69 63 6f 6e 6d 65 6e 75 |enubuf%,iconmenu| 00000d80 24 2c 54 61 73 6b 5f 4e 61 6d 65 24 2c 58 2d 38 |$,Task_Name$,X-8| 00000d90 35 2c 59 2d 31 34 30 2b 28 4e 6f 49 6e 4d 65 6e |5,Y-140+(NoInMen| 00000da0 2b 31 29 2a 34 30 29 0d 04 1a 06 20 cb 0d 04 24 |+1)*40).... ...$| 00000db0 06 20 e1 0d 04 2e 06 20 3a 0d 04 38 46 20 f4 20 |. ..... :..8F . | 00000dc0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 |---------- | 00000dd0 20 20 20 20 20 52 65 63 69 76 65 20 57 69 6d 70 | Recive Wimp| 00000de0 20 4d 65 6e 75 20 20 20 20 20 20 20 20 20 20 20 | Menu | 00000df0 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d | ----------.| 00000e00 04 42 06 20 3a 0d 04 4c 1a 20 dd 20 f2 6d 65 6e |.B. :..L. . .men| 00000e10 75 73 65 6c 65 63 74 28 6d 65 6e 75 73 25 29 0d |uselect(menus%).| 00000e20 04 56 29 20 ea 20 61 2c 61 24 2c 6c 65 76 65 6c |.V) . a,a$,level| 00000e30 31 24 2c 6c 65 76 65 6c 32 24 2c 6c 65 76 65 6c |1$,level2$,level| 00000e40 33 24 2c 72 65 63 61 74 0d 04 60 0d 20 72 65 63 |3$,recat..`. rec| 00000e50 61 74 25 3d a3 0d 04 6a 3e 20 c8 99 20 22 57 69 |at%=...j> .. "Wi| 00000e60 6d 70 5f 44 65 63 6f 64 65 4d 65 6e 75 22 2c 2c |mp_DecodeMenu",,| 00000e70 28 6d 65 6e 75 62 75 66 25 2b 34 29 2c 6d 65 6e |(menubuf%+4),men| 00000e80 75 73 25 2c c4 32 30 30 2c 22 20 22 29 b8 2c 2c |us%,.200," ").,,| 00000e90 2c 61 24 0d 04 74 0d 20 61 67 61 69 6e 25 3d b9 |,a$..t. again%=.| 00000ea0 0d 04 7e 10 20 e7 20 61 24 3d 22 22 20 8c 20 e1 |..~. . a$="" . .| 00000eb0 0d 04 88 1b 20 6c 65 76 65 6c 31 24 3d a4 70 61 |.... level1$=.pa| 00000ec0 72 28 61 24 2c 22 2e 22 2c 61 29 0d 04 92 37 20 |r(a$,".",a)...7 | 00000ed0 e7 20 c0 6c 65 76 65 6c 31 24 2c 31 29 3d 22 27 |. .level1$,1)="'| 00000ee0 22 20 8c 20 6c 65 76 65 6c 31 24 3d 6c 65 76 65 |" . level1$=leve| 00000ef0 6c 31 24 2b a4 70 61 72 28 61 24 2c 22 2e 22 2c |l1$+.par(a$,".",| 00000f00 61 29 0d 04 9c 32 20 6c 65 76 65 6c 32 24 3d a4 |a)...2 level2$=.| 00000f10 70 61 72 28 61 24 2c 22 2e 22 2c 61 29 3a 6c 65 |par(a$,".",a):le| 00000f20 76 65 6c 33 24 3d a4 70 61 72 28 61 24 2c 22 2e |vel3$=.par(a$,".| 00000f30 22 2c 61 29 0d 04 a6 1f 20 e7 20 6c 65 76 65 6c |",a).... . level| 00000f40 31 24 3d 22 51 75 69 74 22 20 8c 20 f2 46 69 6e |1$="Quit" . .Fin| 00000f50 69 73 68 0d 04 b0 52 20 e7 20 61 67 61 69 6e 25 |ish...R . again%| 00000f60 3d b9 20 8c 20 f2 64 6f 6d 65 6e 75 28 31 2c 6d |=. . .domenu(1,m| 00000f70 65 6e 75 62 75 66 25 2c 69 63 6f 6e 6d 65 6e 75 |enubuf%,iconmenu| 00000f80 24 2c 54 61 73 6b 5f 4e 61 6d 65 24 2c 78 25 2d |$,Task_Name$,x%-| 00000f90 36 34 2c 39 36 2b 28 4e 6f 49 6e 4d 65 6e 2b 31 |64,96+(NoInMen+1| 00000fa0 29 2a 34 30 29 0d 04 ba 19 20 c8 99 20 22 48 6f |)*40).... .. "Ho| 00000fb0 75 72 67 6c 61 73 73 5f 53 6d 61 73 68 22 0d 04 |urglass_Smash"..| 00000fc0 c4 06 20 e1 0d 04 ce 06 20 3a 0d 04 d8 13 20 dd |.. ..... :.... .| 00000fd0 20 f2 52 65 63 65 69 76 65 28 71 25 29 0d 04 e2 | .Receive(q%)...| 00000fe0 0f 20 c8 8e 20 71 25 21 31 36 20 ca 0d 04 ec 04 |. .. q%!16 .....| 00000ff0 0d 04 f6 09 20 20 c9 20 32 0d 05 00 1f 20 20 20 |.... . 2.... | 00001000 73 61 76 65 6e 61 6d 65 24 3d a4 73 74 72 69 6e |savename$=.strin| 00001010 67 28 71 25 2b 34 34 29 0d 05 0a 2e 20 20 20 f2 |g(q%+44).... .| 00001020 70 75 74 5f 69 63 6f 6e 5f 74 65 78 74 28 71 25 |put_icon_text(q%| 00001030 2c 53 61 76 65 25 2c 36 2c 73 61 76 65 6e 61 6d |,Save%,6,savenam| 00001040 65 24 2c 2d 31 29 0d 05 14 0c 20 20 20 f2 53 61 |e$,-1).... .Sa| 00001050 76 65 0d 05 1e 04 0d 05 28 0a 20 20 c9 20 26 33 |ve......(. . &3| 00001060 0d 05 32 18 20 20 20 c8 99 20 22 48 6f 75 72 67 |..2. .. "Hourg| 00001070 6c 61 73 73 5f 4f 6e 22 0d 05 3c 24 20 20 20 66 |lass_On"..<$ f| 00001080 69 6c 65 69 6e 24 3d a4 47 65 74 53 74 72 28 71 |ilein$=.GetStr(q| 00001090 25 2b 34 34 29 3a 64 69 72 25 3d a3 0d 05 46 17 |%+44):dir%=...F.| 000010a0 20 20 20 6f 72 67 66 69 6c 65 24 3d 66 69 6c 65 | orgfile$=file| 000010b0 69 6e 24 0d 05 50 15 20 20 20 f2 69 6e 66 6f 28 |in$..P. .info(| 000010c0 66 69 6c 65 69 6e 24 29 0d 05 5a 12 20 20 20 e7 |filein$)..Z. .| 000010d0 20 64 69 72 25 3c 3e b9 20 8c 0d 05 64 3d 20 20 | dir%<>. ...d= | 000010e0 20 e7 20 c0 66 69 6c 65 69 6e 24 2c 34 29 3d 22 | . .filein$,4)="| 000010f0 43 46 53 23 22 20 8c 20 66 69 6c 65 6f 75 74 24 |CFS#" . fileout$| 00001100 3d c2 66 69 6c 65 69 6e 24 2c a9 28 66 69 6c 65 |=.filein$,.(file| 00001110 69 6e 24 29 2d 34 29 0d 05 6e 59 20 20 20 e7 20 |in$)-4)..nY . | 00001120 c0 66 69 6c 65 69 6e 24 2c 34 29 3c 3e 22 43 46 |.filein$,4)<>"CF| 00001130 53 23 22 20 80 20 66 69 6c 65 74 79 70 65 24 3d |S#" . filetype$=| 00001140 22 44 39 36 22 20 8c 20 66 69 6c 65 6f 75 74 24 |"D96" . fileout$| 00001150 3d 66 69 6c 65 69 6e 24 3a 66 69 6c 65 69 6e 24 |=filein$:filein$| 00001160 3d 22 43 46 53 23 22 2b 66 69 6c 65 6f 75 74 24 |="CFS#"+fileout$| 00001170 0d 05 78 49 20 20 20 e7 20 c0 66 69 6c 65 69 6e |..xI . .filein| 00001180 24 2c 34 29 3c 3e 22 43 46 53 23 22 20 80 20 66 |$,4)<>"CFS#" . f| 00001190 69 6c 65 74 79 70 65 24 3c 3e 22 44 39 36 22 20 |iletype$<>"D96" | 000011a0 8c 20 66 69 6c 65 6f 75 74 24 3d 22 43 46 53 23 |. fileout$="CFS#| 000011b0 22 2b 66 69 6c 65 69 6e 24 0d 05 82 8a 20 20 20 |"+filein$.... | 000011c0 e7 20 66 69 6c 65 74 79 70 65 24 3d 22 44 39 36 |. filetype$="D96| 000011d0 22 20 8c 20 f2 69 6e 66 6f 28 66 69 6c 65 69 6e |" . .info(filein| 000011e0 24 29 3a 73 74 65 25 3d a4 69 63 6f 6e 5f 6e 65 |$):ste%=.icon_ne| 000011f0 77 73 70 72 69 74 65 28 53 61 76 65 25 2c 39 2c |wsprite(Save%,9,| 00001200 22 66 69 6c 65 5f 22 2b 66 69 6c 65 74 79 70 65 |"file_"+filetype| 00001210 24 2c 2d 31 29 20 8b 20 73 74 65 25 3d a4 69 63 |$,-1) . ste%=.ic| 00001220 6f 6e 5f 6e 65 77 73 70 72 69 74 65 28 53 61 76 |on_newsprite(Sav| 00001230 65 25 2c 39 2c 22 66 69 6c 65 5f 44 39 36 22 2c |e%,9,"file_D96",| 00001240 2d 31 29 0d 05 8c 07 20 20 cc 0d 05 96 3d 20 20 |-1).... ....= | 00001250 20 e7 20 c0 66 69 6c 65 69 6e 24 2c 34 29 3d 22 | . .filein$,4)="| 00001260 43 46 53 23 22 20 8c 20 66 69 6c 65 6f 75 74 24 |CFS#" . fileout$| 00001270 3d c2 66 69 6c 65 69 6e 24 2c a9 28 66 69 6c 65 |=.filein$,.(file| 00001280 69 6e 24 29 2d 34 29 0d 05 a0 36 20 20 20 e7 20 |in$)-4)...6 . | 00001290 c0 66 69 6c 65 69 6e 24 2c 34 29 3c 3e 22 43 46 |.filein$,4)<>"CF| 000012a0 53 23 22 20 8c 20 66 69 6c 65 6f 75 74 24 3d 22 |S#" . fileout$="| 000012b0 43 46 53 23 22 2b 66 69 6c 65 69 6e 24 0d 05 aa |CFS#"+filein$...| 000012c0 3d 20 20 20 73 74 65 25 3d a4 69 63 6f 6e 5f 6e |= ste%=.icon_n| 000012d0 65 77 73 70 72 69 74 65 28 53 61 76 65 25 2c 39 |ewsprite(Save%,9| 000012e0 2c a4 63 68 6f 70 64 69 72 28 66 69 6c 65 69 6e |,.chopdir(filein| 000012f0 24 2c 22 2e 22 29 2c 2d 31 29 0d 05 b4 07 20 20 |$,"."),-1).... | 00001300 cd 0d 05 be 04 0d 05 c8 88 20 20 20 66 69 6c 65 |......... file| 00001310 69 6e 70 61 74 68 24 3d 66 69 6c 65 69 6e 24 3a |inpath$=filein$:| 00001320 f5 3a 66 69 6c 65 69 6e 70 61 74 68 24 3d c0 66 |.:fileinpath$=.f| 00001330 69 6c 65 69 6e 70 61 74 68 24 2c a9 28 66 69 6c |ileinpath$,.(fil| 00001340 65 69 6e 70 61 74 68 24 29 2d 31 29 3a fd 20 c2 |einpath$)-1):. .| 00001350 66 69 6c 65 69 6e 70 61 74 68 24 2c 31 29 3d 22 |fileinpath$,1)="| 00001360 2e 22 3a 66 69 6c 65 69 6e 70 61 74 68 24 3d c0 |.":fileinpath$=.| 00001370 66 69 6c 65 69 6e 70 61 74 68 24 2c a9 28 66 69 |fileinpath$,.(fi| 00001380 6c 65 69 6e 70 61 74 68 24 29 2d 31 29 0d 05 d2 |leinpath$)-1)...| 00001390 04 0d 05 dc 91 20 20 20 66 69 6c 65 6f 75 74 70 |..... fileoutp| 000013a0 61 74 68 24 3d 66 69 6c 65 6f 75 74 24 3a f5 3a |ath$=fileout$:.:| 000013b0 66 69 6c 65 6f 75 74 70 61 74 68 24 3d c0 66 69 |fileoutpath$=.fi| 000013c0 6c 65 6f 75 74 70 61 74 68 24 2c a9 28 66 69 6c |leoutpath$,.(fil| 000013d0 65 6f 75 74 70 61 74 68 24 29 2d 31 29 3a fd 20 |eoutpath$)-1):. | 000013e0 c2 66 69 6c 65 6f 75 74 70 61 74 68 24 2c 31 29 |.fileoutpath$,1)| 000013f0 3d 22 2e 22 3a 66 69 6c 65 6f 75 74 70 61 74 68 |=".":fileoutpath| 00001400 24 3d c0 66 69 6c 65 6f 75 74 70 61 74 68 24 2c |$=.fileoutpath$,| 00001410 a9 28 66 69 6c 65 6f 75 74 70 61 74 68 24 29 2d |.(fileoutpath$)-| 00001420 31 29 0d 05 e6 04 0d 05 f0 2d 20 20 20 f2 70 75 |1).......- .pu| 00001430 74 5f 69 63 6f 6e 5f 74 65 78 74 28 71 25 2c 54 |t_icon_text(q%,T| 00001440 72 61 6e 25 2c 31 30 2c 66 69 6c 65 69 6e 24 2c |ran%,10,filein$,| 00001450 2d 31 29 0d 05 fa 2e 20 20 20 f2 70 75 74 5f 69 |-1).... .put_i| 00001460 63 6f 6e 5f 74 65 78 74 28 71 25 2c 54 72 61 6e |con_text(q%,Tran| 00001470 25 2c 31 33 2c 66 69 6c 65 6f 75 74 24 2c 2d 31 |%,13,fileout$,-1| 00001480 29 0d 06 04 2d 20 20 20 f2 70 75 74 5f 69 63 6f |)...- .put_ico| 00001490 6e 5f 74 65 78 74 28 71 25 2c 53 61 76 65 25 2c |n_text(q%,Save%,| 000014a0 36 2c 66 69 6c 65 6f 75 74 24 2c 2d 31 29 0d 06 |6,fileout$,-1)..| 000014b0 0e 38 20 20 20 f2 4f 70 65 6e 5f 57 69 6e 64 6f |.8 .Open_Windo| 000014c0 77 28 54 72 61 6e 25 2c 32 33 30 2c 30 2c 39 30 |w(Tran%,230,0,90| 000014d0 30 30 2c 35 31 38 2c 71 25 21 32 30 2c 71 25 21 |00,518,q%!20,q%!| 000014e0 32 34 2c 2d 31 29 0d 06 18 1b 20 20 20 c8 99 20 |24,-1).... .. | 000014f0 22 48 6f 75 72 67 6c 61 73 73 5f 53 6d 61 73 68 |"Hourglass_Smash| 00001500 22 0d 06 22 09 20 20 20 ef 37 0d 06 2c 06 20 cb |"..". .7..,. .| 00001510 0d 06 36 06 20 e1 0d 06 40 06 20 3a 0d 06 4a 0e |..6. ...@. :..J.| 00001520 20 dd 20 f2 46 69 6e 69 73 68 0d 06 54 1a 20 c8 | . .Finish..T. .| 00001530 99 20 22 57 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 |. "Wimp_CloseDow| 00001540 6e 22 3a e0 0d 06 5e 06 20 e1 0d 06 68 06 20 3a |n":...^. ...h. :| 00001550 0d 06 72 46 20 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d |..rF . ---------| 00001560 2d 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 61 |- Loa| 00001570 64 20 49 6e 20 53 70 72 69 74 65 73 20 20 20 20 |d In Sprites | 00001580 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d | ----| 00001590 2d 2d 2d 2d 2d 2d 0d 06 7c 06 20 3a 0d 06 86 43 |------..|. :...C| 000015a0 20 dd 20 f2 49 63 6f 6e 5f 42 61 72 5f 53 70 72 | . .Icon_Bar_Spr| 000015b0 69 74 65 28 53 50 4e 61 6d 65 24 2c 53 70 72 69 |ite(SPName$,Spri| 000015c0 74 65 46 69 6c 65 24 2c 4c 6f 72 52 2c 54 65 78 |teFile$,LorR,Tex| 000015d0 74 5f 4e 6f 54 65 78 74 2c 54 65 78 74 24 29 0d |t_NoText,Text$).| 000015e0 06 90 37 20 68 61 6e 64 6c 65 25 3d 8e 28 53 70 |..7 handle%=.(Sp| 000015f0 72 69 74 65 46 69 6c 65 24 29 3a 6c 65 6e 25 3d |riteFile$):len%=| 00001600 a2 23 68 61 6e 64 6c 65 25 2b 31 36 3a d9 23 68 |.#handle%+16:.#h| 00001610 61 6e 64 6c 65 25 0d 06 9a 14 20 de 20 73 70 72 |andle%.... . spr| 00001620 69 74 65 73 25 20 6c 65 6e 25 0d 06 a4 20 20 21 |ites% len%... !| 00001630 73 70 72 69 74 65 73 25 3d 6c 65 6e 25 3a 73 70 |sprites%=len%:sp| 00001640 72 69 74 65 73 25 21 38 3d 31 0d 06 ae 23 20 c8 |rites%!8=1...# .| 00001650 99 20 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c |. "OS_SpriteOp",| 00001660 26 31 30 39 2c 73 70 72 69 74 65 73 25 0d 06 b8 |&109,sprites%...| 00001670 2f 20 c8 99 20 22 4f 53 5f 53 70 72 69 74 65 4f |/ .. "OS_SpriteO| 00001680 70 22 2c 26 31 30 41 2c 73 70 72 69 74 65 73 25 |p",&10A,sprites%| 00001690 2c 53 70 72 69 74 65 46 69 6c 65 24 0d 06 c2 12 |,SpriteFile$....| 000016a0 20 de 20 49 63 6f 6e 54 65 78 74 25 20 34 0d 06 | . IconText% 4..| 000016b0 cc 16 20 e7 20 54 65 78 74 5f 4e 6f 54 65 78 74 |.. . Text_NoText| 000016c0 3d 30 20 8c 0d 06 d6 1d 20 20 20 f2 49 63 6f 6e |=0 ..... .Icon| 000016d0 42 61 72 28 4c 6f 72 52 2c 53 50 4e 61 6d 65 24 |Bar(LorR,SPName$| 000016e0 29 0d 06 e0 06 20 cc 0d 06 ea 2c 20 20 20 69 63 |).... ...., ic| 000016f0 6f 6e 62 61 72 25 3d a4 49 63 6f 6e 42 61 72 54 |onbar%=.IconBarT| 00001700 65 78 74 28 4c 6f 72 52 2c 53 50 4e 61 6d 65 24 |ext(LorR,SPName$| 00001710 2c 31 29 0d 06 f4 1f 20 20 20 24 49 63 6f 6e 54 |,1).... $IconT| 00001720 65 78 74 25 3d 54 65 78 74 24 3a 71 25 21 30 3d |ext%=Text$:q%!0=| 00001730 2d 31 0d 06 fe 3e 20 20 20 71 25 21 34 3d 69 63 |-1...> q%!4=ic| 00001740 6f 6e 62 61 72 25 3a 71 25 21 38 3d 30 3a 71 25 |onbar%:q%!8=0:q%| 00001750 21 31 32 3d 30 3a c8 99 20 22 57 69 6d 70 5f 53 |!12=0:.. "Wimp_S| 00001760 65 74 49 63 6f 6e 53 74 61 74 65 22 2c 2c 71 25 |etIconState",,q%| 00001770 0d 07 08 06 20 cd 0d 07 12 13 20 49 63 6f 6e 53 |.... ..... IconS| 00001780 70 72 69 74 65 73 25 3d 31 0d 07 1c 06 20 e1 0d |prites%=1.... ..| 00001790 07 26 06 20 3a 0d 07 30 2d 20 dd 20 a4 49 63 6f |.&. :..0- . .Ico| 000017a0 6e 42 61 72 54 65 78 74 28 4c 6f 72 52 2c 73 70 |nBarText(LorR,sp| 000017b0 6e 61 6d 65 24 2c 73 70 72 69 74 65 61 72 65 61 |name$,spritearea| 000017c0 25 29 0d 07 3a 0a 20 ea 20 69 63 25 0d 07 44 3f |%)..:. . ic%..D?| 000017d0 20 21 71 25 3d 4c 6f 72 52 3a 71 25 21 34 3d 30 | !q%=LorR:q%!4=0| 000017e0 3a 71 25 21 38 3d 2d 31 36 3a 71 25 21 31 32 3d |:q%!8=-16:q%!12=| 000017f0 39 36 3a 71 25 21 31 36 3d 39 35 3a 71 25 21 32 |96:q%!16=95:q%!2| 00001800 30 3d 26 31 37 30 31 32 31 30 42 0d 07 4e 12 20 |0=&1701210B..N. | 00001810 de 20 69 73 62 61 72 73 70 25 20 31 34 0d 07 58 |. isbarsp% 14..X| 00001820 41 20 24 69 73 62 61 72 73 70 25 3d 22 73 22 2b |A $isbarsp%="s"+| 00001830 73 70 6e 61 6d 65 24 3a 71 25 21 32 34 3d 49 63 |spname$:q%!24=Ic| 00001840 6f 6e 54 65 78 74 25 3a 71 25 21 32 38 3d 69 73 |onText%:q%!28=is| 00001850 62 61 72 73 70 25 3a 71 25 21 33 32 3d 33 0d 07 |barsp%:q%!32=3..| 00001860 62 23 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 |b# .. "Wimp_Crea| 00001870 74 65 49 63 6f 6e 22 2c 2c 71 25 20 b8 20 69 63 |teIcon",,q% . ic| 00001880 25 0d 07 6c 09 20 3d 69 63 25 0d 07 76 06 20 3a |%..l. =ic%..v. :| 00001890 0d 07 80 1d 20 dd 20 f2 49 63 6f 6e 42 61 72 28 |.... . .IconBar(| 000018a0 4c 6f 72 52 2c 53 70 72 69 74 65 24 29 0d 07 8a |LorR,Sprite$)...| 000018b0 2d 20 21 71 25 3d 4c 6f 72 52 3a 71 25 21 34 3d |- !q%=LorR:q%!4=| 000018c0 30 3a 71 25 21 38 3d 30 3a 71 25 21 31 32 3d 36 |0:q%!8=0:q%!12=6| 000018d0 38 3a 71 25 21 31 36 3d 36 38 0d 07 94 45 20 71 |8:q%!16=68...E q| 000018e0 25 21 32 30 3d 26 32 30 30 32 3a 24 28 71 25 2b |%!20=&2002:$(q%+| 000018f0 32 34 29 3d 53 70 72 69 74 65 24 3a c8 99 20 22 |24)=Sprite$:.. "| 00001900 57 69 6d 70 5f 43 72 65 61 74 65 49 63 6f 6e 22 |Wimp_CreateIcon"| 00001910 2c 2c 71 25 20 b8 20 69 63 6f 6e 62 61 72 25 0d |,,q% . iconbar%.| 00001920 07 9e 06 20 e1 0d 07 a8 06 20 3a 0d 07 b2 46 20 |... ..... :...F | 00001930 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 20 20 20 |. ---------- | 00001940 20 20 20 20 20 20 20 4c 6f 61 64 20 49 6e 20 54 | Load In T| 00001950 65 6d 70 6c 61 74 65 73 20 20 20 20 20 20 20 20 |emplates | 00001960 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | ---------| 00001970 2d 0d 07 bc 06 20 3a 0d 07 c6 15 20 dd 20 f2 52 |-.... :.... . .R| 00001980 65 61 64 54 65 6d 70 6c 61 74 65 73 0d 07 d0 36 |eadTemplates...6| 00001990 20 c8 99 20 22 57 69 6d 70 5f 4f 70 65 6e 54 65 | .. "Wimp_OpenTe| 000019a0 6d 70 6c 61 74 65 22 2c 2c 22 3c 63 66 73 4d 6f |mplate",,"<cfsMo| 000019b0 76 65 24 44 69 72 3e 2e 54 65 6d 70 6c 61 74 65 |ve$Dir>.Template| 000019c0 73 22 0d 07 da 20 20 49 6e 66 6f 25 20 20 20 3d |s"... Info% =| 000019d0 20 a4 74 65 6d 70 6c 61 74 65 28 22 69 6e 66 6f | .template("info| 000019e0 22 29 0d 07 e4 20 20 54 72 61 6e 25 20 20 20 3d |")... Tran% =| 000019f0 20 a4 74 65 6d 70 6c 61 74 65 28 22 74 72 61 6e | .template("tran| 00001a00 22 29 0d 07 ee 22 20 52 65 70 6f 72 74 25 20 3d |")..." Report% =| 00001a10 20 a4 74 65 6d 70 6c 61 74 65 28 22 72 65 70 6f | .template("repo| 00001a20 72 74 22 29 0d 07 f8 21 20 53 61 76 65 25 20 20 |rt")...! Save% | 00001a30 20 20 3d 20 a4 74 65 6d 70 6c 61 74 65 28 22 73 | = .template("s| 00001a40 61 76 65 22 29 0d 08 02 1c 20 c8 99 20 22 57 69 |ave").... .. "Wi| 00001a50 6d 70 5f 43 6c 6f 73 65 54 65 6d 70 6c 61 74 65 |mp_CloseTemplate| 00001a60 22 0d 08 0c 06 20 e1 0d 08 16 06 20 3a 0d 08 20 |".... ..... :.. | 00001a70 15 20 dd 20 a4 74 65 6d 70 6c 61 74 65 28 69 64 |. . .template(id| 00001a80 24 29 0d 08 2a 11 20 ea 20 68 61 6e 64 6c 65 2c |$)..*. . handle,| 00001a90 70 6f 73 0d 08 34 10 20 6d 61 78 77 73 25 3d 26 |pos..4. maxws%=&| 00001aa0 37 35 30 0d 08 3e 11 20 de 20 77 73 25 20 6d 61 |750..>. . ws% ma| 00001ab0 78 77 73 25 0d 08 48 0d 20 de 20 71 25 20 36 30 |xws%..H. . q% 60| 00001ac0 30 0d 08 52 49 20 c8 99 20 22 57 69 6d 70 5f 4c |0..RI .. "Wimp_L| 00001ad0 6f 61 64 54 65 6d 70 6c 61 74 65 22 2c 2c 71 25 |oadTemplate",,q%| 00001ae0 2c 77 73 25 2c 77 73 25 2b 6d 61 78 77 73 25 2c |,ws%,ws%+maxws%,| 00001af0 2d 31 2c 69 64 24 2c 30 20 b8 20 2c 2c 63 75 72 |-1,id$,0 . ,,cur| 00001b00 77 73 25 2c 2c 2c 2c 70 6f 73 0d 08 5c 31 20 e7 |ws%,,,,pos..\1 .| 00001b10 20 70 6f 73 3d 30 20 8c 20 85 20 31 2c 22 54 65 | pos=0 . . 1,"Te| 00001b20 6d 70 6c 61 74 65 20 27 22 2b 69 64 24 2b 22 27 |mplate '"+id$+"'| 00001b30 20 6e 6f 74 20 66 6f 75 6e 64 22 0d 08 66 28 20 | not found"..f( | 00001b40 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 57 |.. "Wimp_CreateW| 00001b50 69 6e 64 6f 77 22 2c 2c 71 25 20 b8 20 68 61 6e |indow",,q% . han| 00001b60 64 6c 65 0d 08 70 0c 20 3d 68 61 6e 64 6c 65 0d |dle..p. =handle.| 00001b70 08 7a 06 20 3a 0d 08 84 46 20 f4 20 2d 2d 2d 2d |.z. :...F . ----| 00001b80 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 20 20 20 20 |------ | 00001b90 57 69 6e 64 6f 77 20 43 6f 6e 74 72 6f 6c 65 72 |Window Controler| 00001ba0 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |s | 00001bb0 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 08 8e 06 20 | ----------.... | 00001bc0 3a 0d 08 98 34 20 dd a4 69 63 6f 6e 5f 6e 65 77 |:...4 ..icon_new| 00001bd0 73 70 72 69 74 65 28 68 61 6e 64 6c 65 25 2c 69 |sprite(handle%,i| 00001be0 63 6f 6e 25 2c 6e 65 77 6e 61 6d 65 24 2c 72 65 |con%,newname$,re| 00001bf0 64 72 61 77 29 0d 08 a2 15 20 62 6c 6f 63 6b 25 |draw).... block%| 00001c00 21 30 3d 68 61 6e 64 6c 65 25 0d 08 ac 13 20 62 |!0=handle%.... b| 00001c10 6c 6f 63 6b 25 21 34 3d 69 63 6f 6e 25 0d 08 b6 |lock%!4=icon%...| 00001c20 23 20 c8 99 20 22 57 69 6d 70 5f 47 65 74 49 63 |# .. "Wimp_GetIc| 00001c30 6f 6e 53 74 61 74 65 22 2c 2c 62 6c 6f 63 6b 25 |onState",,block%| 00001c40 0d 08 c0 21 20 c8 99 20 22 57 69 6d 70 5f 44 65 |...! .. "Wimp_De| 00001c50 6c 65 74 65 49 63 6f 6e 22 2c 2c 62 6c 6f 63 6b |leteIcon",,block| 00001c60 25 0d 08 ca 16 20 62 6c 6f 63 6b 25 21 34 3d 62 |%.... block%!4=b| 00001c70 6c 6f 63 6b 25 21 38 0d 08 d4 17 20 62 6c 6f 63 |lock%!8.... bloc| 00001c80 6b 25 21 38 3d 62 6c 6f 63 6b 25 21 31 32 0d 08 |k%!8=block%!12..| 00001c90 de 18 20 62 6c 6f 63 6b 25 21 31 32 3d 62 6c 6f |.. block%!12=blo| 00001ca0 63 6b 25 21 31 36 0d 08 e8 18 20 62 6c 6f 63 6b |ck%!16.... block| 00001cb0 25 21 31 36 3d 62 6c 6f 63 6b 25 21 32 30 0d 08 |%!16=block%!20..| 00001cc0 f2 14 20 62 6c 6f 63 6b 25 21 32 30 3d 26 33 30 |.. block%!20=&30| 00001cd0 30 32 0d 08 fc 1a 20 24 28 62 6c 6f 63 6b 25 2b |02.... $(block%+| 00001ce0 32 34 29 3d 6e 65 77 6e 61 6d 65 24 0d 09 06 29 |24)=newname$...)| 00001cf0 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 | .. "Wimp_Create| 00001d00 49 63 6f 6e 22 2c 2c 62 6c 6f 63 6b 25 20 b8 20 |Icon",,block% . | 00001d10 69 63 6f 6e 25 0d 09 10 54 20 e7 20 72 65 64 72 |icon%...T . redr| 00001d20 61 77 20 8c 20 c8 99 20 22 57 69 6d 70 5f 46 6f |aw . .. "Wimp_Fo| 00001d30 72 63 65 52 65 64 72 61 77 22 2c 62 6c 6f 63 6b |rceRedraw",block| 00001d40 25 21 30 2c 62 6c 6f 63 6b 25 21 34 2c 62 6c 6f |%!0,block%!4,blo| 00001d50 63 6b 25 21 38 2c 62 6c 6f 63 6b 25 21 31 32 2c |ck%!8,block%!12,| 00001d60 62 6c 6f 63 6b 25 21 31 36 0d 09 1a 0b 20 3d 69 |block%!16.... =i| 00001d70 63 6f 6e 25 0d 09 24 06 20 3a 0d 09 2e 3f 20 dd |con%..$. :...? .| 00001d80 20 f2 4f 70 65 6e 5f 57 69 6e 64 6f 77 28 68 61 | .Open_Window(ha| 00001d90 6e 64 6c 65 25 2c 78 30 25 2c 79 30 25 2c 78 31 |ndle%,x0%,y0%,x1| 00001da0 25 2c 79 31 25 2c 73 63 78 25 2c 73 63 79 25 2c |%,y1%,scx%,scy%,| 00001db0 62 68 61 6e 64 6c 65 25 29 0d 09 38 15 20 e7 20 |bhandle%)..8. . | 00001dc0 68 61 6e 64 6c 65 25 3d 2d 31 20 8c 20 e1 0d 09 |handle%=-1 . ...| 00001dd0 42 20 20 71 25 21 30 3d 68 61 6e 64 6c 65 25 3a |B q%!0=handle%:| 00001de0 71 25 21 32 38 3d 62 68 61 6e 64 6c 65 25 0d 09 |q%!28=bhandle%..| 00001df0 4c 2a 20 71 25 21 34 3d 78 30 25 3a 71 25 21 38 |L* q%!4=x0%:q%!8| 00001e00 3d 79 30 25 3a 71 25 21 31 32 3d 78 31 25 3a 71 |=y0%:q%!12=x1%:q| 00001e10 25 21 31 36 3d 79 31 25 0d 09 56 1a 20 71 25 21 |%!16=y1%..V. q%!| 00001e20 32 30 3d 73 63 78 25 3a 71 25 21 32 34 3d 73 63 |20=scx%:q%!24=sc| 00001e30 79 25 0d 09 60 1d 20 c8 99 20 22 57 69 6d 70 5f |y%..`. .. "Wimp_| 00001e40 4f 70 65 6e 57 69 6e 64 6f 77 22 2c 2c 71 25 0d |OpenWindow",,q%.| 00001e50 09 6a 06 20 e1 0d 09 74 06 20 3a 0d 09 7e 1d 20 |.j. ...t. :..~. | 00001e60 dd 20 f2 43 6c 6f 73 65 5f 57 69 6e 64 6f 77 28 |. .Close_Window(| 00001e70 68 61 6e 64 6c 65 25 29 0d 09 88 10 20 21 71 25 |handle%).... !q%| 00001e80 3d 68 61 6e 64 6c 65 25 0d 09 92 1e 20 c8 99 20 |=handle%.... .. | 00001e90 22 57 69 6d 70 5f 43 6c 6f 73 65 57 69 6e 64 6f |"Wimp_CloseWindo| 00001ea0 77 22 2c 2c 71 25 0d 09 9c 06 20 e1 0d 09 a6 06 |w",,q%.... .....| 00001eb0 20 3a 0d 09 b0 46 20 f4 20 2d 2d 2d 2d 2d 2d 2d | :...F . -------| 00001ec0 2d 2d 2d 20 20 20 20 20 20 20 20 20 57 69 6d 70 |--- Wimp| 00001ed0 20 4d 65 6e 75 20 50 72 6f 63 65 64 75 72 65 73 | Menu Procedures| 00001ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d | --| 00001ef0 2d 2d 2d 2d 2d 2d 2d 2d 0d 09 ba 06 20 3a 0d 09 |--------.... :..| 00001f00 c4 18 20 dd 20 f2 53 65 74 55 70 49 63 6f 6e 42 |.. . .SetUpIconB| 00001f10 61 72 49 6e 66 6f 0d 09 ce 38 20 77 62 63 6f 6c |arInfo...8 wbcol| 00001f20 3d 26 33 3a 74 62 63 6f 6c 3d 26 32 3a 73 63 6f |=&3:tbcol=&2:sco| 00001f30 3d 26 33 3a 6d 62 63 6f 6c 3d 26 30 3a 77 66 63 |=&3:mbcol=&0:wfc| 00001f40 6f 6c 3d 26 37 3a 74 66 63 6f 6c 3d 26 37 0d 09 |ol=&7:tfcol=&7..| 00001f50 d8 3a 20 73 63 69 3d 26 44 3a 74 62 63 6f 6c 32 |.: sci=&D:tbcol2| 00001f60 3d 26 43 3a 62 6c 61 63 6b 3d 26 37 3a 77 68 69 |=&C:black=&7:whi| 00001f70 74 65 3d 26 30 3a 63 79 61 6e 3d 39 3a 6c 69 67 |te=&0:cyan=9:lig| 00001f80 68 74 67 72 65 79 3d 31 0d 09 e2 13 20 de 20 6d |htgrey=1.... . m| 00001f90 65 6e 75 62 75 66 25 20 35 30 30 0d 09 ec 06 20 |enubuf% 500.... | 00001fa0 e1 0d 09 f6 06 20 3a 0d 0a 00 35 20 dd 20 f2 64 |..... :...5 . .d| 00001fb0 6f 6d 65 6e 75 28 68 61 6e 64 6c 65 25 2c 6d 65 |omenu(handle%,me| 00001fc0 6e 75 70 74 72 25 2c 6d 65 6e 75 24 2c 6d 65 6e |nuptr%,menu$,men| 00001fd0 75 74 69 74 6c 65 24 2c 78 2c 79 29 0d 0a 0a 13 |utitle$,x,y)....| 00001fe0 20 ea 20 64 75 6d 6d 79 25 2c 6e 65 78 74 25 0d | . dummy%,next%.| 00001ff0 0a 14 28 20 6e 65 78 74 25 3d 6d 65 6e 75 70 74 |..( next%=menupt| 00002000 72 25 2b 34 3a 6d 65 6e 75 70 74 72 25 21 30 3d |r%+4:menuptr%!0=| 00002010 68 61 6e 64 6c 65 25 0d 0a 1e 28 20 64 75 6d 6d |handle%...( dumm| 00002020 79 25 3d a4 63 5f 6d 28 6e 65 78 74 25 2c 6d 65 |y%=.c_m(next%,me| 00002030 6e 75 24 2c 6d 65 6e 75 74 69 74 6c 65 24 29 0d |nu$,menutitle$).| 00002040 0a 28 25 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 |.(% .. "Wimp_Cre| 00002050 61 74 65 4d 65 6e 75 22 2c 2c 64 75 6d 6d 79 25 |ateMenu",,dummy%| 00002060 2c 78 2c 79 0d 0a 32 06 20 e1 0d 0a 3c 06 20 3a |,x,y..2. ...<. :| 00002070 0d 0a 46 26 20 dd 20 a4 63 5f 6d 28 6d 65 6e 75 |..F& . .c_m(menu| 00002080 70 74 72 25 2c 6d 65 6e 75 24 2c 6d 65 6e 75 74 |ptr%,menu$,menut| 00002090 69 74 6c 65 24 29 0d 0a 50 19 20 ea 20 69 25 2c |itle$)..P. . i%,| 000020a0 63 61 6c 6c 25 2c 69 74 65 6d 24 2c 77 2c 6c 0d |call%,item$,w,l.| 000020b0 0a 5a 2b 20 63 61 6c 6c 25 3d 6d 65 6e 75 70 74 |.Z+ call%=menupt| 000020c0 72 25 3a 77 3d a9 6d 65 6e 75 74 69 74 6c 65 24 |r%:w=.menutitle$| 000020d0 3a 6e 65 78 74 25 2b 3d 35 32 0d 0a 64 12 20 e3 |:next%+=52..d. .| 000020e0 20 69 25 3d 30 b8 a9 6d 65 6e 75 24 0d 0a 6e 25 | i%=0..menu$..n%| 000020f0 20 20 20 e7 20 c1 6d 65 6e 75 24 2c 69 25 2c 31 | . .menu$,i%,1| 00002100 29 3d 22 2c 22 20 8c 20 6e 65 78 74 25 2b 3d 32 |)="," . next%+=2| 00002110 34 0d 0a 78 06 20 ed 0d 0a 82 2d 20 69 25 3d 30 |4..x. ....- i%=0| 00002120 3a 6d 65 6e 75 70 74 72 25 21 32 30 3d 34 30 3a |:menuptr%!20=40:| 00002130 24 6d 65 6e 75 70 74 72 25 3d 6d 65 6e 75 74 69 |$menuptr%=menuti| 00002140 74 6c 65 24 0d 0a 8c 48 20 6d 65 6e 75 70 74 72 |tle$...H menuptr| 00002150 25 3f 31 32 3d 74 66 63 6f 6c 3a 6d 65 6e 75 70 |%?12=tfcol:menup| 00002160 74 72 25 3f 31 33 3d 32 3a 6d 65 6e 75 70 74 72 |tr%?13=2:menuptr| 00002170 25 3f 31 34 3d 77 66 63 6f 6c 3a 6d 65 6e 75 70 |%?14=wfcol:menup| 00002180 74 72 25 3f 31 35 3d 6d 62 63 6f 6c 0d 0a 96 1f |tr%?15=mbcol....| 00002190 20 6d 65 6e 75 70 74 72 25 21 32 34 3d 30 3a 6d | menuptr%!24=0:m| 000021a0 65 6e 75 70 74 72 25 2b 3d 32 38 0d 0a a0 06 20 |enuptr%+=28.... | 000021b0 f5 0d 0a aa 44 20 20 20 69 74 65 6d 24 3d a4 70 |....D item$=.p| 000021c0 61 72 28 6d 65 6e 75 24 2c 22 2c 22 2c 69 25 29 |ar(menu$,",",i%)| 000021d0 3a 6d 65 6e 75 70 74 72 25 3d a4 6d 65 6e 75 69 |:menuptr%=.menui| 000021e0 74 65 6d 28 6d 65 6e 75 70 74 72 25 2c 69 74 65 |tem(menuptr%,ite| 000021f0 6d 24 2c 6c 29 0d 0a b4 12 20 20 20 77 3d a4 6d |m$,l).... w=.m| 00002200 61 78 28 6c 2c 77 29 0d 0a be 0f 20 fd 20 69 74 |ax(l,w).... . it| 00002210 65 6d 24 3d 22 22 0d 0a c8 15 20 63 61 6c 6c 25 |em$="".... call%| 00002220 21 31 36 3d 31 36 2a 77 2b 31 32 0d 0a d2 24 20 |!16=16*w+12...$ | 00002230 6d 65 6e 75 70 74 72 25 21 2d 32 34 3d 28 6d 65 |menuptr%!-24=(me| 00002240 6e 75 70 74 72 25 21 2d 32 34 29 84 26 38 30 0d |nuptr%!-24).&80.| 00002250 0a dc 0b 20 3d 63 61 6c 6c 25 0d 0a e6 06 20 3a |... =call%.... :| 00002260 0d 0a f0 20 20 dd 20 a4 6d 65 6e 75 69 74 65 6d |... . .menuitem| 00002270 28 70 74 72 25 2c 74 65 78 74 24 2c f8 20 6c 29 |(ptr%,text$,. l)| 00002280 0d 0a fa 15 20 e7 20 74 65 78 74 24 3d 22 22 20 |.... . text$="" | 00002290 3d 70 74 72 25 0d 0b 04 10 20 ea 20 61 2c 74 24 |=ptr%.... . a,t$| 000022a0 2c 74 65 78 74 0d 0b 0e 0b 20 74 65 78 74 3d b9 |,text.... text=.| 000022b0 0d 0b 18 36 20 70 61 64 24 3d 22 20 20 20 22 3a |...6 pad$=" ":| 000022c0 61 3d 30 3a 21 70 74 72 25 3d 30 3a 70 74 72 25 |a=0:!ptr%=0:ptr%| 000022d0 21 38 3d 26 30 37 30 30 30 30 32 31 3a 70 74 72 |!8=&07000021:ptr| 000022e0 25 21 34 3d 2d 31 0d 0b 22 33 20 e7 20 c0 74 65 |%!4=-1.."3 . .te| 000022f0 78 74 24 2c 31 29 3d 22 3a 22 21 70 74 72 25 3d |xt$,1)=":"!ptr%=| 00002300 21 70 74 72 25 20 84 20 32 3a 74 65 78 74 24 3d |!ptr% . 2:text$=| 00002310 c1 74 65 78 74 24 2c 32 29 0d 0b 2c 38 20 e7 20 |.text$,2)..,8 . | 00002320 c0 74 65 78 74 24 2c 31 29 3d 22 3c 22 70 74 72 |.text$,1)="<"ptr| 00002330 25 21 38 3d 70 74 72 25 21 38 20 84 20 32 5e 32 |%!8=ptr%!8 . 2^2| 00002340 32 3a 74 65 78 74 24 3d c1 74 65 78 74 24 2c 32 |2:text$=.text$,2| 00002350 29 0d 0b 36 37 20 e7 20 c0 74 65 78 74 24 2c 31 |)..67 . .text$,1| 00002360 29 3d 22 40 22 21 70 74 72 25 3d 21 6d 65 6e 75 |)="@"!ptr%=!menu| 00002370 70 74 72 25 20 84 20 31 3a 74 65 78 74 24 3d c1 |ptr% . 1:text$=.| 00002380 74 65 78 74 24 2c 32 29 0d 0b 40 16 20 e7 20 c0 |text$,2)..@. . .| 00002390 74 65 78 74 24 2c 31 29 3d 22 60 22 20 8c 0d 0b |text$,1)="`" ...| 000023a0 4a 27 20 20 20 74 65 78 74 24 3d c1 74 65 78 74 |J' text$=.text| 000023b0 24 2c 32 29 3a 70 74 72 25 21 38 3d 26 30 37 30 |$,2):ptr%!8=&070| 000023c0 30 30 31 32 31 0d 0b 54 2b 20 20 20 21 70 74 72 |00121..T+ !ptr| 000023d0 25 3d 21 70 74 72 25 20 84 20 34 3a 74 24 3d a4 |%=!ptr% . 4:t$=.| 000023e0 70 61 72 28 74 65 78 74 24 2c 22 5c 22 2c 61 29 |par(text$,"\",a)| 000023f0 0d 0b 5e 29 20 20 20 70 74 72 25 21 31 32 3d a0 |..^) ptr%!12=.| 00002400 28 74 24 29 3a 74 24 3d a4 70 61 72 28 74 65 78 |(t$):t$=.par(tex| 00002410 74 24 2c 22 5c 22 2c 61 29 0d 0b 68 29 20 20 20 |t$,"\",a)..h) | 00002420 70 74 72 25 21 31 36 3d a0 28 74 24 29 3a 74 24 |ptr%!16=.(t$):t$| 00002430 3d a4 70 61 72 28 74 65 78 74 24 2c 22 5c 22 2c |=.par(text$,"\",| 00002440 61 29 0d 0b 72 24 20 20 20 70 74 72 25 21 32 30 |a)..r$ ptr%!20| 00002450 3d a0 28 74 24 29 3a 74 65 78 74 3d a3 3a 74 65 |=.(t$):text=.:te| 00002460 78 74 24 3d 22 22 0d 0b 7c 06 20 cd 0d 0b 86 16 |xt$=""..|. .....| 00002470 20 e7 20 c0 74 65 78 74 24 2c 31 29 3d 22 3e 22 | . .text$,1)=">"| 00002480 20 8c 0d 0b 90 2b 20 20 20 74 65 78 74 24 3d c1 | ....+ text$=.| 00002490 74 65 78 74 24 2c 32 29 3a 74 24 3d a4 70 61 72 |text$,2):t$=.par| 000024a0 28 74 65 78 74 24 2c 22 2e 22 2c 61 29 0d 0b 9a |(text$,".",a)...| 000024b0 2b 20 20 20 70 74 72 25 21 34 3d a0 28 a4 70 61 |+ ptr%!4=.(.pa| 000024c0 72 28 74 65 78 74 24 2c 22 2e 22 2c 61 29 29 3a |r(text$,".",a)):| 000024d0 74 65 78 74 24 3d 74 24 0d 0b a4 06 20 cd 0d 0b |text$=t$.... ...| 000024e0 ae 16 20 e7 20 c0 74 65 78 74 24 2c 31 29 3d 22 |.. . .text$,1)="| 000024f0 7e 22 20 8c 0d 0b b8 2b 20 20 20 74 65 78 74 24 |~" ....+ text$| 00002500 3d c1 74 65 78 74 24 2c 32 29 3a 74 24 3d a4 70 |=.text$,2):t$=.p| 00002510 61 72 28 74 65 78 74 24 2c 22 5c 22 2c 61 29 0d |ar(text$,"\",a).| 00002520 0b c2 53 20 20 20 70 74 72 25 21 34 3d a0 28 22 |..S ptr%!4=.("| 00002530 46 4e 63 5f 6d 28 6e 65 78 74 25 2c 22 2b a4 70 |FNc_m(next%,"+.p| 00002540 61 72 28 74 65 78 74 24 2c 22 5c 22 2c 61 29 2b |ar(text$,"\",a)+| 00002550 22 2c 22 2b bd 33 34 2b a4 70 61 72 28 74 65 78 |","+.34+.par(tex| 00002560 74 24 2c 22 5c 22 2c 61 29 2b bd 33 34 2b 22 29 |t$,"\",a)+.34+")| 00002570 22 29 0d 0b cc 0f 20 20 20 74 65 78 74 24 3d 74 |").... text$=t| 00002580 24 0d 0b d6 06 20 cd 0d 0b e0 1e 20 e7 20 74 65 |$.... ..... . te| 00002590 78 74 20 8c 20 24 28 70 74 72 25 2b 31 32 29 3d |xt . $(ptr%+12)=| 000025a0 74 65 78 74 24 0d 0b ea 0d 20 6c 3d a9 74 65 78 |text$.... l=.tex| 000025b0 74 24 0d 0b f4 0d 20 3d 70 74 72 25 2b 32 34 0d |t$.... =ptr%+24.| 000025c0 0b fe 06 20 3a 0d 0c 08 18 20 dd 20 a4 6d 65 6d |... :.... . .mem| 000025d0 74 6f 73 74 72 28 70 74 72 2c 6d 6c 29 0d 0c 12 |tostr(ptr,ml)...| 000025e0 18 20 ea 20 66 24 2c 6d 61 78 3a 6d 61 78 3d 70 |. . f$,max:max=p| 000025f0 74 72 2b 6d 6c 0d 0c 1c 28 20 c8 95 20 3f 70 74 |tr+ml...( .. ?pt| 00002600 72 20 80 20 70 74 72 3c 3d 6d 61 78 20 66 24 2b |r . ptr<=max f$+| 00002610 3d bd 3f 70 74 72 3a 70 74 72 2b 3d 31 0d 0c 26 |=.?ptr:ptr+=1..&| 00002620 06 20 ce 0d 0c 30 08 20 3d 66 24 0d 0c 3a 06 20 |. ...0. =f$..:. | 00002630 3a 0d 0c 44 17 20 dd 20 a4 70 61 72 28 61 24 2c |:..D. . .par(a$,| 00002640 73 24 2c f8 20 69 25 29 0d 0c 4e 0a 20 ea 20 69 |s$,. i%)..N. . i| 00002650 31 25 0d 0c 58 1f 20 69 31 25 3d 69 25 2b 31 3a |1%..X. i1%=i%+1:| 00002660 69 25 3d a7 61 24 2b 73 24 2c 73 24 2c 69 31 25 |i%=.a$+s$,s$,i1%| 00002670 29 0d 0c 62 15 20 3d c1 61 24 2c 69 31 25 2c 69 |)..b. =.a$,i1%,i| 00002680 25 2d 69 31 25 29 0d 0c 6c 06 20 3a 0d 0c 76 1b |%-i1%)..l. :..v.| 00002690 20 dd 20 a4 6d 61 78 28 61 2c 62 29 3a e7 61 3e | . .max(a,b):.a>| 000026a0 62 3d 61 20 8b 3d 62 0d 0c 80 06 20 3a 0d 0c 8a |b=a .=b.... :...| 000026b0 1b 20 dd 20 a4 6d 69 6e 28 61 2c 62 29 3a e7 61 |. . .min(a,b):.a| 000026c0 3c 62 3d 61 20 8b 3d 62 0d 0c 94 06 20 3a 0d 0c |<b=a .=b.... :..| 000026d0 9e 1a 20 dd 20 a4 69 63 6f 6e 73 74 61 74 65 28 |.. . .iconstate(| 000026e0 77 68 25 2c 69 68 25 29 0d 0c a8 16 20 71 25 21 |wh%,ih%).... q%!| 000026f0 30 3d 77 68 25 3a 71 25 21 34 3d 69 68 25 0d 0c |0=wh%:q%!4=ih%..| 00002700 b2 1f 20 c8 99 20 22 57 69 6d 70 5f 47 65 74 49 |.. .. "Wimp_GetI| 00002710 63 6f 6e 53 74 61 74 65 22 2c 2c 71 25 0d 0c bc |conState",,q%...| 00002720 22 20 69 66 6c 67 25 3d 71 25 21 32 34 3a 69 66 |" iflg%=q%!24:if| 00002730 6c 67 24 3d 22 26 22 2b c3 7e 69 66 6c 67 25 0d |lg$="&"+.~iflg%.| 00002740 0c c6 0b 20 3d 69 66 6c 67 24 0d 0c d0 06 20 3a |... =iflg$.... :| 00002750 0d 0c da 37 20 dd f2 70 75 74 5f 69 63 6f 6e 5f |...7 ..put_icon_| 00002760 74 65 78 74 28 71 25 2c 77 68 61 6e 64 6c 65 25 |text(q%,whandle%| 00002770 2c 69 68 61 6e 64 6c 65 25 2c 64 61 74 61 24 2c |,ihandle%,data$,| 00002780 72 65 64 72 61 77 29 0d 0c e4 12 20 71 25 21 30 |redraw).... q%!0| 00002790 3d 77 68 61 6e 64 6c 65 25 0d 0c ee 12 20 71 25 |=whandle%.... q%| 000027a0 21 34 3d 69 68 61 6e 64 6c 65 25 0d 0c f8 1f 20 |!4=ihandle%.... | 000027b0 c8 99 20 22 57 69 6d 70 5f 47 65 74 49 63 6f 6e |.. "Wimp_GetIcon| 000027c0 53 74 61 74 65 22 2c 2c 71 25 0d 0d 02 13 20 24 |State",,q%.... $| 000027d0 28 71 25 21 32 38 29 3d 64 61 74 61 24 0d 0d 0c |(q%!28)=data$...| 000027e0 0f 20 e7 20 72 65 64 72 61 77 20 8c 0d 0d 16 3c |. . redraw ....<| 000027f0 20 20 20 c8 99 20 22 57 69 6d 70 5f 46 6f 72 63 | .. "Wimp_Forc| 00002800 65 52 65 64 72 61 77 22 2c 77 68 61 6e 64 6c 65 |eRedraw",whandle| 00002810 25 2c 71 25 21 38 2c 71 25 21 31 32 2c 71 25 21 |%,q%!8,q%!12,q%!| 00002820 31 36 2c 71 25 21 32 30 0d 0d 20 06 20 cd 0d 0d |16,q%!20.. . ...| 00002830 2a 06 20 e1 0d 0d 34 06 20 3a 0d 0d 3e 1d 20 dd |*. ...4. :..>. .| 00002840 a4 5f 52 65 61 64 49 63 6f 6e 54 65 78 74 28 69 |._ReadIconText(i| 00002850 68 25 2c 77 68 25 29 0d 0d 48 0e 20 ea 20 52 65 |h%,wh%)..H. . Re| 00002860 73 75 6c 74 24 0d 0d 52 0d 20 71 25 21 30 3d 77 |sult$..R. q%!0=w| 00002870 68 25 0d 0d 5c 0d 20 71 25 21 34 3d 69 68 25 0d |h%..\. q%!4=ih%.| 00002880 0d 66 1f 20 c8 99 20 22 57 69 6d 70 5f 47 65 74 |.f. .. "Wimp_Get| 00002890 49 63 6f 6e 53 74 61 74 65 22 2c 2c 71 25 0d 0d |IconState",,q%..| 000028a0 70 40 20 e7 20 28 71 25 21 32 34 20 80 20 28 31 |p@ . (q%!24 . (1| 000028b0 3c 3c 38 29 29 3c 3e 30 20 8c 20 52 65 73 75 6c |<<8))<>0 . Resul| 000028c0 74 24 3d 24 28 71 25 21 32 38 29 20 8b 20 52 65 |t$=$(q%!28) . Re| 000028d0 73 75 6c 74 24 3d 24 28 71 25 2b 32 38 29 0d 0d |sult$=$(q%+28)..| 000028e0 7a 0d 20 3d 52 65 73 75 6c 74 24 0d 0d 84 06 20 |z. =Result$.... | 000028f0 3a 0d 0d 8e 21 20 dd 20 a4 47 65 74 53 74 72 28 |:...! . .GetStr(| 00002900 73 25 29 20 3a 20 f4 20 67 65 74 20 73 74 72 69 |s%) : . get stri| 00002910 6e 67 0d 0d 98 09 20 ea 20 6e 24 0d 0d a2 1b 20 |ng.... . n$.... | 00002920 c8 95 3f 73 25 3a 6e 24 2b 3d bd 3f 73 25 3a 73 |..?s%:n$+=.?s%:s| 00002930 25 2b 3d 31 3a ce 0d 0d ac 08 20 3d 6e 24 0d 0d |%+=1:..... =n$..| 00002940 b6 06 20 3a 0d 0d c0 31 20 dd f2 72 65 70 6f 72 |.. :...1 ..repor| 00002950 74 28 6c 69 6e 65 31 24 2c 6c 69 6e 65 32 24 2c |t(line1$,line2$,| 00002960 6c 69 6e 65 33 24 2c 6c 69 6e 65 34 24 2c 6c 69 |line3$,line4$,li| 00002970 6e 65 35 24 29 0d 0d ca 0f 20 ef 36 3a ff 22 53 |ne5$).... .6:."S| 00002980 48 55 54 22 0d 0d d4 43 20 e7 20 9f 3d 36 37 37 |HUT"...C . .=677| 00002990 39 38 20 84 20 9f 3d 32 31 34 20 8c 20 6c 69 6e |98 . .=214 . lin| 000029a0 65 35 24 3d 22 50 6c 65 61 73 65 20 63 68 65 63 |e5$="Please chec| 000029b0 6b 20 79 6f 75 72 20 73 61 76 65 20 66 69 6c 65 |k your save file| 000029c0 20 70 61 74 68 2e 22 0d 0d de 40 20 e7 20 9f 3d | path."...@ . .=| 000029d0 32 30 20 8c 20 6c 69 6e 65 35 24 3d 22 49 27 6d |20 . line5$="I'm| 000029e0 20 6e 6f 74 20 45 69 6e 73 74 65 69 6e 20 79 6f | not Einstein yo| 000029f0 75 20 6e 6f 77 2e 20 55 73 65 20 73 6d 61 6c 6c |u now. Use small| 00002a00 20 6c 69 6e 65 73 22 0d 0d e8 19 20 c8 99 20 22 | lines".... .. "| 00002a10 48 6f 75 72 67 6c 61 73 73 5f 53 6d 61 73 68 22 |Hourglass_Smash"| 00002a20 0d 0d f2 2b 20 f2 70 75 74 5f 69 63 6f 6e 5f 74 |...+ .put_icon_t| 00002a30 65 78 74 28 71 25 2c 52 65 70 6f 72 74 25 2c 34 |ext(q%,Report%,4| 00002a40 2c 6c 69 6e 65 31 24 2c 2d 31 29 0d 0d fc 2b 20 |,line1$,-1)...+ | 00002a50 f2 70 75 74 5f 69 63 6f 6e 5f 74 65 78 74 28 71 |.put_icon_text(q| 00002a60 25 2c 52 65 70 6f 72 74 25 2c 35 2c 6c 69 6e 65 |%,Report%,5,line| 00002a70 32 24 2c 2d 31 29 0d 0e 06 2b 20 f2 70 75 74 5f |2$,-1)...+ .put_| 00002a80 69 63 6f 6e 5f 74 65 78 74 28 71 25 2c 52 65 70 |icon_text(q%,Rep| 00002a90 6f 72 74 25 2c 36 2c 6c 69 6e 65 33 24 2c 2d 31 |ort%,6,line3$,-1| 00002aa0 29 0d 0e 10 2b 20 f2 70 75 74 5f 69 63 6f 6e 5f |)...+ .put_icon_| 00002ab0 74 65 78 74 28 71 25 2c 52 65 70 6f 72 74 25 2c |text(q%,Report%,| 00002ac0 37 2c 6c 69 6e 65 34 24 2c 2d 31 29 0d 0e 1a 2b |7,line4$,-1)...+| 00002ad0 20 f2 70 75 74 5f 69 63 6f 6e 5f 74 65 78 74 28 | .put_icon_text(| 00002ae0 71 25 2c 52 65 70 6f 72 74 25 2c 38 2c 6c 69 6e |q%,Report%,8,lin| 00002af0 65 35 24 2c 2d 31 29 0d 0e 24 38 20 f2 4f 70 65 |e5$,-1)..$8 .Ope| 00002b00 6e 5f 57 69 6e 64 6f 77 28 52 65 70 6f 72 74 25 |n_Window(Report%| 00002b10 2c 32 35 30 2c 30 2c 39 30 30 30 2c 36 30 30 2c |,250,0,9000,600,| 00002b20 71 25 21 32 30 2c 71 25 21 32 34 2c 2d 31 29 0d |q%!20,q%!24,-1).| 00002b30 0e 2e 0d 20 65 72 72 6f 72 25 3d b9 0d 0e 38 06 |... error%=...8.| 00002b40 20 e1 0d 0e 42 06 20 3a 0d 0e 4c 1e 20 dd f2 6b | ...B. :..L. ..k| 00002b50 65 79 28 77 69 6e 64 6f 77 25 2c 69 63 2c 78 25 |ey(window%,ic,x%| 00002b60 2c 61 73 63 25 29 0d 0e 56 0f 20 73 74 65 76 25 |,asc%)..V. stev%| 00002b70 3d 61 73 63 25 0d 0e 60 0e 20 c8 8e 20 61 73 63 |=asc%..`. .. asc| 00002b80 25 20 ca 0d 0e 6a 14 20 20 c9 20 31 33 20 20 3a |% ...j. . 13 :| 00002b90 20 f2 63 61 72 65 74 0d 0e 74 06 20 cb 0d 0e 7e | .caret..t. ...~| 00002ba0 06 20 e1 0d 0e 88 06 20 3a 0d 0e 92 0d 20 dd 20 |. ..... :.... . | 00002bb0 f2 63 61 72 65 74 0d 0e 9c 23 20 c8 99 20 22 57 |.caret...# .. "W| 00002bc0 69 6d 70 5f 47 65 74 43 61 72 65 74 50 6f 73 69 |imp_GetCaretPosi| 00002bd0 74 69 6f 6e 22 2c 2c 71 25 0d 0e a6 11 20 77 69 |tion",,q%.... wi| 00002be0 6e 64 6f 77 25 3d 71 25 21 30 0d 0e b0 11 20 69 |ndow%=q%!0.... i| 00002bf0 63 6f 6e 25 3d 71 25 21 34 2b 31 0d 0e ba 11 20 |con%=q%!4+1.... | 00002c00 c8 8e 20 77 69 6e 64 6f 77 25 20 ca 0d 0e c4 0d |.. window% .....| 00002c10 20 20 c9 20 53 61 76 65 25 0d 0e ce 11 20 20 20 | . Save%.... | 00002c20 c8 8e 20 69 63 6f 6e 25 20 ca 0d 0e d8 15 20 20 |.. icon% ..... | 00002c30 20 20 c9 20 37 20 3a 20 69 63 6f 6e 25 3d 36 0d | . 7 : icon%=6.| 00002c40 0e e2 1a 20 20 20 20 6b 65 79 25 3d b9 3a f2 53 |... key%=.:.S| 00002c50 61 76 65 3a cb 3a cb 3a e1 0d 0e ec 08 20 20 20 |ave:.:.:..... | 00002c60 cb 0d 0e f6 06 20 cb 0d 0f 00 53 20 c8 99 20 22 |..... ....S .. "| 00002c70 57 69 6d 70 5f 53 65 74 43 61 72 65 74 50 6f 73 |Wimp_SetCaretPos| 00002c80 69 74 69 6f 6e 22 2c 77 69 6e 64 6f 77 25 2c 69 |ition",window%,i| 00002c90 63 6f 6e 25 2c 2c 2c 2d 31 2c a9 28 a4 5f 52 65 |con%,,,-1,.(._Re| 00002ca0 61 64 49 63 6f 6e 54 65 78 74 28 69 63 6f 6e 25 |adIconText(icon%| 00002cb0 2c 77 69 6e 64 6f 77 25 29 29 0d 0f 0a 06 20 e1 |,window%)).... .| 00002cc0 0d 0f 14 06 20 3a 0d 0f 1e 4c 20 f4 20 2d 2d 2d |.... :...L . ---| 00002cd0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00002ce0 2d 2d 2d 2d 2d 2d 2d 20 44 72 61 67 20 42 6f 78 |------- Drag Box| 00002cf0 20 50 72 6f 63 27 73 20 2d 2d 2d 2d 2d 2d 2d 2d | Proc's --------| 00002d00 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00002d10 2d 2d 0d 0f 28 06 20 3a 0d 0f 32 0f 20 dd 20 f2 |--..(. :..2. . .| 00002d20 64 72 61 67 5f 69 74 0d 0f 3c 0e 20 21 71 25 3d |drag_it..<. !q%=| 00002d30 53 61 76 65 25 0d 0f 46 0b 20 71 25 21 34 3d 39 |Save%..F. q%!4=9| 00002d40 0d 0f 50 1e 20 c8 99 22 57 69 6d 70 5f 47 65 74 |..P. .."Wimp_Get| 00002d50 49 63 6f 6e 53 74 61 74 65 22 2c 2c 71 25 0d 0f |IconState",,q%..| 00002d60 5a 11 20 64 62 6d 69 6e 78 25 3d 71 25 21 38 0d |Z. dbminx%=q%!8.| 00002d70 0f 64 12 20 64 62 6d 69 6e 79 25 3d 71 25 21 31 |.d. dbminy%=q%!1| 00002d80 32 0d 0f 6e 12 20 64 62 6d 61 78 78 25 3d 71 25 |2..n. dbmaxx%=q%| 00002d90 21 31 36 0d 0f 78 12 20 64 62 6d 61 78 79 25 3d |!16..x. dbmaxy%=| 00002da0 71 25 21 32 30 0d 0f 82 0e 20 21 71 25 3d 53 61 |q%!20.... !q%=Sa| 00002db0 76 65 25 0d 0f 8c 20 20 c8 99 20 22 57 69 6d 70 |ve%... .. "Wimp| 00002dc0 5f 47 65 74 57 69 6e 64 6f 77 49 6e 66 6f 22 2c |_GetWindowInfo",| 00002dd0 2c 71 25 0d 0f 96 0e 20 77 78 30 25 3d 71 25 21 |,q%.... wx0%=q%!| 00002de0 34 0d 0f a0 0e 20 77 79 30 25 3d 71 25 21 38 0d |4.... wy0%=q%!8.| 00002df0 0f aa 0f 20 77 78 31 25 3d 71 25 21 31 32 0d 0f |... wx1%=q%!12..| 00002e00 b4 0f 20 77 79 31 25 3d 71 25 21 31 36 0d 0f be |.. wy1%=q%!16...| 00002e10 0e 20 21 71 25 3d 53 61 76 65 25 0d 0f c8 0b 20 |. !q%=Save%.... | 00002e20 71 25 21 34 3d 35 0d 0f d2 16 20 71 25 21 38 3d |q%!4=5.... q%!8=| 00002e30 77 78 30 25 2b 64 62 6d 69 6e 78 25 0d 0f dc 17 |wx0%+dbminx%....| 00002e40 20 71 25 21 31 32 3d 77 79 31 25 2b 64 62 6d 69 | q%!12=wy1%+dbmi| 00002e50 6e 79 25 0d 0f e6 17 20 71 25 21 31 36 3d 77 78 |ny%.... q%!16=wx| 00002e60 30 25 2b 64 62 6d 61 78 78 25 0d 0f f0 17 20 71 |0%+dbmaxx%.... q| 00002e70 25 21 32 30 3d 77 79 31 25 2b 64 62 6d 61 78 79 |%!20=wy1%+dbmaxy| 00002e80 25 0d 0f fa 0c 20 71 25 21 32 34 3d 30 0d 10 04 |%.... q%!24=0...| 00002e90 0c 20 71 25 21 32 38 3d 30 0d 10 0e 1a 20 c8 99 |. q%!28=0.... ..| 00002ea0 20 22 57 69 6d 70 5f 44 72 61 67 42 6f 78 22 2c | "Wimp_DragBox",| 00002eb0 2c 71 25 0d 10 18 06 20 e1 0d 10 22 06 20 3a 0d |,q%.... ...". :.| 00002ec0 10 2c 10 20 dd 20 f2 64 72 61 67 5f 65 6e 64 0d |.,. . .drag_end.| 00002ed0 10 36 21 20 c8 99 20 22 57 69 6d 70 5f 47 65 74 |.6! .. "Wimp_Get| 00002ee0 50 6f 69 6e 74 65 72 49 6e 66 6f 22 2c 2c 71 25 |PointerInfo",,q%| 00002ef0 0d 10 40 0e 20 64 62 6d 78 25 3d 21 71 25 0d 10 |..@. dbmx%=!q%..| 00002f00 4a 0f 20 64 62 6d 79 25 3d 71 25 21 34 0d 10 54 |J. dbmy%=q%!4..T| 00002f10 0f 20 64 62 77 25 3d 71 25 21 31 32 0d 10 5e 0f |. dbw%=q%!12..^.| 00002f20 20 64 62 69 25 3d 71 25 21 31 36 0d 10 68 0e 20 | dbi%=q%!16..h. | 00002f30 21 71 25 3d 53 61 76 65 25 0d 10 72 0b 20 71 25 |!q%=Save%..r. q%| 00002f40 21 34 3d 36 0d 10 7c 1f 20 c8 99 20 22 57 69 6d |!4=6..|. .. "Wim| 00002f50 70 5f 47 65 74 49 63 6f 6e 53 74 61 74 65 22 2c |p_GetIconState",| 00002f60 2c 71 25 0d 10 86 17 20 73 61 76 65 6e 61 6d 65 |,q%.... savename| 00002f70 24 3d 24 28 71 25 21 32 38 29 0d 10 90 15 20 f2 |$=$(q%!28).... .| 00002f80 73 65 6e 64 28 73 61 76 65 6e 61 6d 65 24 29 0d |send(savename$).| 00002f90 10 9a 06 20 cd 0d 10 a4 06 20 e1 0d 10 ae 06 20 |... ..... ..... | 00002fa0 3a 0d 10 b8 17 20 dd 20 f2 73 65 6e 64 28 6c 65 |:.... . .send(le| 00002fb0 61 66 6e 61 6d 65 24 29 0d 10 c2 36 20 e7 20 a7 |afname$)...6 . .| 00002fc0 6c 65 61 66 6e 61 6d 65 24 2c 22 2e 22 29 3c 3e |leafname$,".")<>| 00002fd0 30 20 8c 20 6c 65 61 66 6e 61 6d 65 24 3d a4 6c |0 . leafname$=.l| 00002fe0 65 61 66 28 6c 65 61 66 6e 61 6d 65 24 29 0d 10 |eaf(leafname$)..| 00002ff0 cc 20 20 21 71 25 3d 35 32 2b 28 a9 28 6c 65 61 |. !q%=52+(.(lea| 00003000 66 6e 61 6d 65 24 29 20 81 20 34 29 2a 34 0d 10 |fname$) . 4)*4..| 00003010 d6 0c 20 71 25 21 31 32 3d 30 0d 10 e0 0c 20 71 |.. q%!12=0.... q| 00003020 25 21 31 36 3d 31 0d 10 ea 0f 20 71 25 21 32 30 |%!16=1.... q%!20| 00003030 3d 64 62 77 25 0d 10 f4 0f 20 71 25 21 32 34 3d |=dbw%.... q%!24=| 00003040 64 62 69 25 0d 10 fe 10 20 71 25 21 32 38 3d 64 |dbi%.... q%!28=d| 00003050 62 6d 78 25 0d 11 08 10 20 71 25 21 33 32 3d 64 |bmx%.... q%!32=d| 00003060 62 6d 79 25 0d 11 12 0c 20 71 25 21 33 36 3d 31 |bmy%.... q%!36=1| 00003070 0d 11 1c 0f 20 71 25 21 34 30 3d 26 46 46 46 0d |.... q%!40=&FFF.| 00003080 11 26 1a 20 24 28 71 25 2b 34 34 29 3d 6c 65 61 |.&. $(q%+44)=lea| 00003090 66 6e 61 6d 65 24 2b bd 30 0d 11 30 25 20 c8 99 |fname$+.0..0% ..| 000030a0 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 73 61 | "Wimp_SendMessa| 000030b0 67 65 22 2c 31 37 2c 71 25 2c 64 62 77 25 0d 11 |ge",17,q%,dbw%..| 000030c0 3a 06 20 e1 0d 11 44 06 20 3a 0d 11 4e 11 20 dd |:. ...D. :..N. .| 000030d0 a4 73 74 72 69 6e 67 28 61 25 29 0d 11 58 29 20 |.string(a%)..X) | 000030e0 ea 62 24 3a 62 24 3d 22 22 3a c8 95 3f 61 25 3c |.b$:b$="":..?a%<| 000030f0 3e 30 20 3a 62 24 2b 3d bd 3f 61 25 3a 61 25 2b |>0 :b$+=.?a%:a%+| 00003100 3d 31 3a ce 0d 11 62 08 20 3d 62 24 0d 11 6c 06 |=1:...b. =b$..l.| 00003110 20 3a 0d 11 76 12 20 dd a4 6c 65 61 66 28 70 61 | :..v. ..leaf(pa| 00003120 74 68 24 29 0d 11 80 13 20 c8 95 20 a7 70 61 74 |th$).... .. .pat| 00003130 68 24 2c 22 2e 22 29 0d 11 8a 20 20 70 61 74 68 |h$,".")... path| 00003140 24 3d c1 70 61 74 68 24 2c a7 70 61 74 68 24 2c |$=.path$,.path$,| 00003150 22 2e 22 29 2b 31 29 0d 11 94 06 20 ce 0d 11 9e |".")+1).... ....| 00003160 0b 20 3d 70 61 74 68 24 0d 11 a8 06 20 3a 0d 11 |. =path$.... :..| 00003170 b2 4b 20 f4 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |.K . -----------| 00003180 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00003190 20 4d 61 69 6e 20 50 72 6f 67 72 61 6d 20 2d 2d | Main Program --| 000031a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 000031b0 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 11 bc 06 20 3a 0d |---------.... :.| 000031c0 11 c6 0b 20 dd f2 53 61 76 65 0d 11 d0 15 20 e7 |... ..Save.... .| 000031d0 20 66 69 6c 65 69 6e 24 3d 22 22 20 8c 20 e1 0d | filein$="" . ..| 000031e0 11 da 16 20 c8 99 20 22 48 6f 75 72 67 6c 61 73 |... .. "Hourglas| 000031f0 73 5f 4f 6e 22 0d 11 e4 0c 20 73 61 6d 65 25 3d |s_On".... same%=| 00003200 a3 0d 11 ee 1f 20 c8 99 20 22 57 69 6d 70 5f 43 |..... .. "Wimp_C| 00003210 72 65 61 74 65 4d 65 6e 75 22 2c 2d 31 2c 2d 31 |reateMenu",-1,-1| 00003220 0d 11 f8 33 20 e7 20 66 69 6c 65 6f 75 74 24 3c |...3 . fileout$<| 00003230 3e a4 5f 52 65 61 64 49 63 6f 6e 54 65 78 74 28 |>._ReadIconText(| 00003240 36 2c 53 61 76 65 25 29 20 80 20 6b 65 79 25 3d |6,Save%) . key%=| 00003250 b9 20 8c 0d 12 02 2e 20 20 66 69 6c 65 6f 75 74 |. ..... fileout| 00003260 24 3d a4 5f 52 65 61 64 49 63 6f 6e 54 65 78 74 |$=._ReadIconText| 00003270 28 36 2c 53 61 76 65 25 29 3a 73 61 6d 65 25 3d |(6,Save%):same%=| 00003280 b9 0d 12 0c 37 20 20 e7 20 c0 66 69 6c 65 6f 75 |....7 . .fileou| 00003290 74 24 2c 34 29 3c 3e 22 43 46 53 23 22 20 8c 20 |t$,4)<>"CFS#" . | 000032a0 66 69 6c 65 6f 75 74 24 3d 22 43 46 53 23 22 2b |fileout$="CFS#"+| 000032b0 66 69 6c 65 6f 75 74 24 0d 12 16 06 20 cd 0d 12 |fileout$.... ...| 000032c0 20 0f 20 e7 20 64 69 72 25 3d a3 20 8c 0d 12 2a | . . dir%=. ...*| 000032d0 2f 20 20 ff 22 43 4f 50 59 20 22 2b 66 69 6c 65 |/ ."COPY "+file| 000032e0 69 6e 24 2b 22 20 22 2b 66 69 6c 65 6f 75 74 24 |in$+" "+fileout$| 000032f0 2b 22 20 41 20 7e 43 20 46 20 52 22 0d 12 34 06 |+" A ~C F R"..4.| 00003300 20 cd 0d 12 3e 0f 20 e7 20 64 69 72 25 3d b9 20 | ...>. . dir%=. | 00003310 8c 0d 12 48 1c 20 20 e7 20 c0 66 69 6c 65 69 6e |...H. . .filein| 00003320 24 2c 34 29 3d 22 43 46 53 23 22 20 8c 0d 12 52 |$,4)="CFS#" ...R| 00003330 30 20 20 20 ff 22 43 4f 50 59 20 22 2b 66 69 6c |0 ."COPY "+fil| 00003340 65 69 6e 24 2b 22 20 22 2b 66 69 6c 65 6f 75 74 |ein$+" "+fileout| 00003350 24 2b 22 20 41 20 7e 43 20 46 20 52 22 0d 12 5c |$+" A ~C F R"..\| 00003360 07 20 20 cd 0d 12 66 1d 20 20 e7 20 c0 66 69 6c |. ...f. . .fil| 00003370 65 69 6e 24 2c 34 29 3c 3e 22 43 46 53 23 22 20 |ein$,4)<>"CFS#" | 00003380 8c 0d 12 70 14 20 20 20 f2 63 61 74 28 66 69 6c |...p. .cat(fil| 00003390 65 69 6e 24 29 0d 12 7a 0e 20 20 20 e3 49 3d 31 |ein$)..z. .I=1| 000033a0 b8 6e 25 0d 12 84 31 20 20 20 20 63 6f 70 79 24 |.n%...1 copy$| 000033b0 3d 70 61 74 68 24 28 49 29 2b 22 2e 22 2b a4 63 |=path$(I)+"."+.c| 000033c0 68 6f 70 64 69 72 28 70 72 6f 67 24 28 49 29 2c |hopdir(prog$(I),| 000033d0 22 2e 22 29 0d 12 8e 18 20 20 20 20 74 6f 24 3d |".").... to$=| 000033e0 22 43 46 53 23 22 2b 63 6f 70 79 24 0d 12 98 14 |"CFS#"+copy$....| 000033f0 20 20 20 20 f2 69 6e 66 6f 28 63 6f 70 79 24 29 | .info(copy$)| 00003400 0d 12 a2 90 20 20 20 20 e7 20 66 69 6c 65 74 79 |.... . filety| 00003410 70 65 24 3c 3e 22 44 39 36 22 20 80 20 66 69 6c |pe$<>"D96" . fil| 00003420 65 74 79 70 65 24 3c 3e 22 46 46 39 22 20 80 20 |etype$<>"FF9" . | 00003430 a4 63 68 6f 70 64 69 72 28 63 6f 70 79 24 2c 22 |.chopdir(copy$,"| 00003440 2e 22 29 3c 3e 22 21 42 6f 6f 74 22 20 80 20 a4 |.")<>"!Boot" . .| 00003450 63 68 6f 70 64 69 72 28 63 6f 70 79 24 2c 22 2e |chopdir(copy$,".| 00003460 22 29 3c 3e 22 21 62 6f 6f 74 22 20 8c 20 ff 22 |")<>"!boot" . ."| 00003470 43 4f 50 59 20 22 2b 63 6f 70 79 24 2b 22 20 22 |COPY "+copy$+" "| 00003480 2b 74 6f 24 2b 22 20 41 20 7e 43 20 46 20 52 22 |+to$+" A ~C F R"| 00003490 0d 12 ac 0a 20 20 20 ed 20 49 0d 12 b6 07 20 20 |.... . I.... | 000034a0 cd 0d 12 c0 06 20 cd 0d 12 ca 3f 20 e7 20 73 61 |..... ....? . sa| 000034b0 6d 65 25 3d b9 20 80 20 c0 66 69 6c 65 6f 75 74 |me%=. . .fileout| 000034c0 24 2c 34 29 3c 3e 22 43 46 53 23 22 20 8c 20 66 |$,4)<>"CFS#" . f| 000034d0 69 6c 65 69 6e 24 3d 22 43 46 53 23 22 2b 66 69 |ilein$="CFS#"+fi| 000034e0 6c 65 6f 75 74 24 0d 12 d4 47 20 e7 20 73 61 6d |leout$...G . sam| 000034f0 65 25 3d b9 20 80 20 c0 66 69 6c 65 6f 75 74 24 |e%=. . .fileout$| 00003500 2c 34 29 3d 22 43 46 53 23 22 20 8c 20 66 69 6c |,4)="CFS#" . fil| 00003510 65 69 6e 24 3d c2 66 69 6c 65 6f 75 74 24 2c a9 |ein$=.fileout$,.| 00003520 28 66 69 6c 65 6f 75 74 24 29 2d 34 29 0d 12 de |(fileout$)-4)...| 00003530 21 20 e7 20 73 61 6d 65 25 3d b9 20 8c 20 6f 72 |! . same%=. . or| 00003540 67 66 69 6c 65 24 3d 66 69 6c 65 69 6e 24 0d 12 |gfile$=filein$..| 00003550 e8 18 20 c8 94 20 66 69 6c 65 69 6e 24 2c 66 69 |.. .. filein$,fi| 00003560 6c 65 6f 75 74 24 0d 12 f2 20 20 c8 94 20 66 69 |leout$... .. fi| 00003570 6c 65 69 6e 70 61 74 68 24 2c 66 69 6c 65 6f 75 |leinpath$,fileou| 00003580 74 70 61 74 68 24 0d 12 fc 14 20 f2 69 6e 66 6f |tpath$.... .info| 00003590 28 6f 72 67 66 69 6c 65 24 29 0d 13 06 0f 20 e7 |(orgfile$).... .| 000035a0 20 64 69 72 25 3d a3 20 8c 0d 13 10 89 20 20 e7 | dir%=. ..... .| 000035b0 20 66 69 6c 65 74 79 70 65 24 3d 22 44 39 36 22 | filetype$="D96"| 000035c0 20 8c 20 f2 69 6e 66 6f 28 66 69 6c 65 69 6e 24 | . .info(filein$| 000035d0 29 3a 73 74 65 25 3d a4 69 63 6f 6e 5f 6e 65 77 |):ste%=.icon_new| 000035e0 73 70 72 69 74 65 28 53 61 76 65 25 2c 39 2c 22 |sprite(Save%,9,"| 000035f0 66 69 6c 65 5f 22 2b 66 69 6c 65 74 79 70 65 24 |file_"+filetype$| 00003600 2c 2d 31 29 20 8b 20 73 74 65 25 3d a4 69 63 6f |,-1) . ste%=.ico| 00003610 6e 5f 6e 65 77 73 70 72 69 74 65 28 53 61 76 65 |n_newsprite(Save| 00003620 25 2c 39 2c 22 66 69 6c 65 5f 44 39 36 22 2c 2d |%,9,"file_D96",-| 00003630 31 29 0d 13 1a 06 20 cd 0d 13 24 13 20 f2 69 6e |1).... ...$. .in| 00003640 66 6f 28 66 69 6c 65 69 6e 24 29 0d 13 2e 2b 20 |fo(filein$)...+ | 00003650 f2 70 75 74 5f 69 63 6f 6e 5f 74 65 78 74 28 71 |.put_icon_text(q| 00003660 25 2c 54 72 61 6e 25 2c 31 30 2c 66 69 6c 65 69 |%,Tran%,10,filei| 00003670 6e 24 2c 2d 31 29 0d 13 38 2c 20 f2 70 75 74 5f |n$,-1)..8, .put_| 00003680 69 63 6f 6e 5f 74 65 78 74 28 71 25 2c 54 72 61 |icon_text(q%,Tra| 00003690 6e 25 2c 31 33 2c 66 69 6c 65 6f 75 74 24 2c 2d |n%,13,fileout$,-| 000036a0 31 29 0d 13 42 2b 20 f2 70 75 74 5f 69 63 6f 6e |1)..B+ .put_icon| 000036b0 5f 74 65 78 74 28 71 25 2c 53 61 76 65 25 2c 36 |_text(q%,Save%,6| 000036c0 2c 66 69 6c 65 6f 75 74 24 2c 2d 31 29 0d 13 4c |,fileout$,-1)..L| 000036d0 07 20 ef 37 0d 13 56 19 20 f2 43 6c 6f 73 65 5f |. .7..V. .Close_| 000036e0 57 69 6e 64 6f 77 28 54 72 61 6e 25 29 0d 13 60 |Window(Tran%)..`| 000036f0 16 20 e6 30 2c 37 3a ec 30 2c 30 3a df 31 33 30 |. .0,7:.0,0:.130| 00003700 30 2c 30 0d 13 6a 19 20 c8 99 20 22 48 6f 75 72 |0,0..j. .. "Hour| 00003710 67 6c 61 73 73 5f 53 6d 61 73 68 22 0d 13 74 0b |glass_Smash"..t.| 00003720 20 6b 65 79 25 3d a3 0d 13 7e 06 20 e1 0d 13 88 | key%=...~. ....| 00003730 06 20 3a 0d 13 92 13 20 dd f2 69 6e 66 6f 28 66 |. :.... ..info(f| 00003740 69 6c 65 32 24 29 0d 13 9c 11 20 66 69 6c 65 24 |ile2$).... file$| 00003750 3d 66 69 6c 65 32 24 0d 13 a6 35 20 c8 99 20 22 |=file2$...5 .. "| 00003760 4f 53 5f 46 69 6c 65 22 2c 35 2c 66 69 6c 65 32 |OS_File",5,file2| 00003770 24 20 b8 20 74 79 70 65 25 2c 2c 6c 6f 61 64 25 |$ . type%,,load%| 00003780 2c 65 78 65 63 25 2c 73 69 7a 65 25 0d 13 b0 19 |,exec%,size%....| 00003790 20 e7 20 74 79 70 65 25 3d 32 20 8c 20 64 69 72 | . type%=2 . dir| 000037a0 25 3d b9 3a e1 0d 13 ba 37 20 c8 99 20 22 4f 53 |%=.:....7 .. "OS| 000037b0 5f 46 53 43 6f 6e 74 72 6f 6c 22 2c 31 38 2c 2c |_FSControl",18,,| 000037c0 28 26 46 46 46 20 80 20 6c 6f 61 64 25 3e 3e 3e |(&FFF . load%>>>| 000037d0 38 29 20 b8 20 2c 2c 62 25 2c 63 25 0d 13 c4 4e |8) . ,,b%,c%...N| 000037e0 20 66 69 6c 65 6e 61 6d 65 24 3d bd 28 62 25 20 | filename$=.(b% | 000037f0 80 20 26 46 46 29 2b bd 28 28 62 25 3e 3e 38 29 |. &FF)+.((b%>>8)| 00003800 20 80 20 26 46 46 29 2b bd 28 28 62 25 3e 3e 31 | . &FF)+.((b%>>1| 00003810 36 29 20 80 20 26 46 46 29 2b bd 28 28 62 25 3e |6) . &FF)+.((b%>| 00003820 3e 32 34 29 80 20 26 46 46 29 0d 13 ce 4f 20 66 |>24). &FF)...O f| 00003830 69 6c 65 6e 61 6d 65 24 2b 3d bd 28 63 25 20 80 |ilename$+=.(c% .| 00003840 20 26 46 46 29 2b bd 28 28 63 25 3e 3e 38 29 20 | &FF)+.((c%>>8) | 00003850 80 20 26 46 46 29 2b bd 28 28 63 25 3e 3e 31 36 |. &FF)+.((c%>>16| 00003860 29 20 80 20 26 46 46 29 2b bd 28 28 63 25 3e 3e |) . &FF)+.((c%>>| 00003870 32 34 29 80 20 26 46 46 29 0d 13 d8 27 20 66 69 |24). &FF)...' fi| 00003880 6c 65 74 79 70 65 24 3d 22 26 22 2b c3 7e 28 26 |letype$="&"+.~(&| 00003890 46 46 46 20 80 20 6c 6f 61 64 25 3e 3e 3e 38 29 |FFF . load%>>>8)| 000038a0 0d 13 e2 10 20 64 61 74 65 3d 62 6c 6f 63 6b 25 |.... date=block%| 000038b0 0d 13 ec 17 20 64 61 74 65 3f 34 3d 6c 6f 61 64 |.... date?4=load| 000038c0 25 20 80 20 26 46 46 0d 13 f6 1b 20 64 61 74 65 |% . &FF.... date| 000038d0 3f 33 3d 65 78 65 63 25 3e 3e 32 34 20 80 20 26 |?3=exec%>>24 . &| 000038e0 46 46 0d 14 00 1b 20 64 61 74 65 3f 32 3d 65 78 |FF.... date?2=ex| 000038f0 65 63 25 3e 3e 31 36 20 80 20 26 46 46 0d 14 0a |ec%>>16 . &FF...| 00003900 1a 20 64 61 74 65 3f 31 3d 65 78 65 63 25 3e 3e |. date?1=exec%>>| 00003910 38 20 80 20 26 46 46 0d 14 14 17 20 64 61 74 65 |8 . &FF.... date| 00003920 3f 30 3d 65 78 65 63 25 20 80 20 26 46 46 0d 14 |?0=exec% . &FF..| 00003930 1e 36 20 c8 99 20 22 4f 53 5f 43 6f 6e 76 65 72 |.6 .. "OS_Conver| 00003940 74 53 74 61 6e 64 61 72 64 44 61 74 65 41 6e 64 |tStandardDateAnd| 00003950 54 69 6d 65 22 2c 64 61 74 65 2c 62 6c 6f 63 6b |Time",date,block| 00003960 25 2c 32 38 0d 14 28 1b 20 66 69 6c 65 64 61 74 |%,28..(. filedat| 00003970 65 24 3d c0 24 62 6c 6f 63 6b 25 2c 32 30 29 0d |e$=.$block%,20).| 00003980 14 32 0e 20 20 20 20 c8 8e 20 b9 20 ca 0d 14 3c |.2. .. . ...<| 00003990 44 20 20 20 20 20 20 20 c9 20 73 69 7a 65 25 3e |D . size%>| 000039a0 3d 31 30 32 34 20 3a 20 73 69 7a 65 24 3d c3 28 |=1024 : size$=.(| 000039b0 73 69 7a 65 25 81 31 30 32 34 29 2b 22 2e 22 2b |size%.1024)+"."+| 000039c0 c3 28 73 69 7a 65 25 83 31 30 32 34 29 2b 22 4b |.(size%.1024)+"K| 000039d0 22 0d 14 46 0c 20 20 20 20 20 20 20 7f 0d 14 50 |"..F. ...P| 000039e0 17 20 20 20 20 20 20 20 73 69 7a 65 24 3d c3 73 |. size$=.s| 000039f0 69 7a 65 25 0d 14 5a 09 20 20 20 20 cb 0d 14 64 |ize%..Z. ...d| 00003a00 18 20 6c 6f 61 64 24 3d 22 26 22 2b c3 7e 28 6c |. load$="&"+.~(l| 00003a10 6f 61 64 25 29 0d 14 6e 18 20 65 78 65 63 24 3d |oad%)..n. exec$=| 00003a20 22 26 22 2b c3 7e 28 65 78 65 63 25 29 0d 14 78 |"&"+.~(exec%)..x| 00003a30 29 20 66 69 6c 65 74 79 70 65 24 3d c2 66 69 6c |) filetype$=.fil| 00003a40 65 74 79 70 65 24 2c a9 28 66 69 6c 65 74 79 70 |etype$,.(filetyp| 00003a50 65 24 29 2d 31 29 0d 14 82 0c 20 f4 20 66 69 6c |e$)-1).... . fil| 00003a60 65 24 0d 14 8c 10 20 f4 20 66 69 6c 65 74 79 70 |e$.... . filetyp| 00003a70 65 24 0d 14 96 10 20 f4 20 66 69 6c 65 6e 61 6d |e$.... . filenam| 00003a80 65 24 0d 14 a0 0c 20 f4 20 6c 6f 61 64 24 0d 14 |e$.... . load$..| 00003a90 aa 0c 20 f4 20 65 78 65 63 24 0d 14 b4 0c 20 f4 |.. . exec$.... .| 00003aa0 20 73 69 7a 65 24 0d 14 be 10 20 f4 20 66 69 6c | size$.... . fil| 00003ab0 65 64 61 74 65 24 0d 14 c8 06 20 e1 0d 14 d2 06 |edate$.... .....| 00003ac0 20 3a 0d 14 dc 18 20 dd 20 a4 63 68 6f 70 73 74 | :.... . .chopst| 00003ad0 72 28 6e 24 2c 63 68 72 24 29 0d 14 e6 08 20 d1 |r(n$,chr$).... .| 00003ae0 3d 30 0d 14 f0 06 20 f5 0d 14 fa 15 20 20 6e 24 |=0.... ..... n$| 00003af0 3d c0 6e 24 2c a9 28 6e 24 29 2d 31 29 0d 15 04 |=.n$,.(n$)-1)...| 00003b00 11 20 20 e7 20 91 3e 35 30 30 20 8c 20 e0 0d 15 |. . .>500 . ...| 00003b10 0e 12 20 fd 20 c2 6e 24 2c 31 29 3d 63 68 72 24 |.. . .n$,1)=chr$| 00003b20 0d 15 18 14 20 6e 24 3d c0 6e 24 2c a9 28 6e 24 |.... n$=.n$,.(n$| 00003b30 29 2d 31 29 0d 15 22 08 20 3d 6e 24 0d 15 2c 06 |)-1)..". =n$..,.| 00003b40 20 3a 0d 15 36 18 20 dd 20 a4 63 68 6f 70 64 69 | :..6. . .chopdi| 00003b50 72 28 6e 24 2c 63 68 72 24 29 0d 15 40 1a 20 64 |r(n$,chr$)..@. d| 00003b60 69 72 32 24 3d 6e 24 3a 63 6f 75 6e 74 25 3d 30 |ir2$=n$:count%=0| 00003b70 3a d1 3d 30 0d 15 4a 06 20 f5 0d 15 54 0e 20 63 |:.=0..J. ...T. c| 00003b80 6f 75 6e 74 25 2b 3d 31 0d 15 5e 1e 20 20 64 69 |ount%+=1..^. di| 00003b90 72 32 24 3d c0 64 69 72 32 24 2c a9 28 64 69 72 |r2$=.dir2$,.(dir| 00003ba0 32 24 29 2d 31 29 0d 15 68 11 20 20 e7 20 91 3e |2$)-1)..h. . .>| 00003bb0 35 30 30 20 8c 20 e0 0d 15 72 15 20 fd 20 c2 64 |500 . ...r. . .d| 00003bc0 69 72 32 24 2c 31 29 3d 63 68 72 24 0d 15 7c 16 |ir2$,1)=chr$..|.| 00003bd0 20 64 69 72 32 24 3d c2 6e 24 2c 63 6f 75 6e 74 | dir2$=.n$,count| 00003be0 25 29 0d 15 86 0b 20 3d 64 69 72 32 24 0d 15 90 |%).... =dir2$...| 00003bf0 06 20 3a 0d 15 9a 12 20 dd 20 f2 63 61 74 28 72 |. :.... . .cat(r| 00003c00 6f 6f 74 24 29 0d 15 a4 2b 20 6e 25 3d 30 3a 6c |oot$)...+ n%=0:l| 00003c10 65 6e 67 74 68 25 3d a9 28 72 6f 6f 74 24 29 3a |ength%=.(root$):| 00003c20 6d 61 78 6e 25 3d 30 3a 6d 61 78 6e 32 25 3d 30 |maxn%=0:maxn2%=0| 00003c30 0d 15 ae 2a 20 73 74 65 70 68 65 6e 25 3d a4 62 |...* stephen%=.b| 00003c40 72 61 6e 63 68 28 72 6f 6f 74 24 2c 72 6f 6f 74 |ranch(root$,root| 00003c50 24 2c 30 29 3a 6e 25 2d 3d 31 0d 15 b8 41 20 f4 |$,0):n%-=1...A .| 00003c60 20 46 4f 52 49 3d 31 54 4f 6e 25 3a 50 52 49 4e | FORI=1TOn%:PRIN| 00003c70 54 70 61 74 68 24 28 49 29 2b 22 2e 22 2b 46 4e |Tpath$(I)+"."+FN| 00003c80 63 68 6f 70 64 69 72 28 70 72 6f 67 24 28 49 29 |chopdir(prog$(I)| 00003c90 2c 22 2e 22 29 3a 4e 45 58 54 49 0d 15 c2 06 20 |,"."):NEXTI.... | 00003ca0 e1 0d 15 cc 06 20 3a 0d 15 d6 1b 20 dd 20 a4 62 |..... :.... . .b| 00003cb0 72 61 6e 63 68 28 66 24 2c 6c 65 61 66 24 2c 79 |ranch(f$,leaf$,y| 00003cc0 25 29 0d 15 e0 0c 20 ea 20 69 25 2c 6c 25 0d 15 |%).... . i%,l%..| 00003cd0 ea 0a 20 6c 25 3d 6e 25 0d 15 f4 0a 20 6e 25 2b |.. l%=n%.... n%+| 00003ce0 3d 31 0d 15 fe 16 20 f4 20 4a 75 73 74 20 46 69 |=1.... . Just Fi| 00003cf0 6c 65 20 4e 61 6d 65 73 0d 16 08 18 20 6e 32 24 |le Names.... n2$| 00003d00 3d c3 28 79 25 29 2b 22 2e 22 2b 6c 65 61 66 24 |=.(y%)+"."+leaf$| 00003d10 0d 16 12 1f 20 c8 99 20 22 58 4f 53 5f 46 69 6c |.... .. "XOS_Fil| 00003d20 65 22 2c 35 2c 66 24 20 b8 20 74 79 70 65 25 0d |e",5,f$ . type%.| 00003d30 16 1c 15 20 f4 20 46 75 6c 6c 20 46 69 6c 65 20 |... . Full File | 00003d40 50 61 74 68 0d 16 26 0a 20 6e 24 3d 66 24 0d 16 |Path..&. n$=f$..| 00003d50 30 18 20 6e 24 3d a4 63 68 6f 70 73 74 72 28 6e |0. n$=.chopstr(n| 00003d60 24 2c 22 2e 22 29 0d 16 3a 2f 20 e7 20 c2 6e 24 |$,".")..:/ . .n$| 00003d70 2c 31 29 3c 3e 22 24 22 20 8c 20 64 69 72 32 24 |,1)<>"$" . dir2$| 00003d80 28 6c 25 29 3d a4 63 68 6f 70 64 69 72 28 6e 24 |(l%)=.chopdir(n$| 00003d90 2c 22 2e 22 29 0d 16 44 21 20 e7 20 a9 28 6e 24 |,".")..D! . .(n$| 00003da0 29 3e 6c 65 6e 67 74 68 25 20 8c 20 6e 32 24 3d |)>length% . n2$=| 00003db0 22 22 2b 6e 32 24 0d 16 4e 1a 20 e7 20 79 25 3e |""+n2$..N. . y%>| 00003dc0 6d 61 78 6e 25 20 8c 20 6d 61 78 6e 25 3d 79 25 |maxn% . maxn%=y%| 00003dd0 0d 16 58 17 20 e7 20 79 25 3d 30 20 8c 20 6d 61 |..X. . y%=0 . ma| 00003de0 78 6e 32 25 2b 3d 31 0d 16 62 10 20 e7 20 74 79 |xn2%+=1..b. . ty| 00003df0 70 65 25 3d 32 20 8c 0d 16 6c 12 20 69 25 3d 30 |pe%=2 ...l. i%=0| 00003e00 3a 64 69 63 6b 32 25 3d 30 0d 16 76 06 20 f5 0d |:dick2%=0..v. ..| 00003e10 16 80 34 20 20 c8 99 20 22 58 4f 53 5f 47 42 50 |..4 .. "XOS_GBP| 00003e20 42 22 2c 39 2c 66 24 2c 71 25 2c 31 2c 69 25 2c |B",9,f$,q%,1,i%,| 00003e30 26 31 30 30 2c 22 2a 22 20 b8 20 2c 2c 2c 72 25 |&100,"*" . ,,,r%| 00003e40 2c 69 25 0d 16 8a 0e 20 20 e7 20 72 25 3e 30 20 |,i%.... . r%>0 | 00003e50 8c 0d 16 94 0a 20 20 20 ef 32 31 0d 16 9e 1b 20 |..... .21.... | 00003e60 20 20 f4 20 50 52 49 4e 54 53 50 43 31 32 3b 43 | . PRINTSPC12;C| 00003e70 48 52 24 31 33 3b 0d 16 a8 1d 20 20 20 c8 99 20 |HR$13;.... .. | 00003e80 22 4f 53 5f 57 72 69 74 65 30 22 2c 71 25 20 b8 |"OS_Write0",q% .| 00003e90 20 6a 25 0d 16 b2 09 20 20 20 ef 36 0d 16 bc 15 | j%.... .6....| 00003ea0 20 20 20 70 61 74 68 24 28 6e 25 2d 31 29 3d 6e | path$(n%-1)=n| 00003eb0 24 0d 16 c6 16 20 20 20 70 72 6f 67 24 28 6e 25 |$.... prog$(n%| 00003ec0 2d 31 29 3d 6e 32 24 0d 16 d0 0f 20 20 20 6a 25 |-1)=n2$.... j%| 00003ed0 3f 2d 31 3d 31 33 0d 16 da 2b 20 20 20 77 25 28 |?-1=13...+ w%(| 00003ee0 6c 25 29 2b 3d a4 62 72 61 6e 63 68 28 66 24 2b |l%)+=.branch(f$+| 00003ef0 22 2e 22 2b 24 71 25 2c 24 71 25 2c 79 25 2b 31 |"."+$q%,$q%,y%+1| 00003f00 29 0d 16 e4 07 20 20 cd 0d 16 ee 0c 20 fd 20 69 |).... ..... . i| 00003f10 25 3d 2d 31 0d 16 f8 23 20 70 72 6f 67 24 28 6e |%=-1...# prog$(n| 00003f20 25 2d 31 29 3d 6e 32 24 3a 70 61 74 68 24 28 6e |%-1)=n2$:path$(n| 00003f30 25 2d 31 29 3d 6e 24 0d 17 02 06 20 cd 0d 17 0c |%-1)=n$.... ....| 00003f40 2a 20 e7 20 77 25 28 6c 25 29 3c a9 28 6c 65 61 |* . w%(l%)<.(lea| 00003f50 66 24 29 2b 32 20 77 25 28 6c 25 29 3d a9 28 6c |f$)+2 w%(l%)=.(l| 00003f60 65 61 66 24 29 2b 32 0d 17 16 0c 20 3d 77 25 28 |eaf$)+2.... =w%(| 00003f70 6c 25 29 0d ff |l%)..| 00003f75