Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf » !TinyDirs/!RunImage
!TinyDirs/!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 » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf |
Filename: | !TinyDirs/!RunImage |
Read OK: | ✔ |
File size: | 1B50 bytes |
Load address: | FFFFFB41 |
Exec address: | 45863705 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » RiscOs_Apps_2.ADF » !TinyDirs/!RunImage
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf » !TinyDirs/!RunImage
- Personal collection » Acorn hard disk » apps » AppDiscs » !TinyDirs/!RunImage
File contents
10REM > adfs::Winnie.!TinyDirs.!RunImage 20REM 30 40SYS "OS_GetEnv" TO com$ 50params$="" 60I%=INSTR(com$," -quit ") 70IF I% THEN params$=MID$(com$,INSTR(com$," ",I%+LEN" -quit ")+1) 80 90DIM t 4:$t="TASK" 100SYS "Wimp_Initialise",200,!t,"Tiny Dir Manager" 110 120PROCinitheap 130PROCmenus 140 150DIM q% &100,errblk% &100 160SYS "Wimp_SpriteOp",40,,"directory" TO ,,,sx%,sy%,,sm% 170SYS "OS_ReadModeVariable",sm%,4 TO ,,px% : sx%=sx%<<px% 180SYS "OS_ReadModeVariable",sm%,5 TO ,,py% : sy%=sy%<<py% 190DIM sprname% 10:$sprname%="Sdirectory" 200oldref%=-1 210dummy%=-1 220 230REPEAT 240WHILE LEFT$(params$,1)=" ":params$=MID$(params$,2):ENDWHILE 250IF params$<>"" THEN 260 I%=INSTR(params$+" "," ") 270 dir$=LEFT$(params$,I%-1):params$=MID$(params$,I%+1) 280 SYS "OS_File",5,dir$ TO type% 290 IF type%<>2 THEN ERROR 1,"'"+dir$+"' is not a directory" 300 PROCstash(FNdiricon(FNleaf(dir$),dir$),dir$) 310ENDIF 320UNTIL params$="" 330 340IF !head%=0 THEN dummy%=!FNdiricon("","") 350 360ON ERROR SYS "Wimp_ReportError",FNerrblk(ERR,REPORT$),1,"Tiny Dir Manager" 370 380REPEAT 390IF dummy%<>-1 AND !head%<>0 THEN flags%=&30 ELSE flags%=&31 400SYS "Wimp_Poll",flags%,q% TO action% 410CASE action% OF 420WHEN 0:IF dummy%<>-1 AND !head%<>0 THEN 430 !q%=-2:q%!4=dummy%:SYS "Wimp_DeleteIcon",,q%:dummy%=-1 440 ENDIF 450WHEN 6:PROCmouse(q%) 460WHEN 9:PROCdecodemenu(q%) 470WHEN 17,18:PROCmessage(q%) 480WHEN 19:PROCmessageback(q%) 490ENDCASE 500UNTIL FALSE 510 520DEF FNerrblk(err%,report$) 530!errblk%=err%:$(errblk%+4)=report$ : REM +" at line "+STR$ERL 540errblk%?(4+LEN$(errblk%+4))=0 550=errblk% 560 570DEF PROCmouse(q%) 580mousex%=q%!0:mousey%=q%!4:buttons%=q%!8 590IF q%!12<>-2 THEN ENDPROC 600CASE buttons% OF 610WHEN &04,&01:IF q%!16<>dummy% THEN PROCdataopen(q%!16,"") 620WHEN &02:menuicon%=q%!16 630 REM PROCshade(iconmenu%,0,q%!16=dummy%) 640 SYS "Wimp_CreateMenu",,iconmenu%,mousex%-iconmenu%!16/2-24,96+44 650ENDCASE 660ENDPROC 670 680DEF PROCshade(menu%,item%,cc%) 690LOCAL I% 700I%=menu%+28+24*item%+8 710IF cc% THEN !I%=!I% OR (1<<22) ELSE !I%=!I% AND NOT (1<<22) 720ENDPROC 730 740DEF PROCdecodemenu(q%) 750CASE !q% OF 760WHEN 0: IF menuicon%=dummy% THEN 770 SYS "Wimp_CloseDown":END 780 ELSE PROCdeleteicon(menuicon%) 790 ENDIF 800ENDCASE 810ENDPROC 820 830DEF PROCdataopen(icon%,a$) 840LOCAL I% 850oldicon%=icon%:oldbuttons%=buttons%:oldshift%=INKEY(-1) 860args$=a$ 870I%=FNfind(icon%) 880q%!12=0:q%!16=5:q%!20=-2:q%!24=icon%:q%!28=mousex%:q%!32=mousey% 890q%!36=-1:q%!40=&1000:$(q%+44)=$(I%!8) 900q%?(44+LEN$(q%+44))=0 910q%!0=(48+LEN$(q%+44))ANDNOT3 920SYS "Wimp_SendMessage",18,q%,0 930oldref%=q%!8 940ENDPROC 950 960DEF PROCmessageback(q%) 970CASE q%!16 OF 980WHEN 5:IF q%!8=oldref% THEN PROCopendir(oldicon%,oldbuttons%,oldshift%,args$) 990ENDCASE 1000ENDPROC 1010 1020DEF PROCopendir(icon%,buttons%,shift%,args$) 1030LOCAL I% 1040I%=FNfind(icon%) 1050IF I%!16<>sprname% AND NOToldshift% THEN 1060 SYS "Wimp_StartTask","Run "+$(I%!8)+" "+args$ 1070ELSE 1080 OSCLI("Filer_OpenDir "+$(I%!8)) 1090ENDIF 1100IF oldbuttons% AND &01 THEN PROCdeleteicon(icon%) 1110ENDPROC 1120 1130DEF PROCmessage(q%) 1140CASE q%!16 OF 1150WHEN 0:SYS "Wimp_CloseDown":END 1160WHEN 3:PROCgrabtiny(FNstring(q%+44)) 1170WHEN &502:q%!12=q%!8:q%!16=&503:help%=q%+20 1180 IF q%!36=dummy% THEN 1190 PROChelp("This is the Tiny directory icon.") 1200 PROChelp("You can store a directory or application on the icon bar by dragging it onto this icon from a Filer window.") 1210 ELSE 1220 I%=FNfind(q%!36) 1230 IF I%!16=sprname% THEN 1240 PROChelp("This is a Tiny directory icon.") 1250 PROChelp("Click SELECT to look inside the directory.") 1260 ELSE 1270 PROChelp("This is a Tiny application icon.") 1280 PROChelp("Click SELECT to run the application.") 1290 ENDIF 1300 PROChelp("You can drag more directories onto this if you like.") 1310 ENDIF 1320 ?help%=0:!q%=(help%+4-q%)ANDNOT3 1330 SYS "Wimp_SendMessage",17,q%,q%!4 1340ENDCASE 1350ENDPROC 1360 1370DEF PROChelp(a$) $help%=a$+"|M":help%+=LENa$+2:ENDPROC 1380 1390DEF FNstring(a%) 1400LOCAL b$:b$="":WHILE ?a%<>0:b$+=CHR$?a%:a%+=1:ENDWHILE:=b$ 1410 1420DEF FNpath(d$) 1430LOCALI%,J% 1440I%=1:REPEAT:J%=I%:I%=INSTR(d$,".",I%+1):UNTIL I%=0 1450=LEFT$(d$,J%-1) 1460 1470DEF FNleaf(d$) 1480LOCALI%,J% 1490I%=0:REPEAT:J%=I%:I%=INSTR(d$,".",I%+1):UNTIL I%=0 1500=MID$(d$,J%+1) 1510 1520DEF PROCgrabtiny(dir$) 1530q%!12=q%!8:q%!16=4:SYS "Wimp_SendMessage",17,q%,q%!4 : REM acknowledge 1540SYS "OS_File",5,dir$ TO type% 1550CASE type% OF 1560WHEN 1:SYS "Wimp_GetPointerInfo",,q%:IF q%!12<>-2 THEN ERROR 1,"Bad!" 1570 IF q%!16<> dummy% THEN 1580 I%=FNfind(q%!16) 1590 IF I%!16<>sprname% THEN 1600 mousex%=q%!0:mousey%=q%!4:buttons%=q%!8 1610 PROCdataopen(q%!16,dir$) 1620 ENDPROC 1630 ENDIF 1640 ENDIF 1650 ERROR 1,"Files can be dragged onto applications, but not onto directories." 1660WHEN 2:PROCstash(FNdiricon(FNleaf(dir$),dir$),dir$) 1670ENDCASE 1680ENDPROC 1690 1700DEF FNdiricon(leaf$,full$) 1710LOCAL ssx%,ssy%,ssm%,sprite$,myicon%,I% 1720I%=!head% 1730WHILE I%<>0:IF $(I%!8)=full$ THEN =-1 1740I%=!I%:ENDWHILE 1750sprite$="directory" 1760REM IF dummy%<>-1 THEN !q%=-2:q%!4=dummy%:SYS "Wimp_DeleteIcon",,q%:dummy%=-1 1770REM do the above line in Wimp_Poll (0), so icon stays around for a while 1780IF LEFT$(leaf$,1)="!" THEN 1790 sprite$=leaf$ 1800 SYS "XWimp_SpriteOp",40,,sprite$ TO ,,,ssx%,ssy%,,ssm% ; P% 1810 IF P% AND 1 THEN 1820 SYS "XOS_CLI","Run "+full$+".!Boot" TO ;P% 1830 IF P% AND 1 THEN SYS "XOS_CLI","Iconsprites "+full$+".!Sprites" 1840 SYS "XWimp_SpriteOp",40,,sprite$ TO ,,,ssx%,ssy%,,ssm% ; P% 1850 IF P% AND 1 THEN 1860 sprite$="application" 1870 SYS "Wimp_SpriteOp",40,,sprite$ TO ,,,ssx%,ssy%,,ssm% 1880 ENDIF 1890 ENDIF 1900ENDIF 1910SYS "Wimp_SpriteOp",40,,sprite$ TO ,,,ssx%,ssy%,,ssm% 1920SYS "OS_ReadModeVariable",ssm%,4 TO ,,px% : ssx%=ssx%<<px% 1930SYS "OS_ReadModeVariable",ssm%,5 TO ,,py% : ssy%=ssy%<<py% 1940IF LEN(leaf$)*16 > ssx% THEN ssx%=LEN(leaf$)*16 1950!q%=-2 1960q%!4=0:q%!8=-16:q%!12=q%!4+ssx%:q%!16=20+ssy% 1970q%!20=&1700310B 1980q%!24=FNheap(leaf$) 1990IF sprite$="directory" THEN q%!28=sprname% ELSE q%!28=FNheap("S"+sprite$) 2000q%!32=1 2010SYS "Wimp_CreateIcon",,q% TO !q% 2020=q% 2030 2040DEF PROCstash(q%,fullname$) 2050IF q%=-1 THEN ENDPROC 2060I%=FNheapblock(20) 2070!I%=!head%:!head%=I% : REM +0 = link 2080I%!4=!q% : REM +4 = icon handle 2090I%!8=FNheap(fullname$) : REM +8 = fullname 2100I%!12=q%!24 : REM +12= leaf name 2110I%!16=q%!28 : REM +16= sprite name 2120ENDPROC 2130 2140DEF FNdirname(icon%) 2150IF icon%=dummy% THEN ="" 2160I%=FNfind(icon%):=$(I%!8) 2170 2180DEF FNfind(icon%) 2190LOCAL I%:back%=head% 2200REPEAT 2210I%=!back% 2220IF I%<>0 IF I%!4=icon% UNTIL TRUE:=I% 2230back%=I% 2240UNTIL I%=0 2250ERROR 1,"Icon not found" 2260 2270DEF PROCinitheap 2280DIM heap% 8192,head% 3 2290SYS "OS_Heap",0,heap%,,8192 2300!head%=0 2310ENDPROC 2320 2330DEF FNheapblock(I%) 2340SYS "OS_Heap",2,heap%,,I% TO ,,I%:=I% 2350 2360DEF FNheap(a$) 2370LOCAL I%:I%=FNheapblock(LENa$+1):$I%=a$:=I% 2380 2390DEF PROCdeleteicon(icon%) 2400IF icon%=dummy% THEN ENDPROC 2410LOCAL I% 2420I%=FNfind(icon%) 2430!q%=-2:q%!4=I%!4:SYS "Wimp_DeleteIcon",,q% 2440!back%=!I% 2450SYS "OS_Heap",3,heap%,I%!8 2460SYS "OS_Heap",3,heap%,I%!12 2470IF I%!16<>sprname% THEN SYS "OS_Heap",3,heap%,I%!16 2480SYS "OS_Heap",3,heap%,I% 2490IF !head%=0 IF dummy%=-1 THEN dummy%=!FNdiricon("","") 2500ENDPROC 2510 2520DEF PROCmenus 2530DIM iconmenu% 28+1*24 2540$iconmenu%="Tiny dir" 2550iconmenu%?12=7 2560iconmenu%?13=2 2570iconmenu%?14=7 2580iconmenu%?15=0 2590iconmenu%!16=LEN"Remove"*16+12 2600iconmenu%!20=44 2610iconmenu%!24=0 2620iconmenu%!28=&80 2630iconmenu%!32=-1 2640iconmenu%!36=&07000001 2650$(iconmenu%+40)="Remove" 2660ENDPROC
(� > adfs::Winnie.!TinyDirs.!RunImage � (ș "OS_GetEnv" � com$ 2params$="" <I%=�com$," -quit ") F4� I% � params$=�com$,�com$," ",I%+�" -quit ")+1) P Z� t 4:$t="TASK" d2ș "Wimp_Initialise",200,!t,"Tiny Dir Manager" n x �initheap � �menus � �� q% &100,errblk% &100 �8ș "Wimp_SpriteOp",40,,"directory" � ,,,sx%,sy%,,sm% �9ș "OS_ReadModeVariable",sm%,4 � ,,px% : sx%=sx%<<px% �9ș "OS_ReadModeVariable",sm%,5 � ,,py% : sy%=sy%<<py% �(� sprname% 10:$sprname%="Sdirectory" �oldref%=-1 � dummy%=-1 � �� �,ȕ �params$,1)=" ":params$=�params$,2):� �� params$<>"" � I%=�params$+" "," ") 0 dir$=�params$,I%-1):params$=�params$,I%+1) ! ș "OS_File",5,dir$ � type% "6 � type%<>2 � � 1,"'"+dir$+"' is not a directory" ,- �stash(�diricon(�leaf(dir$),dir$),dir$) 6� @� params$="" J T(� !head%=0 � dummy%=!�diricon("","") ^ h@� � ș "Wimp_ReportError",�errblk(�,�$),1,"Tiny Dir Manager" r |� �6� dummy%<>-1 � !head%<>0 � flags%=&30 � flags%=&31 �&ș "Wimp_Poll",flags%,q% � action% �Ȏ action% � �"� 0:� dummy%<>-1 � !head%<>0 � �B !q%=-2:q%!4=dummy%:ș "Wimp_DeleteIcon",,q%:dummy%=-1 � � �� 6:�mouse(q%) �� 9:�decodemenu(q%) �� 17,18:�message(q%) �� 19:�messageback(q%) �� �� � � � �errblk(err%,report$) ?!errblk%=err%:$(errblk%+4)=report$ : � +" at line "+STR$ERL errblk%?(4+�$(errblk%+4))=0 &=errblk% 0 :� �mouse(q%) D+mousex%=q%!0:mousey%=q%!4:buttons%=q%!8 N� q%!12<>-2 � � XȎ buttons% � b3� &04,&01:� q%!16<>dummy% � �dataopen(q%!16,"") l� &02:menuicon%=q%!16 v2 � PROCshade(iconmenu%,0,q%!16=dummy%) �L ș "Wimp_CreateMenu",,iconmenu%,mousex%-iconmenu%!16/2-24,96+44 �� �� � �� �shade(menu%,item%,cc%) �� I% �I%=menu%+28+24*item%+8 �3� cc% � !I%=!I% � (1<<22) � !I%=!I% � � (1<<22) �� � �� �decodemenu(q%) �Ȏ !q% � �� 0: � menuicon%=dummy% � # ș "Wimp_CloseDown":� $ � �deleteicon(menuicon%) � � *� 4 >� �dataopen(icon%,a$) H� I% R7oldicon%=icon%:oldbuttons%=buttons%:oldshift%=�(-1) \args$=a$ fI%=�find(icon%) pDq%!12=0:q%!16=5:q%!20=-2:q%!24=icon%:q%!28=mousex%:q%!32=mousey% z)q%!36=-1:q%!40=&1000:$(q%+44)=$(I%!8) �q%?(44+�$(q%+44))=0 �q%!0=(48+�$(q%+44))��3 �!ș "Wimp_SendMessage",18,q%,0 �oldref%=q%!8 �� � �� �messageback(q%) �Ȏ q%!16 � �G� 5:� q%!8=oldref% � �opendir(oldicon%,oldbuttons%,oldshift%,args$) �� �� � �+� �opendir(icon%,buttons%,shift%,args$) � I% I%=�find(icon%) $� I%!16<>sprname% � �oldshift% � $2 ș "Wimp_StartTask","Run "+$(I%!8)+" "+args$ .� 8! �("Filer_OpenDir "+$(I%!8)) B� L,� oldbuttons% � &01 � �deleteicon(icon%) V� ` j� �message(q%) tȎ q%!16 � ~� 0:ș "Wimp_CloseDown":� �!� 3:�grabtiny(�string(q%+44)) �,� &502:q%!12=q%!8:q%!16=&503:help%=q%+20 � � q%!36=dummy% � �9 �help("This is the Tiny directory icon.") �� �help("You can store a directory or application on the icon bar by dragging it onto this icon from a Filer window.") � � � I%=�find(q%!36) �" � I%!16=sprname% � �9 �help("This is a Tiny directory icon.") �E �help("Click SELECT to look inside the directory.") � � �; �help("This is a Tiny application icon.") ? �help("Click SELECT to run the application.") � M �help("You can drag more directories onto this if you like.") � (* ?help%=0:!q%=(help%+4-q%)��3 2. ș "Wimp_SendMessage",17,q%,q%!4 <� F� P Z-� �help(a$) $help%=a$+"|M":help%+=�a$+2:� d n� �string(a%) x-� b$:b$="":ȕ ?a%<>0:b$+=�?a%:a%+=1:�:=b$ � �� �path(d$) � �I%,J% �(I%=1:�:J%=I%:I%=�d$,".",I%+1):� I%=0 �=�d$,J%-1) � �� �leaf(d$) � �I%,J% �(I%=0:�:J%=I%:I%=�d$,".",I%+1):� I%=0 �=�d$,J%+1) � �� �grabtiny(dir$) �Gq%!12=q%!8:q%!16=4:ș "Wimp_SendMessage",17,q%,q%!4 : � acknowledge ș "OS_File",5,dir$ � type% Ȏ type% � =� 1:ș "Wimp_GetPointerInfo",,q%:� q%!12<>-2 � � 1,"Bad!" " � q%!16<> dummy% � , I%=�find(q%!16) 6 � I%!16<>sprname% � @6 mousex%=q%!0:mousey%=q%!4:buttons%=q%!8 J$ �dataopen(q%!16,dir$) T � ^ � h � rR � 1,"Files can be dragged onto applications, but not onto directories." |/� 2:�stash(�diricon(�leaf(dir$),dir$),dir$) �� �� � �� �diricon(leaf$,full$) �'� ssx%,ssy%,ssm%,sprite$,myicon%,I% � I%=!head% �"ȕ I%<>0:� $(I%!8)=full$ � =-1 �I%=!I%:� �sprite$="directory" �O� IF dummy%<>-1 THEN !q%=-2:q%!4=dummy%:SYS "Wimp_DeleteIcon",,q%:dummy%=-1 �J� do the above line in Wimp_Poll (0), so icon stays around for a while �� �leaf$,1)="!" � � sprite$=leaf$ ? ș "XWimp_SpriteOp",40,,sprite$ � ,,,ssx%,ssy%,,ssm% ; P% � P% � 1 � 0 ș "XOS_CLI","Run "+full$+".!Boot" � ;P% &@ � P% � 1 � ș "XOS_CLI","Iconsprites "+full$+".!Sprites" 0A ș "XWimp_SpriteOp",40,,sprite$ � ,,,ssx%,ssy%,,ssm% ; P% : � P% � 1 � D sprite$="application" N= ș "Wimp_SpriteOp",40,,sprite$ � ,,,ssx%,ssy%,,ssm% X � b � l� v7ș "Wimp_SpriteOp",40,,sprite$ � ,,,ssx%,ssy%,,ssm% �<ș "OS_ReadModeVariable",ssm%,4 � ,,px% : ssx%=ssx%<<px% �<ș "OS_ReadModeVariable",ssm%,5 � ,,py% : ssy%=ssy%<<py% �+� �(leaf$)*16 > ssx% � ssx%=�(leaf$)*16 � !q%=-2 �1q%!4=0:q%!8=-16:q%!12=q%!4+ssx%:q%!16=20+ssy% �q%!20=&1700310B �q%!24=�heap(leaf$) �E� sprite$="directory" � q%!28=sprname% � q%!28=�heap("S"+sprite$) �q%!32=1 �"ș "Wimp_CreateIcon",,q% � !q% �=q% � �� �stash(q%,fullname$) � q%=-1 � � I%=�heapblock(20) (!I%=!head%:!head%=I% : � +0 = link /I%!4=!q% : � +4 = icon handle *+I%!8=�heap(fullname$) : � +8 = fullname 4-I%!12=q%!24 : � +12= leaf name >/I%!16=q%!28 : � +16= sprite name H� R \� �dirname(icon%) f� icon%=dummy% � ="" pI%=�find(icon%):=$(I%!8) z �� �find(icon%) �� I%:back%=head% �� � I%=!back% � � I%<>0 � I%!4=icon% � �:=I% �back%=I% � � I%=0 �� 1,"Icon not found" � �� �initheap �� heap% 8192,head% 3 �ș "OS_Heap",0,heap%,,8192 �!head%=0 � � �heapblock(I%) $'ș "OS_Heap",2,heap%,,I% � ,,I%:=I% . 8� �heap(a$) B(� I%:I%=�heapblock(�a$+1):$I%=a$:=I% L V� �deleteicon(icon%) `� icon%=dummy% � � j� I% tI%=�find(icon%) ~-!q%=-2:q%!4=I%!4:ș "Wimp_DeleteIcon",,q% �!back%=!I% �ș "OS_Heap",3,heap%,I%!8 �ș "OS_Heap",3,heap%,I%!12 �2� I%!16<>sprname% � ș "OS_Heap",3,heap%,I%!16 �ș "OS_Heap",3,heap%,I% �4� !head%=0 � dummy%=-1 � dummy%=!�diricon("","") �� � �� �menus �� iconmenu% 28+1*24 �$iconmenu%="Tiny dir" �iconmenu%?12=7 iconmenu%?13=2 iconmenu%?14=7 iconmenu%?15=0 iconmenu%!16=�"Remove"*16+12 (iconmenu%!20=44 2iconmenu%!24=0 <iconmenu%!28=&80 Ficonmenu%!32=-1 Piconmenu%!36=&07000001 Z$(iconmenu%+40)="Remove" d� �
00000000 0d 00 0a 28 f4 20 3e 20 61 64 66 73 3a 3a 57 69 |...(. > adfs::Wi| 00000010 6e 6e 69 65 2e 21 54 69 6e 79 44 69 72 73 2e 21 |nnie.!TinyDirs.!| 00000020 52 75 6e 49 6d 61 67 65 0d 00 14 05 f4 0d 00 1e |RunImage........| 00000030 04 0d 00 28 19 c8 99 20 22 4f 53 5f 47 65 74 45 |...(... "OS_GetE| 00000040 6e 76 22 20 b8 20 63 6f 6d 24 0d 00 32 0e 70 61 |nv" . com$..2.pa| 00000050 72 61 6d 73 24 3d 22 22 0d 00 3c 17 49 25 3d a7 |rams$=""..<.I%=.| 00000060 63 6f 6d 24 2c 22 20 2d 71 75 69 74 20 22 29 0d |com$," -quit ").| 00000070 00 46 34 e7 20 49 25 20 8c 20 70 61 72 61 6d 73 |.F4. I% . params| 00000080 24 3d c1 63 6f 6d 24 2c a7 63 6f 6d 24 2c 22 20 |$=.com$,.com$," | 00000090 22 2c 49 25 2b a9 22 20 2d 71 75 69 74 20 22 29 |",I%+." -quit ")| 000000a0 2b 31 29 0d 00 50 04 0d 00 5a 13 de 20 74 20 34 |+1)..P...Z.. t 4| 000000b0 3a 24 74 3d 22 54 41 53 4b 22 0d 00 64 32 c8 99 |:$t="TASK"..d2..| 000000c0 20 22 57 69 6d 70 5f 49 6e 69 74 69 61 6c 69 73 | "Wimp_Initialis| 000000d0 65 22 2c 32 30 30 2c 21 74 2c 22 54 69 6e 79 20 |e",200,!t,"Tiny | 000000e0 44 69 72 20 4d 61 6e 61 67 65 72 22 0d 00 6e 04 |Dir Manager"..n.| 000000f0 0d 00 78 0d f2 69 6e 69 74 68 65 61 70 0d 00 82 |..x..initheap...| 00000100 0a f2 6d 65 6e 75 73 0d 00 8c 04 0d 00 96 1a de |..menus.........| 00000110 20 71 25 20 26 31 30 30 2c 65 72 72 62 6c 6b 25 | q% &100,errblk%| 00000120 20 26 31 30 30 0d 00 a0 38 c8 99 20 22 57 69 6d | &100...8.. "Wim| 00000130 70 5f 53 70 72 69 74 65 4f 70 22 2c 34 30 2c 2c |p_SpriteOp",40,,| 00000140 22 64 69 72 65 63 74 6f 72 79 22 20 b8 20 2c 2c |"directory" . ,,| 00000150 2c 73 78 25 2c 73 79 25 2c 2c 73 6d 25 0d 00 aa |,sx%,sy%,,sm%...| 00000160 39 c8 99 20 22 4f 53 5f 52 65 61 64 4d 6f 64 65 |9.. "OS_ReadMode| 00000170 56 61 72 69 61 62 6c 65 22 2c 73 6d 25 2c 34 20 |Variable",sm%,4 | 00000180 b8 20 2c 2c 70 78 25 20 3a 20 73 78 25 3d 73 78 |. ,,px% : sx%=sx| 00000190 25 3c 3c 70 78 25 0d 00 b4 39 c8 99 20 22 4f 53 |%<<px%...9.. "OS| 000001a0 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 6c |_ReadModeVariabl| 000001b0 65 22 2c 73 6d 25 2c 35 20 b8 20 2c 2c 70 79 25 |e",sm%,5 . ,,py%| 000001c0 20 3a 20 73 79 25 3d 73 79 25 3c 3c 70 79 25 0d | : sy%=sy%<<py%.| 000001d0 00 be 28 de 20 73 70 72 6e 61 6d 65 25 20 31 30 |..(. sprname% 10| 000001e0 3a 24 73 70 72 6e 61 6d 65 25 3d 22 53 64 69 72 |:$sprname%="Sdir| 000001f0 65 63 74 6f 72 79 22 0d 00 c8 0e 6f 6c 64 72 65 |ectory"....oldre| 00000200 66 25 3d 2d 31 0d 00 d2 0d 64 75 6d 6d 79 25 3d |f%=-1....dummy%=| 00000210 2d 31 0d 00 dc 04 0d 00 e6 05 f5 0d 00 f0 2c c8 |-1............,.| 00000220 95 20 c0 70 61 72 61 6d 73 24 2c 31 29 3d 22 20 |. .params$,1)=" | 00000230 22 3a 70 61 72 61 6d 73 24 3d c1 70 61 72 61 6d |":params$=.param| 00000240 73 24 2c 32 29 3a ce 0d 00 fa 13 e7 20 70 61 72 |s$,2):...... par| 00000250 61 6d 73 24 3c 3e 22 22 20 8c 0d 01 04 1a 20 20 |ams$<>"" ..... | 00000260 49 25 3d a7 70 61 72 61 6d 73 24 2b 22 20 22 2c |I%=.params$+" ",| 00000270 22 20 22 29 0d 01 0e 30 20 20 64 69 72 24 3d c0 |" ")...0 dir$=.| 00000280 70 61 72 61 6d 73 24 2c 49 25 2d 31 29 3a 70 61 |params$,I%-1):pa| 00000290 72 61 6d 73 24 3d c1 70 61 72 61 6d 73 24 2c 49 |rams$=.params$,I| 000002a0 25 2b 31 29 0d 01 18 21 20 20 c8 99 20 22 4f 53 |%+1)...! .. "OS| 000002b0 5f 46 69 6c 65 22 2c 35 2c 64 69 72 24 20 b8 20 |_File",5,dir$ . | 000002c0 74 79 70 65 25 0d 01 22 36 20 20 e7 20 74 79 70 |type%.."6 . typ| 000002d0 65 25 3c 3e 32 20 8c 20 85 20 31 2c 22 27 22 2b |e%<>2 . . 1,"'"+| 000002e0 64 69 72 24 2b 22 27 20 69 73 20 6e 6f 74 20 61 |dir$+"' is not a| 000002f0 20 64 69 72 65 63 74 6f 72 79 22 0d 01 2c 2d 20 | directory"..,- | 00000300 20 f2 73 74 61 73 68 28 a4 64 69 72 69 63 6f 6e | .stash(.diricon| 00000310 28 a4 6c 65 61 66 28 64 69 72 24 29 2c 64 69 72 |(.leaf(dir$),dir| 00000320 24 29 2c 64 69 72 24 29 0d 01 36 05 cd 0d 01 40 |$),dir$)..6....@| 00000330 10 fd 20 70 61 72 61 6d 73 24 3d 22 22 0d 01 4a |.. params$=""..J| 00000340 04 0d 01 54 28 e7 20 21 68 65 61 64 25 3d 30 20 |...T(. !head%=0 | 00000350 8c 20 64 75 6d 6d 79 25 3d 21 a4 64 69 72 69 63 |. dummy%=!.diric| 00000360 6f 6e 28 22 22 2c 22 22 29 0d 01 5e 04 0d 01 68 |on("","")..^...h| 00000370 40 ee 20 85 20 c8 99 20 22 57 69 6d 70 5f 52 65 |@. . .. "Wimp_Re| 00000380 70 6f 72 74 45 72 72 6f 72 22 2c a4 65 72 72 62 |portError",.errb| 00000390 6c 6b 28 9f 2c f6 24 29 2c 31 2c 22 54 69 6e 79 |lk(.,.$),1,"Tiny| 000003a0 20 44 69 72 20 4d 61 6e 61 67 65 72 22 0d 01 72 | Dir Manager"..r| 000003b0 04 0d 01 7c 05 f5 0d 01 86 36 e7 20 64 75 6d 6d |...|.....6. dumm| 000003c0 79 25 3c 3e 2d 31 20 80 20 21 68 65 61 64 25 3c |y%<>-1 . !head%<| 000003d0 3e 30 20 8c 20 66 6c 61 67 73 25 3d 26 33 30 20 |>0 . flags%=&30 | 000003e0 8b 20 66 6c 61 67 73 25 3d 26 33 31 0d 01 90 26 |. flags%=&31...&| 000003f0 c8 99 20 22 57 69 6d 70 5f 50 6f 6c 6c 22 2c 66 |.. "Wimp_Poll",f| 00000400 6c 61 67 73 25 2c 71 25 20 b8 20 61 63 74 69 6f |lags%,q% . actio| 00000410 6e 25 0d 01 9a 10 c8 8e 20 61 63 74 69 6f 6e 25 |n%...... action%| 00000420 20 ca 0d 01 a4 22 c9 20 30 3a e7 20 64 75 6d 6d | ....". 0:. dumm| 00000430 79 25 3c 3e 2d 31 20 80 20 21 68 65 61 64 25 3c |y%<>-1 . !head%<| 00000440 3e 30 20 8c 0d 01 ae 42 20 20 20 20 20 20 20 20 |>0 ....B | 00000450 20 21 71 25 3d 2d 32 3a 71 25 21 34 3d 64 75 6d | !q%=-2:q%!4=dum| 00000460 6d 79 25 3a c8 99 20 22 57 69 6d 70 5f 44 65 6c |my%:.. "Wimp_Del| 00000470 65 74 65 49 63 6f 6e 22 2c 2c 71 25 3a 64 75 6d |eteIcon",,q%:dum| 00000480 6d 79 25 3d 2d 31 0d 01 b8 0c 20 20 20 20 20 20 |my%=-1.... | 00000490 20 cd 0d 01 c2 12 c9 20 36 3a f2 6d 6f 75 73 65 | ...... 6:.mouse| 000004a0 28 71 25 29 0d 01 cc 17 c9 20 39 3a f2 64 65 63 |(q%)..... 9:.dec| 000004b0 6f 64 65 6d 65 6e 75 28 71 25 29 0d 01 d6 18 c9 |odemenu(q%).....| 000004c0 20 31 37 2c 31 38 3a f2 6d 65 73 73 61 67 65 28 | 17,18:.message(| 000004d0 71 25 29 0d 01 e0 19 c9 20 31 39 3a f2 6d 65 73 |q%)..... 19:.mes| 000004e0 73 61 67 65 62 61 63 6b 28 71 25 29 0d 01 ea 05 |sageback(q%)....| 000004f0 cb 0d 01 f4 07 fd 20 a3 0d 01 fe 04 0d 02 08 1b |...... .........| 00000500 dd 20 a4 65 72 72 62 6c 6b 28 65 72 72 25 2c 72 |. .errblk(err%,r| 00000510 65 70 6f 72 74 24 29 0d 02 12 3f 21 65 72 72 62 |eport$)...?!errb| 00000520 6c 6b 25 3d 65 72 72 25 3a 24 28 65 72 72 62 6c |lk%=err%:$(errbl| 00000530 6b 25 2b 34 29 3d 72 65 70 6f 72 74 24 20 3a 20 |k%+4)=report$ : | 00000540 f4 20 2b 22 20 61 74 20 6c 69 6e 65 20 22 2b 53 |. +" at line "+S| 00000550 54 52 24 45 52 4c 0d 02 1c 1f 65 72 72 62 6c 6b |TR$ERL....errblk| 00000560 25 3f 28 34 2b a9 24 28 65 72 72 62 6c 6b 25 2b |%?(4+.$(errblk%+| 00000570 34 29 29 3d 30 0d 02 26 0c 3d 65 72 72 62 6c 6b |4))=0..&.=errblk| 00000580 25 0d 02 30 04 0d 02 3a 10 dd 20 f2 6d 6f 75 73 |%..0...:.. .mous| 00000590 65 28 71 25 29 0d 02 44 2b 6d 6f 75 73 65 78 25 |e(q%)..D+mousex%| 000005a0 3d 71 25 21 30 3a 6d 6f 75 73 65 79 25 3d 71 25 |=q%!0:mousey%=q%| 000005b0 21 34 3a 62 75 74 74 6f 6e 73 25 3d 71 25 21 38 |!4:buttons%=q%!8| 000005c0 0d 02 4e 13 e7 20 71 25 21 31 32 3c 3e 2d 32 20 |..N.. q%!12<>-2 | 000005d0 8c 20 e1 0d 02 58 11 c8 8e 20 62 75 74 74 6f 6e |. ...X... button| 000005e0 73 25 20 ca 0d 02 62 33 c9 20 26 30 34 2c 26 30 |s% ...b3. &04,&0| 000005f0 31 3a e7 20 71 25 21 31 36 3c 3e 64 75 6d 6d 79 |1:. q%!16<>dummy| 00000600 25 20 8c 20 f2 64 61 74 61 6f 70 65 6e 28 71 25 |% . .dataopen(q%| 00000610 21 31 36 2c 22 22 29 0d 02 6c 19 c9 20 26 30 32 |!16,"")..l.. &02| 00000620 3a 6d 65 6e 75 69 63 6f 6e 25 3d 71 25 21 31 36 |:menuicon%=q%!16| 00000630 0d 02 76 32 20 20 20 20 20 20 20 20 20 f4 20 50 |..v2 . P| 00000640 52 4f 43 73 68 61 64 65 28 69 63 6f 6e 6d 65 6e |ROCshade(iconmen| 00000650 75 25 2c 30 2c 71 25 21 31 36 3d 64 75 6d 6d 79 |u%,0,q%!16=dummy| 00000660 25 29 0d 02 80 4c 20 20 20 20 20 20 20 20 20 c8 |%)...L .| 00000670 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 4d 65 |. "Wimp_CreateMe| 00000680 6e 75 22 2c 2c 69 63 6f 6e 6d 65 6e 75 25 2c 6d |nu",,iconmenu%,m| 00000690 6f 75 73 65 78 25 2d 69 63 6f 6e 6d 65 6e 75 25 |ousex%-iconmenu%| 000006a0 21 31 36 2f 32 2d 32 34 2c 39 36 2b 34 34 0d 02 |!16/2-24,96+44..| 000006b0 8a 05 cb 0d 02 94 05 e1 0d 02 9e 04 0d 02 a8 1d |................| 000006c0 dd 20 f2 73 68 61 64 65 28 6d 65 6e 75 25 2c 69 |. .shade(menu%,i| 000006d0 74 65 6d 25 2c 63 63 25 29 0d 02 b2 08 ea 20 49 |tem%,cc%)..... I| 000006e0 25 0d 02 bc 1a 49 25 3d 6d 65 6e 75 25 2b 32 38 |%....I%=menu%+28| 000006f0 2b 32 34 2a 69 74 65 6d 25 2b 38 0d 02 c6 33 e7 |+24*item%+8...3.| 00000700 20 63 63 25 20 8c 20 21 49 25 3d 21 49 25 20 84 | cc% . !I%=!I% .| 00000710 20 28 31 3c 3c 32 32 29 20 8b 20 21 49 25 3d 21 | (1<<22) . !I%=!| 00000720 49 25 20 80 20 ac 20 28 31 3c 3c 32 32 29 0d 02 |I% . . (1<<22)..| 00000730 d0 05 e1 0d 02 da 04 0d 02 e4 15 dd 20 f2 64 65 |............ .de| 00000740 63 6f 64 65 6d 65 6e 75 28 71 25 29 0d 02 ee 0c |codemenu(q%)....| 00000750 c8 8e 20 21 71 25 20 ca 0d 02 f8 1d c9 20 30 3a |.. !q% ...... 0:| 00000760 20 e7 20 6d 65 6e 75 69 63 6f 6e 25 3d 64 75 6d | . menuicon%=dum| 00000770 6d 79 25 20 8c 0d 03 02 23 20 20 20 20 20 20 20 |my% ....# | 00000780 20 20 20 c8 99 20 22 57 69 6d 70 5f 43 6c 6f 73 | .. "Wimp_Clos| 00000790 65 44 6f 77 6e 22 3a e0 0d 03 0c 24 20 20 20 20 |eDown":....$ | 000007a0 20 20 20 20 cc 20 f2 64 65 6c 65 74 65 69 63 6f | . .deleteico| 000007b0 6e 28 6d 65 6e 75 69 63 6f 6e 25 29 0d 03 16 0d |n(menuicon%)....| 000007c0 20 20 20 20 20 20 20 20 cd 0d 03 20 05 cb 0d 03 | ... ....| 000007d0 2a 05 e1 0d 03 34 04 0d 03 3e 19 dd 20 f2 64 61 |*....4...>.. .da| 000007e0 74 61 6f 70 65 6e 28 69 63 6f 6e 25 2c 61 24 29 |taopen(icon%,a$)| 000007f0 0d 03 48 08 ea 20 49 25 0d 03 52 37 6f 6c 64 69 |..H.. I%..R7oldi| 00000800 63 6f 6e 25 3d 69 63 6f 6e 25 3a 6f 6c 64 62 75 |con%=icon%:oldbu| 00000810 74 74 6f 6e 73 25 3d 62 75 74 74 6f 6e 73 25 3a |ttons%=buttons%:| 00000820 6f 6c 64 73 68 69 66 74 25 3d a6 28 2d 31 29 0d |oldshift%=.(-1).| 00000830 03 5c 0c 61 72 67 73 24 3d 61 24 0d 03 66 13 49 |.\.args$=a$..f.I| 00000840 25 3d a4 66 69 6e 64 28 69 63 6f 6e 25 29 0d 03 |%=.find(icon%)..| 00000850 70 44 71 25 21 31 32 3d 30 3a 71 25 21 31 36 3d |pDq%!12=0:q%!16=| 00000860 35 3a 71 25 21 32 30 3d 2d 32 3a 71 25 21 32 34 |5:q%!20=-2:q%!24| 00000870 3d 69 63 6f 6e 25 3a 71 25 21 32 38 3d 6d 6f 75 |=icon%:q%!28=mou| 00000880 73 65 78 25 3a 71 25 21 33 32 3d 6d 6f 75 73 65 |sex%:q%!32=mouse| 00000890 79 25 0d 03 7a 29 71 25 21 33 36 3d 2d 31 3a 71 |y%..z)q%!36=-1:q| 000008a0 25 21 34 30 3d 26 31 30 30 30 3a 24 28 71 25 2b |%!40=&1000:$(q%+| 000008b0 34 34 29 3d 24 28 49 25 21 38 29 0d 03 84 17 71 |44)=$(I%!8)....q| 000008c0 25 3f 28 34 34 2b a9 24 28 71 25 2b 34 34 29 29 |%?(44+.$(q%+44))| 000008d0 3d 30 0d 03 8e 1a 71 25 21 30 3d 28 34 38 2b a9 |=0....q%!0=(48+.| 000008e0 24 28 71 25 2b 34 34 29 29 80 ac 33 0d 03 98 21 |$(q%+44))..3...!| 000008f0 c8 99 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 |.. "Wimp_SendMes| 00000900 73 61 67 65 22 2c 31 38 2c 71 25 2c 30 0d 03 a2 |sage",18,q%,0...| 00000910 10 6f 6c 64 72 65 66 25 3d 71 25 21 38 0d 03 ac |.oldref%=q%!8...| 00000920 05 e1 0d 03 b6 04 0d 03 c0 16 dd 20 f2 6d 65 73 |........... .mes| 00000930 73 61 67 65 62 61 63 6b 28 71 25 29 0d 03 ca 0e |sageback(q%)....| 00000940 c8 8e 20 71 25 21 31 36 20 ca 0d 03 d4 47 c9 20 |.. q%!16 ....G. | 00000950 35 3a e7 20 71 25 21 38 3d 6f 6c 64 72 65 66 25 |5:. q%!8=oldref%| 00000960 20 8c 20 f2 6f 70 65 6e 64 69 72 28 6f 6c 64 69 | . .opendir(oldi| 00000970 63 6f 6e 25 2c 6f 6c 64 62 75 74 74 6f 6e 73 25 |con%,oldbuttons%| 00000980 2c 6f 6c 64 73 68 69 66 74 25 2c 61 72 67 73 24 |,oldshift%,args$| 00000990 29 0d 03 de 05 cb 0d 03 e8 05 e1 0d 03 f2 04 0d |)...............| 000009a0 03 fc 2b dd 20 f2 6f 70 65 6e 64 69 72 28 69 63 |..+. .opendir(ic| 000009b0 6f 6e 25 2c 62 75 74 74 6f 6e 73 25 2c 73 68 69 |on%,buttons%,shi| 000009c0 66 74 25 2c 61 72 67 73 24 29 0d 04 06 08 ea 20 |ft%,args$)..... | 000009d0 49 25 0d 04 10 13 49 25 3d a4 66 69 6e 64 28 69 |I%....I%=.find(i| 000009e0 63 6f 6e 25 29 0d 04 1a 24 e7 20 49 25 21 31 36 |con%)...$. I%!16| 000009f0 3c 3e 73 70 72 6e 61 6d 65 25 20 80 20 ac 6f 6c |<>sprname% . .ol| 00000a00 64 73 68 69 66 74 25 20 8c 0d 04 24 32 20 20 c8 |dshift% ...$2 .| 00000a10 99 20 22 57 69 6d 70 5f 53 74 61 72 74 54 61 73 |. "Wimp_StartTas| 00000a20 6b 22 2c 22 52 75 6e 20 22 2b 24 28 49 25 21 38 |k","Run "+$(I%!8| 00000a30 29 2b 22 20 22 2b 61 72 67 73 24 0d 04 2e 05 cc |)+" "+args$.....| 00000a40 0d 04 38 21 20 20 ff 28 22 46 69 6c 65 72 5f 4f |..8! .("Filer_O| 00000a50 70 65 6e 44 69 72 20 22 2b 24 28 49 25 21 38 29 |penDir "+$(I%!8)| 00000a60 29 0d 04 42 05 cd 0d 04 4c 2c e7 20 6f 6c 64 62 |)..B....L,. oldb| 00000a70 75 74 74 6f 6e 73 25 20 80 20 26 30 31 20 8c 20 |uttons% . &01 . | 00000a80 f2 64 65 6c 65 74 65 69 63 6f 6e 28 69 63 6f 6e |.deleteicon(icon| 00000a90 25 29 0d 04 56 05 e1 0d 04 60 04 0d 04 6a 12 dd |%)..V....`...j..| 00000aa0 20 f2 6d 65 73 73 61 67 65 28 71 25 29 0d 04 74 | .message(q%)..t| 00000ab0 0e c8 8e 20 71 25 21 31 36 20 ca 0d 04 7e 1d c9 |... q%!16 ...~..| 00000ac0 20 30 3a c8 99 20 22 57 69 6d 70 5f 43 6c 6f 73 | 0:.. "Wimp_Clos| 00000ad0 65 44 6f 77 6e 22 3a e0 0d 04 88 21 c9 20 33 3a |eDown":....!. 3:| 00000ae0 f2 67 72 61 62 74 69 6e 79 28 a4 73 74 72 69 6e |.grabtiny(.strin| 00000af0 67 28 71 25 2b 34 34 29 29 0d 04 92 2c c9 20 26 |g(q%+44))...,. &| 00000b00 35 30 32 3a 71 25 21 31 32 3d 71 25 21 38 3a 71 |502:q%!12=q%!8:q| 00000b10 25 21 31 36 3d 26 35 30 33 3a 68 65 6c 70 25 3d |%!16=&503:help%=| 00000b20 71 25 2b 32 30 0d 04 9c 1e 20 20 20 20 20 20 20 |q%+20.... | 00000b30 20 20 20 e7 20 71 25 21 33 36 3d 64 75 6d 6d 79 | . q%!36=dummy| 00000b40 25 20 8c 0d 04 a6 39 20 20 20 20 20 20 20 20 20 |% ....9 | 00000b50 20 20 20 f2 68 65 6c 70 28 22 54 68 69 73 20 69 | .help("This i| 00000b60 73 20 74 68 65 20 54 69 6e 79 20 64 69 72 65 63 |s the Tiny direc| 00000b70 74 6f 72 79 20 69 63 6f 6e 2e 22 29 0d 04 b0 84 |tory icon.")....| 00000b80 20 20 20 20 20 20 20 20 20 20 20 20 f2 68 65 6c | .hel| 00000b90 70 28 22 59 6f 75 20 63 61 6e 20 73 74 6f 72 65 |p("You can store| 00000ba0 20 61 20 64 69 72 65 63 74 6f 72 79 20 6f 72 20 | a directory or | 00000bb0 61 70 70 6c 69 63 61 74 69 6f 6e 20 6f 6e 20 74 |application on t| 00000bc0 68 65 20 69 63 6f 6e 20 62 61 72 20 62 79 20 64 |he icon bar by d| 00000bd0 72 61 67 67 69 6e 67 20 69 74 20 6f 6e 74 6f 20 |ragging it onto | 00000be0 74 68 69 73 20 69 63 6f 6e 20 66 72 6f 6d 20 61 |this icon from a| 00000bf0 20 46 69 6c 65 72 20 77 69 6e 64 6f 77 2e 22 29 | Filer window.")| 00000c00 0d 04 ba 0f 20 20 20 20 20 20 20 20 20 20 cc 0d |.... ..| 00000c10 04 c4 1f 20 20 20 20 20 20 20 20 20 20 20 20 49 |... I| 00000c20 25 3d a4 66 69 6e 64 28 71 25 21 33 36 29 0d 04 |%=.find(q%!36)..| 00000c30 ce 22 20 20 20 20 20 20 20 20 20 20 20 20 e7 20 |." . | 00000c40 49 25 21 31 36 3d 73 70 72 6e 61 6d 65 25 20 8c |I%!16=sprname% .| 00000c50 0d 04 d8 39 20 20 20 20 20 20 20 20 20 20 20 20 |...9 | 00000c60 20 20 f2 68 65 6c 70 28 22 54 68 69 73 20 69 73 | .help("This is| 00000c70 20 61 20 54 69 6e 79 20 64 69 72 65 63 74 6f 72 | a Tiny director| 00000c80 79 20 69 63 6f 6e 2e 22 29 0d 04 e2 45 20 20 20 |y icon.")...E | 00000c90 20 20 20 20 20 20 20 20 20 20 20 f2 68 65 6c 70 | .help| 00000ca0 28 22 43 6c 69 63 6b 20 53 45 4c 45 43 54 20 74 |("Click SELECT t| 00000cb0 6f 20 6c 6f 6f 6b 20 69 6e 73 69 64 65 20 74 68 |o look inside th| 00000cc0 65 20 64 69 72 65 63 74 6f 72 79 2e 22 29 0d 04 |e directory.")..| 00000cd0 ec 11 20 20 20 20 20 20 20 20 20 20 20 20 cc 0d |.. ..| 00000ce0 04 f6 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 |..; | 00000cf0 20 f2 68 65 6c 70 28 22 54 68 69 73 20 69 73 20 | .help("This is | 00000d00 61 20 54 69 6e 79 20 61 70 70 6c 69 63 61 74 69 |a Tiny applicati| 00000d10 6f 6e 20 69 63 6f 6e 2e 22 29 0d 05 00 3f 20 20 |on icon.")...? | 00000d20 20 20 20 20 20 20 20 20 20 20 20 20 f2 68 65 6c | .hel| 00000d30 70 28 22 43 6c 69 63 6b 20 53 45 4c 45 43 54 20 |p("Click SELECT | 00000d40 74 6f 20 72 75 6e 20 74 68 65 20 61 70 70 6c 69 |to run the appli| 00000d50 63 61 74 69 6f 6e 2e 22 29 0d 05 0a 11 20 20 20 |cation.").... | 00000d60 20 20 20 20 20 20 20 20 20 cd 0d 05 14 4d 20 20 | ....M | 00000d70 20 20 20 20 20 20 20 20 20 20 f2 68 65 6c 70 28 | .help(| 00000d80 22 59 6f 75 20 63 61 6e 20 64 72 61 67 20 6d 6f |"You can drag mo| 00000d90 72 65 20 64 69 72 65 63 74 6f 72 69 65 73 20 6f |re directories o| 00000da0 6e 74 6f 20 74 68 69 73 20 69 66 20 79 6f 75 20 |nto this if you | 00000db0 6c 69 6b 65 2e 22 29 0d 05 1e 0f 20 20 20 20 20 |like.").... | 00000dc0 20 20 20 20 20 cd 0d 05 28 2a 20 20 20 20 20 20 | ...(* | 00000dd0 20 20 20 20 3f 68 65 6c 70 25 3d 30 3a 21 71 25 | ?help%=0:!q%| 00000de0 3d 28 68 65 6c 70 25 2b 34 2d 71 25 29 80 ac 33 |=(help%+4-q%)..3| 00000df0 0d 05 32 2e 20 20 20 20 20 20 20 20 20 20 c8 99 |..2. ..| 00000e00 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 73 61 | "Wimp_SendMessa| 00000e10 67 65 22 2c 31 37 2c 71 25 2c 71 25 21 34 0d 05 |ge",17,q%,q%!4..| 00000e20 3c 05 cb 0d 05 46 05 e1 0d 05 50 04 0d 05 5a 2d |<....F....P...Z-| 00000e30 dd 20 f2 68 65 6c 70 28 61 24 29 20 24 68 65 6c |. .help(a$) $hel| 00000e40 70 25 3d 61 24 2b 22 7c 4d 22 3a 68 65 6c 70 25 |p%=a$+"|M":help%| 00000e50 2b 3d a9 61 24 2b 32 3a e1 0d 05 64 04 0d 05 6e |+=.a$+2:...d...n| 00000e60 11 dd 20 a4 73 74 72 69 6e 67 28 61 25 29 0d 05 |.. .string(a%)..| 00000e70 78 2d ea 20 62 24 3a 62 24 3d 22 22 3a c8 95 20 |x-. b$:b$="":.. | 00000e80 3f 61 25 3c 3e 30 3a 62 24 2b 3d bd 3f 61 25 3a |?a%<>0:b$+=.?a%:| 00000e90 61 25 2b 3d 31 3a ce 3a 3d 62 24 0d 05 82 04 0d |a%+=1:.:=b$.....| 00000ea0 05 8c 0f dd 20 a4 70 61 74 68 28 64 24 29 0d 05 |.... .path(d$)..| 00000eb0 96 0a ea 49 25 2c 4a 25 0d 05 a0 28 49 25 3d 31 |...I%,J%...(I%=1| 00000ec0 3a f5 3a 4a 25 3d 49 25 3a 49 25 3d a7 64 24 2c |:.:J%=I%:I%=.d$,| 00000ed0 22 2e 22 2c 49 25 2b 31 29 3a fd 20 49 25 3d 30 |".",I%+1):. I%=0| 00000ee0 0d 05 aa 0e 3d c0 64 24 2c 4a 25 2d 31 29 0d 05 |....=.d$,J%-1)..| 00000ef0 b4 04 0d 05 be 0f dd 20 a4 6c 65 61 66 28 64 24 |....... .leaf(d$| 00000f00 29 0d 05 c8 0a ea 49 25 2c 4a 25 0d 05 d2 28 49 |).....I%,J%...(I| 00000f10 25 3d 30 3a f5 3a 4a 25 3d 49 25 3a 49 25 3d a7 |%=0:.:J%=I%:I%=.| 00000f20 64 24 2c 22 2e 22 2c 49 25 2b 31 29 3a fd 20 49 |d$,".",I%+1):. I| 00000f30 25 3d 30 0d 05 dc 0e 3d c1 64 24 2c 4a 25 2b 31 |%=0....=.d$,J%+1| 00000f40 29 0d 05 e6 04 0d 05 f0 15 dd 20 f2 67 72 61 62 |)......... .grab| 00000f50 74 69 6e 79 28 64 69 72 24 29 0d 05 fa 47 71 25 |tiny(dir$)...Gq%| 00000f60 21 31 32 3d 71 25 21 38 3a 71 25 21 31 36 3d 34 |!12=q%!8:q%!16=4| 00000f70 3a c8 99 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 |:.. "Wimp_SendMe| 00000f80 73 73 61 67 65 22 2c 31 37 2c 71 25 2c 71 25 21 |ssage",17,q%,q%!| 00000f90 34 20 3a 20 f4 20 61 63 6b 6e 6f 77 6c 65 64 67 |4 : . acknowledg| 00000fa0 65 0d 06 04 1f c8 99 20 22 4f 53 5f 46 69 6c 65 |e...... "OS_File| 00000fb0 22 2c 35 2c 64 69 72 24 20 b8 20 74 79 70 65 25 |",5,dir$ . type%| 00000fc0 0d 06 0e 0e c8 8e 20 74 79 70 65 25 20 ca 0d 06 |...... type% ...| 00000fd0 18 3d c9 20 31 3a c8 99 20 22 57 69 6d 70 5f 47 |.=. 1:.. "Wimp_G| 00000fe0 65 74 50 6f 69 6e 74 65 72 49 6e 66 6f 22 2c 2c |etPointerInfo",,| 00000ff0 71 25 3a e7 20 71 25 21 31 32 3c 3e 2d 32 20 8c |q%:. q%!12<>-2 .| 00001000 20 85 20 31 2c 22 42 61 64 21 22 0d 06 22 1d 20 | . 1,"Bad!"..". | 00001010 20 20 20 20 20 20 e7 20 71 25 21 31 36 3c 3e 20 | . q%!16<> | 00001020 64 75 6d 6d 79 25 20 8c 0d 06 2c 1c 20 20 20 20 |dummy% ...,. | 00001030 20 20 20 20 20 49 25 3d a4 66 69 6e 64 28 71 25 | I%=.find(q%| 00001040 21 31 36 29 0d 06 36 20 20 20 20 20 20 20 20 20 |!16)..6 | 00001050 20 e7 20 49 25 21 31 36 3c 3e 73 70 72 6e 61 6d | . I%!16<>sprnam| 00001060 65 25 20 8c 0d 06 40 36 20 20 20 20 20 20 20 20 |e% ...@6 | 00001070 20 20 20 6d 6f 75 73 65 78 25 3d 71 25 21 30 3a | mousex%=q%!0:| 00001080 6d 6f 75 73 65 79 25 3d 71 25 21 34 3a 62 75 74 |mousey%=q%!4:but| 00001090 74 6f 6e 73 25 3d 71 25 21 38 0d 06 4a 24 20 20 |tons%=q%!8..J$ | 000010a0 20 20 20 20 20 20 20 20 20 f2 64 61 74 61 6f 70 | .dataop| 000010b0 65 6e 28 71 25 21 31 36 2c 64 69 72 24 29 0d 06 |en(q%!16,dir$)..| 000010c0 54 10 20 20 20 20 20 20 20 20 20 20 20 e1 0d 06 |T. ...| 000010d0 5e 0e 20 20 20 20 20 20 20 20 20 cd 0d 06 68 0c |^. ...h.| 000010e0 20 20 20 20 20 20 20 cd 0d 06 72 52 20 20 20 20 | ...rR | 000010f0 20 20 20 85 20 31 2c 22 46 69 6c 65 73 20 63 61 | . 1,"Files ca| 00001100 6e 20 62 65 20 64 72 61 67 67 65 64 20 6f 6e 74 |n be dragged ont| 00001110 6f 20 61 70 70 6c 69 63 61 74 69 6f 6e 73 2c 20 |o applications, | 00001120 62 75 74 20 6e 6f 74 20 6f 6e 74 6f 20 64 69 72 |but not onto dir| 00001130 65 63 74 6f 72 69 65 73 2e 22 0d 06 7c 2f c9 20 |ectories."..|/. | 00001140 32 3a f2 73 74 61 73 68 28 a4 64 69 72 69 63 6f |2:.stash(.dirico| 00001150 6e 28 a4 6c 65 61 66 28 64 69 72 24 29 2c 64 69 |n(.leaf(dir$),di| 00001160 72 24 29 2c 64 69 72 24 29 0d 06 86 05 cb 0d 06 |r$),dir$).......| 00001170 90 05 e1 0d 06 9a 04 0d 06 a4 1b dd 20 a4 64 69 |............ .di| 00001180 72 69 63 6f 6e 28 6c 65 61 66 24 2c 66 75 6c 6c |ricon(leaf$,full| 00001190 24 29 0d 06 ae 27 ea 20 73 73 78 25 2c 73 73 79 |$)...'. ssx%,ssy| 000011a0 25 2c 73 73 6d 25 2c 73 70 72 69 74 65 24 2c 6d |%,ssm%,sprite$,m| 000011b0 79 69 63 6f 6e 25 2c 49 25 0d 06 b8 0d 49 25 3d |yicon%,I%....I%=| 000011c0 21 68 65 61 64 25 0d 06 c2 22 c8 95 20 49 25 3c |!head%...".. I%<| 000011d0 3e 30 3a e7 20 24 28 49 25 21 38 29 3d 66 75 6c |>0:. $(I%!8)=ful| 000011e0 6c 24 20 8c 20 3d 2d 31 0d 06 cc 0c 49 25 3d 21 |l$ . =-1....I%=!| 000011f0 49 25 3a ce 0d 06 d6 17 73 70 72 69 74 65 24 3d |I%:.....sprite$=| 00001200 22 64 69 72 65 63 74 6f 72 79 22 0d 06 e0 4f f4 |"directory"...O.| 00001210 20 49 46 20 64 75 6d 6d 79 25 3c 3e 2d 31 20 54 | IF dummy%<>-1 T| 00001220 48 45 4e 20 21 71 25 3d 2d 32 3a 71 25 21 34 3d |HEN !q%=-2:q%!4=| 00001230 64 75 6d 6d 79 25 3a 53 59 53 20 22 57 69 6d 70 |dummy%:SYS "Wimp| 00001240 5f 44 65 6c 65 74 65 49 63 6f 6e 22 2c 2c 71 25 |_DeleteIcon",,q%| 00001250 3a 64 75 6d 6d 79 25 3d 2d 31 0d 06 ea 4a f4 20 |:dummy%=-1...J. | 00001260 64 6f 20 74 68 65 20 61 62 6f 76 65 20 6c 69 6e |do the above lin| 00001270 65 20 69 6e 20 57 69 6d 70 5f 50 6f 6c 6c 20 28 |e in Wimp_Poll (| 00001280 30 29 2c 20 73 6f 20 69 63 6f 6e 20 73 74 61 79 |0), so icon stay| 00001290 73 20 61 72 6f 75 6e 64 20 66 6f 72 20 61 20 77 |s around for a w| 000012a0 68 69 6c 65 0d 06 f4 15 e7 20 c0 6c 65 61 66 24 |hile..... .leaf$| 000012b0 2c 31 29 3d 22 21 22 20 8c 0d 06 fe 13 20 20 73 |,1)="!" ..... s| 000012c0 70 72 69 74 65 24 3d 6c 65 61 66 24 0d 07 08 3f |prite$=leaf$...?| 000012d0 20 20 c8 99 20 22 58 57 69 6d 70 5f 53 70 72 69 | .. "XWimp_Spri| 000012e0 74 65 4f 70 22 2c 34 30 2c 2c 73 70 72 69 74 65 |teOp",40,,sprite| 000012f0 24 20 b8 20 2c 2c 2c 73 73 78 25 2c 73 73 79 25 |$ . ,,,ssx%,ssy%| 00001300 2c 2c 73 73 6d 25 20 3b 20 50 25 0d 07 12 10 20 |,,ssm% ; P%.... | 00001310 20 e7 20 50 25 20 80 20 31 20 8c 0d 07 1c 30 20 | . P% . 1 ....0 | 00001320 20 20 20 c8 99 20 22 58 4f 53 5f 43 4c 49 22 2c | .. "XOS_CLI",| 00001330 22 52 75 6e 20 22 2b 66 75 6c 6c 24 2b 22 2e 21 |"Run "+full$+".!| 00001340 42 6f 6f 74 22 20 b8 20 3b 50 25 0d 07 26 40 20 |Boot" . ;P%..&@ | 00001350 20 20 20 e7 20 50 25 20 80 20 31 20 8c 20 c8 99 | . P% . 1 . ..| 00001360 20 22 58 4f 53 5f 43 4c 49 22 2c 22 49 63 6f 6e | "XOS_CLI","Icon| 00001370 73 70 72 69 74 65 73 20 22 2b 66 75 6c 6c 24 2b |sprites "+full$+| 00001380 22 2e 21 53 70 72 69 74 65 73 22 0d 07 30 41 20 |".!Sprites"..0A | 00001390 20 20 20 c8 99 20 22 58 57 69 6d 70 5f 53 70 72 | .. "XWimp_Spr| 000013a0 69 74 65 4f 70 22 2c 34 30 2c 2c 73 70 72 69 74 |iteOp",40,,sprit| 000013b0 65 24 20 b8 20 2c 2c 2c 73 73 78 25 2c 73 73 79 |e$ . ,,,ssx%,ssy| 000013c0 25 2c 2c 73 73 6d 25 20 3b 20 50 25 0d 07 3a 12 |%,,ssm% ; P%..:.| 000013d0 20 20 20 20 e7 20 50 25 20 80 20 31 20 8c 0d 07 | . P% . 1 ...| 000013e0 44 1f 20 20 20 20 20 20 73 70 72 69 74 65 24 3d |D. sprite$=| 000013f0 22 61 70 70 6c 69 63 61 74 69 6f 6e 22 0d 07 4e |"application"..N| 00001400 3d 20 20 20 20 20 20 c8 99 20 22 57 69 6d 70 5f |= .. "Wimp_| 00001410 53 70 72 69 74 65 4f 70 22 2c 34 30 2c 2c 73 70 |SpriteOp",40,,sp| 00001420 72 69 74 65 24 20 b8 20 2c 2c 2c 73 73 78 25 2c |rite$ . ,,,ssx%,| 00001430 73 73 79 25 2c 2c 73 73 6d 25 0d 07 58 09 20 20 |ssy%,,ssm%..X. | 00001440 20 20 cd 0d 07 62 07 20 20 cd 0d 07 6c 05 cd 0d | ...b. ...l...| 00001450 07 76 37 c8 99 20 22 57 69 6d 70 5f 53 70 72 69 |.v7.. "Wimp_Spri| 00001460 74 65 4f 70 22 2c 34 30 2c 2c 73 70 72 69 74 65 |teOp",40,,sprite| 00001470 24 20 b8 20 2c 2c 2c 73 73 78 25 2c 73 73 79 25 |$ . ,,,ssx%,ssy%| 00001480 2c 2c 73 73 6d 25 0d 07 80 3c c8 99 20 22 4f 53 |,,ssm%...<.. "OS| 00001490 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 6c |_ReadModeVariabl| 000014a0 65 22 2c 73 73 6d 25 2c 34 20 b8 20 2c 2c 70 78 |e",ssm%,4 . ,,px| 000014b0 25 20 3a 20 73 73 78 25 3d 73 73 78 25 3c 3c 70 |% : ssx%=ssx%<<p| 000014c0 78 25 0d 07 8a 3c c8 99 20 22 4f 53 5f 52 65 61 |x%...<.. "OS_Rea| 000014d0 64 4d 6f 64 65 56 61 72 69 61 62 6c 65 22 2c 73 |dModeVariable",s| 000014e0 73 6d 25 2c 35 20 b8 20 2c 2c 70 79 25 20 3a 20 |sm%,5 . ,,py% : | 000014f0 73 73 79 25 3d 73 73 79 25 3c 3c 70 79 25 0d 07 |ssy%=ssy%<<py%..| 00001500 94 2b e7 20 a9 28 6c 65 61 66 24 29 2a 31 36 20 |.+. .(leaf$)*16 | 00001510 3e 20 73 73 78 25 20 8c 20 73 73 78 25 3d a9 28 |> ssx% . ssx%=.(| 00001520 6c 65 61 66 24 29 2a 31 36 0d 07 9e 0a 21 71 25 |leaf$)*16....!q%| 00001530 3d 2d 32 0d 07 a8 31 71 25 21 34 3d 30 3a 71 25 |=-2...1q%!4=0:q%| 00001540 21 38 3d 2d 31 36 3a 71 25 21 31 32 3d 71 25 21 |!8=-16:q%!12=q%!| 00001550 34 2b 73 73 78 25 3a 71 25 21 31 36 3d 32 30 2b |4+ssx%:q%!16=20+| 00001560 73 73 79 25 0d 07 b2 13 71 25 21 32 30 3d 26 31 |ssy%....q%!20=&1| 00001570 37 30 30 33 31 30 42 0d 07 bc 16 71 25 21 32 34 |700310B....q%!24| 00001580 3d a4 68 65 61 70 28 6c 65 61 66 24 29 0d 07 c6 |=.heap(leaf$)...| 00001590 45 e7 20 73 70 72 69 74 65 24 3d 22 64 69 72 65 |E. sprite$="dire| 000015a0 63 74 6f 72 79 22 20 8c 20 71 25 21 32 38 3d 73 |ctory" . q%!28=s| 000015b0 70 72 6e 61 6d 65 25 20 8b 20 71 25 21 32 38 3d |prname% . q%!28=| 000015c0 a4 68 65 61 70 28 22 53 22 2b 73 70 72 69 74 65 |.heap("S"+sprite| 000015d0 24 29 0d 07 d0 0b 71 25 21 33 32 3d 31 0d 07 da |$)....q%!32=1...| 000015e0 22 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 |".. "Wimp_Create| 000015f0 49 63 6f 6e 22 2c 2c 71 25 20 b8 20 21 71 25 0d |Icon",,q% . !q%.| 00001600 07 e4 07 3d 71 25 0d 07 ee 04 0d 07 f8 1a dd 20 |...=q%......... | 00001610 f2 73 74 61 73 68 28 71 25 2c 66 75 6c 6c 6e 61 |.stash(q%,fullna| 00001620 6d 65 24 29 0d 08 02 0f e7 20 71 25 3d 2d 31 20 |me$)..... q%=-1 | 00001630 8c 20 e1 0d 08 0c 15 49 25 3d a4 68 65 61 70 62 |. .....I%=.heapb| 00001640 6c 6f 63 6b 28 32 30 29 0d 08 16 28 21 49 25 3d |lock(20)...(!I%=| 00001650 21 68 65 61 64 25 3a 21 68 65 61 64 25 3d 49 25 |!head%:!head%=I%| 00001660 20 20 20 3a 20 f4 20 2b 30 20 3d 20 6c 69 6e 6b | : . +0 = link| 00001670 0d 08 20 2f 49 25 21 34 3d 21 71 25 20 20 20 20 |.. /I%!4=!q% | 00001680 20 20 20 20 20 20 20 20 20 20 20 3a 20 f4 20 2b | : . +| 00001690 34 20 3d 20 69 63 6f 6e 20 68 61 6e 64 6c 65 0d |4 = icon handle.| 000016a0 08 2a 2b 49 25 21 38 3d a4 68 65 61 70 28 66 75 |.*+I%!8=.heap(fu| 000016b0 6c 6c 6e 61 6d 65 24 29 20 3a 20 f4 20 2b 38 20 |llname$) : . +8 | 000016c0 3d 20 66 75 6c 6c 6e 61 6d 65 0d 08 34 2d 49 25 |= fullname..4-I%| 000016d0 21 31 32 3d 71 25 21 32 34 20 20 20 20 20 20 20 |!12=q%!24 | 000016e0 20 20 20 20 20 3a 20 f4 20 2b 31 32 3d 20 6c 65 | : . +12= le| 000016f0 61 66 20 6e 61 6d 65 0d 08 3e 2f 49 25 21 31 36 |af name..>/I%!16| 00001700 3d 71 25 21 32 38 20 20 20 20 20 20 20 20 20 20 |=q%!28 | 00001710 20 20 3a 20 f4 20 2b 31 36 3d 20 73 70 72 69 74 | : . +16= sprit| 00001720 65 20 6e 61 6d 65 0d 08 48 05 e1 0d 08 52 04 0d |e name..H....R..| 00001730 08 5c 15 dd 20 a4 64 69 72 6e 61 6d 65 28 69 63 |.\.. .dirname(ic| 00001740 6f 6e 25 29 0d 08 66 18 e7 20 69 63 6f 6e 25 3d |on%)..f.. icon%=| 00001750 64 75 6d 6d 79 25 20 8c 20 3d 22 22 0d 08 70 1c |dummy% . =""..p.| 00001760 49 25 3d a4 66 69 6e 64 28 69 63 6f 6e 25 29 3a |I%=.find(icon%):| 00001770 3d 24 28 49 25 21 38 29 0d 08 7a 04 0d 08 84 12 |=$(I%!8)..z.....| 00001780 dd 20 a4 66 69 6e 64 28 69 63 6f 6e 25 29 0d 08 |. .find(icon%)..| 00001790 8e 14 ea 20 49 25 3a 62 61 63 6b 25 3d 68 65 61 |... I%:back%=hea| 000017a0 64 25 0d 08 98 05 f5 0d 08 a2 0d 49 25 3d 21 62 |d%.........I%=!b| 000017b0 61 63 6b 25 0d 08 ac 20 e7 20 49 25 3c 3e 30 20 |ack%... . I%<>0 | 000017c0 e7 20 49 25 21 34 3d 69 63 6f 6e 25 20 fd 20 b9 |. I%!4=icon% . .| 000017d0 3a 3d 49 25 0d 08 b6 0c 62 61 63 6b 25 3d 49 25 |:=I%....back%=I%| 000017e0 0d 08 c0 0a fd 20 49 25 3d 30 0d 08 ca 18 85 20 |..... I%=0..... | 000017f0 31 2c 22 49 63 6f 6e 20 6e 6f 74 20 66 6f 75 6e |1,"Icon not foun| 00001800 64 22 0d 08 d4 04 0d 08 de 0f dd 20 f2 69 6e 69 |d"......... .ini| 00001810 74 68 65 61 70 0d 08 e8 18 de 20 68 65 61 70 25 |theap..... heap%| 00001820 20 38 31 39 32 2c 68 65 61 64 25 20 33 0d 08 f2 | 8192,head% 3...| 00001830 1e c8 99 20 22 4f 53 5f 48 65 61 70 22 2c 30 2c |... "OS_Heap",0,| 00001840 68 65 61 70 25 2c 2c 38 31 39 32 0d 08 fc 0c 21 |heap%,,8192....!| 00001850 68 65 61 64 25 3d 30 0d 09 06 05 e1 0d 09 10 04 |head%=0.........| 00001860 0d 09 1a 14 dd 20 a4 68 65 61 70 62 6c 6f 63 6b |..... .heapblock| 00001870 28 49 25 29 0d 09 24 27 c8 99 20 22 4f 53 5f 48 |(I%)..$'.. "OS_H| 00001880 65 61 70 22 2c 32 2c 68 65 61 70 25 2c 2c 49 25 |eap",2,heap%,,I%| 00001890 20 b8 20 2c 2c 49 25 3a 3d 49 25 0d 09 2e 04 0d | . ,,I%:=I%.....| 000018a0 09 38 0f dd 20 a4 68 65 61 70 28 61 24 29 0d 09 |.8.. .heap(a$)..| 000018b0 42 28 ea 20 49 25 3a 49 25 3d a4 68 65 61 70 62 |B(. I%:I%=.heapb| 000018c0 6c 6f 63 6b 28 a9 61 24 2b 31 29 3a 24 49 25 3d |lock(.a$+1):$I%=| 000018d0 61 24 3a 3d 49 25 0d 09 4c 04 0d 09 56 18 dd 20 |a$:=I%..L...V.. | 000018e0 f2 64 65 6c 65 74 65 69 63 6f 6e 28 69 63 6f 6e |.deleteicon(icon| 000018f0 25 29 0d 09 60 16 e7 20 69 63 6f 6e 25 3d 64 75 |%)..`.. icon%=du| 00001900 6d 6d 79 25 20 8c 20 e1 0d 09 6a 08 ea 20 49 25 |mmy% . ...j.. I%| 00001910 0d 09 74 13 49 25 3d a4 66 69 6e 64 28 69 63 6f |..t.I%=.find(ico| 00001920 6e 25 29 0d 09 7e 2d 21 71 25 3d 2d 32 3a 71 25 |n%)..~-!q%=-2:q%| 00001930 21 34 3d 49 25 21 34 3a c8 99 20 22 57 69 6d 70 |!4=I%!4:.. "Wimp| 00001940 5f 44 65 6c 65 74 65 49 63 6f 6e 22 2c 2c 71 25 |_DeleteIcon",,q%| 00001950 0d 09 88 0e 21 62 61 63 6b 25 3d 21 49 25 0d 09 |....!back%=!I%..| 00001960 92 1d c8 99 20 22 4f 53 5f 48 65 61 70 22 2c 33 |.... "OS_Heap",3| 00001970 2c 68 65 61 70 25 2c 49 25 21 38 0d 09 9c 1e c8 |,heap%,I%!8.....| 00001980 99 20 22 4f 53 5f 48 65 61 70 22 2c 33 2c 68 65 |. "OS_Heap",3,he| 00001990 61 70 25 2c 49 25 21 31 32 0d 09 a6 32 e7 20 49 |ap%,I%!12...2. I| 000019a0 25 21 31 36 3c 3e 73 70 72 6e 61 6d 65 25 20 8c |%!16<>sprname% .| 000019b0 20 c8 99 20 22 4f 53 5f 48 65 61 70 22 2c 33 2c | .. "OS_Heap",3,| 000019c0 68 65 61 70 25 2c 49 25 21 31 36 0d 09 b0 1b c8 |heap%,I%!16.....| 000019d0 99 20 22 4f 53 5f 48 65 61 70 22 2c 33 2c 68 65 |. "OS_Heap",3,he| 000019e0 61 70 25 2c 49 25 0d 09 ba 34 e7 20 21 68 65 61 |ap%,I%...4. !hea| 000019f0 64 25 3d 30 20 e7 20 64 75 6d 6d 79 25 3d 2d 31 |d%=0 . dummy%=-1| 00001a00 20 8c 20 64 75 6d 6d 79 25 3d 21 a4 64 69 72 69 | . dummy%=!.diri| 00001a10 63 6f 6e 28 22 22 2c 22 22 29 0d 09 c4 05 e1 0d |con("","")......| 00001a20 09 ce 04 0d 09 d8 0c dd 20 f2 6d 65 6e 75 73 0d |........ .menus.| 00001a30 09 e2 17 de 20 69 63 6f 6e 6d 65 6e 75 25 20 32 |.... iconmenu% 2| 00001a40 38 2b 31 2a 32 34 0d 09 ec 19 24 69 63 6f 6e 6d |8+1*24....$iconm| 00001a50 65 6e 75 25 3d 22 54 69 6e 79 20 64 69 72 22 0d |enu%="Tiny dir".| 00001a60 09 f6 12 69 63 6f 6e 6d 65 6e 75 25 3f 31 32 3d |...iconmenu%?12=| 00001a70 37 0d 0a 00 12 69 63 6f 6e 6d 65 6e 75 25 3f 31 |7....iconmenu%?1| 00001a80 33 3d 32 0d 0a 0a 12 69 63 6f 6e 6d 65 6e 75 25 |3=2....iconmenu%| 00001a90 3f 31 34 3d 37 0d 0a 14 12 69 63 6f 6e 6d 65 6e |?14=7....iconmen| 00001aa0 75 25 3f 31 35 3d 30 0d 0a 1e 20 69 63 6f 6e 6d |u%?15=0... iconm| 00001ab0 65 6e 75 25 21 31 36 3d a9 22 52 65 6d 6f 76 65 |enu%!16=."Remove| 00001ac0 22 2a 31 36 2b 31 32 0d 0a 28 13 69 63 6f 6e 6d |"*16+12..(.iconm| 00001ad0 65 6e 75 25 21 32 30 3d 34 34 0d 0a 32 12 69 63 |enu%!20=44..2.ic| 00001ae0 6f 6e 6d 65 6e 75 25 21 32 34 3d 30 0d 0a 3c 14 |onmenu%!24=0..<.| 00001af0 69 63 6f 6e 6d 65 6e 75 25 21 32 38 3d 26 38 30 |iconmenu%!28=&80| 00001b00 0d 0a 46 13 69 63 6f 6e 6d 65 6e 75 25 21 33 32 |..F.iconmenu%!32| 00001b10 3d 2d 31 0d 0a 50 1a 69 63 6f 6e 6d 65 6e 75 25 |=-1..P.iconmenu%| 00001b20 21 33 36 3d 26 30 37 30 30 30 30 30 31 0d 0a 5a |!36=&07000001..Z| 00001b30 1c 24 28 69 63 6f 6e 6d 65 6e 75 25 2b 34 30 29 |.$(iconmenu%+40)| 00001b40 3d 22 52 65 6d 6f 76 65 22 0d 0a 64 05 e1 0d ff |="Remove"..d....| 00001b50