Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199607.adf » Regulars » RunTheRisc/MacIcons/!MacIcon/MacIcon

RunTheRisc/MacIcons/!MacIcon/MacIcon

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199607.adf » Regulars
Filename: RunTheRisc/MacIcons/!MacIcon/MacIcon
Read OK:
File size: 32A4 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > !Tiler.Tiler
   20REM Version 1.0 By Mike Cook - Musbury Consultants
   30ON ERROR PROCerrorbox
   40DIM taskid% 4:$taskid%="TASK": DIM intmess% 20
   50intmess%!0=1:intmess%!4=2:intmess%!8=3:intmess%!12=&502:intmess%!16=0
   60SYS "Wimp_Initialise",300,!taskid%,"MacIcon",intmess% TO version%,taskhand%
   70SPr%=148000:REM for 70 icons
   80DIM SP% SPr%
   90BufL%=&20000:MR%=100:MNR%=90
  100DIM Buf% BufL%
  110DIM Rn$(MR%),Rso%(MR%,MNR%),Rtnum%(MR%,MNR%),Rntt%(MR%),CN%(255)
  120PROCsinit
  130
  140DIM q% &300,csw256% &300,temp% 300,buffers% 512,menu% 228
  150DIM menu256% 220,svw% &300,TextWarn% 255
  160DIM ww% 300, WN% 255, SF% 16
  170DIM daname% 80,PTT% 2048
  180DIM CN% 30
  190DIM UP% 256*4,SVW% 256
  200SYS "Wimp_OpenTemplate",,"<MacIcon$Dir>.Templates"
  210ON ERROR SYS "Wimp_CloseTemplate":PROCerrorbox
  220SYS "Wimp_LoadTemplate",,q%,temp%,temp%+256,-1,"Info",0
  230SYS "Wimp_CreateWindow",,q% TO info%
  240
  250SYS "Wimp_LoadTemplate",,csw256%+4,temp%,temp%+256,-1,"SP256",0
  260csw256%!28=-1:csw256%!76=WN%
  270SYS "Wimp_CreateWindow",,csw256%+4 TO Win256%
  280csw256%!0=Win256%
  290
  300SYS "Wimp_LoadTemplate",,svw%+4,SVW%,SVW%+256,-1,"save_script",0
  310svw%!28=-1
  320SYS "Wimp_CreateWindow",,svw%+4 TO SVWIN%
  330svw%!0=SVWIN%
  340
  350SYS "Wimp_LoadTemplate",,q%,ww%,ww%+256,-1,"Warning",0
  360q%!108=TextWarn%:q%!112=-1:q%!116=300
  370XQ%=q%!8-q%!0:YQ%=q%!12-q%!4
  380SYS "Wimp_CreateWindow",,q% TO warningW%
  390
  400SYS "Wimp_CloseTemplate"
  410ON ERROR PROCerrorbox
  420
  430Alloc%=0
  440SPX%=290: SPY%=320 : OffSet%=4060
  450$WN%="Icon"
  460
  470PROCsetupmenu
  480MacIcon%=FNicon
  490
  500ScP%=0 : Sal%=0 : REM Scrap memory pointer and Scrap allocation
  510PROC_PutName("Sprite")
  520
  530ON ERROR PROCerrorbox2
  540PROC_MtoA
  550IconNumber%=0
  560
  570RiscPC=INKEY(-256)
  580IF RiscPC<165 THEN RiscPC=FALSE ELSE RiscPC=TRUE
  590IF NOT(RiscPC) THEN SYS"OS_ReadDynamicArea",0 TO HeapP%
  600
  610REPEAT
  620  SYS "Wimp_Poll",%1,q% TO A%
  630  CASE A% OF
  640  WHEN 1:PROC_DoWindow(q%)
  650  WHEN 2:PROC_OpenWindow(q%)
  660  WHEN 3:PROC_CloseWindow(q%)
  670  WHEN 6:PROC_do_click(q%)
  680  WHEN 7:PROC_PutDown(q%)
  690  WHEN 8:PROC_KeyPress
  700  WHEN 9:PROC_DoMenu(q%)
  710  WHEN 17,18:PROCreceive(q%)
  720  ENDCASE
  730UNTIL FALSE
  740
  750DEF PROC_CloseWindow(q%)
  760IF q%!0=Win256% THEN
  770SYS"Wimp_GetWindowInfo",,csw256%
  780IconNumber%=0
  790PROCsinit
  800ENDIF
  810
  820SYS"Wimp_CloseWindow",,q%
  830ENDPROC
  840
  850DEF PROC_do_click(q%)
  860
  870i%=q%!16
  880IF q%!12=SVWIN% THEN HALFS%=FALSE : PROC_DoSave:ENDPROC
  890
  900 IF q%!12=-2 AND q%!16=MacIcon% THEN
  910 IF q%!8=2 THEN SYS"Wimp_CreateMenu",,menu%,q%!0-56,200
  920 MEN%=1
  930ENDIF
  940
  950IF q%!12=warningW% AND i%=3 THEN
  960                       q%!0=warningW%
  970                       PROC_CloseWindow(q%)
  980                       PROC_resmouse
  990    ENDIF
 1000IF q%!12=warningW% AND i%=2 THEN PROCdie
 1010
 1020IF q%!12=Win256% AND  q%!8=2 THEN
 1030SYS"Wimp_CreateMenu",,menu256%,q%!0-96,q%!4
 1040MEN%=2
 1050ENDIF
 1060
 1070ENDPROC
 1080
 1090DEF PROC_DoMenu(q%)
 1100CASE MEN% OF
 1110WHEN 1:
 1120CASE !q% OF
 1130  WHEN 1:PROCdie
 1140 ENDCASE
 1150
 1160WHEN 2:
 1170CASE !q% OF
 1180  WHEN 1:SYS "OS_SpriteOp",12+256,SP%,"<Wimp$Scrap>"
 1190         OSCLI("BackDrop -tile <Wimp$Scrap>")
 1200
 1210         SYS"Wimp_ForceRedraw",Win256%,0,-SPY%*2,SPX%*2,0
 1220 ENDCASE
 1230ENDCASE
 1240
 1250ENDPROC
 1260
 1270DEF PROC_SetUpWindow(w%)
 1280SYS("Wimp_OpenWindow"),,w%
 1290ENDPROC
 1300
 1310DEF PROC_OpenWindow(q%)
 1320IF q%!0=Win256% THEN PROC_SetCols
 1330 SYS("Wimp_OpenWindow"),,q%
 1340ENDPROC
 1350
 1360DEF PROC_DoWindow(q%)
 1370LOCAL flag%,wh%
 1380wh%=!q%
 1390SYS("Wimp_RedrawWindow"),,q% TO flag%
 1400
 1410PROC_ftj(flag%)
 1420ENDPROC
 1430
 1440DEF PROC_ftj(flag%)
 1450WHILE flag%
 1460PROC_redraw(q%)
 1470SYS "Wimp_GetRectangle",,q% TO flag%
 1480ENDWHILE
 1490ENDPROC
 1500
 1510DEF PROC_redraw(w%)
 1520LOCAL x%,y%,A%,N$,in%
 1530
 1540VDU5
 1550IF w%!0=Win256% THEN
 1560SYS "Wimp_GetWindowState",,w%
 1570      x%=8+w%!4-w%!20 : y%=w%!16-w%!24
 1580   IF IconNumber%<>0 THEN
 1590   FOR in%=IconNumber%-1 TO 0 STEP -1
 1600   N$="icon"+STR$(in%)
 1610   SYS "OS_SpriteOp",52+256,SP%,N$,x%,y%-68*(IconNumber%-in%),&8,0,PTT%
 1620   MOVE x%+68,y%-68*(IconNumber%-in%)+32
 1630   PRINTN$
 1640   NEXT
 1650   ENDIF
 1660ENDIF
 1670VDU4
 1680ENDPROC
 1690
 1700DEFFNicon
 1710q%!0=-1
 1720q%!4=0
 1730q%!8=0 : REM Y DIRECTION
 1740q%!12=64 : REM X DIRECTION
 1750q%!16=96
 1760q%!20=&2002
 1770$(q%+24)="!MacIcon"
 1780SYS "Wimp_CreateIcon",,q% TO icon%
 1790=icon%
 1800
 1810DEFPROCsetupmenu
 1820LOCAL m%
 1830
 1840$menu256%="Icons"
 1850menu256%?12=7
 1860menu256%?13=2
 1870menu256%?14=7
 1880menu256%?15=0
 1890menu256%!16=184
 1900menu256%!20=40
 1910menu256%!24=0
 1920m%=menu256%+28
 1930m%!0=&80
 1940m%!4=SVWIN%
 1950m%!8=(7<<24)OR %10001
 1960$(m%+12)="Save"
 1970
 1980$menu%="MacIcon"
 1990menu%?12=7
 2000menu%?13=2
 2010menu%?14=7
 2020menu%?15=0
 2030menu%!16=184
 2040menu%!20=40
 2050menu%!24=0
 2060m%=menu%+28
 2070m%!0=2
 2080m%!4=info%
 2090m%!8=(7<<24)OR %10001
 2100$(m%+12)="Info"
 2110
 2120m%+=24
 2130m%!0=&80
 2140m%!4=0
 2150m%!8=(7<<24)OR %10001
 2160$(m%+12)="Quit"
 2170ENDPROC
 2180
 2190DEF PROCreceive(q%)
 2200LOCAL A%
 2210CASE q%!16 OF
 2220WHEN 0:PROCdie
 2230WHEN 1: q%!16=2:q%!36=-1:PROC_sput(q%+44,"<Wimp$Scrap>")
 2240        messh%=q%!4:q%!0=60
 2250        saveref%=q%!8
 2260        SYS "Wimp_SendMessage",17,q%,messh%
 2270
 2280WHEN 2: IF q%!12=saveref% THEN
 2290          secureF%=q%!36
 2300          fn$=FNsget(q%+44):PROC_Save
 2310          q%!12=saveref%:q%!16=3:q%!0=256:q%!40=&FF9
 2320          q%!20=messh%:q%!24=messi%:q%!28=messx%:q%!32=messy%
 2330          SYS "Wimp_SendMessage",17,q%,messh%,messi%
 2340          ENDIF
 2350
 2360WHEN 3:n$=FNsget(q%+44)
 2370       sendth%=q%!4:icontype%=q%!40
 2380       myref%=q%!8
 2390       IF q%!20=-2 AND q%!24=MacIcon% AND q%!40=&FFD THEN
 2400        PROC_ImageLoad(n$)
 2410        PROC_Dack
 2420       ENDIF
 2430       IF q%!20=Win256% AND q%!40=&FFD THEN PROC_ImageLoad(n$):PROC_Dack
 2440
 2450WHEN &502:CASE TRUE OF
 2460       WHEN q%!32=-2 AND q%!36=MacIcon%:mes$="This is the MacIcon icon.|MDrag a resource file here to view it as a sprite."
 2470       OTHERWISE:mes$=""
 2480       ENDCASE
 2490    IF mes$<>"" THEN
 2500    q%!12=q%!8
 2510    $(q%+20)=mes$+CHR$0
 2520    q%!0=(20+LENmes$+4)AND NOT 3
 2530    q%!16=&503
 2540    SYS "Wimp_SendMessage",18,q%,q%!4
 2550ENDCASE
 2560ENDPROC
 2570
 2580DEF PROC_Dack
 2590q%!12=myref%
 2600q%!16=4:q%!0=256
 2610SYS "Wimp_SendMessage",17,q%,sendth%
 2620IF n$="<Wimp$Scrap>" THEN OSCLI("DELETE "+n$)
 2630ENDPROC
 2640
 2650DEFPROCdie
 2660IF RiscPC THEN
 2670IF Alloc%<>0 THEN SYS"OS_DynamicArea",1,Alloc%
 2680ELSE
 2690IF Alloc%<>0 THEN SYS"OS_Heap",3,HeapP%,Alloc%
 2700ENDIF
 2710SYS "Wimp_CloseDown",taskhand%,!taskid%
 2720PROC_resmouse
 2730END
 2740ENDPROC
 2750
 2760DEF PROC_resmouse
 2770LOCAL xw%,yw%,xs%,ys%
 2780SYS"OS_ReadModeVariable",-1,11 TO ,,xw%
 2790SYS"OS_ReadModeVariable",-1,12 TO ,,yw%
 2800SYS"OS_ReadModeVariable",-1,4 TO ,,xs%
 2810SYS"OS_ReadModeVariable",-1,5 TO ,,ys%
 2820xw%=xw%<<xs%
 2830yw%=yw%<<ys%
 2840MOUSERECTANGLE 0,0,xw%,yw%
 2850ENDPROC
 2860
 2870DEFFNsget(x%)
 2880LOCAL x$
 2890WHILE ?x%>&1F x$+=CHR$(?x%):x%+=1:ENDWHILE
 2900=x$
 2910
 2920DEFFNpg(n%)
 2930LOCAL A$
 2940A$=FNsget(SPoint%(n%))
 2950=VAL(A$)
 2960
 2970
 2980
 2990DEF PROC_LoadS
 3000SYS"OS_SpriteOp",10+256,SP%,TarS$
 3010cb%=SP%+(SP%!8)
 3020SYS"OS_SpriteOp",26+512,SP%,cb%,"Tiler_Image"
 3030ENDPROC
 3040
 3050DEF PROC_FourFold
 3060ENDPROC
 3070
 3080DEF PROCerrorbox2
 3090SYS"OS_SpriteOp",60+256,SP%,0,0
 3100IF ERR=&108D5 OR ERR=&108D4 THEN GOTO 610
 3110E$=REPORT$+" at "+STR$ERL+CHR$0
 3120PROC_setupW(E$)
 3130SYS"Hourglass_Off"
 3140GOTO 610
 3150ENDPROC
 3160
 3170DEF PROCerrorbox
 3180ON ERROR OFF
 3190SYS "Wimp_DragBox",,-1
 3200!buffers%=ERR:$(buffers%+4)=REPORT$+" line "+STR$ERL+CHR$0
 3210SYS "Wimp_ReportError",buffers%,1,"Tiler Read"
 3220
 3230PROCdie
 3240ENDPROC
 3250
 3260DEF PROC_KeyPress
 3270i%=2
 3280PROC_DoSave
 3290ENDPROC
 3300
 3310DEF PROC_DoSave
 3320IF i%=3 THEN
 3330            SYS "Wimp_GetPointerInfo",,q%
 3340            PROCdragicon(q%!0,q%!4,SVWIN%,i%)
 3350 ENDIF
 3360
 3370IF i%=2 THEN
 3380 PROC_GetName
 3390 IF INSTR(fn$,":") THEN PROC_Save ELSE PROC_setupW("Drag the Icon into a Directory")
 3400 SYS "Wimp_CreateMenu",,-1
 3410ENDIF
 3420ENDPROC
 3430
 3440DEF PROC_Save
 3450LOCAL ch%,sx%,sy%,sm%
 3460IF LEN(fn$)=0 THEN PROC_setupW("You need to put in a file name"):ENDPROC
 3470IF RIGHT$(fn$,1)="." THEN PROC_setupW("You need to put in a file name"):ENDPROC
 3480REM Save it
 3490SYS "OS_SpriteOp",12+256,SP%,fn$
 3500PROC_PutName(fn$)
 3510ENDPROC
 3520
 3530DEF PROCdragicon(mousex%,mousey%,handle%,icon%)
 3540LOCAL bx%,by%,ix0%,iy0%,ix1%,iy1%
 3550PROCgetw(handle%)
 3560PROCgeti(handle%,icon%)
 3570!q%=handle%:q%!4=5
 3580q%!8=bx%+ix0%:q%!12=by%+iy0%:q%!16=bx%+ix1%:q%!20=by%+iy1%
 3590q%!24=q%!8-mousex%:q%!28=q%!12-mousey%
 3600SYS "Wimp_DragBox",,q%
 3610SFLAG%=TRUE
 3620ENDPROC
 3630
 3640DEF PROCgetw(handle%)
 3650!q%=handle%:SYS "Wimp_GetWindowState",,q%:PROCinfo(q%+4)
 3660ENDPROC
 3670DEF PROCgeti(h%,i%)
 3680!q%=h%:q%!4=i%:SYS "Wimp_GetIconState",,q%
 3690ix0%=q%!8:iy0%=q%!12:ix1%=q%!16:iy1%=q%!20
 3700iflags%=q%!24:idata%=q%+28
 3710ENDPROC
 3720
 3730DEF PROCinfo(p%)
 3740LOCAL x0%,y0%
 3750x0%=!p%:y0%=p%!4:x1%=p%!8:y1%=p%!12
 3760scx%=p%!16:scy%=p%!20:bhandle%=p%!24:flags%=p%!28
 3770bx%=x0%-scx%:by%=y1%-scy%
 3780ENDPROC
 3790
 3800
 3810DEF PROC_GetName
 3820LOCAL T%,A%,F$
 3830F$="":fn$=""
 3840q%!0=SVWIN%:q%!4=1
 3850SYS "Wimp_GetIconState",,q%
 3860T%=q%!28
 3870T%-=1
 3880REPEAT
 3890T%+=1
 3900F$=F$+CHR$(?T%)
 3910UNTIL ?T%=0
 3920fn$=MID$(F$,1,LEN(F$)-1)
 3930ENDPROC
 3940
 3950DEF PROC_PutDown(q%)
 3960PROC_GetName
 3970SYS "Wimp_GetPointerInfo",,q%
 3980messh%=q%!12:messi%=q%!16:messx%=q%!0:messy%=q%!4
 3990IF INSTR( fn$,":") THEN fn$=FN_spath(fn$)
 4000$(q%+44)=fn$
 4010?(q%+44+LEN(fn$))=0
 4020q%!20=q%!12:q%!28=q%!0:q%!32=q%!4:q%!36=SP%:q%!40=&FF9
 4030q%!0=56:q%!12=0:q%!16=1
 4040SYS "Wimp_SendMessage",17,q%,messh%,messi%
 4050saveref%=q%!8
 4060SYS "Wimp_CreateMenu",,-1
 4070ENDPROC
 4080
 4090DEF FN_spath(n$)
 4100WHILE INSTR(n$,".")
 4110n$=RIGHT$(n$,LEN(n$)-1)
 4120ENDWHILE
 4130IF LEN(n$)>10 THEN n$=RIGHT$(n$,10)
 4140=n$
 4150
 4160DEF PROC_PutName(p$)
 4170LOCAL T%
 4180q%!0=SVWIN%:q%!4=1
 4190SYS "Wimp_GetIconState",,q%
 4200T%=q%!28
 4210$T%=p$
 4220!(T%+LEN(p$))=0
 4230ENDPROC
 4240
 4250DEF PROC_setupW(t$)
 4260!q%=warningW%:q%!4=200:q%!8=200:q%!12=200+XQ%:q%!16=200+YQ%:q%!20=0:q%!24=0:q%!28=-1
 4270$TextWarn%=t$
 4280TextWarn%?LEN(t$)=0
 4290VDU 7
 4300SYS "Wimp_OpenWindow",,q%
 4310MOUSE RECTANGLE 200,200,XQ%,YQ%
 4320ENDPROC
 4330
 4340DEF PROC_PutPal
 4350FOR A%=0 TO 255
 4360B%=(UP%?(A%*4+1))<<8 OR (UP%?(A%*4+2))<<16 OR (UP%?(A%*4+3))<<24
 4370pal%!(A%*8)=B%
 4380pal%!(A%*8+4)=B%
 4390NEXT
 4400ENDPROC
 4410
 4420DEF PROC_sput(x%,X$)
 4430LOCAL A%
 4440FOR A%=1 TO LEN(X$)
 4450?x%=ASC(MID$(X$,A%,1))
 4460x%+=1
 4470NEXT
 4480?x%=0
 4490ENDPROC
 4500
 4510DEF PROC_SetCols
 4520LOCAL grab%,A%
 4530
 4540SYS"OS_ReadModeVariable",-1,3 TO ,,Ncolours%
 4550
 4560IF IconNumber%<>0 THEN SYS"ColourTrans_SelectTable",SP%,"icon0",-1,-1,PTT%,0
 4570ENDPROC
 4580
 4590DEF PROCrs
 4600LOCAL A%,B%,T%,C%,M%,S%,K%,Z%,N$,ic%,mp%
 4610IC8%=FN_FR("icl8")
 4620IF IC8%=-1 THEN
 4630PROC_setupW("No icl8 icons found")
 4640ELSE
 4650ICM%=FN_FR("ICN#")
 4660FOR ic%=1 TO Rntt%(IC8%)
 4670N$="icon"+STR$(IconNumber%)
 4680SYS"OS_SpriteOp",8+256,SP% TO ,,,,B%,A%
 4690SYS"OS_SpriteOp",15+256,SP%,N$,0,32,32,28 :REM Make a new sprite
 4700SYS"OS_SpriteOp",29+256,SP%,N$ : REM Create Mask
 4710
 4720IconNumber%+=1
 4730REM Get the icon
 4740Spoint%=SP%+(SP%!(A%+32))+A%
 4750FOR C%=0 TO (32*32)-1
 4760Z%=Buf%?(Rso%(IC8%,ic%-1)+4+C%)
 4770Spoint%?C%=CN%(Z%)
 4780NEXT
 4790
 4800REM Put in the mask
 4810Spoint%=SP%+(SP%!(A%+36))+A%
 4820C%=0:S%=0
 4830mp%=-1
 4840REPEAT
 4850mp%+=1
 4860UNTIL Rtnum%(IC8%,ic%-1)=Rtnum%(ICM%,mp%) OR mp%=Rntt%(ICM%)
 4870
 4880  IF Rtnum%(IC8%,ic%-1)=Rtnum%(ICM%,mp%) THEN
 4890REPEAT
 4900M%=Buf%?(Rso%(ICM%,mp%)+4+S%+128)
 4910S%+=1
 4920FOR T%=0 TO 7
 4930K%=M% AND &80
 4940IF K%=&80 THEN K%=255
 4950Spoint%?C%=K%
 4960M%=M%<<1
 4970C%+=1
 4980NEXT
 4990UNTIL C%>=1023
 5000  ELSE
 5010  FOR K%=0 TO 32*32
 5020  Spoint%?K%=255
 5030  NEXT
 5040  ENDIF
 5050NEXT ic%
 5060ENDIF
 5070ENDPROC
 5080
 5090DEF PROCsinit
 5100SP%!0=SPr%
 5110SP%!8=16
 5120SYS"OS_SpriteOp",9+256,SP%
 5130ENDPROC
 5140
 5150DEF FN_FR(R$)
 5160LOCAL A%,B%
 5170B%=-1:A%=0
 5180REPEAT
 5190IF R$=Rn$(A%) THEN B%=A%
 5200A%+=1
 5210UNTIL B%<>-1 OR A%>Nr%
 5220=B%
 5230
 5240DEF PROC_ImageLoad(D$)
 5250F%=OPENIN(D$)
 5260SYS"Hourglass_Start",100
 5270A%=0
 5280REPEAT
 5290B%=BGET#F%
 5300Buf%?A%=B%
 5310A%+=1
 5320UNTIL EOF#F% OR A%=BufL%
 5330CLOSE #F%
 5340Ro%=FN_Br(0) :REM Resorce data offset
 5350Mapo%=FN_Br(4) :REM Resorce Map offset
 5360DataL%=FN_Br(8) :REM Length of resorce data
 5370MapL%=FN_Br(12)  :REM Length of resorce map
 5380Otl%=FN_Br2(Mapo%+24)+Mapo% :REM Offset to type list
 5390Nr%=FN_Br2(Otl%)+1 :REM Number of resorces
 5400PROC_LR
 5410PROCrs
 5420PROC_SetCols
 5430SYS"Wimp_GetWindowInfo",,csw256%
 5440SYS"Wimp_CloseWindow",,csw256%
 5450
 5460SPX%=92:SPY%=34*IconNumber%+2
 5470csw256%!12=csw256%!4+SPX%*2
 5480csw256%!16=csw256%!8+SPY%*2
 5490temp%!0=0:temp%!4=-SPY%*2:temp%!8=SPX%*2:temp%!12=0
 5500
 5510SYS"Wimp_OpenWindow",,csw256%
 5520SYS"Wimp_SetExtent",Win256%,temp%
 5530
 5540SYS"Hourglass_Off"
 5550ENDPROC
 5560
 5570DEF PROC_LR :REM Locate resorces
 5580LOCAL A%,B%,C%,D%,S%
 5590A%=0
 5600B%=Otl%+2
 5610PRINT~B%
 5620REPEAT
 5630Rn$(A%)=""
 5640FOR C%=0 TO 3
 5650Rn$(A%)=Rn$(A%) + CHR$(Buf%?(B%+C%))
 5660NEXT
 5670Rntt%(A%)=FN_Br2(B%+4)+1
 5680D%=FN_Br2(B%+6)+Otl%
 5690FOR S%=0 TO Rntt%(A%)-1
 5700Rso%(A%,S%)=FN_Br3((D%+5)+(S%*12))+Ro%
 5710Rtnum%(A%,S%)=FN_Br2(D%+S%*12)
 5720NEXT
 5730B%+=8
 5740A%+=1
 5750UNTIL A%=Nr%
 5760ENDPROC
 5770
 5780DEF FN_Br(O%)
 5790=(Buf%?O%)<<24 OR (Buf%?(O%+1))<<16 OR (Buf%?(O%+2))<<8 OR Buf%?(O%+3)
 5800DEF FN_Br2(O%)
 5810=(?(Buf%+O%))<<8 OR ?(Buf%+O%+1)
 5820DEF FN_Br3(O%)
 5830=(Buf%?O%)<<16 OR (Buf%?(O%+1))<<8 OR Buf%?(O%+2)
 5840
 5850REM Macintosh default pallette
 5860REM and colour translation
 5870DEF PROC_MtoA
 5880FOR A%=0 TO 255
 5890READ CN%(A%)
 5900NEXT
 5910DATA 255,247,247,127,119,119,223,215
 5920DATA 215,95,87,87,222,221,214,94
 5930DATA 86,85,190,183,182,62,54,54
 5940DATA 159,151,151,31,23,23,157,157
 5950DATA 149,29,29,21,251,243,243,123
 5960DATA 115,115,219,252,244,244,124,116
 5970DATA 221,221,213,93,92,85,187,179
 5980DATA 181,59,51,53,155,147,180,27
 5990DATA 19,52,156,156,148,148,28,20
 6000DATA 250,243,242,122,114,114,249,248
 6010DATA 240,121,120,112,217,217,209,89
 6020DATA 89,81,186,185,178,58,50,49
 6030DATA 154,184,146,26,18,48,153,152
 6040DATA 144,25,24,16,239,231,230,111
 6050DATA 103,102,207,199,229,79,71,101
 6060DATA 206,205,197,77,70,69,174,174
 6070DATA 166,46,38,38,143,135,134,15
 6080DATA 7,6,141,141,133,13,24,5
 6090DATA 235,227,227,107,99,99,203,236
 6100DATA 228,75,108,100,202,204,194,74
 6110DATA 66,68,170,163,162,42,34,34
 6120DATA 139,131,131,11,3,36,140,140
 6130DATA 132,132,12,4,234,234,226,106
 6140DATA 98,98,232,232,224,224,104,96
 6150DATA 201,201,193,73,72,65,170,169
 6160DATA 161,41,34,33,138,168,160,160
 6170DATA 40,32,136,136,128,128,8,21
 6180DATA 20,20,17,16,16,4,4,1
 6190DATA 0,97,97,96,65,64,64,33
 6200DATA 32,1,1,136,136,136,136,128
 6210DATA 128,8,8,8,0,254,253,211
 6220DATA 210,208,47,45,44,2,1,0
 6230ENDPROC
 6240

