Home » Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF » SILLIES/!Fred/!RunImage
SILLIES/!Fred/!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 » Archimedes » Dominic_4.ADF |
Filename: | SILLIES/!Fred/!RunImage |
Read OK: | ✔ |
File size: | 105A bytes |
Load address: | FFFFFB42 |
Exec address: | ED7EFD73 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF » SILLIES/!Fred/!RunImage
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_4.adf » SILLIES/!Fred/!RunImage
- Personal collection » Acorn hard disk » misc » misc2 » biobot/SILLIES/!Fred/!RunImage
File contents
10REM > !RunImage 20REM Fred CA 30REM By Richard Leggett (C)1991 RMLPD 40REM Original version : 31/01/91 This version 1.00 : 02/02/91 50REM 60REM Public Domain - may be distributed freely, provided ALL files are 70REM leftintact. 80 90ON ERROR r%=0:PROCfatalerr("Oh dear - an error! Fred's going to have a heart attack if he doesn't quit!") 100PROCinit 110 120REPEAT 130 PROCpoll:PROCicon 140UNTIL FALSE 150 160DEFPROCpoll 170SYS"Wimp_Poll",,q1% TO r% 180CASE r% OF 190 WHEN 17,18:PROCreceive(r%) 200 WHEN 6:PROCclick 210 WHEN 9:PROCselect 220ENDCASE 230ENDPROC 240 250DEFPROCicon 260IF sleep ENDPROC 270IF TIME<10 ENDPROC 280SYS"OS_SpriteOp",256+26,area%,"fredbar",STR$i% 290i%+=a% 300IF i%>5 i%=4:a%=-1 310IF i%<1 i%=2:a%=1 320cna$=STR$i%:SYS"OS_SpriteOp",256+26,area%,cna$,"fredbar" 330PROCredraw 340ENDPROC 350 360DEFPROCredraw 370!p%=-2:p%!4=ibh% 380SYS &400CE,,p% 390SYS"Wimp_ForceRedraw",-2,(p%!8),(p%!12),(p%!16),(p%!20)+32:TIME=0 400ENDPROC 410 420DEFPROCinit 430DIM q1%256,p%256,mf%4096,mw%1024:me%=mf%+4096 440title$="RML PD's Fred!":ver$="1.00 (31-Jan-91)":sleep=FALSE 450SYS"Wimp_BaseOfSprites"TO,area% 460SYS"Wimp_Initialise",200,&4B534154,title$ 470SYS"OS_SpriteOp",256+26,area%,"1","fredbar" 480PROCinicon("fredbar"):i%=1:a%=1 490icme%=FNcrmenu("Iconbar Fred","To sleep,Send him away") 500r%=0:PROCokerr("Fred has moved in!") 510TIME=0:*SET Fred$Loaded YES 520ENDPROC 530 540DEFPROCreceive(r%) 550CASE q1%!16 OF 560 WHEN 0:PROCshutdown:END 570ENDCASE 580ENDPROC 590 600DEFPROCshutdown 610SYS"OS_SpriteOp",256+25,area%,"fredbar" 620*Set Fred$Loaded NO 630SYS"Wimp_CloseDown":END 640ENDPROC 650 660DEFPROCinicon(i$) 670p%!0=-1:p%!4=0:p%!8=0:p%!12=68:p%!16=68 680p%!20=&3002:$(p%+24)=i$ 690SYS "Wimp_CreateIcon",,p% TO ibh% 700ENDPROC 710 720DEFPROCclick 730CASE q1%!8 OF 740 WHEN 4:PROCleftclick 750 WHEN 2:PROCmiddleclick 760ENDCASE 770ENDPROC 780 790DEFPROCleftclick 800wh%=q1%!12:ih%=q1%!16 810IF wh%=-2 AND sleep=FALSE PROCokerr("Oi! Stop prodding me!") 820IF wh%=-2 AND sleep PROCokerr("Okay, okay, I'll wake up - there was no need to hit me!"):PROCwakeup 830ENDPROC 840 850DEFPROCmiddleclick 860wh%=q1%!12:ih%=q1%!16 870IF wh%=-2 PROCdmenu(icme%,!q1%-64,96+2*44) 880ENDPROC 890 900DEFPROCreperr(r$,re%) 910!p%=ERR:$(p%+4)=r$ 920SYS "Wimp_ReportError",p%,re%,"Fred",r% 930ENDPROC 940 950DEFPROCfatalerr(er$) 960PROCreperr(er$,2) 970PROCshutdown 980ENDPROC 990 1000DEFPROCokerr(er$) 1010PROCreperr(er$,1) 1020ENDPROC 1030 1040DEFPROCselect 1050SYS "Wimp_GetPointerInfo",,p% 1060SYS "Wimp_DecodeMenu",,menudata%,q1%,STRING$(200," ") TO ,,,se$ 1070IF se$="" ENDPROC 1080CASE se$ OF 1090 WHEN "Send him away":PROCfatalerr("Talk about being subtle - I get the message, I'll go.") 1100 WHEN "To sleep":PROCsleep:ENDPROC 1110 WHEN "Wake up!":PROCwakeup:ENDPROC 1120ENDCASE 1130IF (q1%!8 AND 1) PROCdmenu(menudata%,menux%,menuy%) 1140ENDPROC 1150 1160DEFFNkpressed 1170window%=!q1%:icon%=q1%!4:key%=q1%!24 1180ENDPROC 1190 1200DEFPROCdmenu(h%,x%,y%) 1210menudata%=h%:menux%=x%:menuy%=y% 1220SYS "Wimp_CreateMenu",,h%,x%,y% 1230ENDPROC 1240 1250DEFFNcrmenu(t$,m$) 1260IF (mf%+28>me%) PROCfatalerr("Fatal error - No room to create menu (Don't blame me!)"+CHR$0) 1270mp%=mf%:I%=0 1280$mp%=t$ 1290mp%!12=7:mp%!13=2:mp%!14=7 1300mp%!15=1:mp%!20=44 1310mp%!24=0:mp%+=28 1320maxx%=LEN(t$)-3 1330REPEAT 1340 i$=FNp(",") 1350 PROCmenuitem(i$) 1360 UNTIL i$="" 1370M%=mf% 1380M%!16=(maxx%*8+6)*2 1390mf%=mp% 1400=M% 1410 1420DEFPROCmenuitem(text$) 1430IF text$="" mp%!-24=(mp%!-24)OR&80:ENDPROC 1440IF mp%+24>me% PROCfatalerr("Fatal error - No room to create menu (Why not get a 2Meg upgrade?)") 1450F%=&00 1460IF RIGHT$(text$,1)="#" text$=LEFT$(text$):F%+=&02 1470IF RIGHT$(text$,1)="@" text$=LEFT$(text$):F%+=&08 1480mp%!0=F% 1490mp%!4=-1 1500mp%!8=&07000021 1510IF LEFT$(text$,1)="$" THEN 1520I%=INSTR(text$,"(") 1530IF I%>0 THEN 1540l%=VALMID$(text$,I%+1):text$=LEFT$(text$,I%-1) 1550ELSE L%=12 1560ENDIF 1570!mp%+=&04 1580mp%!8+=&100 1590mp%!12=EVALMID$(text$,2) 1600mp%!16=-1 1610mp%!20=L% 1620IF L%>16 L%=16 1630text$=STRING$(L%," ") 1640ELSE 1650IFLENtext$<=12 THEN 1660$(mp%+12)=text$ 1670ELSE 1680I%=FNworkspace(LENtext$+1) 1690$I%=text$ 1700mp%!8=mp%!8 OR &100 1710mp%!12=I% 1720mp%!16=-1 1730mp%!20=LENtext$+1 1740ENDIF 1750ENDIF 1760IF LENtext$>maxx% maxx%=LENtext$ 1770mp%+=24 1780ENDPROC 1790 1800DEFFNp(sep$) 1810L%=I%+1 1820I%=INSTR(m$+sep$,sep$,L%) 1830=MID$(m$,L%,I%-L%) 1840 1850DEFFNworkspace(L%) 1860mw%+=L% 1870=mw% 1880 1890DEFPROCamenu(m%,o%,p%) 1900!(m%+28+o%*24+4)=p% 1910ENDPROC 1920 1930DEFPROCsleep 1940IF sleep=TRUE ENDPROC 1950SYS"OS_SpriteOp",256+26,area%,"fredbar",STR$i% 1960SYS"OS_SpriteOp",256+26,area%,"6","fredbar" 1970PROCredraw 1980sleep=TRUE 1990ENDPROC 2000 2010DEFPROCwakeup 2020IF sleep=FALSE ENDPROC 2030SYS"OS_SpriteOp",256+26,area%,"fredbar","6" 2040SYS"OS_SpriteOp",256+26,area%,STR$i%,"fredbar" 2050PROCredraw 2060sleep=FALSE 2070ENDPROC
� > !RunImage L� Fred CA &� By Richard Leggett (C)1991 RMLPD (@� Original version : 31/01/91 This version 1.00 : 02/02/91 2� <G� Public Domain - may be distributed freely, provided ALL files are F� leftintact. P Ze� � r%=0:�fatalerr("Oh dear - an error! Fred's going to have a heart attack if he doesn't quit!") d �init n x� � �poll:�icon �� � � � ��poll �ș"Wimp_Poll",,q1% � r% �Ȏ r% � � � 17,18:�receive(r%) � � 6:�click � � 9:�select �� �� � � ��icon � sleep � � �<10 � .ș"OS_SpriteOp",256+26,area%,"fredbar",�i% " i%+=a% ,� i%>5 i%=4:a%=-1 6� i%<1 i%=2:a%=1 @8cna$=�i%:ș"OS_SpriteOp",256+26,area%,cna$,"fredbar" J�redraw T� ^ h��redraw r!p%=-2:p%!4=ibh% |ș &400CE,,p% �Aș"Wimp_ForceRedraw",-2,(p%!8),(p%!12),(p%!16),(p%!20)+32:�=0 �� � � ��init �/� q1%256,p%256,mf%4096,mw%1024:me%=mf%+4096 �;title$="RML PD's Fred!":ver$="1.00 (31-Jan-91)":sleep=� �!ș"Wimp_BaseOfSprites"�,area% �,ș"Wimp_Initialise",200,&4B534154,title$ �.ș"OS_SpriteOp",256+26,area%,"1","fredbar" � �inicon("fredbar"):i%=1:a%=1 �:icme%=�crmenu("Iconbar Fred","To sleep,Send him away") �%r%=0:�okerr("Fred has moved in!") ��=0:*SET Fred$Loaded YES � ��receive(r%) &Ȏ q1%!16 � 0 � 0:�shutdown:� :� D� N X��shutdown b*ș"OS_SpriteOp",256+25,area%,"fredbar" l*Set Fred$Loaded NO vș"Wimp_CloseDown":� �� � ���inicon(i$) �+p%!0=-1:p%!4=0:p%!8=0:p%!12=68:p%!16=68 �p%!20=&3002:$(p%+24)=i$ �#ș "Wimp_CreateIcon",,p% � ibh% �� � ���click �Ȏ q1%!8 � � � 4:�leftclick � � 2:�middleclick �� � ��leftclick wh%=q1%!12:ih%=q1%!16 *6� wh%=-2 � sleep=� �okerr("Oi! Stop prodding me!") 4^� wh%=-2 � sleep �okerr("Okay, okay, I'll wake up - there was no need to hit me!"):�wakeup >� H R��middleclick \wh%=q1%!12:ih%=q1%!16 f*� wh%=-2 �dmenu(icme%,!q1%-64,96+2*44) p� z ���reperr(r$,re%) �!p%=�:$(p%+4)=r$ �*ș "Wimp_ReportError",p%,re%,"Fred",r% �� � ���fatalerr(er$) ��reperr(er$,2) � �shutdown �� � ���okerr(er$) ��reperr(er$,1) �� ��select ș "Wimp_GetPointerInfo",,p% $:ș "Wimp_DecodeMenu",,menudata%,q1%,�200," ") � ,,,se$ .� se$="" � 8Ȏ se$ � BZ � "Send him away":�fatalerr("Talk about being subtle - I get the message, I'll go.") L � "To sleep":�sleep:� V � "Wake up!":�wakeup:� `� j1� (q1%!8 � 1) �dmenu(menudata%,menux%,menuy%) t� ~ �ݤkpressed �(window%=!q1%:icon%=q1%!4:key%=q1%!24 �� � ���dmenu(h%,x%,y%) �$menudata%=h%:menux%=x%:menuy%=y% �"ș "Wimp_CreateMenu",,h%,x%,y% �� � �ݤcrmenu(t$,m$) �Y� (mf%+28>me%) �fatalerr("Fatal error - No room to create menu (Don't blame me!)"+�0) �mp%=mf%:I%=0 $mp%=t$ mp%!12=7:mp%!13=2:mp%!14=7 mp%!15=1:mp%!20=44 mp%!24=0:mp%+=28 (maxx%=�(t$)-3 2� < i$=�p(",") F �menuitem(i$) P � i$="" Z M%=mf% dM%!16=(maxx%*8+6)*2 nmf%=mp% x=M% � ���menuitem(text$) �&� text$="" mp%!-24=(mp%!-24)�&80:� �`� mp%+24>me% �fatalerr("Fatal error - No room to create menu (Why not get a 2Meg upgrade?)") � F%=&00 �)� �text$,1)="#" text$=�text$):F%+=&02 �)� �text$,1)="@" text$=�text$):F%+=&08 �mp%!0=F% �mp%!4=-1 �mp%!8=&07000021 �� �text$,1)="$" � �I%=�text$,"(") �� I%>0 � 'l%=��text$,I%+1):text$=�text$,I%-1) � L%=12 � " !mp%+=&04 ,mp%!8+=&100 6mp%!12=��text$,2) @ mp%!16=-1 J mp%!20=L% T� L%>16 L%=16 ^text$=�L%," ") h� r�text$<=12 � |$(mp%+12)=text$ �� �I%=�workspace(�text$+1) � $I%=text$ �mp%!8=mp%!8 � &100 � mp%!12=I% � mp%!16=-1 �mp%!20=�text$+1 �� �� �� �text$>maxx% maxx%=�text$ �mp%+=24 �� � ݤp(sep$) L%=I%+1 I%=�m$+sep$,sep$,L%) &=�m$,L%,I%-L%) 0 :ݤworkspace(L%) Dmw%+=L% N=mw% X b��amenu(m%,o%,p%) l!(m%+28+o%*24+4)=p% v� � ���sleep �� sleep=� � �.ș"OS_SpriteOp",256+26,area%,"fredbar",�i% �.ș"OS_SpriteOp",256+26,area%,"6","fredbar" ��redraw �sleep=� �� � ���wakeup �� sleep=� � �.ș"OS_SpriteOp",256+26,area%,"fredbar","6" �.ș"OS_SpriteOp",256+26,area%,�i%,"fredbar" �redraw sleep=� � �
00000000 0d 00 0a 11 f4 20 3e 20 21 52 75 6e 49 6d 61 67 |..... > !RunImag| 00000010 65 0d 00 14 4c f4 20 46 72 65 64 20 20 20 20 20 |e...L. Fred | 00000020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000050 20 20 20 20 20 20 20 20 20 20 20 43 41 0d 00 1e | CA...| 00000060 26 f4 20 42 79 20 52 69 63 68 61 72 64 20 4c 65 |&. By Richard Le| 00000070 67 67 65 74 74 20 28 43 29 31 39 39 31 20 52 4d |ggett (C)1991 RM| 00000080 4c 50 44 0d 00 28 40 f4 20 4f 72 69 67 69 6e 61 |LPD..(@. Origina| 00000090 6c 20 76 65 72 73 69 6f 6e 20 20 3a 20 33 31 2f |l version : 31/| 000000a0 30 31 2f 39 31 20 20 54 68 69 73 20 76 65 72 73 |01/91 This vers| 000000b0 69 6f 6e 20 31 2e 30 30 20 3a 20 30 32 2f 30 32 |ion 1.00 : 02/02| 000000c0 2f 39 31 0d 00 32 05 f4 0d 00 3c 47 f4 20 50 75 |/91..2....<G. Pu| 000000d0 62 6c 69 63 20 44 6f 6d 61 69 6e 20 2d 20 6d 61 |blic Domain - ma| 000000e0 79 20 62 65 20 64 69 73 74 72 69 62 75 74 65 64 |y be distributed| 000000f0 20 66 72 65 65 6c 79 2c 20 70 72 6f 76 69 64 65 | freely, provide| 00000100 64 20 41 4c 4c 20 66 69 6c 65 73 20 61 72 65 0d |d ALL files are.| 00000110 00 46 11 f4 20 6c 65 66 74 69 6e 74 61 63 74 2e |.F.. leftintact.| 00000120 0d 00 50 04 0d 00 5a 65 ee 20 85 20 72 25 3d 30 |..P...Ze. . r%=0| 00000130 3a f2 66 61 74 61 6c 65 72 72 28 22 4f 68 20 64 |:.fatalerr("Oh d| 00000140 65 61 72 20 2d 20 61 6e 20 65 72 72 6f 72 21 20 |ear - an error! | 00000150 46 72 65 64 27 73 20 67 6f 69 6e 67 20 74 6f 20 |Fred's going to | 00000160 68 61 76 65 20 61 20 68 65 61 72 74 20 61 74 74 |have a heart att| 00000170 61 63 6b 20 69 66 20 68 65 20 64 6f 65 73 6e 27 |ack if he doesn'| 00000180 74 20 71 75 69 74 21 22 29 0d 00 64 09 f2 69 6e |t quit!")..d..in| 00000190 69 74 0d 00 6e 04 0d 00 78 05 f5 0d 00 82 11 20 |it..n...x...... | 000001a0 20 f2 70 6f 6c 6c 3a f2 69 63 6f 6e 0d 00 8c 07 | .poll:.icon....| 000001b0 fd 20 a3 0d 00 96 04 0d 00 a0 0a dd f2 70 6f 6c |. ...........pol| 000001c0 6c 0d 00 aa 1b c8 99 22 57 69 6d 70 5f 50 6f 6c |l......"Wimp_Pol| 000001d0 6c 22 2c 2c 71 31 25 20 b8 20 72 25 0d 00 b4 0b |l",,q1% . r%....| 000001e0 c8 8e 20 72 25 20 ca 0d 00 be 1a 20 20 c9 20 31 |.. r% ..... . 1| 000001f0 37 2c 31 38 3a f2 72 65 63 65 69 76 65 28 72 25 |7,18:.receive(r%| 00000200 29 0d 00 c8 10 20 20 c9 20 36 3a f2 63 6c 69 63 |).... . 6:.clic| 00000210 6b 0d 00 d2 11 20 20 c9 20 39 3a f2 73 65 6c 65 |k.... . 9:.sele| 00000220 63 74 0d 00 dc 05 cb 0d 00 e6 05 e1 0d 00 f0 04 |ct..............| 00000230 0d 00 fa 0a dd f2 69 63 6f 6e 0d 01 04 0d e7 20 |......icon..... | 00000240 73 6c 65 65 70 20 e1 0d 01 0e 0c e7 20 91 3c 31 |sleep ...... .<1| 00000250 30 20 e1 0d 01 18 2e c8 99 22 4f 53 5f 53 70 72 |0 ......."OS_Spr| 00000260 69 74 65 4f 70 22 2c 32 35 36 2b 32 36 2c 61 72 |iteOp",256+26,ar| 00000270 65 61 25 2c 22 66 72 65 64 62 61 72 22 2c c3 69 |ea%,"fredbar",.i| 00000280 25 0d 01 22 0a 69 25 2b 3d 61 25 0d 01 2c 15 e7 |%..".i%+=a%..,..| 00000290 20 69 25 3e 35 20 69 25 3d 34 3a 61 25 3d 2d 31 | i%>5 i%=4:a%=-1| 000002a0 0d 01 36 14 e7 20 69 25 3c 31 20 69 25 3d 32 3a |..6.. i%<1 i%=2:| 000002b0 61 25 3d 31 0d 01 40 38 63 6e 61 24 3d c3 69 25 |a%=1..@8cna$=.i%| 000002c0 3a c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 |:.."OS_SpriteOp"| 000002d0 2c 32 35 36 2b 32 36 2c 61 72 65 61 25 2c 63 6e |,256+26,area%,cn| 000002e0 61 24 2c 22 66 72 65 64 62 61 72 22 0d 01 4a 0b |a$,"fredbar"..J.| 000002f0 f2 72 65 64 72 61 77 0d 01 54 05 e1 0d 01 5e 04 |.redraw..T....^.| 00000300 0d 01 68 0c dd f2 72 65 64 72 61 77 0d 01 72 14 |..h...redraw..r.| 00000310 21 70 25 3d 2d 32 3a 70 25 21 34 3d 69 62 68 25 |!p%=-2:p%!4=ibh%| 00000320 0d 01 7c 11 c8 99 20 26 34 30 30 43 45 2c 2c 70 |..|... &400CE,,p| 00000330 25 0d 01 86 41 c8 99 22 57 69 6d 70 5f 46 6f 72 |%...A.."Wimp_For| 00000340 63 65 52 65 64 72 61 77 22 2c 2d 32 2c 28 70 25 |ceRedraw",-2,(p%| 00000350 21 38 29 2c 28 70 25 21 31 32 29 2c 28 70 25 21 |!8),(p%!12),(p%!| 00000360 31 36 29 2c 28 70 25 21 32 30 29 2b 33 32 3a d1 |16),(p%!20)+32:.| 00000370 3d 30 0d 01 90 05 e1 0d 01 9a 04 0d 01 a4 0a dd |=0..............| 00000380 f2 69 6e 69 74 0d 01 ae 2f de 20 71 31 25 32 35 |.init.../. q1%25| 00000390 36 2c 70 25 32 35 36 2c 6d 66 25 34 30 39 36 2c |6,p%256,mf%4096,| 000003a0 6d 77 25 31 30 32 34 3a 6d 65 25 3d 6d 66 25 2b |mw%1024:me%=mf%+| 000003b0 34 30 39 36 0d 01 b8 3b 74 69 74 6c 65 24 3d 22 |4096...;title$="| 000003c0 52 4d 4c 20 50 44 27 73 20 46 72 65 64 21 22 3a |RML PD's Fred!":| 000003d0 76 65 72 24 3d 22 31 2e 30 30 20 28 33 31 2d 4a |ver$="1.00 (31-J| 000003e0 61 6e 2d 39 31 29 22 3a 73 6c 65 65 70 3d a3 0d |an-91)":sleep=..| 000003f0 01 c2 21 c8 99 22 57 69 6d 70 5f 42 61 73 65 4f |..!.."Wimp_BaseO| 00000400 66 53 70 72 69 74 65 73 22 b8 2c 61 72 65 61 25 |fSprites".,area%| 00000410 0d 01 cc 2c c8 99 22 57 69 6d 70 5f 49 6e 69 74 |...,.."Wimp_Init| 00000420 69 61 6c 69 73 65 22 2c 32 30 30 2c 26 34 42 35 |ialise",200,&4B5| 00000430 33 34 31 35 34 2c 74 69 74 6c 65 24 0d 01 d6 2e |34154,title$....| 00000440 c8 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c |.."OS_SpriteOp",| 00000450 32 35 36 2b 32 36 2c 61 72 65 61 25 2c 22 31 22 |256+26,area%,"1"| 00000460 2c 22 66 72 65 64 62 61 72 22 0d 01 e0 20 f2 69 |,"fredbar"... .i| 00000470 6e 69 63 6f 6e 28 22 66 72 65 64 62 61 72 22 29 |nicon("fredbar")| 00000480 3a 69 25 3d 31 3a 61 25 3d 31 0d 01 ea 3a 69 63 |:i%=1:a%=1...:ic| 00000490 6d 65 25 3d a4 63 72 6d 65 6e 75 28 22 49 63 6f |me%=.crmenu("Ico| 000004a0 6e 62 61 72 20 46 72 65 64 22 2c 22 54 6f 20 73 |nbar Fred","To s| 000004b0 6c 65 65 70 2c 53 65 6e 64 20 68 69 6d 20 61 77 |leep,Send him aw| 000004c0 61 79 22 29 0d 01 f4 25 72 25 3d 30 3a f2 6f 6b |ay")...%r%=0:.ok| 000004d0 65 72 72 28 22 46 72 65 64 20 68 61 73 20 6d 6f |err("Fred has mo| 000004e0 76 65 64 20 69 6e 21 22 29 0d 01 fe 1c d1 3d 30 |ved in!").....=0| 000004f0 3a 2a 53 45 54 20 46 72 65 64 24 4c 6f 61 64 65 |:*SET Fred$Loade| 00000500 64 20 59 45 53 0d 02 08 05 e1 0d 02 12 04 0d 02 |d YES...........| 00000510 1c 11 dd f2 72 65 63 65 69 76 65 28 72 25 29 0d |....receive(r%).| 00000520 02 26 0f c8 8e 20 71 31 25 21 31 36 20 ca 0d 02 |.&... q1%!16 ...| 00000530 30 15 20 20 c9 20 30 3a f2 73 68 75 74 64 6f 77 |0. . 0:.shutdow| 00000540 6e 3a e0 0d 02 3a 05 cb 0d 02 44 05 e1 0d 02 4e |n:...:....D....N| 00000550 04 0d 02 58 0e dd f2 73 68 75 74 64 6f 77 6e 0d |...X...shutdown.| 00000560 02 62 2a c8 99 22 4f 53 5f 53 70 72 69 74 65 4f |.b*.."OS_SpriteO| 00000570 70 22 2c 32 35 36 2b 32 35 2c 61 72 65 61 25 2c |p",256+25,area%,| 00000580 22 66 72 65 64 62 61 72 22 0d 02 6c 17 2a 53 65 |"fredbar"..l.*Se| 00000590 74 20 46 72 65 64 24 4c 6f 61 64 65 64 20 4e 4f |t Fred$Loaded NO| 000005a0 0d 02 76 18 c8 99 22 57 69 6d 70 5f 43 6c 6f 73 |..v..."Wimp_Clos| 000005b0 65 44 6f 77 6e 22 3a e0 0d 02 80 05 e1 0d 02 8a |eDown":.........| 000005c0 04 0d 02 94 10 dd f2 69 6e 69 63 6f 6e 28 69 24 |.......inicon(i$| 000005d0 29 0d 02 9e 2b 70 25 21 30 3d 2d 31 3a 70 25 21 |)...+p%!0=-1:p%!| 000005e0 34 3d 30 3a 70 25 21 38 3d 30 3a 70 25 21 31 32 |4=0:p%!8=0:p%!12| 000005f0 3d 36 38 3a 70 25 21 31 36 3d 36 38 0d 02 a8 1b |=68:p%!16=68....| 00000600 70 25 21 32 30 3d 26 33 30 30 32 3a 24 28 70 25 |p%!20=&3002:$(p%| 00000610 2b 32 34 29 3d 69 24 0d 02 b2 23 c8 99 20 22 57 |+24)=i$...#.. "W| 00000620 69 6d 70 5f 43 72 65 61 74 65 49 63 6f 6e 22 2c |imp_CreateIcon",| 00000630 2c 70 25 20 b8 20 69 62 68 25 0d 02 bc 05 e1 0d |,p% . ibh%......| 00000640 02 c6 05 20 0d 02 d0 0b dd f2 63 6c 69 63 6b 0d |... ......click.| 00000650 02 da 0e c8 8e 20 71 31 25 21 38 20 ca 0d 02 e4 |..... q1%!8 ....| 00000660 14 20 20 c9 20 34 3a f2 6c 65 66 74 63 6c 69 63 |. . 4:.leftclic| 00000670 6b 0d 02 ee 16 20 20 c9 20 32 3a f2 6d 69 64 64 |k.... . 2:.midd| 00000680 6c 65 63 6c 69 63 6b 0d 02 f8 05 cb 0d 03 02 05 |leclick.........| 00000690 e1 0d 03 0c 04 0d 03 16 0f dd f2 6c 65 66 74 63 |...........leftc| 000006a0 6c 69 63 6b 0d 03 20 19 77 68 25 3d 71 31 25 21 |lick.. .wh%=q1%!| 000006b0 31 32 3a 69 68 25 3d 71 31 25 21 31 36 0d 03 2a |12:ih%=q1%!16..*| 000006c0 36 e7 20 77 68 25 3d 2d 32 20 80 20 73 6c 65 65 |6. wh%=-2 . slee| 000006d0 70 3d a3 20 f2 6f 6b 65 72 72 28 22 4f 69 21 20 |p=. .okerr("Oi! | 000006e0 53 74 6f 70 20 70 72 6f 64 64 69 6e 67 20 6d 65 |Stop prodding me| 000006f0 21 22 29 0d 03 34 5e e7 20 77 68 25 3d 2d 32 20 |!")..4^. wh%=-2 | 00000700 80 20 73 6c 65 65 70 20 f2 6f 6b 65 72 72 28 22 |. sleep .okerr("| 00000710 4f 6b 61 79 2c 20 6f 6b 61 79 2c 20 49 27 6c 6c |Okay, okay, I'll| 00000720 20 77 61 6b 65 20 75 70 20 2d 20 74 68 65 72 65 | wake up - there| 00000730 20 77 61 73 20 6e 6f 20 6e 65 65 64 20 74 6f 20 | was no need to | 00000740 68 69 74 20 6d 65 21 22 29 3a f2 77 61 6b 65 75 |hit me!"):.wakeu| 00000750 70 0d 03 3e 05 e1 0d 03 48 05 20 0d 03 52 11 dd |p..>....H. ..R..| 00000760 f2 6d 69 64 64 6c 65 63 6c 69 63 6b 0d 03 5c 19 |.middleclick..\.| 00000770 77 68 25 3d 71 31 25 21 31 32 3a 69 68 25 3d 71 |wh%=q1%!12:ih%=q| 00000780 31 25 21 31 36 0d 03 66 2a e7 20 77 68 25 3d 2d |1%!16..f*. wh%=-| 00000790 32 20 f2 64 6d 65 6e 75 28 69 63 6d 65 25 2c 21 |2 .dmenu(icme%,!| 000007a0 71 31 25 2d 36 34 2c 39 36 2b 32 2a 34 34 29 0d |q1%-64,96+2*44).| 000007b0 03 70 05 e1 0d 03 7a 04 0d 03 84 14 dd f2 72 65 |.p....z.......re| 000007c0 70 65 72 72 28 72 24 2c 72 65 25 29 0d 03 8e 14 |perr(r$,re%)....| 000007d0 21 70 25 3d 9f 3a 24 28 70 25 2b 34 29 3d 72 24 |!p%=.:$(p%+4)=r$| 000007e0 0d 03 98 2a c8 99 20 22 57 69 6d 70 5f 52 65 70 |...*.. "Wimp_Rep| 000007f0 6f 72 74 45 72 72 6f 72 22 2c 70 25 2c 72 65 25 |ortError",p%,re%| 00000800 2c 22 46 72 65 64 22 2c 72 25 0d 03 a2 05 e1 0d |,"Fred",r%......| 00000810 03 ac 04 0d 03 b6 13 dd f2 66 61 74 61 6c 65 72 |.........fataler| 00000820 72 28 65 72 24 29 0d 03 c0 12 f2 72 65 70 65 72 |r(er$).....reper| 00000830 72 28 65 72 24 2c 32 29 0d 03 ca 0d f2 73 68 75 |r(er$,2).....shu| 00000840 74 64 6f 77 6e 0d 03 d4 05 e1 0d 03 de 04 0d 03 |tdown...........| 00000850 e8 10 dd f2 6f 6b 65 72 72 28 65 72 24 29 0d 03 |....okerr(er$)..| 00000860 f2 12 f2 72 65 70 65 72 72 28 65 72 24 2c 31 29 |...reperr(er$,1)| 00000870 0d 03 fc 05 e1 0d 04 06 05 20 0d 04 10 0c dd f2 |......... ......| 00000880 73 65 6c 65 63 74 0d 04 1a 20 c8 99 20 22 57 69 |select... .. "Wi| 00000890 6d 70 5f 47 65 74 50 6f 69 6e 74 65 72 49 6e 66 |mp_GetPointerInf| 000008a0 6f 22 2c 2c 70 25 0d 04 24 3a c8 99 20 22 57 69 |o",,p%..$:.. "Wi| 000008b0 6d 70 5f 44 65 63 6f 64 65 4d 65 6e 75 22 2c 2c |mp_DecodeMenu",,| 000008c0 6d 65 6e 75 64 61 74 61 25 2c 71 31 25 2c c4 32 |menudata%,q1%,.2| 000008d0 30 30 2c 22 20 22 29 20 b8 20 2c 2c 2c 73 65 24 |00," ") . ,,,se$| 000008e0 0d 04 2e 0e e7 20 73 65 24 3d 22 22 20 e1 0d 04 |..... se$="" ...| 000008f0 38 0c c8 8e 20 73 65 24 20 ca 0d 04 42 5a 20 20 |8... se$ ...BZ | 00000900 c9 20 22 53 65 6e 64 20 68 69 6d 20 61 77 61 79 |. "Send him away| 00000910 22 3a f2 66 61 74 61 6c 65 72 72 28 22 54 61 6c |":.fatalerr("Tal| 00000920 6b 20 61 62 6f 75 74 20 62 65 69 6e 67 20 73 75 |k about being su| 00000930 62 74 6c 65 20 2d 20 49 20 67 65 74 20 74 68 65 |btle - I get the| 00000940 20 6d 65 73 73 61 67 65 2c 20 49 27 6c 6c 20 67 | message, I'll g| 00000950 6f 2e 22 29 0d 04 4c 1b 20 20 c9 20 22 54 6f 20 |o.")..L. . "To | 00000960 73 6c 65 65 70 22 3a f2 73 6c 65 65 70 3a e1 0d |sleep":.sleep:..| 00000970 04 56 1c 20 20 c9 20 22 57 61 6b 65 20 75 70 21 |.V. . "Wake up!| 00000980 22 3a f2 77 61 6b 65 75 70 3a e1 0d 04 60 05 cb |":.wakeup:...`..| 00000990 0d 04 6a 31 e7 20 28 71 31 25 21 38 20 80 20 31 |..j1. (q1%!8 . 1| 000009a0 29 20 f2 64 6d 65 6e 75 28 6d 65 6e 75 64 61 74 |) .dmenu(menudat| 000009b0 61 25 2c 6d 65 6e 75 78 25 2c 6d 65 6e 75 79 25 |a%,menux%,menuy%| 000009c0 29 0d 04 74 05 e1 0d 04 7e 04 0d 04 88 0e dd a4 |)..t....~.......| 000009d0 6b 70 72 65 73 73 65 64 0d 04 92 28 77 69 6e 64 |kpressed...(wind| 000009e0 6f 77 25 3d 21 71 31 25 3a 69 63 6f 6e 25 3d 71 |ow%=!q1%:icon%=q| 000009f0 31 25 21 34 3a 6b 65 79 25 3d 71 31 25 21 32 34 |1%!4:key%=q1%!24| 00000a00 0d 04 9c 05 e1 0d 04 a6 04 0d 04 b0 15 dd f2 64 |...............d| 00000a10 6d 65 6e 75 28 68 25 2c 78 25 2c 79 25 29 0d 04 |menu(h%,x%,y%)..| 00000a20 ba 24 6d 65 6e 75 64 61 74 61 25 3d 68 25 3a 6d |.$menudata%=h%:m| 00000a30 65 6e 75 78 25 3d 78 25 3a 6d 65 6e 75 79 25 3d |enux%=x%:menuy%=| 00000a40 79 25 0d 04 c4 22 c8 99 20 22 57 69 6d 70 5f 43 |y%...".. "Wimp_C| 00000a50 72 65 61 74 65 4d 65 6e 75 22 2c 2c 68 25 2c 78 |reateMenu",,h%,x| 00000a60 25 2c 79 25 0d 04 ce 05 e1 0d 04 d8 05 20 0d 04 |%,y%......... ..| 00000a70 e2 13 dd a4 63 72 6d 65 6e 75 28 74 24 2c 6d 24 |....crmenu(t$,m$| 00000a80 29 0d 04 ec 59 e7 20 28 6d 66 25 2b 32 38 3e 6d |)...Y. (mf%+28>m| 00000a90 65 25 29 20 f2 66 61 74 61 6c 65 72 72 28 22 46 |e%) .fatalerr("F| 00000aa0 61 74 61 6c 20 65 72 72 6f 72 20 2d 20 4e 6f 20 |atal error - No | 00000ab0 72 6f 6f 6d 20 74 6f 20 63 72 65 61 74 65 20 6d |room to create m| 00000ac0 65 6e 75 20 28 44 6f 6e 27 74 20 62 6c 61 6d 65 |enu (Don't blame| 00000ad0 20 6d 65 21 29 22 2b bd 30 29 0d 04 f6 10 6d 70 | me!)"+.0)....mp| 00000ae0 25 3d 6d 66 25 3a 49 25 3d 30 0d 05 00 0b 24 6d |%=mf%:I%=0....$m| 00000af0 70 25 3d 74 24 0d 05 0a 1e 6d 70 25 21 31 32 3d |p%=t$....mp%!12=| 00000b00 37 3a 6d 70 25 21 31 33 3d 32 3a 6d 70 25 21 31 |7:mp%!13=2:mp%!1| 00000b10 34 3d 37 0d 05 14 16 6d 70 25 21 31 35 3d 31 3a |4=7....mp%!15=1:| 00000b20 6d 70 25 21 32 30 3d 34 34 0d 05 1e 14 6d 70 25 |mp%!20=44....mp%| 00000b30 21 32 34 3d 30 3a 6d 70 25 2b 3d 32 38 0d 05 28 |!24=0:mp%+=28..(| 00000b40 11 6d 61 78 78 25 3d a9 28 74 24 29 2d 33 0d 05 |.maxx%=.(t$)-3..| 00000b50 32 05 f5 0d 05 3c 10 20 20 69 24 3d a4 70 28 22 |2....<. i$=.p("| 00000b60 2c 22 29 0d 05 46 13 20 20 f2 6d 65 6e 75 69 74 |,")..F. .menuit| 00000b70 65 6d 28 69 24 29 0d 05 50 0d 20 20 fd 20 69 24 |em(i$)..P. . i$| 00000b80 3d 22 22 0d 05 5a 0a 4d 25 3d 6d 66 25 0d 05 64 |=""..Z.M%=mf%..d| 00000b90 17 4d 25 21 31 36 3d 28 6d 61 78 78 25 2a 38 2b |.M%!16=(maxx%*8+| 00000ba0 36 29 2a 32 0d 05 6e 0b 6d 66 25 3d 6d 70 25 0d |6)*2..n.mf%=mp%.| 00000bb0 05 78 07 3d 4d 25 0d 05 82 05 20 0d 05 8c 15 dd |.x.=M%.... .....| 00000bc0 f2 6d 65 6e 75 69 74 65 6d 28 74 65 78 74 24 29 |.menuitem(text$)| 00000bd0 0d 05 96 26 e7 20 74 65 78 74 24 3d 22 22 20 6d |...&. text$="" m| 00000be0 70 25 21 2d 32 34 3d 28 6d 70 25 21 2d 32 34 29 |p%!-24=(mp%!-24)| 00000bf0 84 26 38 30 3a e1 0d 05 a0 60 e7 20 6d 70 25 2b |.&80:....`. mp%+| 00000c00 32 34 3e 6d 65 25 20 f2 66 61 74 61 6c 65 72 72 |24>me% .fatalerr| 00000c10 28 22 46 61 74 61 6c 20 65 72 72 6f 72 20 2d 20 |("Fatal error - | 00000c20 4e 6f 20 72 6f 6f 6d 20 74 6f 20 63 72 65 61 74 |No room to creat| 00000c30 65 20 6d 65 6e 75 20 28 57 68 79 20 6e 6f 74 20 |e menu (Why not | 00000c40 67 65 74 20 61 20 32 4d 65 67 20 75 70 67 72 61 |get a 2Meg upgra| 00000c50 64 65 3f 29 22 29 0d 05 aa 0a 46 25 3d 26 30 30 |de?)")....F%=&00| 00000c60 0d 05 b4 29 e7 20 c2 74 65 78 74 24 2c 31 29 3d |...). .text$,1)=| 00000c70 22 23 22 20 74 65 78 74 24 3d c0 74 65 78 74 24 |"#" text$=.text$| 00000c80 29 3a 46 25 2b 3d 26 30 32 0d 05 be 29 e7 20 c2 |):F%+=&02...). .| 00000c90 74 65 78 74 24 2c 31 29 3d 22 40 22 20 74 65 78 |text$,1)="@" tex| 00000ca0 74 24 3d c0 74 65 78 74 24 29 3a 46 25 2b 3d 26 |t$=.text$):F%+=&| 00000cb0 30 38 0d 05 c8 0c 6d 70 25 21 30 3d 46 25 0d 05 |08....mp%!0=F%..| 00000cc0 d2 0c 6d 70 25 21 34 3d 2d 31 0d 05 dc 13 6d 70 |..mp%!4=-1....mp| 00000cd0 25 21 38 3d 26 30 37 30 30 30 30 32 31 0d 05 e6 |%!8=&07000021...| 00000ce0 15 e7 20 c0 74 65 78 74 24 2c 31 29 3d 22 24 22 |.. .text$,1)="$"| 00000cf0 20 8c 0d 05 f0 12 49 25 3d a7 74 65 78 74 24 2c | .....I%=.text$,| 00000d00 22 28 22 29 0d 05 fa 0c e7 20 49 25 3e 30 20 8c |"(")..... I%>0 .| 00000d10 0d 06 04 27 6c 25 3d bb c1 74 65 78 74 24 2c 49 |...'l%=..text$,I| 00000d20 25 2b 31 29 3a 74 65 78 74 24 3d c0 74 65 78 74 |%+1):text$=.text| 00000d30 24 2c 49 25 2d 31 29 0d 06 0e 0b cc 20 4c 25 3d |$,I%-1)..... L%=| 00000d40 31 32 0d 06 18 05 cd 0d 06 22 0d 21 6d 70 25 2b |12.......".!mp%+| 00000d50 3d 26 30 34 0d 06 2c 0f 6d 70 25 21 38 2b 3d 26 |=&04..,.mp%!8+=&| 00000d60 31 30 30 0d 06 36 15 6d 70 25 21 31 32 3d a0 c1 |100..6.mp%!12=..| 00000d70 74 65 78 74 24 2c 32 29 0d 06 40 0d 6d 70 25 21 |text$,2)..@.mp%!| 00000d80 31 36 3d 2d 31 0d 06 4a 0d 6d 70 25 21 32 30 3d |16=-1..J.mp%!20=| 00000d90 4c 25 0d 06 54 11 e7 20 4c 25 3e 31 36 20 4c 25 |L%..T.. L%>16 L%| 00000da0 3d 31 36 0d 06 5e 12 74 65 78 74 24 3d c4 4c 25 |=16..^.text$=.L%| 00000db0 2c 22 20 22 29 0d 06 68 05 cc 0d 06 72 11 e7 a9 |," ")..h....r...| 00000dc0 74 65 78 74 24 3c 3d 31 32 20 8c 0d 06 7c 13 24 |text$<=12 ...|.$| 00000dd0 28 6d 70 25 2b 31 32 29 3d 74 65 78 74 24 0d 06 |(mp%+12)=text$..| 00000de0 86 05 cc 0d 06 90 1b 49 25 3d a4 77 6f 72 6b 73 |.......I%=.works| 00000df0 70 61 63 65 28 a9 74 65 78 74 24 2b 31 29 0d 06 |pace(.text$+1)..| 00000e00 9a 0d 24 49 25 3d 74 65 78 74 24 0d 06 a4 16 6d |..$I%=text$....m| 00000e10 70 25 21 38 3d 6d 70 25 21 38 20 84 20 26 31 30 |p%!8=mp%!8 . &10| 00000e20 30 0d 06 ae 0d 6d 70 25 21 31 32 3d 49 25 0d 06 |0....mp%!12=I%..| 00000e30 b8 0d 6d 70 25 21 31 36 3d 2d 31 0d 06 c2 13 6d |..mp%!16=-1....m| 00000e40 70 25 21 32 30 3d a9 74 65 78 74 24 2b 31 0d 06 |p%!20=.text$+1..| 00000e50 cc 05 cd 0d 06 d6 05 cd 0d 06 e0 1f e7 20 a9 74 |............. .t| 00000e60 65 78 74 24 3e 6d 61 78 78 25 20 6d 61 78 78 25 |ext$>maxx% maxx%| 00000e70 3d a9 74 65 78 74 24 0d 06 ea 0b 6d 70 25 2b 3d |=.text$....mp%+=| 00000e80 32 34 0d 06 f4 05 e1 0d 06 fe 04 0d 07 08 0d dd |24..............| 00000e90 a4 70 28 73 65 70 24 29 0d 07 12 0b 4c 25 3d 49 |.p(sep$)....L%=I| 00000ea0 25 2b 31 0d 07 1c 18 49 25 3d a7 6d 24 2b 73 65 |%+1....I%=.m$+se| 00000eb0 70 24 2c 73 65 70 24 2c 4c 25 29 0d 07 26 12 3d |p$,sep$,L%)..&.=| 00000ec0 c1 6d 24 2c 4c 25 2c 49 25 2d 4c 25 29 0d 07 30 |.m$,L%,I%-L%)..0| 00000ed0 04 0d 07 3a 13 dd a4 77 6f 72 6b 73 70 61 63 65 |...:...workspace| 00000ee0 28 4c 25 29 0d 07 44 0b 6d 77 25 2b 3d 4c 25 0d |(L%)..D.mw%+=L%.| 00000ef0 07 4e 08 3d 6d 77 25 0d 07 58 04 0d 07 62 15 dd |.N.=mw%..X...b..| 00000f00 f2 61 6d 65 6e 75 28 6d 25 2c 6f 25 2c 70 25 29 |.amenu(m%,o%,p%)| 00000f10 0d 07 6c 17 21 28 6d 25 2b 32 38 2b 6f 25 2a 32 |..l.!(m%+28+o%*2| 00000f20 34 2b 34 29 3d 70 25 0d 07 76 05 e1 0d 07 80 05 |4+4)=p%..v......| 00000f30 20 0d 07 8a 0b dd f2 73 6c 65 65 70 0d 07 94 0f | ......sleep....| 00000f40 e7 20 73 6c 65 65 70 3d b9 20 e1 0d 07 9e 2e c8 |. sleep=. ......| 00000f50 99 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 |."OS_SpriteOp",2| 00000f60 35 36 2b 32 36 2c 61 72 65 61 25 2c 22 66 72 65 |56+26,area%,"fre| 00000f70 64 62 61 72 22 2c c3 69 25 0d 07 a8 2e c8 99 22 |dbar",.i%......"| 00000f80 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 32 35 36 |OS_SpriteOp",256| 00000f90 2b 32 36 2c 61 72 65 61 25 2c 22 36 22 2c 22 66 |+26,area%,"6","f| 00000fa0 72 65 64 62 61 72 22 0d 07 b2 0b f2 72 65 64 72 |redbar".....redr| 00000fb0 61 77 0d 07 bc 0b 73 6c 65 65 70 3d b9 0d 07 c6 |aw....sleep=....| 00000fc0 05 e1 0d 07 d0 04 0d 07 da 0c dd f2 77 61 6b 65 |............wake| 00000fd0 75 70 0d 07 e4 0f e7 20 73 6c 65 65 70 3d a3 20 |up..... sleep=. | 00000fe0 e1 0d 07 ee 2e c8 99 22 4f 53 5f 53 70 72 69 74 |......."OS_Sprit| 00000ff0 65 4f 70 22 2c 32 35 36 2b 32 36 2c 61 72 65 61 |eOp",256+26,area| 00001000 25 2c 22 66 72 65 64 62 61 72 22 2c 22 36 22 0d |%,"fredbar","6".| 00001010 07 f8 2e c8 99 22 4f 53 5f 53 70 72 69 74 65 4f |....."OS_SpriteO| 00001020 70 22 2c 32 35 36 2b 32 36 2c 61 72 65 61 25 2c |p",256+26,area%,| 00001030 c3 69 25 2c 22 66 72 65 64 62 61 72 22 0d 08 02 |.i%,"fredbar"...| 00001040 0b f2 72 65 64 72 61 77 0d 08 0c 0b 73 6c 65 65 |..redraw....slee| 00001050 70 3d a3 0d 08 16 05 e1 0d ff |p=........| 0000105a