� > !Tiler.Tiler
4� Version 1.0 By Mike Cook - Musbury Consultants
� � �errorbox
(.� taskid% 4:$taskid%="TASK": � intmess% 20
2Iintmess%!0=1:intmess%!4=2:intmess%!8=3:intmess%!12=&502:intmess%!16=0
<Mș "Wimp_Initialise",300,!taskid%,"MacIcon",intmess% � version%,taskhand%
FSPr%=148000:� for 70 icons
P� SP% SPr%
Z BufL%=&20000:MR%=100:MNR%=90
d� Buf% BufL%
nB� Rn$(MR%),Rso%(MR%,MNR%),Rtnum%(MR%,MNR%),Rntt%(MR%),CN%(255)
x
�sinit
�
�;� q% &300,csw256% &300,temp% 300,buffers% 512,menu% 228
�*� menu256% 220,svw% &300,TextWarn% 255
�� ww% 300, WN% 255, SF% 16
�� daname% 80,PTT% 2048
�� CN% 30
�� UP% 256*4,SVW% 256
�5ș "Wimp_OpenTemplate",,"<MacIcon$Dir>.Templates"
�)� � ș "Wimp_CloseTemplate":�errorbox
�:ș "Wimp_LoadTemplate",,q%,temp%,temp%+256,-1,"Info",0
�&ș "Wimp_CreateWindow",,q% � info%
�
�Bș "Wimp_LoadTemplate",,csw256%+4,temp%,temp%+256,-1,"SP256",0
 csw256%!28=-1:csw256%!76=WN%
/ș "Wimp_CreateWindow",,csw256%+4 � Win256%
csw256%!0=Win256%
"
,Cș "Wimp_LoadTemplate",,svw%+4,SVW%,SVW%+256,-1,"save_script",0
6svw%!28=-1
@+ș "Wimp_CreateWindow",,svw%+4 � SVWIN%
Jsvw%!0=SVWIN%
T
^9ș "Wimp_LoadTemplate",,q%,ww%,ww%+256,-1,"Warning",0
h)q%!108=TextWarn%:q%!112=-1:q%!116=300
r XQ%=q%!8-q%!0:YQ%=q%!12-q%!4
|*ș "Wimp_CreateWindow",,q% � warningW%
�
�ș "Wimp_CloseTemplate"
�� � �errorbox
�
�Alloc%=0
�%SPX%=290: SPY%=320 : OffSet%=4060
�$WN%="Icon"
�
��setupmenu
�MacIcon%=�icon
�
�AScP%=0 : Sal%=0 : � Scrap memory pointer and Scrap allocation
��_PutName("Sprite")

� � �errorbox2

�_MtoA
&IconNumber%=0
0
:RiscPC=�(-256)
D&� RiscPC<165 � RiscPC=� � RiscPC=�
N3� �(RiscPC) � ș"OS_ReadDynamicArea",0 � HeapP%
X
b�
l  ș "Wimp_Poll",%1,q% � A%
v
  Ȏ A% �
�  � 1:�_DoWindow(q%)
�  � 2:�_OpenWindow(q%)
�  � 3:�_CloseWindow(q%)
�  � 6:�_do_click(q%)
�  � 7:�_PutDown(q%)
�  � 8:�_KeyPress
�  � 9:�_DoMenu(q%)
�  � 17,18:�receive(q%)
�  �
�� �
�
�� �_CloseWindow(q%)
�� q%!0=Win256% �
#ș"Wimp_GetWindowInfo",,csw256%
IconNumber%=0

�sinit
 �
*
4ș"Wimp_CloseWindow",,q%
>�
H
R� �_do_click(q%)
\
fi%=q%!16
p*� q%!12=SVWIN% � HALFS%=� : �_DoSave:�
z
�" � q%!12=-2 � q%!16=MacIcon% �
�6 � q%!8=2 � ș"Wimp_CreateMenu",,menu%,q%!0-56,200
� MEN%=1
��
�
�� q%!12=warningW% � i%=3 �
�)                       q%!0=warningW%
�,                       �_CloseWindow(q%)
�%                       �_resmouse
�	    �
�#� q%!12=warningW% � i%=2 � �die
�
�� q%!12=Win256% �  q%!8=2 �
.ș"Wimp_CreateMenu",,menu256%,q%!0-96,q%!4

MEN%=2
�
$
.�
8
B� �_DoMenu(q%)
L
Ȏ MEN% �
V� 1:
`Ȏ !q% �
j  � 1:�die
t �
~
�� 2:
�Ȏ !q% �
�4  � 1:ș "OS_SpriteOp",12+256,SP%,"<Wimp$Scrap>"
�-         �("BackDrop -tile <Wimp$Scrap>")
�
�<         ș"Wimp_ForceRedraw",Win256%,0,-SPY%*2,SPX%*2,0
� �
��
�
��
�
�� �_SetUpWindow(w%)
ș("Wimp_OpenWindow"),,w%

�

� �_OpenWindow(q%)
(� q%!0=Win256% � �_SetCols
2 ș("Wimp_OpenWindow"),,q%
<�
F
P� �_DoWindow(q%)
Z� flag%,wh%
dwh%=!q%
n'ș("Wimp_RedrawWindow"),,q% � flag%
x
��_ftj(flag%)
��
�
�� �_ftj(flag%)
�ȕ flag%
��_redraw(q%)
�&ș "Wimp_GetRectangle",,q% � flag%
��
��
�
�� �_redraw(w%)
�� x%,y%,A%,N$,in%
�
�5
� w%!0=Win256% �
 ș "Wimp_GetWindowState",,w%
"*      x%=8+w%!4-w%!20 : y%=w%!16-w%!24
,   � IconNumber%<>0 �
6#   � in%=IconNumber%-1 � 0 � -1
@   N$="icon"+�(in%)
JJ   ș "OS_SpriteOp",52+256,SP%,N$,x%,y%-68*(IconNumber%-in%),&8,0,PTT%
T)   � x%+68,y%-68*(IconNumber%-in%)+32
^
   �N$
h   �
r   �
|�
��4
��
�
�
ݤicon
�q%!0=-1
�
q%!4=0
�q%!8=0 : � Y DIRECTION
�q%!12=64 : � X DIRECTION
�q%!16=96
�q%!20=&2002
�$(q%+24)="!MacIcon"
�$ș "Wimp_CreateIcon",,q% � icon%
�
=icon%

��setupmenu
� m%
&
0$menu256%="Icons"
:menu256%?12=7
Dmenu256%?13=2
Nmenu256%?14=7
Xmenu256%?15=0
bmenu256%!16=184
lmenu256%!20=40
vmenu256%!24=0
�m%=menu256%+28
�m%!0=&80
�m%!4=SVWIN%
�m%!8=(7<<24)� %10001
�$(m%+12)="Save"
�
�$menu%="MacIcon"
�menu%?12=7
�menu%?13=2
�menu%?14=7
�menu%?15=0
�menu%!16=184
�menu%!20=40
menu%!24=0
m%=menu%+28

m%!0=2
 m%!4=info%
*m%!8=(7<<24)� %10001
4$(m%+12)="Info"
>
H
m%+=24
Rm%!0=&80
\
m%!4=0
fm%!8=(7<<24)� %10001
p$(m%+12)="Quit"
z�
�
�� �receive(q%)
�� A%
�Ȏ q%!16 �
�� 0:�die
�6� 1: q%!16=2:q%!36=-1:�_sput(q%+44,"<Wimp$Scrap>")
�        messh%=q%!4:q%!0=60
�        saveref%=q%!8
�.        ș "Wimp_SendMessage",17,q%,messh%
�
�� 2: � q%!12=saveref% �
�          secureF%=q%!36
�%          fn$=�sget(q%+44):�_Save
	8          q%!12=saveref%:q%!16=3:q%!0=256:q%!40=&FF9
	A          q%!20=messh%:q%!24=messi%:q%!28=messx%:q%!32=messy%
	7          ș "Wimp_SendMessage",17,q%,messh%,messi%
	$          �
	.
	8� 3:n$=�sget(q%+44)
	B'       sendth%=q%!4:icontype%=q%!40
	L       myref%=q%!8
	V5       � q%!20=-2 � q%!24=MacIcon% � q%!40=&FFD �
	`        �_ImageLoad(n$)
	j        �_Dack
	t       �
	~@       � q%!20=Win256% � q%!40=&FFD � �_ImageLoad(n$):�_Dack
	�
	�� &502:Ȏ � �
	�z       � q%!32=-2 � q%!36=MacIcon%:mes$="This is the MacIcon icon.|MDrag a resource file here to view it as a sprite."
	�       :mes$=""
	�       �
	�    � mes$<>"" �
	�    q%!12=q%!8
	�    $(q%+20)=mes$+�0
	�    q%!0=(20+�mes$+4)� � 3
	�    q%!16=&503
	�(    ș "Wimp_SendMessage",18,q%,q%!4
	��
�


� �_Dack
q%!12=myref%
(q%!16=4:q%!0=256
2'ș "Wimp_SendMessage",17,q%,sendth%
<)� n$="<Wimp$Scrap>" � �("DELETE "+n$)
F�
P
Z	��die
d� RiscPC �
n-� Alloc%<>0 � ș"OS_DynamicArea",1,Alloc%
x�
�-� Alloc%<>0 � ș"OS_Heap",3,HeapP%,Alloc%
��
�*ș "Wimp_CloseDown",taskhand%,!taskid%
��_resmouse
��
��
�
�� �_resmouse
�� xw%,yw%,xs%,ys%
�)ș"OS_ReadModeVariable",-1,11 � ,,xw%
�)ș"OS_ReadModeVariable",-1,12 � ,,yw%
�(ș"OS_ReadModeVariable",-1,4 � ,,xs%
�(ș"OS_ReadModeVariable",-1,5 � ,,ys%
xw%=xw%<<xs%
yw%=yw%<<ys%
ȗȓ 0,0,xw%,yw%
"�
,
6ݤsget(x%)
@� x$
J!ȕ ?x%>&1F x$+=�(?x%):x%+=1:�
T=x$
^
hݤpg(n%)
r� A$
|A$=�sget(SPoint%(n%))
�
=�(A$)
�
�
�
�
� �_LoadS
�$ș"OS_SpriteOp",10+256,SP%,TarS$
�cb%=SP%+(SP%!8)
�0ș"OS_SpriteOp",26+512,SP%,cb%,"Tiler_Image"
��
�
�� �_FourFold
��
�
� �errorbox2
"ș"OS_SpriteOp",60+256,SP%,0,0
"� �=&108D5 � �=&108D4 � � �DbB
&E$=�$+" at "+Þ+�0
0�_setupW(E$)
:ș"Hourglass_Off"
D
� �DbB
N�
X
b� �errorbox
l	� � �
vș "Wimp_DragBox",,-1
�/!buffers%=�:$(buffers%+4)=�$+" line "+Þ+�0
�1ș "Wimp_ReportError",buffers%,1,"Tiler Read"
�
��die
��
�
�� �_KeyPress
�i%=2
��_DoSave
��
�
�� �_DoSave
�� i%=3 �

,            ș "Wimp_GetPointerInfo",,q%

.            �dragicon(q%!0,q%!4,SVWIN%,i%)

 �

 

*� i%=2 �

4 �_GetName

>F � �fn$,":") � �_Save � �_setupW("Drag the Icon into a Directory")

H ș "Wimp_CreateMenu",,-1

R�

\�

f

p� �_Save

z� ch%,sx%,sy%,sm%

�=� �(fn$)=0 � �_setupW("You need to put in a file name"):�

�@� �fn$,1)="." � �_setupW("You need to put in a file name"):�

�
� Save it

�#ș "OS_SpriteOp",12+256,SP%,fn$

��_PutName(fn$)

��

�

�.� �dragicon(mousex%,mousey%,handle%,icon%)

�!� bx%,by%,ix0%,iy0%,ix1%,iy1%

��getw(handle%)

��geti(handle%,icon%)

�!q%=handle%:q%!4=5

�>q%!8=bx%+ix0%:q%!12=by%+iy0%:q%!16=bx%+ix1%:q%!20=by%+iy1%
*q%!24=q%!8-mousex%:q%!28=q%!12-mousey%
ș "Wimp_DragBox",,q%
SFLAG%=�
$�
.
8� �getw(handle%)
B8!q%=handle%:ș "Wimp_GetWindowState",,q%:�info(q%+4)
L�
V� �geti(h%,i%)
`-!q%=h%:q%!4=i%:ș "Wimp_GetIconState",,q%
j.ix0%=q%!8:iy0%=q%!12:ix1%=q%!16:iy1%=q%!20
tiflags%=q%!24:idata%=q%+28
~�
�
�� �info(p%)
�
� x0%,y0%
�'x0%=!p%:y0%=p%!4:x1%=p%!8:y1%=p%!12
�5scx%=p%!16:scy%=p%!20:bhandle%=p%!24:flags%=p%!28
�bx%=x0%-scx%:by%=y1%-scy%
��
�
�
�� �_GetName
�� T%,A%,F$
�F$="":fn$=""
q%!0=SVWIN%:q%!4=1

ș "Wimp_GetIconState",,q%
T%=q%!28
	T%-=1
(�
2	T%+=1
<F$=F$+�(?T%)
F� ?T%=0
Pfn$=�F$,1,�(F$)-1)
Z�
d
n� �_PutDown(q%)
x
�_GetName
� ș "Wimp_GetPointerInfo",,q%
�5messh%=q%!12:messi%=q%!16:messx%=q%!0:messy%=q%!4
�#� � fn$,":") � fn$=�_spath(fn$)
�$(q%+44)=fn$
�?(q%+44+�(fn$))=0
�:q%!20=q%!12:q%!28=q%!0:q%!32=q%!4:q%!36=SP%:q%!40=&FF9
�q%!0=56:q%!12=0:q%!16=1
�-ș "Wimp_SendMessage",17,q%,messh%,messi%
�saveref%=q%!8
�ș "Wimp_CreateMenu",,-1
��
�
�� �_spath(n$)
ȕ �n$,".")
n$=�n$,�(n$)-1)
�
"� �(n$)>10 � n$=�n$,10)
,=n$
6
@� �_PutName(p$)
J� T%
Tq%!0=SVWIN%:q%!4=1
^ș "Wimp_GetIconState",,q%
hT%=q%!28
r
$T%=p$
|!(T%+�(p$))=0
��
�
�� �_setupW(t$)
�X!q%=warningW%:q%!4=200:q%!8=200:q%!12=200+XQ%:q%!16=200+YQ%:q%!20=0:q%!24=0:q%!28=-1
�$TextWarn%=t$
�TextWarn%?�(t$)=0
�� 7
�ș "Wimp_OpenWindow",,q%
�ȗ ȓ 200,200,XQ%,YQ%
��
�
�� �_PutPal
�� A%=0 � 255
BB%=(UP%?(A%*4+1))<<8 � (UP%?(A%*4+2))<<16 � (UP%?(A%*4+3))<<24
pal%!(A%*8)=B%
pal%!(A%*8+4)=B%
&�
0�
:
D� �_sput(x%,X$)
N� A%
X� A%=1 � �(X$)
b?x%=�(�X$,A%,1))
l	x%+=1
v�
�	?x%=0
��
�
�� �_SetCols
�� grab%,A%
�
�.ș"OS_ReadModeVariable",-1,3 � ,,Ncolours%
�
�K� IconNumber%<>0 � ș"ColourTrans_SelectTable",SP%,"icon0",-1,-1,PTT%,0
��
�
�	� �rs
�(� A%,B%,T%,C%,M%,S%,K%,Z%,N$,ic%,mp%
IC8%=�_FR("icl8")
� IC8%=-1 �
#�_setupW("No icl8 icons found")
 �
*ICM%=�_FR("ICN#")
4� ic%=1 � Rntt%(IC8%)
>N$="icon"+�(IconNumber%)
H)ș"OS_SpriteOp",8+256,SP% � ,,,,B%,A%
RAș"OS_SpriteOp",15+256,SP%,N$,0,32,32,28 :� Make a new sprite
\1ș"OS_SpriteOp",29+256,SP%,N$ : � Create Mask
f
pIconNumber%+=1
z� Get the icon
� Spoint%=SP%+(SP%!(A%+32))+A%
�� C%=0 � (32*32)-1
�#Z%=Buf%?(Rso%(IC8%,ic%-1)+4+C%)
�Spoint%?C%=CN%(Z%)
��
�
�� Put in the mask
� Spoint%=SP%+(SP%!(A%+36))+A%
�
C%=0:S%=0
�
mp%=-1
��
�
mp%+=1
�;� Rtnum%(IC8%,ic%-1)=Rtnum%(ICM%,mp%) � mp%=Rntt%(ICM%)

-  � Rtnum%(IC8%,ic%-1)=Rtnum%(ICM%,mp%) �
�
$%M%=Buf%?(Rso%(ICM%,mp%)+4+S%+128)
.	S%+=1
8� T%=0 � 7
BK%=M% � &80
L� K%=&80 � K%=255
VSpoint%?C%=K%
`M%=M%<<1
j	C%+=1
t�
~� C%>=1023
�  �
�  � K%=0 � 32*32
�  Spoint%?K%=255
�  �
�  �
�	� ic%
��
��
�
�� �sinit
�SP%!0=SPr%
�SP%!8=16
ș"OS_SpriteOp",9+256,SP%

�

� �_FR(R$)
(� A%,B%
2B%=-1:A%=0
<�
F� R$=Rn$(A%) � B%=A%
P	A%+=1
Z� B%<>-1 � A%>Nr%
d=B%
n
x� �_ImageLoad(D$)
�F%=�(D$)
�ș"Hourglass_Start",100
�A%=0
��
�B%=�#F%
�Buf%?A%=B%
�	A%+=1
�� �#F% � A%=BufL%
�	� #F%
�&Ro%=�_Br(0) :� Resorce data offset
�'Mapo%=�_Br(4) :� Resorce Map offset
�,DataL%=�_Br(8) :� Length of resorce data
�,MapL%=�_Br(12)  :� Length of resorce map
5Otl%=�_Br2(Mapo%+24)+Mapo% :� Offset to type list
+Nr%=�_Br2(Otl%)+1 :� Number of resorces
�_LR
"�rs
,
�_SetCols
6#ș"Wimp_GetWindowInfo",,csw256%
@!ș"Wimp_CloseWindow",,csw256%
J
T!SPX%=92:SPY%=34*IconNumber%+2
^csw256%!12=csw256%!4+SPX%*2
hcsw256%!16=csw256%!8+SPY%*2
r7temp%!0=0:temp%!4=-SPY%*2:temp%!8=SPX%*2:temp%!12=0
|
� ș"Wimp_OpenWindow",,csw256%
�$ș"Wimp_SetExtent",Win256%,temp%
�
�ș"Hourglass_Off"
��
�
�� �_LR :� Locate resorces
�� A%,B%,C%,D%,S%
�A%=0
�
B%=Otl%+2
��~B%
��
�Rn$(A%)=""
� C%=0 � 3
%Rn$(A%)=Rn$(A%) + �(Buf%?(B%+C%))
�
&Rntt%(A%)=�_Br2(B%+4)+1
0D%=�_Br2(B%+6)+Otl%
:� S%=0 � Rntt%(A%)-1
D)Rso%(A%,S%)=�_Br3((D%+5)+(S%*12))+Ro%
N!Rtnum%(A%,S%)=�_Br2(D%+S%*12)
X�
b	B%+=8
l	A%+=1
v� A%=Nr%
��
�
�� �_Br(O%)
�G=(Buf%?O%)<<24 � (Buf%?(O%+1))<<16 � (Buf%?(O%+2))<<8 � Buf%?(O%+3)
�� �_Br2(O%)
�#=(?(Buf%+O%))<<8 � ?(Buf%+O%+1)
�� �_Br3(O%)
�3=(Buf%?O%)<<16 � (Buf%?(O%+1))<<8 � Buf%?(O%+2)
�
� � Macintosh default pallette
�� and colour translation
�� �_MtoA
�� A%=0 � 255

� CN%(A%)
�
%� 255,247,247,127,119,119,223,215
 !� 215,95,87,87,222,221,214,94
* � 86,85,190,183,182,62,54,54
4"� 159,151,151,31,23,23,157,157
>"� 149,29,29,21,251,243,243,123
H%� 115,115,219,252,244,244,124,116
R"� 221,221,213,93,92,85,187,179
\!� 181,59,51,53,155,147,180,27
f!� 19,52,156,156,148,148,28,20
p%� 250,243,242,122,114,114,249,248
z$� 240,121,120,112,217,217,209,89
� � 89,81,186,185,178,58,50,49
�"� 154,184,146,26,18,48,153,152
�"� 144,25,24,16,239,231,230,111
�#� 103,102,207,199,229,79,71,101
�"� 206,205,197,77,70,69,174,174
�!� 166,46,38,38,143,135,134,15
�� 7,6,141,141,133,13,24,5
�#� 235,227,227,107,99,99,203,236
�#� 228,75,108,100,202,204,194,74
� � 66,68,170,163,162,42,34,34
�!� 139,131,131,11,3,36,140,140
�"� 132,132,12,4,234,234,226,106
�"� 98,98,232,232,224,224,104,96
"� 201,201,193,73,72,65,170,169
"� 161,41,34,33,138,168,160,160
 � 40,32,136,136,128,128,8,21
$� 20,20,17,16,16,4,4,1
.� 0,97,97,96,65,64,64,33
8 � 32,1,1,136,136,136,136,128
B� 128,8,8,8,0,254,253,211
L� 210,208,47,45,44,2,1,0
V�
`
�
00000000  0d 00 0a 14 f4 20 3e 20  21 54 69 6c 65 72 2e 54  |..... > !Tiler.T|
00000010  69 6c 65 72 0d 00 14 34  f4 20 56 65 72 73 69 6f  |iler...4. Versio|
00000020  6e 20 31 2e 30 20 42 79  20 4d 69 6b 65 20 43 6f  |n 1.0 By Mike Co|
00000030  6f 6b 20 2d 20 4d 75 73  62 75 72 79 20 43 6f 6e  |ok - Musbury Con|
00000040  73 75 6c 74 61 6e 74 73  0d 00 1e 11 ee 20 85 20  |sultants..... . |
00000050  f2 65 72 72 6f 72 62 6f  78 0d 00 28 2e de 20 74  |.errorbox..(.. t|
00000060  61 73 6b 69 64 25 20 34  3a 24 74 61 73 6b 69 64  |askid% 4:$taskid|
00000070  25 3d 22 54 41 53 4b 22  3a 20 de 20 69 6e 74 6d  |%="TASK": . intm|
00000080  65 73 73 25 20 32 30 0d  00 32 49 69 6e 74 6d 65  |ess% 20..2Iintme|
00000090  73 73 25 21 30 3d 31 3a  69 6e 74 6d 65 73 73 25  |ss%!0=1:intmess%|
000000a0  21 34 3d 32 3a 69 6e 74  6d 65 73 73 25 21 38 3d  |!4=2:intmess%!8=|
000000b0  33 3a 69 6e 74 6d 65 73  73 25 21 31 32 3d 26 35  |3:intmess%!12=&5|
000000c0  30 32 3a 69 6e 74 6d 65  73 73 25 21 31 36 3d 30  |02:intmess%!16=0|
000000d0  0d 00 3c 4d c8 99 20 22  57 69 6d 70 5f 49 6e 69  |..<M.. "Wimp_Ini|
000000e0  74 69 61 6c 69 73 65 22  2c 33 30 30 2c 21 74 61  |tialise",300,!ta|
000000f0  73 6b 69 64 25 2c 22 4d  61 63 49 63 6f 6e 22 2c  |skid%,"MacIcon",|
00000100  69 6e 74 6d 65 73 73 25  20 b8 20 76 65 72 73 69  |intmess% . versi|
00000110  6f 6e 25 2c 74 61 73 6b  68 61 6e 64 25 0d 00 46  |on%,taskhand%..F|
00000120  1e 53 50 72 25 3d 31 34  38 30 30 30 3a f4 20 66  |.SPr%=148000:. f|
00000130  6f 72 20 37 30 20 69 63  6f 6e 73 0d 00 50 0e de  |or 70 icons..P..|
00000140  20 53 50 25 20 53 50 72  25 0d 00 5a 20 42 75 66  | SP% SPr%..Z Buf|
00000150  4c 25 3d 26 32 30 30 30  30 3a 4d 52 25 3d 31 30  |L%=&20000:MR%=10|
00000160  30 3a 4d 4e 52 25 3d 39  30 0d 00 64 10 de 20 42  |0:MNR%=90..d.. B|
00000170  75 66 25 20 42 75 66 4c  25 0d 00 6e 42 de 20 52  |uf% BufL%..nB. R|
00000180  6e 24 28 4d 52 25 29 2c  52 73 6f 25 28 4d 52 25  |n$(MR%),Rso%(MR%|
00000190  2c 4d 4e 52 25 29 2c 52  74 6e 75 6d 25 28 4d 52  |,MNR%),Rtnum%(MR|
000001a0  25 2c 4d 4e 52 25 29 2c  52 6e 74 74 25 28 4d 52  |%,MNR%),Rntt%(MR|
000001b0  25 29 2c 43 4e 25 28 32  35 35 29 0d 00 78 0a f2  |%),CN%(255)..x..|
000001c0  73 69 6e 69 74 0d 00 82  04 0d 00 8c 3b de 20 71  |sinit.......;. q|
000001d0  25 20 26 33 30 30 2c 63  73 77 32 35 36 25 20 26  |% &300,csw256% &|
000001e0  33 30 30 2c 74 65 6d 70  25 20 33 30 30 2c 62 75  |300,temp% 300,bu|
000001f0  66 66 65 72 73 25 20 35  31 32 2c 6d 65 6e 75 25  |ffers% 512,menu%|
00000200  20 32 32 38 0d 00 96 2a  de 20 6d 65 6e 75 32 35  | 228...*. menu25|
00000210  36 25 20 32 32 30 2c 73  76 77 25 20 26 33 30 30  |6% 220,svw% &300|
00000220  2c 54 65 78 74 57 61 72  6e 25 20 32 35 35 0d 00  |,TextWarn% 255..|
00000230  a0 1e de 20 77 77 25 20  33 30 30 2c 20 57 4e 25  |... ww% 300, WN%|
00000240  20 32 35 35 2c 20 53 46  25 20 31 36 0d 00 aa 1a  | 255, SF% 16....|
00000250  de 20 64 61 6e 61 6d 65  25 20 38 30 2c 50 54 54  |. daname% 80,PTT|
00000260  25 20 32 30 34 38 0d 00  b4 0c de 20 43 4e 25 20  |% 2048..... CN% |
00000270  33 30 0d 00 be 18 de 20  55 50 25 20 32 35 36 2a  |30..... UP% 256*|
00000280  34 2c 53 56 57 25 20 32  35 36 0d 00 c8 35 c8 99  |4,SVW% 256...5..|
00000290  20 22 57 69 6d 70 5f 4f  70 65 6e 54 65 6d 70 6c  | "Wimp_OpenTempl|
000002a0  61 74 65 22 2c 2c 22 3c  4d 61 63 49 63 6f 6e 24  |ate",,"<MacIcon$|
000002b0  44 69 72 3e 2e 54 65 6d  70 6c 61 74 65 73 22 0d  |Dir>.Templates".|
000002c0  00 d2 29 ee 20 85 20 c8  99 20 22 57 69 6d 70 5f  |..). . .. "Wimp_|
000002d0  43 6c 6f 73 65 54 65 6d  70 6c 61 74 65 22 3a f2  |CloseTemplate":.|
000002e0  65 72 72 6f 72 62 6f 78  0d 00 dc 3a c8 99 20 22  |errorbox...:.. "|
000002f0  57 69 6d 70 5f 4c 6f 61  64 54 65 6d 70 6c 61 74  |Wimp_LoadTemplat|
00000300  65 22 2c 2c 71 25 2c 74  65 6d 70 25 2c 74 65 6d  |e",,q%,temp%,tem|
00000310  70 25 2b 32 35 36 2c 2d  31 2c 22 49 6e 66 6f 22  |p%+256,-1,"Info"|
00000320  2c 30 0d 00 e6 26 c8 99  20 22 57 69 6d 70 5f 43  |,0...&.. "Wimp_C|
00000330  72 65 61 74 65 57 69 6e  64 6f 77 22 2c 2c 71 25  |reateWindow",,q%|
00000340  20 b8 20 69 6e 66 6f 25  0d 00 f0 04 0d 00 fa 42  | . info%.......B|
00000350  c8 99 20 22 57 69 6d 70  5f 4c 6f 61 64 54 65 6d  |.. "Wimp_LoadTem|
00000360  70 6c 61 74 65 22 2c 2c  63 73 77 32 35 36 25 2b  |plate",,csw256%+|
00000370  34 2c 74 65 6d 70 25 2c  74 65 6d 70 25 2b 32 35  |4,temp%,temp%+25|
00000380  36 2c 2d 31 2c 22 53 50  32 35 36 22 2c 30 0d 01  |6,-1,"SP256",0..|
00000390  04 20 63 73 77 32 35 36  25 21 32 38 3d 2d 31 3a  |. csw256%!28=-1:|
000003a0  63 73 77 32 35 36 25 21  37 36 3d 57 4e 25 0d 01  |csw256%!76=WN%..|
000003b0  0e 2f c8 99 20 22 57 69  6d 70 5f 43 72 65 61 74  |./.. "Wimp_Creat|
000003c0  65 57 69 6e 64 6f 77 22  2c 2c 63 73 77 32 35 36  |eWindow",,csw256|
000003d0  25 2b 34 20 b8 20 57 69  6e 32 35 36 25 0d 01 18  |%+4 . Win256%...|
000003e0  15 63 73 77 32 35 36 25  21 30 3d 57 69 6e 32 35  |.csw256%!0=Win25|
000003f0  36 25 0d 01 22 04 0d 01  2c 43 c8 99 20 22 57 69  |6%.."...,C.. "Wi|
00000400  6d 70 5f 4c 6f 61 64 54  65 6d 70 6c 61 74 65 22  |mp_LoadTemplate"|
00000410  2c 2c 73 76 77 25 2b 34  2c 53 56 57 25 2c 53 56  |,,svw%+4,SVW%,SV|
00000420  57 25 2b 32 35 36 2c 2d  31 2c 22 73 61 76 65 5f  |W%+256,-1,"save_|
00000430  73 63 72 69 70 74 22 2c  30 0d 01 36 0e 73 76 77  |script",0..6.svw|
00000440  25 21 32 38 3d 2d 31 0d  01 40 2b c8 99 20 22 57  |%!28=-1..@+.. "W|
00000450  69 6d 70 5f 43 72 65 61  74 65 57 69 6e 64 6f 77  |imp_CreateWindow|
00000460  22 2c 2c 73 76 77 25 2b  34 20 b8 20 53 56 57 49  |",,svw%+4 . SVWI|
00000470  4e 25 0d 01 4a 11 73 76  77 25 21 30 3d 53 56 57  |N%..J.svw%!0=SVW|
00000480  49 4e 25 0d 01 54 04 0d  01 5e 39 c8 99 20 22 57  |IN%..T...^9.. "W|
00000490  69 6d 70 5f 4c 6f 61 64  54 65 6d 70 6c 61 74 65  |imp_LoadTemplate|
000004a0  22 2c 2c 71 25 2c 77 77  25 2c 77 77 25 2b 32 35  |",,q%,ww%,ww%+25|
000004b0  36 2c 2d 31 2c 22 57 61  72 6e 69 6e 67 22 2c 30  |6,-1,"Warning",0|
000004c0  0d 01 68 29 71 25 21 31  30 38 3d 54 65 78 74 57  |..h)q%!108=TextW|
000004d0  61 72 6e 25 3a 71 25 21  31 31 32 3d 2d 31 3a 71  |arn%:q%!112=-1:q|
000004e0  25 21 31 31 36 3d 33 30  30 0d 01 72 20 58 51 25  |%!116=300..r XQ%|
000004f0  3d 71 25 21 38 2d 71 25  21 30 3a 59 51 25 3d 71  |=q%!8-q%!0:YQ%=q|
00000500  25 21 31 32 2d 71 25 21  34 0d 01 7c 2a c8 99 20  |%!12-q%!4..|*.. |
00000510  22 57 69 6d 70 5f 43 72  65 61 74 65 57 69 6e 64  |"Wimp_CreateWind|
00000520  6f 77 22 2c 2c 71 25 20  b8 20 77 61 72 6e 69 6e  |ow",,q% . warnin|
00000530  67 57 25 0d 01 86 04 0d  01 90 1b c8 99 20 22 57  |gW%.......... "W|
00000540  69 6d 70 5f 43 6c 6f 73  65 54 65 6d 70 6c 61 74  |imp_CloseTemplat|
00000550  65 22 0d 01 9a 11 ee 20  85 20 f2 65 72 72 6f 72  |e"..... . .error|
00000560  62 6f 78 0d 01 a4 04 0d  01 ae 0c 41 6c 6c 6f 63  |box........Alloc|
00000570  25 3d 30 0d 01 b8 25 53  50 58 25 3d 32 39 30 3a  |%=0...%SPX%=290:|
00000580  20 53 50 59 25 3d 33 32  30 20 3a 20 4f 66 66 53  | SPY%=320 : OffS|
00000590  65 74 25 3d 34 30 36 30  0d 01 c2 0f 24 57 4e 25  |et%=4060....$WN%|
000005a0  3d 22 49 63 6f 6e 22 0d  01 cc 04 0d 01 d6 0e f2  |="Icon".........|
000005b0  73 65 74 75 70 6d 65 6e  75 0d 01 e0 12 4d 61 63  |setupmenu....Mac|
000005c0  49 63 6f 6e 25 3d a4 69  63 6f 6e 0d 01 ea 04 0d  |Icon%=.icon.....|
000005d0  01 f4 41 53 63 50 25 3d  30 20 3a 20 53 61 6c 25  |..AScP%=0 : Sal%|
000005e0  3d 30 20 3a 20 f4 20 53  63 72 61 70 20 6d 65 6d  |=0 : . Scrap mem|
000005f0  6f 72 79 20 70 6f 69 6e  74 65 72 20 61 6e 64 20  |ory pointer and |
00000600  53 63 72 61 70 20 61 6c  6c 6f 63 61 74 69 6f 6e  |Scrap allocation|
00000610  0d 01 fe 17 f2 5f 50 75  74 4e 61 6d 65 28 22 53  |....._PutName("S|
00000620  70 72 69 74 65 22 29 0d  02 08 04 0d 02 12 12 ee  |prite").........|
00000630  20 85 20 f2 65 72 72 6f  72 62 6f 78 32 0d 02 1c  | . .errorbox2...|
00000640  0a f2 5f 4d 74 6f 41 0d  02 26 11 49 63 6f 6e 4e  |.._MtoA..&.IconN|
00000650  75 6d 62 65 72 25 3d 30  0d 02 30 04 0d 02 3a 12  |umber%=0..0...:.|
00000660  52 69 73 63 50 43 3d a6  28 2d 32 35 36 29 0d 02  |RiscPC=.(-256)..|
00000670  44 26 e7 20 52 69 73 63  50 43 3c 31 36 35 20 8c  |D&. RiscPC<165 .|
00000680  20 52 69 73 63 50 43 3d  a3 20 8b 20 52 69 73 63  | RiscPC=. . Risc|
00000690  50 43 3d b9 0d 02 4e 33  e7 20 ac 28 52 69 73 63  |PC=...N3. .(Risc|
000006a0  50 43 29 20 8c 20 c8 99  22 4f 53 5f 52 65 61 64  |PC) . .."OS_Read|
000006b0  44 79 6e 61 6d 69 63 41  72 65 61 22 2c 30 20 b8  |DynamicArea",0 .|
000006c0  20 48 65 61 70 50 25 0d  02 58 04 0d 02 62 05 f5  | HeapP%..X...b..|
000006d0  0d 02 6c 1f 20 20 c8 99  20 22 57 69 6d 70 5f 50  |..l.  .. "Wimp_P|
000006e0  6f 6c 6c 22 2c 25 31 2c  71 25 20 b8 20 41 25 0d  |oll",%1,q% . A%.|
000006f0  02 76 0d 20 20 c8 8e 20  41 25 20 ca 0d 02 80 18  |.v.  .. A% .....|
00000700  20 20 c9 20 31 3a f2 5f  44 6f 57 69 6e 64 6f 77  |  . 1:._DoWindow|
00000710  28 71 25 29 0d 02 8a 1a  20 20 c9 20 32 3a f2 5f  |(q%)....  . 2:._|
00000720  4f 70 65 6e 57 69 6e 64  6f 77 28 71 25 29 0d 02  |OpenWindow(q%)..|
00000730  94 1b 20 20 c9 20 33 3a  f2 5f 43 6c 6f 73 65 57  |..  . 3:._CloseW|
00000740  69 6e 64 6f 77 28 71 25  29 0d 02 9e 18 20 20 c9  |indow(q%)....  .|
00000750  20 36 3a f2 5f 64 6f 5f  63 6c 69 63 6b 28 71 25  | 6:._do_click(q%|
00000760  29 0d 02 a8 17 20 20 c9  20 37 3a f2 5f 50 75 74  |)....  . 7:._Put|
00000770  44 6f 77 6e 28 71 25 29  0d 02 b2 14 20 20 c9 20  |Down(q%)....  . |
00000780  38 3a f2 5f 4b 65 79 50  72 65 73 73 0d 02 bc 16  |8:._KeyPress....|
00000790  20 20 c9 20 39 3a f2 5f  44 6f 4d 65 6e 75 28 71  |  . 9:._DoMenu(q|
000007a0  25 29 0d 02 c6 1a 20 20  c9 20 31 37 2c 31 38 3a  |%)....  . 17,18:|
000007b0  f2 72 65 63 65 69 76 65  28 71 25 29 0d 02 d0 07  |.receive(q%)....|
000007c0  20 20 cb 0d 02 da 07 fd  20 a3 0d 02 e4 04 0d 02  |  ...... .......|
000007d0  ee 17 dd 20 f2 5f 43 6c  6f 73 65 57 69 6e 64 6f  |... ._CloseWindo|
000007e0  77 28 71 25 29 0d 02 f8  14 e7 20 71 25 21 30 3d  |w(q%)..... q%!0=|
000007f0  57 69 6e 32 35 36 25 20  8c 0d 03 02 23 c8 99 22  |Win256% ....#.."|
00000800  57 69 6d 70 5f 47 65 74  57 69 6e 64 6f 77 49 6e  |Wimp_GetWindowIn|
00000810  66 6f 22 2c 2c 63 73 77  32 35 36 25 0d 03 0c 11  |fo",,csw256%....|
00000820  49 63 6f 6e 4e 75 6d 62  65 72 25 3d 30 0d 03 16  |IconNumber%=0...|
00000830  0a f2 73 69 6e 69 74 0d  03 20 05 cd 0d 03 2a 04  |..sinit.. ....*.|
00000840  0d 03 34 1c c8 99 22 57  69 6d 70 5f 43 6c 6f 73  |..4..."Wimp_Clos|
00000850  65 57 69 6e 64 6f 77 22  2c 2c 71 25 0d 03 3e 05  |eWindow",,q%..>.|
00000860  e1 0d 03 48 04 0d 03 52  14 dd 20 f2 5f 64 6f 5f  |...H...R.. ._do_|
00000870  63 6c 69 63 6b 28 71 25  29 0d 03 5c 04 0d 03 66  |click(q%)..\...f|
00000880  0c 69 25 3d 71 25 21 31  36 0d 03 70 2a e7 20 71  |.i%=q%!16..p*. q|
00000890  25 21 31 32 3d 53 56 57  49 4e 25 20 8c 20 48 41  |%!12=SVWIN% . HA|
000008a0  4c 46 53 25 3d a3 20 3a  20 f2 5f 44 6f 53 61 76  |LFS%=. : ._DoSav|
000008b0  65 3a e1 0d 03 7a 04 0d  03 84 22 20 e7 20 71 25  |e:...z...." . q%|
000008c0  21 31 32 3d 2d 32 20 80  20 71 25 21 31 36 3d 4d  |!12=-2 . q%!16=M|
000008d0  61 63 49 63 6f 6e 25 20  8c 0d 03 8e 36 20 e7 20  |acIcon% ....6 . |
000008e0  71 25 21 38 3d 32 20 8c  20 c8 99 22 57 69 6d 70  |q%!8=2 . .."Wimp|
000008f0  5f 43 72 65 61 74 65 4d  65 6e 75 22 2c 2c 6d 65  |_CreateMenu",,me|
00000900  6e 75 25 2c 71 25 21 30  2d 35 36 2c 32 30 30 0d  |nu%,q%!0-56,200.|
00000910  03 98 0b 20 4d 45 4e 25  3d 31 0d 03 a2 05 cd 0d  |... MEN%=1......|
00000920  03 ac 04 0d 03 b6 1e e7  20 71 25 21 31 32 3d 77  |........ q%!12=w|
00000930  61 72 6e 69 6e 67 57 25  20 80 20 69 25 3d 33 20  |arningW% . i%=3 |
00000940  8c 0d 03 c0 29 20 20 20  20 20 20 20 20 20 20 20  |....)           |
00000950  20 20 20 20 20 20 20 20  20 20 20 20 71 25 21 30  |            q%!0|
00000960  3d 77 61 72 6e 69 6e 67  57 25 0d 03 ca 2c 20 20  |=warningW%...,  |
00000970  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000980  20 20 20 20 20 f2 5f 43  6c 6f 73 65 57 69 6e 64  |     ._CloseWind|
00000990  6f 77 28 71 25 29 0d 03  d4 25 20 20 20 20 20 20  |ow(q%)...%      |
000009a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000009b0  20 f2 5f 72 65 73 6d 6f  75 73 65 0d 03 de 09 20  | ._resmouse.... |
000009c0  20 20 20 cd 0d 03 e8 23  e7 20 71 25 21 31 32 3d  |   ....#. q%!12=|
000009d0  77 61 72 6e 69 6e 67 57  25 20 80 20 69 25 3d 32  |warningW% . i%=2|
000009e0  20 8c 20 f2 64 69 65 0d  03 f2 04 0d 03 fc 1f e7  | . .die.........|
000009f0  20 71 25 21 31 32 3d 57  69 6e 32 35 36 25 20 80  | q%!12=Win256% .|
00000a00  20 20 71 25 21 38 3d 32  20 8c 0d 04 06 2e c8 99  |  q%!8=2 .......|
00000a10  22 57 69 6d 70 5f 43 72  65 61 74 65 4d 65 6e 75  |"Wimp_CreateMenu|
00000a20  22 2c 2c 6d 65 6e 75 32  35 36 25 2c 71 25 21 30  |",,menu256%,q%!0|
00000a30  2d 39 36 2c 71 25 21 34  0d 04 10 0a 4d 45 4e 25  |-96,q%!4....MEN%|
00000a40  3d 32 0d 04 1a 05 cd 0d  04 24 04 0d 04 2e 05 e1  |=2.......$......|
00000a50  0d 04 38 04 0d 04 42 12  dd 20 f2 5f 44 6f 4d 65  |..8...B.. ._DoMe|
00000a60  6e 75 28 71 25 29 0d 04  4c 0d c8 8e 20 4d 45 4e  |nu(q%)..L... MEN|
00000a70  25 20 ca 0d 04 56 08 c9  20 31 3a 0d 04 60 0c c8  |% ...V.. 1:..`..|
00000a80  8e 20 21 71 25 20 ca 0d  04 6a 0e 20 20 c9 20 31  |. !q% ...j.  . 1|
00000a90  3a f2 64 69 65 0d 04 74  06 20 cb 0d 04 7e 04 0d  |:.die..t. ...~..|
00000aa0  04 88 08 c9 20 32 3a 0d  04 92 0c c8 8e 20 21 71  |.... 2:...... !q|
00000ab0  25 20 ca 0d 04 9c 34 20  20 c9 20 31 3a c8 99 20  |% ....4  . 1:.. |
00000ac0  22 4f 53 5f 53 70 72 69  74 65 4f 70 22 2c 31 32  |"OS_SpriteOp",12|
00000ad0  2b 32 35 36 2c 53 50 25  2c 22 3c 57 69 6d 70 24  |+256,SP%,"<Wimp$|
00000ae0  53 63 72 61 70 3e 22 0d  04 a6 2d 20 20 20 20 20  |Scrap>"...-     |
00000af0  20 20 20 20 ff 28 22 42  61 63 6b 44 72 6f 70 20  |    .("BackDrop |
00000b00  2d 74 69 6c 65 20 3c 57  69 6d 70 24 53 63 72 61  |-tile <Wimp$Scra|
00000b10  70 3e 22 29 0d 04 b0 04  0d 04 ba 3c 20 20 20 20  |p>").......<    |
00000b20  20 20 20 20 20 c8 99 22  57 69 6d 70 5f 46 6f 72  |     .."Wimp_For|
00000b30  63 65 52 65 64 72 61 77  22 2c 57 69 6e 32 35 36  |ceRedraw",Win256|
00000b40  25 2c 30 2c 2d 53 50 59  25 2a 32 2c 53 50 58 25  |%,0,-SPY%*2,SPX%|
00000b50  2a 32 2c 30 0d 04 c4 06  20 cb 0d 04 ce 05 cb 0d  |*2,0.... .......|
00000b60  04 d8 04 0d 04 e2 05 e1  0d 04 ec 04 0d 04 f6 17  |................|
00000b70  dd 20 f2 5f 53 65 74 55  70 57 69 6e 64 6f 77 28  |. ._SetUpWindow(|
00000b80  77 25 29 0d 05 00 1d c8  99 28 22 57 69 6d 70 5f  |w%)......("Wimp_|
00000b90  4f 70 65 6e 57 69 6e 64  6f 77 22 29 2c 2c 77 25  |OpenWindow"),,w%|
00000ba0  0d 05 0a 05 e1 0d 05 14  04 0d 05 1e 16 dd 20 f2  |.............. .|
00000bb0  5f 4f 70 65 6e 57 69 6e  64 6f 77 28 71 25 29 0d  |_OpenWindow(q%).|
00000bc0  05 28 1e e7 20 71 25 21  30 3d 57 69 6e 32 35 36  |.(.. q%!0=Win256|
00000bd0  25 20 8c 20 f2 5f 53 65  74 43 6f 6c 73 0d 05 32  |% . ._SetCols..2|
00000be0  1e 20 c8 99 28 22 57 69  6d 70 5f 4f 70 65 6e 57  |. ..("Wimp_OpenW|
00000bf0  69 6e 64 6f 77 22 29 2c  2c 71 25 0d 05 3c 05 e1  |indow"),,q%..<..|
00000c00  0d 05 46 04 0d 05 50 14  dd 20 f2 5f 44 6f 57 69  |..F...P.. ._DoWi|
00000c10  6e 64 6f 77 28 71 25 29  0d 05 5a 0f ea 20 66 6c  |ndow(q%)..Z.. fl|
00000c20  61 67 25 2c 77 68 25 0d  05 64 0b 77 68 25 3d 21  |ag%,wh%..d.wh%=!|
00000c30  71 25 0d 05 6e 27 c8 99  28 22 57 69 6d 70 5f 52  |q%..n'..("Wimp_R|
00000c40  65 64 72 61 77 57 69 6e  64 6f 77 22 29 2c 2c 71  |edrawWindow"),,q|
00000c50  25 20 b8 20 66 6c 61 67  25 0d 05 78 04 0d 05 82  |% . flag%..x....|
00000c60  10 f2 5f 66 74 6a 28 66  6c 61 67 25 29 0d 05 8c  |.._ftj(flag%)...|
00000c70  05 e1 0d 05 96 04 0d 05  a0 12 dd 20 f2 5f 66 74  |........... ._ft|
00000c80  6a 28 66 6c 61 67 25 29  0d 05 aa 0c c8 95 20 66  |j(flag%)...... f|
00000c90  6c 61 67 25 0d 05 b4 10  f2 5f 72 65 64 72 61 77  |lag%....._redraw|
00000ca0  28 71 25 29 0d 05 be 26  c8 99 20 22 57 69 6d 70  |(q%)...&.. "Wimp|
00000cb0  5f 47 65 74 52 65 63 74  61 6e 67 6c 65 22 2c 2c  |_GetRectangle",,|
00000cc0  71 25 20 b8 20 66 6c 61  67 25 0d 05 c8 05 ce 0d  |q% . flag%......|
00000cd0  05 d2 05 e1 0d 05 dc 04  0d 05 e6 12 dd 20 f2 5f  |............. ._|
00000ce0  72 65 64 72 61 77 28 77  25 29 0d 05 f0 15 ea 20  |redraw(w%)..... |
00000cf0  78 25 2c 79 25 2c 41 25  2c 4e 24 2c 69 6e 25 0d  |x%,y%,A%,N$,in%.|
00000d00  05 fa 04 0d 06 04 06 ef  35 0d 06 0e 14 e7 20 77  |........5..... w|
00000d10  25 21 30 3d 57 69 6e 32  35 36 25 20 8c 0d 06 18  |%!0=Win256% ....|
00000d20  20 c8 99 20 22 57 69 6d  70 5f 47 65 74 57 69 6e  | .. "Wimp_GetWin|
00000d30  64 6f 77 53 74 61 74 65  22 2c 2c 77 25 0d 06 22  |dowState",,w%.."|
00000d40  2a 20 20 20 20 20 20 78  25 3d 38 2b 77 25 21 34  |*      x%=8+w%!4|
00000d50  2d 77 25 21 32 30 20 3a  20 79 25 3d 77 25 21 31  |-w%!20 : y%=w%!1|
00000d60  36 2d 77 25 21 32 34 0d  06 2c 19 20 20 20 e7 20  |6-w%!24..,.   . |
00000d70  49 63 6f 6e 4e 75 6d 62  65 72 25 3c 3e 30 20 8c  |IconNumber%<>0 .|
00000d80  0d 06 36 23 20 20 20 e3  20 69 6e 25 3d 49 63 6f  |..6#   . in%=Ico|
00000d90  6e 4e 75 6d 62 65 72 25  2d 31 20 b8 20 30 20 88  |nNumber%-1 . 0 .|
00000da0  20 2d 31 0d 06 40 17 20  20 20 4e 24 3d 22 69 63  | -1..@.   N$="ic|
00000db0  6f 6e 22 2b c3 28 69 6e  25 29 0d 06 4a 4a 20 20  |on"+.(in%)..JJ  |
00000dc0  20 c8 99 20 22 4f 53 5f  53 70 72 69 74 65 4f 70  | .. "OS_SpriteOp|
00000dd0  22 2c 35 32 2b 32 35 36  2c 53 50 25 2c 4e 24 2c  |",52+256,SP%,N$,|
00000de0  78 25 2c 79 25 2d 36 38  2a 28 49 63 6f 6e 4e 75  |x%,y%-68*(IconNu|
00000df0  6d 62 65 72 25 2d 69 6e  25 29 2c 26 38 2c 30 2c  |mber%-in%),&8,0,|
00000e00  50 54 54 25 0d 06 54 29  20 20 20 ec 20 78 25 2b  |PTT%..T)   . x%+|
00000e10  36 38 2c 79 25 2d 36 38  2a 28 49 63 6f 6e 4e 75  |68,y%-68*(IconNu|
00000e20  6d 62 65 72 25 2d 69 6e  25 29 2b 33 32 0d 06 5e  |mber%-in%)+32..^|
00000e30  0a 20 20 20 f1 4e 24 0d  06 68 08 20 20 20 ed 0d  |.   .N$..h.   ..|
00000e40  06 72 08 20 20 20 cd 0d  06 7c 05 cd 0d 06 86 06  |.r.   ...|......|
00000e50  ef 34 0d 06 90 05 e1 0d  06 9a 04 0d 06 a4 0a dd  |.4..............|
00000e60  a4 69 63 6f 6e 0d 06 ae  0b 71 25 21 30 3d 2d 31  |.icon....q%!0=-1|
00000e70  0d 06 b8 0a 71 25 21 34  3d 30 0d 06 c2 1a 71 25  |....q%!4=0....q%|
00000e80  21 38 3d 30 20 3a 20 f4  20 59 20 44 49 52 45 43  |!8=0 : . Y DIREC|
00000e90  54 49 4f 4e 0d 06 cc 1c  71 25 21 31 32 3d 36 34  |TION....q%!12=64|
00000ea0  20 3a 20 f4 20 58 20 44  49 52 45 43 54 49 4f 4e  | : . X DIRECTION|
00000eb0  0d 06 d6 0c 71 25 21 31  36 3d 39 36 0d 06 e0 0f  |....q%!16=96....|
00000ec0  71 25 21 32 30 3d 26 32  30 30 32 0d 06 ea 17 24  |q%!20=&2002....$|
00000ed0  28 71 25 2b 32 34 29 3d  22 21 4d 61 63 49 63 6f  |(q%+24)="!MacIco|
00000ee0  6e 22 0d 06 f4 24 c8 99  20 22 57 69 6d 70 5f 43  |n"...$.. "Wimp_C|
00000ef0  72 65 61 74 65 49 63 6f  6e 22 2c 2c 71 25 20 b8  |reateIcon",,q% .|
00000f00  20 69 63 6f 6e 25 0d 06  fe 0a 3d 69 63 6f 6e 25  | icon%....=icon%|
00000f10  0d 07 08 04 0d 07 12 0f  dd f2 73 65 74 75 70 6d  |..........setupm|
00000f20  65 6e 75 0d 07 1c 08 ea  20 6d 25 0d 07 26 04 0d  |enu..... m%..&..|
00000f30  07 30 15 24 6d 65 6e 75  32 35 36 25 3d 22 49 63  |.0.$menu256%="Ic|
00000f40  6f 6e 73 22 0d 07 3a 11  6d 65 6e 75 32 35 36 25  |ons"..:.menu256%|
00000f50  3f 31 32 3d 37 0d 07 44  11 6d 65 6e 75 32 35 36  |?12=7..D.menu256|
00000f60  25 3f 31 33 3d 32 0d 07  4e 11 6d 65 6e 75 32 35  |%?13=2..N.menu25|
00000f70  36 25 3f 31 34 3d 37 0d  07 58 11 6d 65 6e 75 32  |6%?14=7..X.menu2|
00000f80  35 36 25 3f 31 35 3d 30  0d 07 62 13 6d 65 6e 75  |56%?15=0..b.menu|
00000f90  32 35 36 25 21 31 36 3d  31 38 34 0d 07 6c 12 6d  |256%!16=184..l.m|
00000fa0  65 6e 75 32 35 36 25 21  32 30 3d 34 30 0d 07 76  |enu256%!20=40..v|
00000fb0  11 6d 65 6e 75 32 35 36  25 21 32 34 3d 30 0d 07  |.menu256%!24=0..|
00000fc0  80 12 6d 25 3d 6d 65 6e  75 32 35 36 25 2b 32 38  |..m%=menu256%+28|
00000fd0  0d 07 8a 0c 6d 25 21 30  3d 26 38 30 0d 07 94 0f  |....m%!0=&80....|
00000fe0  6d 25 21 34 3d 53 56 57  49 4e 25 0d 07 9e 18 6d  |m%!4=SVWIN%....m|
00000ff0  25 21 38 3d 28 37 3c 3c  32 34 29 84 20 25 31 30  |%!8=(7<<24). %10|
00001000  30 30 31 0d 07 a8 13 24  28 6d 25 2b 31 32 29 3d  |001....$(m%+12)=|
00001010  22 53 61 76 65 22 0d 07  b2 04 0d 07 bc 14 24 6d  |"Save"........$m|
00001020  65 6e 75 25 3d 22 4d 61  63 49 63 6f 6e 22 0d 07  |enu%="MacIcon"..|
00001030  c6 0e 6d 65 6e 75 25 3f  31 32 3d 37 0d 07 d0 0e  |..menu%?12=7....|
00001040  6d 65 6e 75 25 3f 31 33  3d 32 0d 07 da 0e 6d 65  |menu%?13=2....me|
00001050  6e 75 25 3f 31 34 3d 37  0d 07 e4 0e 6d 65 6e 75  |nu%?14=7....menu|
00001060  25 3f 31 35 3d 30 0d 07  ee 10 6d 65 6e 75 25 21  |%?15=0....menu%!|
00001070  31 36 3d 31 38 34 0d 07  f8 0f 6d 65 6e 75 25 21  |16=184....menu%!|
00001080  32 30 3d 34 30 0d 08 02  0e 6d 65 6e 75 25 21 32  |20=40....menu%!2|
00001090  34 3d 30 0d 08 0c 0f 6d  25 3d 6d 65 6e 75 25 2b  |4=0....m%=menu%+|
000010a0  32 38 0d 08 16 0a 6d 25  21 30 3d 32 0d 08 20 0e  |28....m%!0=2.. .|
000010b0  6d 25 21 34 3d 69 6e 66  6f 25 0d 08 2a 18 6d 25  |m%!4=info%..*.m%|
000010c0  21 38 3d 28 37 3c 3c 32  34 29 84 20 25 31 30 30  |!8=(7<<24). %100|
000010d0  30 31 0d 08 34 13 24 28  6d 25 2b 31 32 29 3d 22  |01..4.$(m%+12)="|
000010e0  49 6e 66 6f 22 0d 08 3e  04 0d 08 48 0a 6d 25 2b  |Info"..>...H.m%+|
000010f0  3d 32 34 0d 08 52 0c 6d  25 21 30 3d 26 38 30 0d  |=24..R.m%!0=&80.|
00001100  08 5c 0a 6d 25 21 34 3d  30 0d 08 66 18 6d 25 21  |.\.m%!4=0..f.m%!|
00001110  38 3d 28 37 3c 3c 32 34  29 84 20 25 31 30 30 30  |8=(7<<24). %1000|
00001120  31 0d 08 70 13 24 28 6d  25 2b 31 32 29 3d 22 51  |1..p.$(m%+12)="Q|
00001130  75 69 74 22 0d 08 7a 05  e1 0d 08 84 04 0d 08 8e  |uit"..z.........|
00001140  12 dd 20 f2 72 65 63 65  69 76 65 28 71 25 29 0d  |.. .receive(q%).|
00001150  08 98 08 ea 20 41 25 0d  08 a2 0e c8 8e 20 71 25  |.... A%...... q%|
00001160  21 31 36 20 ca 0d 08 ac  0c c9 20 30 3a f2 64 69  |!16 ...... 0:.di|
00001170  65 0d 08 b6 36 c9 20 31  3a 20 71 25 21 31 36 3d  |e...6. 1: q%!16=|
00001180  32 3a 71 25 21 33 36 3d  2d 31 3a f2 5f 73 70 75  |2:q%!36=-1:._spu|
00001190  74 28 71 25 2b 34 34 2c  22 3c 57 69 6d 70 24 53  |t(q%+44,"<Wimp$S|
000011a0  63 72 61 70 3e 22 29 0d  08 c0 1f 20 20 20 20 20  |crap>")....     |
000011b0  20 20 20 6d 65 73 73 68  25 3d 71 25 21 34 3a 71  |   messh%=q%!4:q|
000011c0  25 21 30 3d 36 30 0d 08  ca 19 20 20 20 20 20 20  |%!0=60....      |
000011d0  20 20 73 61 76 65 72 65  66 25 3d 71 25 21 38 0d  |  saveref%=q%!8.|
000011e0  08 d4 2e 20 20 20 20 20  20 20 20 c8 99 20 22 57  |...        .. "W|
000011f0  69 6d 70 5f 53 65 6e 64  4d 65 73 73 61 67 65 22  |imp_SendMessage"|
00001200  2c 31 37 2c 71 25 2c 6d  65 73 73 68 25 0d 08 de  |,17,q%,messh%...|
00001210  04 0d 08 e8 1b c9 20 32  3a 20 e7 20 71 25 21 31  |...... 2: . q%!1|
00001220  32 3d 73 61 76 65 72 65  66 25 20 8c 0d 08 f2 1c  |2=saveref% .....|
00001230  20 20 20 20 20 20 20 20  20 20 73 65 63 75 72 65  |          secure|
00001240  46 25 3d 71 25 21 33 36  0d 08 fc 25 20 20 20 20  |F%=q%!36...%    |
00001250  20 20 20 20 20 20 66 6e  24 3d a4 73 67 65 74 28  |      fn$=.sget(|
00001260  71 25 2b 34 34 29 3a f2  5f 53 61 76 65 0d 09 06  |q%+44):._Save...|
00001270  38 20 20 20 20 20 20 20  20 20 20 71 25 21 31 32  |8          q%!12|
00001280  3d 73 61 76 65 72 65 66  25 3a 71 25 21 31 36 3d  |=saveref%:q%!16=|
00001290  33 3a 71 25 21 30 3d 32  35 36 3a 71 25 21 34 30  |3:q%!0=256:q%!40|
000012a0  3d 26 46 46 39 0d 09 10  41 20 20 20 20 20 20 20  |=&FF9...A       |
000012b0  20 20 20 71 25 21 32 30  3d 6d 65 73 73 68 25 3a  |   q%!20=messh%:|
000012c0  71 25 21 32 34 3d 6d 65  73 73 69 25 3a 71 25 21  |q%!24=messi%:q%!|
000012d0  32 38 3d 6d 65 73 73 78  25 3a 71 25 21 33 32 3d  |28=messx%:q%!32=|
000012e0  6d 65 73 73 79 25 0d 09  1a 37 20 20 20 20 20 20  |messy%...7      |
000012f0  20 20 20 20 c8 99 20 22  57 69 6d 70 5f 53 65 6e  |    .. "Wimp_Sen|
00001300  64 4d 65 73 73 61 67 65  22 2c 31 37 2c 71 25 2c  |dMessage",17,q%,|
00001310  6d 65 73 73 68 25 2c 6d  65 73 73 69 25 0d 09 24  |messh%,messi%..$|
00001320  0f 20 20 20 20 20 20 20  20 20 20 cd 0d 09 2e 04  |.          .....|
00001330  0d 09 38 17 c9 20 33 3a  6e 24 3d a4 73 67 65 74  |..8.. 3:n$=.sget|
00001340  28 71 25 2b 34 34 29 0d  09 42 27 20 20 20 20 20  |(q%+44)..B'     |
00001350  20 20 73 65 6e 64 74 68  25 3d 71 25 21 34 3a 69  |  sendth%=q%!4:i|
00001360  63 6f 6e 74 79 70 65 25  3d 71 25 21 34 30 0d 09  |contype%=q%!40..|
00001370  4c 16 20 20 20 20 20 20  20 6d 79 72 65 66 25 3d  |L.       myref%=|
00001380  71 25 21 38 0d 09 56 35  20 20 20 20 20 20 20 e7  |q%!8..V5       .|
00001390  20 71 25 21 32 30 3d 2d  32 20 80 20 71 25 21 32  | q%!20=-2 . q%!2|
000013a0  34 3d 4d 61 63 49 63 6f  6e 25 20 80 20 71 25 21  |4=MacIcon% . q%!|
000013b0  34 30 3d 26 46 46 44 20  8c 0d 09 60 1b 20 20 20  |40=&FFD ...`.   |
000013c0  20 20 20 20 20 f2 5f 49  6d 61 67 65 4c 6f 61 64  |     ._ImageLoad|
000013d0  28 6e 24 29 0d 09 6a 12  20 20 20 20 20 20 20 20  |(n$)..j.        |
000013e0  f2 5f 44 61 63 6b 0d 09  74 0c 20 20 20 20 20 20  |._Dack..t.      |
000013f0  20 cd 0d 09 7e 40 20 20  20 20 20 20 20 e7 20 71  | ...~@       . q|
00001400  25 21 32 30 3d 57 69 6e  32 35 36 25 20 80 20 71  |%!20=Win256% . q|
00001410  25 21 34 30 3d 26 46 46  44 20 8c 20 f2 5f 49 6d  |%!40=&FFD . ._Im|
00001420  61 67 65 4c 6f 61 64 28  6e 24 29 3a f2 5f 44 61  |ageLoad(n$):._Da|
00001430  63 6b 0d 09 88 04 0d 09  92 11 c9 20 26 35 30 32  |ck......... &502|
00001440  3a c8 8e 20 b9 20 ca 0d  09 9c 7a 20 20 20 20 20  |:.. . ....z     |
00001450  20 20 c9 20 71 25 21 33  32 3d 2d 32 20 80 20 71  |  . q%!32=-2 . q|
00001460  25 21 33 36 3d 4d 61 63  49 63 6f 6e 25 3a 6d 65  |%!36=MacIcon%:me|
00001470  73 24 3d 22 54 68 69 73  20 69 73 20 74 68 65 20  |s$="This is the |
00001480  4d 61 63 49 63 6f 6e 20  69 63 6f 6e 2e 7c 4d 44  |MacIcon icon.|MD|
00001490  72 61 67 20 61 20 72 65  73 6f 75 72 63 65 20 66  |rag a resource f|
000014a0  69 6c 65 20 68 65 72 65  20 74 6f 20 76 69 65 77  |ile here to view|
000014b0  20 69 74 20 61 73 20 61  20 73 70 72 69 74 65 2e  | it as a sprite.|
000014c0  22 0d 09 a6 14 20 20 20  20 20 20 20 7f 3a 6d 65  |"....       .:me|
000014d0  73 24 3d 22 22 0d 09 b0  0c 20 20 20 20 20 20 20  |s$=""....       |
000014e0  cb 0d 09 ba 14 20 20 20  20 e7 20 6d 65 73 24 3c  |.....    . mes$<|
000014f0  3e 22 22 20 8c 0d 09 c4  12 20 20 20 20 71 25 21  |>"" .....    q%!|
00001500  31 32 3d 71 25 21 38 0d  09 ce 18 20 20 20 20 24  |12=q%!8....    $|
00001510  28 71 25 2b 32 30 29 3d  6d 65 73 24 2b bd 30 0d  |(q%+20)=mes$+.0.|
00001520  09 d8 1e 20 20 20 20 71  25 21 30 3d 28 32 30 2b  |...    q%!0=(20+|
00001530  a9 6d 65 73 24 2b 34 29  80 20 ac 20 33 0d 09 e2  |.mes$+4). . 3...|
00001540  12 20 20 20 20 71 25 21  31 36 3d 26 35 30 33 0d  |.    q%!16=&503.|
00001550  09 ec 28 20 20 20 20 c8  99 20 22 57 69 6d 70 5f  |..(    .. "Wimp_|
00001560  53 65 6e 64 4d 65 73 73  61 67 65 22 2c 31 38 2c  |SendMessage",18,|
00001570  71 25 2c 71 25 21 34 0d  09 f6 05 cb 0d 0a 00 05  |q%,q%!4.........|
00001580  e1 0d 0a 0a 04 0d 0a 14  0c dd 20 f2 5f 44 61 63  |.......... ._Dac|
00001590  6b 0d 0a 1e 10 71 25 21  31 32 3d 6d 79 72 65 66  |k....q%!12=myref|
000015a0  25 0d 0a 28 14 71 25 21  31 36 3d 34 3a 71 25 21  |%..(.q%!16=4:q%!|
000015b0  30 3d 32 35 36 0d 0a 32  27 c8 99 20 22 57 69 6d  |0=256..2'.. "Wim|
000015c0  70 5f 53 65 6e 64 4d 65  73 73 61 67 65 22 2c 31  |p_SendMessage",1|
000015d0  37 2c 71 25 2c 73 65 6e  64 74 68 25 0d 0a 3c 29  |7,q%,sendth%..<)|
000015e0  e7 20 6e 24 3d 22 3c 57  69 6d 70 24 53 63 72 61  |. n$="<Wimp$Scra|
000015f0  70 3e 22 20 8c 20 ff 28  22 44 45 4c 45 54 45 20  |p>" . .("DELETE |
00001600  22 2b 6e 24 29 0d 0a 46  05 e1 0d 0a 50 04 0d 0a  |"+n$)..F....P...|
00001610  5a 09 dd f2 64 69 65 0d  0a 64 0e e7 20 52 69 73  |Z...die..d.. Ris|
00001620  63 50 43 20 8c 0d 0a 6e  2d e7 20 41 6c 6c 6f 63  |cPC ...n-. Alloc|
00001630  25 3c 3e 30 20 8c 20 c8  99 22 4f 53 5f 44 79 6e  |%<>0 . .."OS_Dyn|
00001640  61 6d 69 63 41 72 65 61  22 2c 31 2c 41 6c 6c 6f  |amicArea",1,Allo|
00001650  63 25 0d 0a 78 05 cc 0d  0a 82 2d e7 20 41 6c 6c  |c%..x.....-. All|
00001660  6f 63 25 3c 3e 30 20 8c  20 c8 99 22 4f 53 5f 48  |oc%<>0 . .."OS_H|
00001670  65 61 70 22 2c 33 2c 48  65 61 70 50 25 2c 41 6c  |eap",3,HeapP%,Al|
00001680  6c 6f 63 25 0d 0a 8c 05  cd 0d 0a 96 2a c8 99 20  |loc%........*.. |
00001690  22 57 69 6d 70 5f 43 6c  6f 73 65 44 6f 77 6e 22  |"Wimp_CloseDown"|
000016a0  2c 74 61 73 6b 68 61 6e  64 25 2c 21 74 61 73 6b  |,taskhand%,!task|
000016b0  69 64 25 0d 0a a0 0e f2  5f 72 65 73 6d 6f 75 73  |id%....._resmous|
000016c0  65 0d 0a aa 05 e0 0d 0a  b4 05 e1 0d 0a be 04 0d  |e...............|
000016d0  0a c8 10 dd 20 f2 5f 72  65 73 6d 6f 75 73 65 0d  |.... ._resmouse.|
000016e0  0a d2 15 ea 20 78 77 25  2c 79 77 25 2c 78 73 25  |.... xw%,yw%,xs%|
000016f0  2c 79 73 25 0d 0a dc 29  c8 99 22 4f 53 5f 52 65  |,ys%...).."OS_Re|
00001700  61 64 4d 6f 64 65 56 61  72 69 61 62 6c 65 22 2c  |adModeVariable",|
00001710  2d 31 2c 31 31 20 b8 20  2c 2c 78 77 25 0d 0a e6  |-1,11 . ,,xw%...|
00001720  29 c8 99 22 4f 53 5f 52  65 61 64 4d 6f 64 65 56  |).."OS_ReadModeV|
00001730  61 72 69 61 62 6c 65 22  2c 2d 31 2c 31 32 20 b8  |ariable",-1,12 .|
00001740  20 2c 2c 79 77 25 0d 0a  f0 28 c8 99 22 4f 53 5f  | ,,yw%...(.."OS_|
00001750  52 65 61 64 4d 6f 64 65  56 61 72 69 61 62 6c 65  |ReadModeVariable|
00001760  22 2c 2d 31 2c 34 20 b8  20 2c 2c 78 73 25 0d 0a  |",-1,4 . ,,xs%..|
00001770  fa 28 c8 99 22 4f 53 5f  52 65 61 64 4d 6f 64 65  |.(.."OS_ReadMode|
00001780  56 61 72 69 61 62 6c 65  22 2c 2d 31 2c 35 20 b8  |Variable",-1,5 .|
00001790  20 2c 2c 79 73 25 0d 0b  04 10 78 77 25 3d 78 77  | ,,ys%....xw%=xw|
000017a0  25 3c 3c 78 73 25 0d 0b  0e 10 79 77 25 3d 79 77  |%<<xs%....yw%=yw|
000017b0  25 3c 3c 79 73 25 0d 0b  18 14 c8 97 c8 93 20 30  |%<<ys%........ 0|
000017c0  2c 30 2c 78 77 25 2c 79  77 25 0d 0b 22 05 e1 0d  |,0,xw%,yw%.."...|
000017d0  0b 2c 04 0d 0b 36 0e dd  a4 73 67 65 74 28 78 25  |.,...6...sget(x%|
000017e0  29 0d 0b 40 08 ea 20 78  24 0d 0b 4a 21 c8 95 20  |)..@.. x$..J!.. |
000017f0  3f 78 25 3e 26 31 46 20  78 24 2b 3d bd 28 3f 78  |?x%>&1F x$+=.(?x|
00001800  25 29 3a 78 25 2b 3d 31  3a ce 0d 0b 54 07 3d 78  |%):x%+=1:...T.=x|
00001810  24 0d 0b 5e 04 0d 0b 68  0c dd a4 70 67 28 6e 25  |$..^...h...pg(n%|
00001820  29 0d 0b 72 08 ea 20 41  24 0d 0b 7c 19 41 24 3d  |)..r.. A$..|.A$=|
00001830  a4 73 67 65 74 28 53 50  6f 69 6e 74 25 28 6e 25  |.sget(SPoint%(n%|
00001840  29 29 0d 0b 86 0a 3d bb  28 41 24 29 0d 0b 90 04  |))....=.(A$)....|
00001850  0d 0b 9a 04 0d 0b a4 04  0d 0b ae 0d dd 20 f2 5f  |............. ._|
00001860  4c 6f 61 64 53 0d 0b b8  24 c8 99 22 4f 53 5f 53  |LoadS...$.."OS_S|
00001870  70 72 69 74 65 4f 70 22  2c 31 30 2b 32 35 36 2c  |priteOp",10+256,|
00001880  53 50 25 2c 54 61 72 53  24 0d 0b c2 13 63 62 25  |SP%,TarS$....cb%|
00001890  3d 53 50 25 2b 28 53 50  25 21 38 29 0d 0b cc 30  |=SP%+(SP%!8)...0|
000018a0  c8 99 22 4f 53 5f 53 70  72 69 74 65 4f 70 22 2c  |.."OS_SpriteOp",|
000018b0  32 36 2b 35 31 32 2c 53  50 25 2c 63 62 25 2c 22  |26+512,SP%,cb%,"|
000018c0  54 69 6c 65 72 5f 49 6d  61 67 65 22 0d 0b d6 05  |Tiler_Image"....|
000018d0  e1 0d 0b e0 04 0d 0b ea  10 dd 20 f2 5f 46 6f 75  |.......... ._Fou|
000018e0  72 46 6f 6c 64 0d 0b f4  05 e1 0d 0b fe 04 0d 0c  |rFold...........|
000018f0  08 10 dd 20 f2 65 72 72  6f 72 62 6f 78 32 0d 0c  |... .errorbox2..|
00001900  12 22 c8 99 22 4f 53 5f  53 70 72 69 74 65 4f 70  |.".."OS_SpriteOp|
00001910  22 2c 36 30 2b 32 35 36  2c 53 50 25 2c 30 2c 30  |",60+256,SP%,0,0|
00001920  0d 0c 1c 22 e7 20 9f 3d  26 31 30 38 44 35 20 84  |...". .=&108D5 .|
00001930  20 9f 3d 26 31 30 38 44  34 20 8c 20 e5 20 8d 44  | .=&108D4 . . .D|
00001940  62 42 0d 0c 26 16 45 24  3d f6 24 2b 22 20 61 74  |bB..&.E$=.$+" at|
00001950  20 22 2b c3 9e 2b bd 30  0d 0c 30 10 f2 5f 73 65  | "+..+.0..0.._se|
00001960  74 75 70 57 28 45 24 29  0d 0c 3a 15 c8 99 22 48  |tupW(E$)..:..."H|
00001970  6f 75 72 67 6c 61 73 73  5f 4f 66 66 22 0d 0c 44  |ourglass_Off"..D|
00001980  0a e5 20 8d 44 62 42 0d  0c 4e 05 e1 0d 0c 58 04  |.. .DbB..N....X.|
00001990  0d 0c 62 0f dd 20 f2 65  72 72 6f 72 62 6f 78 0d  |..b.. .errorbox.|
000019a0  0c 6c 09 ee 20 85 20 87  0d 0c 76 19 c8 99 20 22  |.l.. . ...v... "|
000019b0  57 69 6d 70 5f 44 72 61  67 42 6f 78 22 2c 2c 2d  |Wimp_DragBox",,-|
000019c0  31 0d 0c 80 2f 21 62 75  66 66 65 72 73 25 3d 9f  |1.../!buffers%=.|
000019d0  3a 24 28 62 75 66 66 65  72 73 25 2b 34 29 3d f6  |:$(buffers%+4)=.|
000019e0  24 2b 22 20 6c 69 6e 65  20 22 2b c3 9e 2b bd 30  |$+" line "+..+.0|
000019f0  0d 0c 8a 31 c8 99 20 22  57 69 6d 70 5f 52 65 70  |...1.. "Wimp_Rep|
00001a00  6f 72 74 45 72 72 6f 72  22 2c 62 75 66 66 65 72  |ortError",buffer|
00001a10  73 25 2c 31 2c 22 54 69  6c 65 72 20 52 65 61 64  |s%,1,"Tiler Read|
00001a20  22 0d 0c 94 04 0d 0c 9e  08 f2 64 69 65 0d 0c a8  |".........die...|
00001a30  05 e1 0d 0c b2 04 0d 0c  bc 10 dd 20 f2 5f 4b 65  |........... ._Ke|
00001a40  79 50 72 65 73 73 0d 0c  c6 08 69 25 3d 32 0d 0c  |yPress....i%=2..|
00001a50  d0 0c f2 5f 44 6f 53 61  76 65 0d 0c da 05 e1 0d  |..._DoSave......|
00001a60  0c e4 04 0d 0c ee 0e dd  20 f2 5f 44 6f 53 61 76  |........ ._DoSav|
00001a70  65 0d 0c f8 0c e7 20 69  25 3d 33 20 8c 0d 0d 02  |e..... i%=3 ....|
00001a80  2c 20 20 20 20 20 20 20  20 20 20 20 20 c8 99 20  |,            .. |
00001a90  22 57 69 6d 70 5f 47 65  74 50 6f 69 6e 74 65 72  |"Wimp_GetPointer|
00001aa0  49 6e 66 6f 22 2c 2c 71  25 0d 0d 0c 2e 20 20 20  |Info",,q%....   |
00001ab0  20 20 20 20 20 20 20 20  20 f2 64 72 61 67 69 63  |         .dragic|
00001ac0  6f 6e 28 71 25 21 30 2c  71 25 21 34 2c 53 56 57  |on(q%!0,q%!4,SVW|
00001ad0  49 4e 25 2c 69 25 29 0d  0d 16 06 20 cd 0d 0d 20  |IN%,i%).... ... |
00001ae0  04 0d 0d 2a 0c e7 20 69  25 3d 32 20 8c 0d 0d 34  |...*.. i%=2 ...4|
00001af0  0e 20 f2 5f 47 65 74 4e  61 6d 65 0d 0d 3e 46 20  |. ._GetName..>F |
00001b00  e7 20 a7 66 6e 24 2c 22  3a 22 29 20 8c 20 f2 5f  |. .fn$,":") . ._|
00001b10  53 61 76 65 20 8b 20 f2  5f 73 65 74 75 70 57 28  |Save . ._setupW(|
00001b20  22 44 72 61 67 20 74 68  65 20 49 63 6f 6e 20 69  |"Drag the Icon i|
00001b30  6e 74 6f 20 61 20 44 69  72 65 63 74 6f 72 79 22  |nto a Directory"|
00001b40  29 0d 0d 48 1d 20 c8 99  20 22 57 69 6d 70 5f 43  |)..H. .. "Wimp_C|
00001b50  72 65 61 74 65 4d 65 6e  75 22 2c 2c 2d 31 0d 0d  |reateMenu",,-1..|
00001b60  52 05 cd 0d 0d 5c 05 e1  0d 0d 66 04 0d 0d 70 0c  |R....\....f...p.|
00001b70  dd 20 f2 5f 53 61 76 65  0d 0d 7a 15 ea 20 63 68  |. ._Save..z.. ch|
00001b80  25 2c 73 78 25 2c 73 79  25 2c 73 6d 25 0d 0d 84  |%,sx%,sy%,sm%...|
00001b90  3d e7 20 a9 28 66 6e 24  29 3d 30 20 8c 20 f2 5f  |=. .(fn$)=0 . ._|
00001ba0  73 65 74 75 70 57 28 22  59 6f 75 20 6e 65 65 64  |setupW("You need|
00001bb0  20 74 6f 20 70 75 74 20  69 6e 20 61 20 66 69 6c  | to put in a fil|
00001bc0  65 20 6e 61 6d 65 22 29  3a e1 0d 0d 8e 40 e7 20  |e name"):....@. |
00001bd0  c2 66 6e 24 2c 31 29 3d  22 2e 22 20 8c 20 f2 5f  |.fn$,1)="." . ._|
00001be0  73 65 74 75 70 57 28 22  59 6f 75 20 6e 65 65 64  |setupW("You need|
00001bf0  20 74 6f 20 70 75 74 20  69 6e 20 61 20 66 69 6c  | to put in a fil|
00001c00  65 20 6e 61 6d 65 22 29  3a e1 0d 0d 98 0d f4 20  |e name"):...... |
00001c10  53 61 76 65 20 69 74 0d  0d a2 23 c8 99 20 22 4f  |Save it...#.. "O|
00001c20  53 5f 53 70 72 69 74 65  4f 70 22 2c 31 32 2b 32  |S_SpriteOp",12+2|
00001c30  35 36 2c 53 50 25 2c 66  6e 24 0d 0d ac 12 f2 5f  |56,SP%,fn$....._|
00001c40  50 75 74 4e 61 6d 65 28  66 6e 24 29 0d 0d b6 05  |PutName(fn$)....|
00001c50  e1 0d 0d c0 04 0d 0d ca  2e dd 20 f2 64 72 61 67  |.......... .drag|
00001c60  69 63 6f 6e 28 6d 6f 75  73 65 78 25 2c 6d 6f 75  |icon(mousex%,mou|
00001c70  73 65 79 25 2c 68 61 6e  64 6c 65 25 2c 69 63 6f  |sey%,handle%,ico|
00001c80  6e 25 29 0d 0d d4 21 ea  20 62 78 25 2c 62 79 25  |n%)...!. bx%,by%|
00001c90  2c 69 78 30 25 2c 69 79  30 25 2c 69 78 31 25 2c  |,ix0%,iy0%,ix1%,|
00001ca0  69 79 31 25 0d 0d de 12  f2 67 65 74 77 28 68 61  |iy1%.....getw(ha|
00001cb0  6e 64 6c 65 25 29 0d 0d  e8 18 f2 67 65 74 69 28  |ndle%).....geti(|
00001cc0  68 61 6e 64 6c 65 25 2c  69 63 6f 6e 25 29 0d 0d  |handle%,icon%)..|
00001cd0  f2 16 21 71 25 3d 68 61  6e 64 6c 65 25 3a 71 25  |..!q%=handle%:q%|
00001ce0  21 34 3d 35 0d 0d fc 3e  71 25 21 38 3d 62 78 25  |!4=5...>q%!8=bx%|
00001cf0  2b 69 78 30 25 3a 71 25  21 31 32 3d 62 79 25 2b  |+ix0%:q%!12=by%+|
00001d00  69 79 30 25 3a 71 25 21  31 36 3d 62 78 25 2b 69  |iy0%:q%!16=bx%+i|
00001d10  78 31 25 3a 71 25 21 32  30 3d 62 79 25 2b 69 79  |x1%:q%!20=by%+iy|
00001d20  31 25 0d 0e 06 2a 71 25  21 32 34 3d 71 25 21 38  |1%...*q%!24=q%!8|
00001d30  2d 6d 6f 75 73 65 78 25  3a 71 25 21 32 38 3d 71  |-mousex%:q%!28=q|
00001d40  25 21 31 32 2d 6d 6f 75  73 65 79 25 0d 0e 10 19  |%!12-mousey%....|
00001d50  c8 99 20 22 57 69 6d 70  5f 44 72 61 67 42 6f 78  |.. "Wimp_DragBox|
00001d60  22 2c 2c 71 25 0d 0e 1a  0c 53 46 4c 41 47 25 3d  |",,q%....SFLAG%=|
00001d70  b9 0d 0e 24 05 e1 0d 0e  2e 04 0d 0e 38 14 dd 20  |...$........8.. |
00001d80  f2 67 65 74 77 28 68 61  6e 64 6c 65 25 29 0d 0e  |.getw(handle%)..|
00001d90  42 38 21 71 25 3d 68 61  6e 64 6c 65 25 3a c8 99  |B8!q%=handle%:..|
00001da0  20 22 57 69 6d 70 5f 47  65 74 57 69 6e 64 6f 77  | "Wimp_GetWindow|
00001db0  53 74 61 74 65 22 2c 2c  71 25 3a f2 69 6e 66 6f  |State",,q%:.info|
00001dc0  28 71 25 2b 34 29 0d 0e  4c 05 e1 0d 0e 56 12 dd  |(q%+4)..L....V..|
00001dd0  20 f2 67 65 74 69 28 68  25 2c 69 25 29 0d 0e 60  | .geti(h%,i%)..`|
00001de0  2d 21 71 25 3d 68 25 3a  71 25 21 34 3d 69 25 3a  |-!q%=h%:q%!4=i%:|
00001df0  c8 99 20 22 57 69 6d 70  5f 47 65 74 49 63 6f 6e  |.. "Wimp_GetIcon|
00001e00  53 74 61 74 65 22 2c 2c  71 25 0d 0e 6a 2e 69 78  |State",,q%..j.ix|
00001e10  30 25 3d 71 25 21 38 3a  69 79 30 25 3d 71 25 21  |0%=q%!8:iy0%=q%!|
00001e20  31 32 3a 69 78 31 25 3d  71 25 21 31 36 3a 69 79  |12:ix1%=q%!16:iy|
00001e30  31 25 3d 71 25 21 32 30  0d 0e 74 1e 69 66 6c 61  |1%=q%!20..t.ifla|
00001e40  67 73 25 3d 71 25 21 32  34 3a 69 64 61 74 61 25  |gs%=q%!24:idata%|
00001e50  3d 71 25 2b 32 38 0d 0e  7e 05 e1 0d 0e 88 04 0d  |=q%+28..~.......|
00001e60  0e 92 0f dd 20 f2 69 6e  66 6f 28 70 25 29 0d 0e  |.... .info(p%)..|
00001e70  9c 0d ea 20 78 30 25 2c  79 30 25 0d 0e a6 27 78  |... x0%,y0%...'x|
00001e80  30 25 3d 21 70 25 3a 79  30 25 3d 70 25 21 34 3a  |0%=!p%:y0%=p%!4:|
00001e90  78 31 25 3d 70 25 21 38  3a 79 31 25 3d 70 25 21  |x1%=p%!8:y1%=p%!|
00001ea0  31 32 0d 0e b0 35 73 63  78 25 3d 70 25 21 31 36  |12...5scx%=p%!16|
00001eb0  3a 73 63 79 25 3d 70 25  21 32 30 3a 62 68 61 6e  |:scy%=p%!20:bhan|
00001ec0  64 6c 65 25 3d 70 25 21  32 34 3a 66 6c 61 67 73  |dle%=p%!24:flags|
00001ed0  25 3d 70 25 21 32 38 0d  0e ba 1d 62 78 25 3d 78  |%=p%!28....bx%=x|
00001ee0  30 25 2d 73 63 78 25 3a  62 79 25 3d 79 31 25 2d  |0%-scx%:by%=y1%-|
00001ef0  73 63 79 25 0d 0e c4 05  e1 0d 0e ce 04 0d 0e d8  |scy%............|
00001f00  04 0d 0e e2 0f dd 20 f2  5f 47 65 74 4e 61 6d 65  |...... ._GetName|
00001f10  0d 0e ec 0e ea 20 54 25  2c 41 25 2c 46 24 0d 0e  |..... T%,A%,F$..|
00001f20  f6 10 46 24 3d 22 22 3a  66 6e 24 3d 22 22 0d 0f  |..F$="":fn$=""..|
00001f30  00 16 71 25 21 30 3d 53  56 57 49 4e 25 3a 71 25  |..q%!0=SVWIN%:q%|
00001f40  21 34 3d 31 0d 0f 0a 1e  c8 99 20 22 57 69 6d 70  |!4=1...... "Wimp|
00001f50  5f 47 65 74 49 63 6f 6e  53 74 61 74 65 22 2c 2c  |_GetIconState",,|
00001f60  71 25 0d 0f 14 0c 54 25  3d 71 25 21 32 38 0d 0f  |q%....T%=q%!28..|
00001f70  1e 09 54 25 2d 3d 31 0d  0f 28 05 f5 0d 0f 32 09  |..T%-=1..(....2.|
00001f80  54 25 2b 3d 31 0d 0f 3c  10 46 24 3d 46 24 2b bd  |T%+=1..<.F$=F$+.|
00001f90  28 3f 54 25 29 0d 0f 46  0b fd 20 3f 54 25 3d 30  |(?T%)..F.. ?T%=0|
00001fa0  0d 0f 50 16 66 6e 24 3d  c1 46 24 2c 31 2c a9 28  |..P.fn$=.F$,1,.(|
00001fb0  46 24 29 2d 31 29 0d 0f  5a 05 e1 0d 0f 64 04 0d  |F$)-1)..Z....d..|
00001fc0  0f 6e 13 dd 20 f2 5f 50  75 74 44 6f 77 6e 28 71  |.n.. ._PutDown(q|
00001fd0  25 29 0d 0f 78 0d f2 5f  47 65 74 4e 61 6d 65 0d  |%)..x.._GetName.|
00001fe0  0f 82 20 c8 99 20 22 57  69 6d 70 5f 47 65 74 50  |.. .. "Wimp_GetP|
00001ff0  6f 69 6e 74 65 72 49 6e  66 6f 22 2c 2c 71 25 0d  |ointerInfo",,q%.|
00002000  0f 8c 35 6d 65 73 73 68  25 3d 71 25 21 31 32 3a  |..5messh%=q%!12:|
00002010  6d 65 73 73 69 25 3d 71  25 21 31 36 3a 6d 65 73  |messi%=q%!16:mes|
00002020  73 78 25 3d 71 25 21 30  3a 6d 65 73 73 79 25 3d  |sx%=q%!0:messy%=|
00002030  71 25 21 34 0d 0f 96 23  e7 20 a7 20 66 6e 24 2c  |q%!4...#. . fn$,|
00002040  22 3a 22 29 20 8c 20 66  6e 24 3d a4 5f 73 70 61  |":") . fn$=._spa|
00002050  74 68 28 66 6e 24 29 0d  0f a0 10 24 28 71 25 2b  |th(fn$)....$(q%+|
00002060  34 34 29 3d 66 6e 24 0d  0f aa 15 3f 28 71 25 2b  |44)=fn$....?(q%+|
00002070  34 34 2b a9 28 66 6e 24  29 29 3d 30 0d 0f b4 3a  |44+.(fn$))=0...:|
00002080  71 25 21 32 30 3d 71 25  21 31 32 3a 71 25 21 32  |q%!20=q%!12:q%!2|
00002090  38 3d 71 25 21 30 3a 71  25 21 33 32 3d 71 25 21  |8=q%!0:q%!32=q%!|
000020a0  34 3a 71 25 21 33 36 3d  53 50 25 3a 71 25 21 34  |4:q%!36=SP%:q%!4|
000020b0  30 3d 26 46 46 39 0d 0f  be 1b 71 25 21 30 3d 35  |0=&FF9....q%!0=5|
000020c0  36 3a 71 25 21 31 32 3d  30 3a 71 25 21 31 36 3d  |6:q%!12=0:q%!16=|
000020d0  31 0d 0f c8 2d c8 99 20  22 57 69 6d 70 5f 53 65  |1...-.. "Wimp_Se|
000020e0  6e 64 4d 65 73 73 61 67  65 22 2c 31 37 2c 71 25  |ndMessage",17,q%|
000020f0  2c 6d 65 73 73 68 25 2c  6d 65 73 73 69 25 0d 0f  |,messh%,messi%..|
00002100  d2 11 73 61 76 65 72 65  66 25 3d 71 25 21 38 0d  |..saveref%=q%!8.|
00002110  0f dc 1c c8 99 20 22 57  69 6d 70 5f 43 72 65 61  |..... "Wimp_Crea|
00002120  74 65 4d 65 6e 75 22 2c  2c 2d 31 0d 0f e6 05 e1  |teMenu",,-1.....|
00002130  0d 0f f0 04 0d 0f fa 11  dd 20 a4 5f 73 70 61 74  |......... ._spat|
00002140  68 28 6e 24 29 0d 10 04  0f c8 95 20 a7 6e 24 2c  |h(n$)...... .n$,|
00002150  22 2e 22 29 0d 10 0e 13  6e 24 3d c2 6e 24 2c a9  |".")....n$=.n$,.|
00002160  28 6e 24 29 2d 31 29 0d  10 18 05 ce 0d 10 22 1b  |(n$)-1).......".|
00002170  e7 20 a9 28 6e 24 29 3e  31 30 20 8c 20 6e 24 3d  |. .(n$)>10 . n$=|
00002180  c2 6e 24 2c 31 30 29 0d  10 2c 07 3d 6e 24 0d 10  |.n$,10)..,.=n$..|
00002190  36 04 0d 10 40 13 dd 20  f2 5f 50 75 74 4e 61 6d  |6...@.. ._PutNam|
000021a0  65 28 70 24 29 0d 10 4a  08 ea 20 54 25 0d 10 54  |e(p$)..J.. T%..T|
000021b0  16 71 25 21 30 3d 53 56  57 49 4e 25 3a 71 25 21  |.q%!0=SVWIN%:q%!|
000021c0  34 3d 31 0d 10 5e 1e c8  99 20 22 57 69 6d 70 5f  |4=1..^... "Wimp_|
000021d0  47 65 74 49 63 6f 6e 53  74 61 74 65 22 2c 2c 71  |GetIconState",,q|
000021e0  25 0d 10 68 0c 54 25 3d  71 25 21 32 38 0d 10 72  |%..h.T%=q%!28..r|
000021f0  0a 24 54 25 3d 70 24 0d  10 7c 11 21 28 54 25 2b  |.$T%=p$..|.!(T%+|
00002200  a9 28 70 24 29 29 3d 30  0d 10 86 05 e1 0d 10 90  |.(p$))=0........|
00002210  04 0d 10 9a 12 dd 20 f2  5f 73 65 74 75 70 57 28  |...... ._setupW(|
00002220  74 24 29 0d 10 a4 58 21  71 25 3d 77 61 72 6e 69  |t$)...X!q%=warni|
00002230  6e 67 57 25 3a 71 25 21  34 3d 32 30 30 3a 71 25  |ngW%:q%!4=200:q%|
00002240  21 38 3d 32 30 30 3a 71  25 21 31 32 3d 32 30 30  |!8=200:q%!12=200|
00002250  2b 58 51 25 3a 71 25 21  31 36 3d 32 30 30 2b 59  |+XQ%:q%!16=200+Y|
00002260  51 25 3a 71 25 21 32 30  3d 30 3a 71 25 21 32 34  |Q%:q%!20=0:q%!24|
00002270  3d 30 3a 71 25 21 32 38  3d 2d 31 0d 10 ae 11 24  |=0:q%!28=-1....$|
00002280  54 65 78 74 57 61 72 6e  25 3d 74 24 0d 10 b8 15  |TextWarn%=t$....|
00002290  54 65 78 74 57 61 72 6e  25 3f a9 28 74 24 29 3d  |TextWarn%?.(t$)=|
000022a0  30 0d 10 c2 07 ef 20 37  0d 10 cc 1c c8 99 20 22  |0..... 7...... "|
000022b0  57 69 6d 70 5f 4f 70 65  6e 57 69 6e 64 6f 77 22  |Wimp_OpenWindow"|
000022c0  2c 2c 71 25 0d 10 d6 19  c8 97 20 c8 93 20 32 30  |,,q%...... .. 20|
000022d0  30 2c 32 30 30 2c 58 51  25 2c 59 51 25 0d 10 e0  |0,200,XQ%,YQ%...|
000022e0  05 e1 0d 10 ea 04 0d 10  f4 0e dd 20 f2 5f 50 75  |........... ._Pu|
000022f0  74 50 61 6c 0d 10 fe 10  e3 20 41 25 3d 30 20 b8  |tPal..... A%=0 .|
00002300  20 32 35 35 0d 11 08 42  42 25 3d 28 55 50 25 3f  | 255...BB%=(UP%?|
00002310  28 41 25 2a 34 2b 31 29  29 3c 3c 38 20 84 20 28  |(A%*4+1))<<8 . (|
00002320  55 50 25 3f 28 41 25 2a  34 2b 32 29 29 3c 3c 31  |UP%?(A%*4+2))<<1|
00002330  36 20 84 20 28 55 50 25  3f 28 41 25 2a 34 2b 33  |6 . (UP%?(A%*4+3|
00002340  29 29 3c 3c 32 34 0d 11  12 12 70 61 6c 25 21 28  |))<<24....pal%!(|
00002350  41 25 2a 38 29 3d 42 25  0d 11 1c 14 70 61 6c 25  |A%*8)=B%....pal%|
00002360  21 28 41 25 2a 38 2b 34  29 3d 42 25 0d 11 26 05  |!(A%*8+4)=B%..&.|
00002370  ed 0d 11 30 05 e1 0d 11  3a 04 0d 11 44 13 dd 20  |...0....:...D.. |
00002380  f2 5f 73 70 75 74 28 78  25 2c 58 24 29 0d 11 4e  |._sput(x%,X$)..N|
00002390  08 ea 20 41 25 0d 11 58  12 e3 20 41 25 3d 31 20  |.. A%..X.. A%=1 |
000023a0  b8 20 a9 28 58 24 29 0d  11 62 14 3f 78 25 3d 97  |. .(X$)..b.?x%=.|
000023b0  28 c1 58 24 2c 41 25 2c  31 29 29 0d 11 6c 09 78  |(.X$,A%,1))..l.x|
000023c0  25 2b 3d 31 0d 11 76 05  ed 0d 11 80 09 3f 78 25  |%+=1..v......?x%|
000023d0  3d 30 0d 11 8a 05 e1 0d  11 94 04 0d 11 9e 0f dd  |=0..............|
000023e0  20 f2 5f 53 65 74 43 6f  6c 73 0d 11 a8 0e ea 20  | ._SetCols..... |
000023f0  67 72 61 62 25 2c 41 25  0d 11 b2 04 0d 11 bc 2e  |grab%,A%........|
00002400  c8 99 22 4f 53 5f 52 65  61 64 4d 6f 64 65 56 61  |.."OS_ReadModeVa|
00002410  72 69 61 62 6c 65 22 2c  2d 31 2c 33 20 b8 20 2c  |riable",-1,3 . ,|
00002420  2c 4e 63 6f 6c 6f 75 72  73 25 0d 11 c6 04 0d 11  |,Ncolours%......|
00002430  d0 4b e7 20 49 63 6f 6e  4e 75 6d 62 65 72 25 3c  |.K. IconNumber%<|
00002440  3e 30 20 8c 20 c8 99 22  43 6f 6c 6f 75 72 54 72  |>0 . .."ColourTr|
00002450  61 6e 73 5f 53 65 6c 65  63 74 54 61 62 6c 65 22  |ans_SelectTable"|
00002460  2c 53 50 25 2c 22 69 63  6f 6e 30 22 2c 2d 31 2c  |,SP%,"icon0",-1,|
00002470  2d 31 2c 50 54 54 25 2c  30 0d 11 da 05 e1 0d 11  |-1,PTT%,0.......|
00002480  e4 04 0d 11 ee 09 dd 20  f2 72 73 0d 11 f8 28 ea  |....... .rs...(.|
00002490  20 41 25 2c 42 25 2c 54  25 2c 43 25 2c 4d 25 2c  | A%,B%,T%,C%,M%,|
000024a0  53 25 2c 4b 25 2c 5a 25  2c 4e 24 2c 69 63 25 2c  |S%,K%,Z%,N$,ic%,|
000024b0  6d 70 25 0d 12 02 15 49  43 38 25 3d a4 5f 46 52  |mp%....IC8%=._FR|
000024c0  28 22 69 63 6c 38 22 29  0d 12 0c 0f e7 20 49 43  |("icl8")..... IC|
000024d0  38 25 3d 2d 31 20 8c 0d  12 16 23 f2 5f 73 65 74  |8%=-1 ....#._set|
000024e0  75 70 57 28 22 4e 6f 20  69 63 6c 38 20 69 63 6f  |upW("No icl8 ico|
000024f0  6e 73 20 66 6f 75 6e 64  22 29 0d 12 20 05 cc 0d  |ns found").. ...|
00002500  12 2a 15 49 43 4d 25 3d  a4 5f 46 52 28 22 49 43  |.*.ICM%=._FR("IC|
00002510  4e 23 22 29 0d 12 34 19  e3 20 69 63 25 3d 31 20  |N#")..4.. ic%=1 |
00002520  b8 20 52 6e 74 74 25 28  49 43 38 25 29 0d 12 3e  |. Rntt%(IC8%)..>|
00002530  1c 4e 24 3d 22 69 63 6f  6e 22 2b c3 28 49 63 6f  |.N$="icon"+.(Ico|
00002540  6e 4e 75 6d 62 65 72 25  29 0d 12 48 29 c8 99 22  |nNumber%)..H).."|
00002550  4f 53 5f 53 70 72 69 74  65 4f 70 22 2c 38 2b 32  |OS_SpriteOp",8+2|
00002560  35 36 2c 53 50 25 20 b8  20 2c 2c 2c 2c 42 25 2c  |56,SP% . ,,,,B%,|
00002570  41 25 0d 12 52 41 c8 99  22 4f 53 5f 53 70 72 69  |A%..RA.."OS_Spri|
00002580  74 65 4f 70 22 2c 31 35  2b 32 35 36 2c 53 50 25  |teOp",15+256,SP%|
00002590  2c 4e 24 2c 30 2c 33 32  2c 33 32 2c 32 38 20 3a  |,N$,0,32,32,28 :|
000025a0  f4 20 4d 61 6b 65 20 61  20 6e 65 77 20 73 70 72  |. Make a new spr|
000025b0  69 74 65 0d 12 5c 31 c8  99 22 4f 53 5f 53 70 72  |ite..\1.."OS_Spr|
000025c0  69 74 65 4f 70 22 2c 32  39 2b 32 35 36 2c 53 50  |iteOp",29+256,SP|
000025d0  25 2c 4e 24 20 3a 20 f4  20 43 72 65 61 74 65 20  |%,N$ : . Create |
000025e0  4d 61 73 6b 0d 12 66 04  0d 12 70 12 49 63 6f 6e  |Mask..f...p.Icon|
000025f0  4e 75 6d 62 65 72 25 2b  3d 31 0d 12 7a 12 f4 20  |Number%+=1..z.. |
00002600  47 65 74 20 74 68 65 20  69 63 6f 6e 0d 12 84 20  |Get the icon... |
00002610  53 70 6f 69 6e 74 25 3d  53 50 25 2b 28 53 50 25  |Spoint%=SP%+(SP%|
00002620  21 28 41 25 2b 33 32 29  29 2b 41 25 0d 12 8e 16  |!(A%+32))+A%....|
00002630  e3 20 43 25 3d 30 20 b8  20 28 33 32 2a 33 32 29  |. C%=0 . (32*32)|
00002640  2d 31 0d 12 98 23 5a 25  3d 42 75 66 25 3f 28 52  |-1...#Z%=Buf%?(R|
00002650  73 6f 25 28 49 43 38 25  2c 69 63 25 2d 31 29 2b  |so%(IC8%,ic%-1)+|
00002660  34 2b 43 25 29 0d 12 a2  16 53 70 6f 69 6e 74 25  |4+C%)....Spoint%|
00002670  3f 43 25 3d 43 4e 25 28  5a 25 29 0d 12 ac 05 ed  |?C%=CN%(Z%).....|
00002680  0d 12 b6 04 0d 12 c0 15  f4 20 50 75 74 20 69 6e  |......... Put in|
00002690  20 74 68 65 20 6d 61 73  6b 0d 12 ca 20 53 70 6f  | the mask... Spo|
000026a0  69 6e 74 25 3d 53 50 25  2b 28 53 50 25 21 28 41  |int%=SP%+(SP%!(A|
000026b0  25 2b 33 36 29 29 2b 41  25 0d 12 d4 0d 43 25 3d  |%+36))+A%....C%=|
000026c0  30 3a 53 25 3d 30 0d 12  de 0a 6d 70 25 3d 2d 31  |0:S%=0....mp%=-1|
000026d0  0d 12 e8 05 f5 0d 12 f2  0a 6d 70 25 2b 3d 31 0d  |.........mp%+=1.|
000026e0  12 fc 3b fd 20 52 74 6e  75 6d 25 28 49 43 38 25  |..;. Rtnum%(IC8%|
000026f0  2c 69 63 25 2d 31 29 3d  52 74 6e 75 6d 25 28 49  |,ic%-1)=Rtnum%(I|
00002700  43 4d 25 2c 6d 70 25 29  20 84 20 6d 70 25 3d 52  |CM%,mp%) . mp%=R|
00002710  6e 74 74 25 28 49 43 4d  25 29 0d 13 06 04 0d 13  |ntt%(ICM%)......|
00002720  10 2d 20 20 e7 20 52 74  6e 75 6d 25 28 49 43 38  |.-  . Rtnum%(IC8|
00002730  25 2c 69 63 25 2d 31 29  3d 52 74 6e 75 6d 25 28  |%,ic%-1)=Rtnum%(|
00002740  49 43 4d 25 2c 6d 70 25  29 20 8c 0d 13 1a 05 f5  |ICM%,mp%) ......|
00002750  0d 13 24 25 4d 25 3d 42  75 66 25 3f 28 52 73 6f  |..$%M%=Buf%?(Rso|
00002760  25 28 49 43 4d 25 2c 6d  70 25 29 2b 34 2b 53 25  |%(ICM%,mp%)+4+S%|
00002770  2b 31 32 38 29 0d 13 2e  09 53 25 2b 3d 31 0d 13  |+128)....S%+=1..|
00002780  38 0e e3 20 54 25 3d 30  20 b8 20 37 0d 13 42 0f  |8.. T%=0 . 7..B.|
00002790  4b 25 3d 4d 25 20 80 20  26 38 30 0d 13 4c 15 e7  |K%=M% . &80..L..|
000027a0  20 4b 25 3d 26 38 30 20  8c 20 4b 25 3d 32 35 35  | K%=&80 . K%=255|
000027b0  0d 13 56 11 53 70 6f 69  6e 74 25 3f 43 25 3d 4b  |..V.Spoint%?C%=K|
000027c0  25 0d 13 60 0c 4d 25 3d  4d 25 3c 3c 31 0d 13 6a  |%..`.M%=M%<<1..j|
000027d0  09 43 25 2b 3d 31 0d 13  74 05 ed 0d 13 7e 0e fd  |.C%+=1..t....~..|
000027e0  20 43 25 3e 3d 31 30 32  33 0d 13 88 07 20 20 cc  | C%>=1023....  .|
000027f0  0d 13 92 14 20 20 e3 20  4b 25 3d 30 20 b8 20 33  |....  . K%=0 . 3|
00002800  32 2a 33 32 0d 13 9c 14  20 20 53 70 6f 69 6e 74  |2*32....  Spoint|
00002810  25 3f 4b 25 3d 32 35 35  0d 13 a6 07 20 20 ed 0d  |%?K%=255....  ..|
00002820  13 b0 07 20 20 cd 0d 13  ba 09 ed 20 69 63 25 0d  |...  ...... ic%.|
00002830  13 c4 05 cd 0d 13 ce 05  e1 0d 13 d8 04 0d 13 e2  |................|
00002840  0c dd 20 f2 73 69 6e 69  74 0d 13 ec 0e 53 50 25  |.. .sinit....SP%|
00002850  21 30 3d 53 50 72 25 0d  13 f6 0c 53 50 25 21 38  |!0=SPr%....SP%!8|
00002860  3d 31 36 0d 14 00 1d c8  99 22 4f 53 5f 53 70 72  |=16......"OS_Spr|
00002870  69 74 65 4f 70 22 2c 39  2b 32 35 36 2c 53 50 25  |iteOp",9+256,SP%|
00002880  0d 14 0a 05 e1 0d 14 14  04 0d 14 1e 0e dd 20 a4  |.............. .|
00002890  5f 46 52 28 52 24 29 0d  14 28 0b ea 20 41 25 2c  |_FR(R$)..(.. A%,|
000028a0  42 25 0d 14 32 0e 42 25  3d 2d 31 3a 41 25 3d 30  |B%..2.B%=-1:A%=0|
000028b0  0d 14 3c 05 f5 0d 14 46  18 e7 20 52 24 3d 52 6e  |..<....F.. R$=Rn|
000028c0  24 28 41 25 29 20 8c 20  42 25 3d 41 25 0d 14 50  |$(A%) . B%=A%..P|
000028d0  09 41 25 2b 3d 31 0d 14  5a 15 fd 20 42 25 3c 3e  |.A%+=1..Z.. B%<>|
000028e0  2d 31 20 84 20 41 25 3e  4e 72 25 0d 14 64 07 3d  |-1 . A%>Nr%..d.=|
000028f0  42 25 0d 14 6e 04 0d 14  78 15 dd 20 f2 5f 49 6d  |B%..n...x.. ._Im|
00002900  61 67 65 4c 6f 61 64 28  44 24 29 0d 14 82 0c 46  |ageLoad(D$)....F|
00002910  25 3d 8e 28 44 24 29 0d  14 8c 1b c8 99 22 48 6f  |%=.(D$)......"Ho|
00002920  75 72 67 6c 61 73 73 5f  53 74 61 72 74 22 2c 31  |urglass_Start",1|
00002930  30 30 0d 14 96 08 41 25  3d 30 0d 14 a0 05 f5 0d  |00....A%=0......|
00002940  14 aa 0b 42 25 3d 9a 23  46 25 0d 14 b4 0e 42 75  |...B%=.#F%....Bu|
00002950  66 25 3f 41 25 3d 42 25  0d 14 be 09 41 25 2b 3d  |f%?A%=B%....A%+=|
00002960  31 0d 14 c8 15 fd 20 c5  23 46 25 20 84 20 41 25  |1..... .#F% . A%|
00002970  3d 42 75 66 4c 25 0d 14  d2 09 d9 20 23 46 25 0d  |=BufL%..... #F%.|
00002980  14 dc 26 52 6f 25 3d a4  5f 42 72 28 30 29 20 3a  |..&Ro%=._Br(0) :|
00002990  f4 20 52 65 73 6f 72 63  65 20 64 61 74 61 20 6f  |. Resorce data o|
000029a0  66 66 73 65 74 0d 14 e6  27 4d 61 70 6f 25 3d a4  |ffset...'Mapo%=.|
000029b0  5f 42 72 28 34 29 20 3a  f4 20 52 65 73 6f 72 63  |_Br(4) :. Resorc|
000029c0  65 20 4d 61 70 20 6f 66  66 73 65 74 0d 14 f0 2c  |e Map offset...,|
000029d0  44 61 74 61 4c 25 3d a4  5f 42 72 28 38 29 20 3a  |DataL%=._Br(8) :|
000029e0  f4 20 4c 65 6e 67 74 68  20 6f 66 20 72 65 73 6f  |. Length of reso|
000029f0  72 63 65 20 64 61 74 61  0d 14 fa 2c 4d 61 70 4c  |rce data...,MapL|
00002a00  25 3d a4 5f 42 72 28 31  32 29 20 20 3a f4 20 4c  |%=._Br(12)  :. L|
00002a10  65 6e 67 74 68 20 6f 66  20 72 65 73 6f 72 63 65  |ength of resorce|
00002a20  20 6d 61 70 0d 15 04 35  4f 74 6c 25 3d a4 5f 42  | map...5Otl%=._B|
00002a30  72 32 28 4d 61 70 6f 25  2b 32 34 29 2b 4d 61 70  |r2(Mapo%+24)+Map|
00002a40  6f 25 20 3a f4 20 4f 66  66 73 65 74 20 74 6f 20  |o% :. Offset to |
00002a50  74 79 70 65 20 6c 69 73  74 0d 15 0e 2b 4e 72 25  |type list...+Nr%|
00002a60  3d a4 5f 42 72 32 28 4f  74 6c 25 29 2b 31 20 3a  |=._Br2(Otl%)+1 :|
00002a70  f4 20 4e 75 6d 62 65 72  20 6f 66 20 72 65 73 6f  |. Number of reso|
00002a80  72 63 65 73 0d 15 18 08  f2 5f 4c 52 0d 15 22 07  |rces....._LR..".|
00002a90  f2 72 73 0d 15 2c 0d f2  5f 53 65 74 43 6f 6c 73  |.rs..,.._SetCols|
00002aa0  0d 15 36 23 c8 99 22 57  69 6d 70 5f 47 65 74 57  |..6#.."Wimp_GetW|
00002ab0  69 6e 64 6f 77 49 6e 66  6f 22 2c 2c 63 73 77 32  |indowInfo",,csw2|
00002ac0  35 36 25 0d 15 40 21 c8  99 22 57 69 6d 70 5f 43  |56%..@!.."Wimp_C|
00002ad0  6c 6f 73 65 57 69 6e 64  6f 77 22 2c 2c 63 73 77  |loseWindow",,csw|
00002ae0  32 35 36 25 0d 15 4a 04  0d 15 54 21 53 50 58 25  |256%..J...T!SPX%|
00002af0  3d 39 32 3a 53 50 59 25  3d 33 34 2a 49 63 6f 6e  |=92:SPY%=34*Icon|
00002b00  4e 75 6d 62 65 72 25 2b  32 0d 15 5e 1f 63 73 77  |Number%+2..^.csw|
00002b10  32 35 36 25 21 31 32 3d  63 73 77 32 35 36 25 21  |256%!12=csw256%!|
00002b20  34 2b 53 50 58 25 2a 32  0d 15 68 1f 63 73 77 32  |4+SPX%*2..h.csw2|
00002b30  35 36 25 21 31 36 3d 63  73 77 32 35 36 25 21 38  |56%!16=csw256%!8|
00002b40  2b 53 50 59 25 2a 32 0d  15 72 37 74 65 6d 70 25  |+SPY%*2..r7temp%|
00002b50  21 30 3d 30 3a 74 65 6d  70 25 21 34 3d 2d 53 50  |!0=0:temp%!4=-SP|
00002b60  59 25 2a 32 3a 74 65 6d  70 25 21 38 3d 53 50 58  |Y%*2:temp%!8=SPX|
00002b70  25 2a 32 3a 74 65 6d 70  25 21 31 32 3d 30 0d 15  |%*2:temp%!12=0..|
00002b80  7c 04 0d 15 86 20 c8 99  22 57 69 6d 70 5f 4f 70  ||.... .."Wimp_Op|
00002b90  65 6e 57 69 6e 64 6f 77  22 2c 2c 63 73 77 32 35  |enWindow",,csw25|
00002ba0  36 25 0d 15 90 24 c8 99  22 57 69 6d 70 5f 53 65  |6%...$.."Wimp_Se|
00002bb0  74 45 78 74 65 6e 74 22  2c 57 69 6e 32 35 36 25  |tExtent",Win256%|
00002bc0  2c 74 65 6d 70 25 0d 15  9a 04 0d 15 a4 15 c8 99  |,temp%..........|
00002bd0  22 48 6f 75 72 67 6c 61  73 73 5f 4f 66 66 22 0d  |"Hourglass_Off".|
00002be0  15 ae 05 e1 0d 15 b8 04  0d 15 c2 1d dd 20 f2 5f  |............. ._|
00002bf0  4c 52 20 3a f4 20 4c 6f  63 61 74 65 20 72 65 73  |LR :. Locate res|
00002c00  6f 72 63 65 73 0d 15 cc  14 ea 20 41 25 2c 42 25  |orces..... A%,B%|
00002c10  2c 43 25 2c 44 25 2c 53  25 0d 15 d6 08 41 25 3d  |,C%,D%,S%....A%=|
00002c20  30 0d 15 e0 0d 42 25 3d  4f 74 6c 25 2b 32 0d 15  |0....B%=Otl%+2..|
00002c30  ea 08 f1 7e 42 25 0d 15  f4 05 f5 0d 15 fe 0e 52  |...~B%.........R|
00002c40  6e 24 28 41 25 29 3d 22  22 0d 16 08 0e e3 20 43  |n$(A%)=""..... C|
00002c50  25 3d 30 20 b8 20 33 0d  16 12 25 52 6e 24 28 41  |%=0 . 3...%Rn$(A|
00002c60  25 29 3d 52 6e 24 28 41  25 29 20 2b 20 bd 28 42  |%)=Rn$(A%) + .(B|
00002c70  75 66 25 3f 28 42 25 2b  43 25 29 29 0d 16 1c 05  |uf%?(B%+C%))....|
00002c80  ed 0d 16 26 1b 52 6e 74  74 25 28 41 25 29 3d a4  |...&.Rntt%(A%)=.|
00002c90  5f 42 72 32 28 42 25 2b  34 29 2b 31 0d 16 30 17  |_Br2(B%+4)+1..0.|
00002ca0  44 25 3d a4 5f 42 72 32  28 42 25 2b 36 29 2b 4f  |D%=._Br2(B%+6)+O|
00002cb0  74 6c 25 0d 16 3a 18 e3  20 53 25 3d 30 20 b8 20  |tl%..:.. S%=0 . |
00002cc0  52 6e 74 74 25 28 41 25  29 2d 31 0d 16 44 29 52  |Rntt%(A%)-1..D)R|
00002cd0  73 6f 25 28 41 25 2c 53  25 29 3d a4 5f 42 72 33  |so%(A%,S%)=._Br3|
00002ce0  28 28 44 25 2b 35 29 2b  28 53 25 2a 31 32 29 29  |((D%+5)+(S%*12))|
00002cf0  2b 52 6f 25 0d 16 4e 21  52 74 6e 75 6d 25 28 41  |+Ro%..N!Rtnum%(A|
00002d00  25 2c 53 25 29 3d a4 5f  42 72 32 28 44 25 2b 53  |%,S%)=._Br2(D%+S|
00002d10  25 2a 31 32 29 0d 16 58  05 ed 0d 16 62 09 42 25  |%*12)..X....b.B%|
00002d20  2b 3d 38 0d 16 6c 09 41  25 2b 3d 31 0d 16 76 0c  |+=8..l.A%+=1..v.|
00002d30  fd 20 41 25 3d 4e 72 25  0d 16 80 05 e1 0d 16 8a  |. A%=Nr%........|
00002d40  04 0d 16 94 0e dd 20 a4  5f 42 72 28 4f 25 29 0d  |...... ._Br(O%).|
00002d50  16 9e 47 3d 28 42 75 66  25 3f 4f 25 29 3c 3c 32  |..G=(Buf%?O%)<<2|
00002d60  34 20 84 20 28 42 75 66  25 3f 28 4f 25 2b 31 29  |4 . (Buf%?(O%+1)|
00002d70  29 3c 3c 31 36 20 84 20  28 42 75 66 25 3f 28 4f  |)<<16 . (Buf%?(O|
00002d80  25 2b 32 29 29 3c 3c 38  20 84 20 42 75 66 25 3f  |%+2))<<8 . Buf%?|
00002d90  28 4f 25 2b 33 29 0d 16  a8 0f dd 20 a4 5f 42 72  |(O%+3)..... ._Br|
00002da0  32 28 4f 25 29 0d 16 b2  23 3d 28 3f 28 42 75 66  |2(O%)...#=(?(Buf|
00002db0  25 2b 4f 25 29 29 3c 3c  38 20 84 20 3f 28 42 75  |%+O%))<<8 . ?(Bu|
00002dc0  66 25 2b 4f 25 2b 31 29  0d 16 bc 0f dd 20 a4 5f  |f%+O%+1)..... ._|
00002dd0  42 72 33 28 4f 25 29 0d  16 c6 33 3d 28 42 75 66  |Br3(O%)...3=(Buf|
00002de0  25 3f 4f 25 29 3c 3c 31  36 20 84 20 28 42 75 66  |%?O%)<<16 . (Buf|
00002df0  25 3f 28 4f 25 2b 31 29  29 3c 3c 38 20 84 20 42  |%?(O%+1))<<8 . B|
00002e00  75 66 25 3f 28 4f 25 2b  32 29 0d 16 d0 04 0d 16  |uf%?(O%+2)......|
00002e10  da 20 f4 20 4d 61 63 69  6e 74 6f 73 68 20 64 65  |. . Macintosh de|
00002e20  66 61 75 6c 74 20 70 61  6c 6c 65 74 74 65 0d 16  |fault pallette..|
00002e30  e4 1c f4 20 61 6e 64 20  63 6f 6c 6f 75 72 20 74  |... and colour t|
00002e40  72 61 6e 73 6c 61 74 69  6f 6e 0d 16 ee 0c dd 20  |ranslation..... |
00002e50  f2 5f 4d 74 6f 41 0d 16  f8 10 e3 20 41 25 3d 30  |._MtoA..... A%=0|
00002e60  20 b8 20 32 35 35 0d 17  02 0d f3 20 43 4e 25 28  | . 255..... CN%(|
00002e70  41 25 29 0d 17 0c 05 ed  0d 17 16 25 dc 20 32 35  |A%)........%. 25|
00002e80  35 2c 32 34 37 2c 32 34  37 2c 31 32 37 2c 31 31  |5,247,247,127,11|
00002e90  39 2c 31 31 39 2c 32 32  33 2c 32 31 35 0d 17 20  |9,119,223,215.. |
00002ea0  21 dc 20 32 31 35 2c 39  35 2c 38 37 2c 38 37 2c  |!. 215,95,87,87,|
00002eb0  32 32 32 2c 32 32 31 2c  32 31 34 2c 39 34 0d 17  |222,221,214,94..|
00002ec0  2a 20 dc 20 38 36 2c 38  35 2c 31 39 30 2c 31 38  |* . 86,85,190,18|
00002ed0  33 2c 31 38 32 2c 36 32  2c 35 34 2c 35 34 0d 17  |3,182,62,54,54..|
00002ee0  34 22 dc 20 31 35 39 2c  31 35 31 2c 31 35 31 2c  |4". 159,151,151,|
00002ef0  33 31 2c 32 33 2c 32 33  2c 31 35 37 2c 31 35 37  |31,23,23,157,157|
00002f00  0d 17 3e 22 dc 20 31 34  39 2c 32 39 2c 32 39 2c  |..>". 149,29,29,|
00002f10  32 31 2c 32 35 31 2c 32  34 33 2c 32 34 33 2c 31  |21,251,243,243,1|
00002f20  32 33 0d 17 48 25 dc 20  31 31 35 2c 31 31 35 2c  |23..H%. 115,115,|
00002f30  32 31 39 2c 32 35 32 2c  32 34 34 2c 32 34 34 2c  |219,252,244,244,|
00002f40  31 32 34 2c 31 31 36 0d  17 52 22 dc 20 32 32 31  |124,116..R". 221|
00002f50  2c 32 32 31 2c 32 31 33  2c 39 33 2c 39 32 2c 38  |,221,213,93,92,8|
00002f60  35 2c 31 38 37 2c 31 37  39 0d 17 5c 21 dc 20 31  |5,187,179..\!. 1|
00002f70  38 31 2c 35 39 2c 35 31  2c 35 33 2c 31 35 35 2c  |81,59,51,53,155,|
00002f80  31 34 37 2c 31 38 30 2c  32 37 0d 17 66 21 dc 20  |147,180,27..f!. |
00002f90  31 39 2c 35 32 2c 31 35  36 2c 31 35 36 2c 31 34  |19,52,156,156,14|
00002fa0  38 2c 31 34 38 2c 32 38  2c 32 30 0d 17 70 25 dc  |8,148,28,20..p%.|
00002fb0  20 32 35 30 2c 32 34 33  2c 32 34 32 2c 31 32 32  | 250,243,242,122|
00002fc0  2c 31 31 34 2c 31 31 34  2c 32 34 39 2c 32 34 38  |,114,114,249,248|
00002fd0  0d 17 7a 24 dc 20 32 34  30 2c 31 32 31 2c 31 32  |..z$. 240,121,12|
00002fe0  30 2c 31 31 32 2c 32 31  37 2c 32 31 37 2c 32 30  |0,112,217,217,20|
00002ff0  39 2c 38 39 0d 17 84 20  dc 20 38 39 2c 38 31 2c  |9,89... . 89,81,|
00003000  31 38 36 2c 31 38 35 2c  31 37 38 2c 35 38 2c 35  |186,185,178,58,5|
00003010  30 2c 34 39 0d 17 8e 22  dc 20 31 35 34 2c 31 38  |0,49...". 154,18|
00003020  34 2c 31 34 36 2c 32 36  2c 31 38 2c 34 38 2c 31  |4,146,26,18,48,1|
00003030  35 33 2c 31 35 32 0d 17  98 22 dc 20 31 34 34 2c  |53,152...". 144,|
00003040  32 35 2c 32 34 2c 31 36  2c 32 33 39 2c 32 33 31  |25,24,16,239,231|
00003050  2c 32 33 30 2c 31 31 31  0d 17 a2 23 dc 20 31 30  |,230,111...#. 10|
00003060  33 2c 31 30 32 2c 32 30  37 2c 31 39 39 2c 32 32  |3,102,207,199,22|
00003070  39 2c 37 39 2c 37 31 2c  31 30 31 0d 17 ac 22 dc  |9,79,71,101...".|
00003080  20 32 30 36 2c 32 30 35  2c 31 39 37 2c 37 37 2c  | 206,205,197,77,|
00003090  37 30 2c 36 39 2c 31 37  34 2c 31 37 34 0d 17 b6  |70,69,174,174...|
000030a0  21 dc 20 31 36 36 2c 34  36 2c 33 38 2c 33 38 2c  |!. 166,46,38,38,|
000030b0  31 34 33 2c 31 33 35 2c  31 33 34 2c 31 35 0d 17  |143,135,134,15..|
000030c0  c0 1d dc 20 37 2c 36 2c  31 34 31 2c 31 34 31 2c  |... 7,6,141,141,|
000030d0  31 33 33 2c 31 33 2c 32  34 2c 35 0d 17 ca 23 dc  |133,13,24,5...#.|
000030e0  20 32 33 35 2c 32 32 37  2c 32 32 37 2c 31 30 37  | 235,227,227,107|
000030f0  2c 39 39 2c 39 39 2c 32  30 33 2c 32 33 36 0d 17  |,99,99,203,236..|
00003100  d4 23 dc 20 32 32 38 2c  37 35 2c 31 30 38 2c 31  |.#. 228,75,108,1|
00003110  30 30 2c 32 30 32 2c 32  30 34 2c 31 39 34 2c 37  |00,202,204,194,7|
00003120  34 0d 17 de 20 dc 20 36  36 2c 36 38 2c 31 37 30  |4... . 66,68,170|
00003130  2c 31 36 33 2c 31 36 32  2c 34 32 2c 33 34 2c 33  |,163,162,42,34,3|
00003140  34 0d 17 e8 21 dc 20 31  33 39 2c 31 33 31 2c 31  |4...!. 139,131,1|
00003150  33 31 2c 31 31 2c 33 2c  33 36 2c 31 34 30 2c 31  |31,11,3,36,140,1|
00003160  34 30 0d 17 f2 22 dc 20  31 33 32 2c 31 33 32 2c  |40...". 132,132,|
00003170  31 32 2c 34 2c 32 33 34  2c 32 33 34 2c 32 32 36  |12,4,234,234,226|
00003180  2c 31 30 36 0d 17 fc 22  dc 20 39 38 2c 39 38 2c  |,106...". 98,98,|
00003190  32 33 32 2c 32 33 32 2c  32 32 34 2c 32 32 34 2c  |232,232,224,224,|
000031a0  31 30 34 2c 39 36 0d 18  06 22 dc 20 32 30 31 2c  |104,96...". 201,|
000031b0  32 30 31 2c 31 39 33 2c  37 33 2c 37 32 2c 36 35  |201,193,73,72,65|
000031c0  2c 31 37 30 2c 31 36 39  0d 18 10 22 dc 20 31 36  |,170,169...". 16|
000031d0  31 2c 34 31 2c 33 34 2c  33 33 2c 31 33 38 2c 31  |1,41,34,33,138,1|
000031e0  36 38 2c 31 36 30 2c 31  36 30 0d 18 1a 20 dc 20  |68,160,160... . |
000031f0  34 30 2c 33 32 2c 31 33  36 2c 31 33 36 2c 31 32  |40,32,136,136,12|
00003200  38 2c 31 32 38 2c 38 2c  32 31 0d 18 24 1a dc 20  |8,128,8,21..$.. |
00003210  32 30 2c 32 30 2c 31 37  2c 31 36 2c 31 36 2c 34  |20,20,17,16,16,4|
00003220  2c 34 2c 31 0d 18 2e 1c  dc 20 30 2c 39 37 2c 39  |,4,1..... 0,97,9|
00003230  37 2c 39 36 2c 36 35 2c  36 34 2c 36 34 2c 33 33  |7,96,65,64,64,33|
00003240  0d 18 38 20 dc 20 33 32  2c 31 2c 31 2c 31 33 36  |..8 . 32,1,1,136|
00003250  2c 31 33 36 2c 31 33 36  2c 31 33 36 2c 31 32 38  |,136,136,136,128|
00003260  0d 18 42 1d dc 20 31 32  38 2c 38 2c 38 2c 38 2c  |..B.. 128,8,8,8,|
00003270  30 2c 32 35 34 2c 32 35  33 2c 32 31 31 0d 18 4c  |0,254,253,211..L|
00003280  1c dc 20 32 31 30 2c 32  30 38 2c 34 37 2c 34 35  |.. 210,208,47,45|
00003290  2c 34 34 2c 32 2c 31 2c  30 0d 18 56 05 e1 0d 18  |,44,2,1,0..V....|
000032a0  60 04 0d ff                                       |`...|
000032a4