Home » Archimedes archive » Micro User » MU 1991-05.adf » PDStuff » Utilities/!Attribute/!RunImage

Utilities/!Attribute/!RunImage

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

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

Tape/disk: Home » Archimedes archive » Micro User » MU 1991-05.adf » PDStuff
Filename: Utilities/!Attribute/!RunImage
Read OK:
File size: 73E3 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > !RunImage
   20REM
   30REM   File attributes utility.
   40REM
   50REM   Written by  J.Horsnell (Exorcist)
   60REM
   70REM   This program is public domain.
   80REM
   90ON ERROR PRINT "A fatal setup error has occured."''REPORT$;" at line ";ERL:END
  100
  110PROC_initialise_heap:ready%=TRUE
  120maxfiles%=32:saving%=FALSE:dragging%=FALSE
  130DIM b% &2000,e% &100,f% 256,ws%(maxfiles%,2),hexonly 13,deconly 6
  140DIM text% 130,facts% 15,ptrans% 15,facts1% 15,facts2% 15,ptrans1% 15
  150DIM ptrans2% 15:$text%="   Public write access":moreroom%=TRUE
  160$(text%+24)="   Public read access":$(text%+47)="   Owner write access"
  170$(text%+70)="   Owner read access":$hexonly="a0-9a-fA-F":$deconly="a0-9"
  180$(text%+92)="   Locked against deletion"
  181version$="1.31 (18 December 1989)"
  190TaskTitle$="File/Dir attributes":Attribute$=FN_OSvar("!Attribute$Dir",b%)
  200SYS "Wimp_Initialise",200,&4B534154,TaskTitle$:iw%=-2:winy%=932:winx%=-16
  210PROC_Define_menu:icon%=FN_install_on_icon_bar:PROC_get_mode_info
  220
  230ON ERROR PROC_error(ERR,REPORT$+STR$ERL)
  240
  250REPEAT
  260 SYS "Wimp_Poll",1,b% TO action%
  270 CASE action% OF
  280   WHEN 1 : PROC_redraw_window
  290   WHEN 2 : SYS "Wimp_OpenWindow",,b%
  300   WHEN 3 : REM delete window and free pointers etc.
  310     SYS "Wimp_GetPointerInfo",,b%+100:dummy%=FN_pos_from_handle(b%!0)
  320     IF dummy%=-1 THEN
  330      PROC_error(1,"Unknown window handle")
  340     ELSE
  350      IF b%!108=1 THEN OSCLI"Filer_OpenDir "+LEFT$($ws%(dummy%,1),LEN($ws%(dummy%,1))-LEN(FN_leafname($ws%(dummy%,1)))-1)
  360      SYS "Wimp_DeleteWindow",,b%:ws%(dummy%,2)=0:moreroom%=TRUE
  370      PROC_free_heap_block(ws%(dummy%,1)):ws%(dummy%,1)=0:ws%(dummy%,0)=0
  380     ENDIF
  390   WHEN 6 : PROC_Mouse_change
  400   WHEN 7 : PROC_dragged_box
  410   WHEN 8 : PROC_key_pressed
  420   WHEN 9 : PROC_Menu_selection
  430   WHEN 17,18 : PROC_Receive_message
  440 ENDCASE
  450UNTIL 0
  460
  470DEF PROC_dragged_box
  480 dragging%=FALSE
  490 IF saving% THEN
  500  SYS "Wimp_GetPointerInfo",,b%:b%!32=b%!4:b%!28=b%!0
  510  b%!24=b%!16:b%!20=b%!12:b%!16=1:b%!12=0:b%!36=0
  520  b%!40=&FF7:$(b%+44)=FN_leafname($ws%(wn%,1))
  530  b%!0=60:SYS"Wimp_SendMessage",17,b%,b%!20
  540 ELSE
  550  b%!100=iw%:SYS"Wimp_GetWindowInfo",,b%+100
  560  b%!104=b%!0+2:b%!108=b%!4+2:b%!112=b%!8-2:b%!116=b%!12-2
  570  SYS"Wimp_OpenWindow",,b%+100
  580 ENDIF
  590 ENDPROC
  600
  610DEF PROC_redraw_window
  620dummy%=FN_pos_from_handle(b%!0)
  630SYS"Wimp_SetColour",7
  640SYS "Wimp_RedrawWindow",,b% TO more%
  650y%=b%!16-b%!24:x%=b%!4-b%!20
  660WHILE more%
  670 RECTANGLE x%,y%+296,480,2:RECTANGLE x%+480,y%+108,488,2
  680 RECTANGLE x%+480,y%,2,500:RECTANGLE x%+480,y%+212,488,2
  690 RECTANGLE x%+480,y%+312,488,2
  700 IF b%!28<x%+60 AND b%!32<y%+260 THEN
  710  PROC_box(x%+4,y%+4,(ws%(dummy%,1)!370 AND 32)=32)
  720  PROC_box(x%+4,y%+52,(ws%(dummy%,1)!370 AND 16)=16)
  730  PROC_box(x%+4,y%+100,(ws%(dummy%,1)!370 AND 2)=2)
  740  PROC_box(x%+4,y%+148,(ws%(dummy%,1)!370 AND 1)=1)
  750  PROC_box(x%+4,y%+196,(ws%(dummy%,1)!370 AND 8)=8)
  760 ENDIF
  770 SYS"Wimp_ReadPixTrans",&100,1,ws%(dummy%,1)+260,,,,facts%,ptrans%
  780 SYS"Wimp_SpriteOp",40,1,ws%(dummy%,1)+260 TO ,,,sw%,sh%
  790 SYS"Wimp_SpriteOp",52,1,ws%(dummy%,1)+260,x%+570-sw%,y%+406-2*sh%,8,facts%,ptrans%
  800 SYS "Wimp_GetRectangle",,b% TO more%
  810 ENDWHILE
  820ENDPROC
  830
  840DEF PROC_box(x%,y%,sw%)
  850 IF sw% THEN
  860   SYS"Wimp_SpriteOp",52,1,"opton",x%,y%,0,facts1%,ptrans1%
  870 ELSE
  880   SYS"Wimp_SpriteOp",52,1,"optoff",x%,y%,8,facts2%,ptrans2%
  890 ENDIF
  900 ENDPROC
  910
  920DEF PROC_Mouse_change
  930 CASE b%!12 OF
  940  WHEN iw% : REM icon bar
  950   CASE b%!8 OF
  960    WHEN 1 :REM 'ADJUST'; dont do anything
  970     IF iw%<>-2 THEN
  980      g%=b%+&B00
  990      b%!0=11:b%!4=12:b%!8=4:b%!12=5:b%!16=-1
 1000      SYS"OS_ReadVduVariables",b%,g%
 1010      SW%=(1<<(g%!8))*((g%!0)+1):SH%=(1<<(g%!12))*((g%!4)+1)
 1020      g%!0=iw%:SYS"Wimp_GetWindowInfo",,g%
 1030      x0%=g%!4-2:x1%=g%!12+2:y0%=g%!8-2:y1%=g%!16+2
 1040      b%!0=iw%:b%!4=5:b%!8=x0%:b%!12=y0%:b%!16=x1%:b%!20=y1%
 1050      b%!24=0:b%!28=0:b%!32=SW%:b%!36=SH%
 1060      SYS"Wimp_DragBox",,b%:dragging%=TRUE
 1070     ENDIF
 1080    WHEN 2 :
 1090     IF iw%=-2 THEN
 1100      SYS "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,96+3*44
 1110     ELSE
 1120      SYS "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,b%!4
 1130     ENDIF
 1140    WHEN 4 :PROC_new_window(Attribute$+".New_file")
 1150   ENDCASE
 1160  OTHERWISE : REM must be a file/dir window
 1170   CASE b%!8 OF
 1180    WHEN 2 :
 1190     SYS "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,b%!4
 1200    WHEN 4 :
 1210    wn%=FN_pos_from_handle(b%!12)
 1220    IF wn%<>-1 THEN
 1230     CASE b%!16 OF
 1240      WHEN 0  : REM Public write access
 1250        tmp%=(ws%(wn%,1)!370) AND 32
 1260        IF  tmp%=32 THEN ws%(wn%,1)!370-=32 ELSE ws%(wn%,1)!370+=32
 1270        SYS"Wimp_ForceRedraw",ws%(wn%,0),10,12,40,40
 1280      WHEN 1  : REM Public read access
 1290        tmp%=(ws%(wn%,1)!370) AND 16
 1300        IF  tmp%=16 THEN ws%(wn%,1)!370-=16 ELSE ws%(wn%,1)!370+=16
 1310        SYS"Wimp_ForceRedraw",ws%(wn%,0),10,60,40,88
 1320      WHEN 2  : REM Owner write access
 1330        tmp%=(ws%(wn%,1)!370) AND 2
 1340        IF  tmp%=2 THEN ws%(wn%,1)!370-=2 ELSE ws%(wn%,1)!370+=2
 1350        SYS"Wimp_ForceRedraw",ws%(wn%,0),10,108,40,136
 1360      WHEN 3  : REM Owner read access
 1370        tmp%=(ws%(wn%,1)!370) AND 1
 1380        IF  tmp%=1 THEN ws%(wn%,1)!370-=1 ELSE ws%(wn%,1)!370+=1
 1390        SYS"Wimp_ForceRedraw",ws%(wn%,0),10,156,40,184
 1400      WHEN 4  : REM Locked against deletion
 1410        tmp%=(ws%(wn%,1)!370) AND 8
 1420        IF  tmp%=8 THEN ws%(wn%,1)!370-=8 ELSE ws%(wn%,1)!370+=8
 1430        SYS"Wimp_ForceRedraw",ws%(wn%,0),10,204,40,232
 1440      WHEN 6  : REM Update attributes
 1450        PROC_check_exists($ws%(wn%,1))
 1460        SYS "OS_File",4,ws%(wn%,1),,,,ws%(wn%,1)!370
 1470      WHEN 9  : REM Decrease bytes
 1480        IFVAL($(ws%(wn%,1)+314))>0 THEN
 1490         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))-1)
 1500         PROC_redraw_icon(ws%(wn%,0),8)
 1510         IFINT(VAL($(ws%(wn%,1)+314))/1024)<>VAL($(ws%(wn%,1)+302)) THEN
 1520          $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))-1)
 1530          PROC_redraw_icon(ws%(wn%,0),12)
 1540           IFINT(VAL($(ws%(wn%,1)+302))/1024)<>VAL($(ws%(wn%,1)+290)) THEN
 1550            $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))-1)
 1560            PROC_redraw_icon(ws%(wn%,0),16)
 1570           ENDIF
 1580         ENDIF
 1590        ENDIF
 1600      WHEN 10 : REM Increase bytes
 1610        IFVAL($(ws%(wn%,1)+314))<999292928 THEN
 1620         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))+1)
 1630         PROC_redraw_icon(ws%(wn%,0),8)
 1640         IFINT(VAL($(ws%(wn%,1)+314))/1024)<>VAL($(ws%(wn%,1)+302)) THEN
 1650          $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))+1)
 1660          PROC_redraw_icon(ws%(wn%,0),12)
 1670           IFINT(VAL($(ws%(wn%,1)+302))/1024)<>VAL($(ws%(wn%,1)+290)) THEN
 1680            $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))+1)
 1690            PROC_redraw_icon(ws%(wn%,0),16)
 1700           ENDIF
 1710         ENDIF
 1720        ENDIF
 1730      WHEN 13 : REM Decrease Kbytes
 1740        IF VAL($(ws%(wn%,1)+302))>0 THEN
 1750         $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))-1)
 1760         PROC_redraw_icon(ws%(wn%,0),12)
 1770         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))-1024)
 1780         PROC_redraw_icon(ws%(wn%,0),8)
 1790         IF INT(VAL($(ws%(wn%,1)+302))/1024)<>VAL($(ws%(wn%,1)+290)) THEN
 1800          $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))-1)
 1810          PROC_redraw_icon(ws%(wn%,0),16)
 1820         ENDIF
 1830        ENDIF
 1840      WHEN 14 : REM Increase Kbytes 975872
 1850        IF VAL($(ws%(wn%,1)+302))<975872 THEN
 1860         $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))+1)
 1870         PROC_redraw_icon(ws%(wn%,0),12)
 1880         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))+1024)
 1890         PROC_redraw_icon(ws%(wn%,0),8)
 1900         IF INT(VAL($(ws%(wn%,1)+302))/1024)<>VAL($(ws%(wn%,1)+290)) THEN
 1910          $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))+1)
 1920          PROC_redraw_icon(ws%(wn%,0),16)
 1930         ENDIF
 1940        ENDIF
 1950      WHEN 17 : REM Decrease Mbytes
 1960        IF VAL($(ws%(wn%,1)+290))>0 THEN
 1970         $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))-1)
 1980         PROC_redraw_icon(ws%(wn%,0),16)
 1990         $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))-1024)
 2000         PROC_redraw_icon(ws%(wn%,0),12)
 2010         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))-1024*1024)
 2020         PROC_redraw_icon(ws%(wn%,0),8)
 2030        ENDIF
 2040      WHEN 18 : REM Increase Mbytes 953
 2050        IF VAL($(ws%(wn%,1)+290))<953 THEN
 2060         $(ws%(wn%,1)+290)=STR$(VAL($(ws%(wn%,1)+290))+1)
 2070         PROC_redraw_icon(ws%(wn%,0),16)
 2080         $(ws%(wn%,1)+302)=STR$(VAL($(ws%(wn%,1)+302))+1024)
 2090         PROC_redraw_icon(ws%(wn%,0),12)
 2100         $(ws%(wn%,1)+314)=STR$(VAL($(ws%(wn%,1)+314))+1024*1024)
 2110         PROC_redraw_icon(ws%(wn%,0),8)
 2120        ENDIF
 2130      WHEN 20 : REM Update file size
 2140        PROC_check_exists($ws%(wn%,1))
 2150        PROC_read_file_attributes($(ws%(wn%,1)))
 2160        OSCLI"ACCESS "+$(ws%(wn%,1))+" W"
 2170        SYS"OS_File",7,ws%(wn%,1),load%,exec%,0,VAL($(ws%(wn%,1)+314))
 2180        SYS "OS_File",4,ws%(wn%,1),,,,ws%(wn%,1)!370
 2190      WHEN 22 : REM Load address
 2200        *| Non-selectable
 2210      WHEN 23 : REM Update load address
 2220       PROC_check_exists($ws%(wn%,1))
 2230       SYS"OS_File",5,ws%(wn%,1) TO ,,,exec%
 2240       tmp$=$(ws%(wn%,1)+326):tmp$=STRING$(8-LEN(tmp$),"0")+tmp$
 2250       IF ws%(wn%,1)!378 THEN
 2260         IF LEFT$(tmp$,3)<>"FFF" THEN
 2270          IF FN_report_error("Updateing with this load address will destroy the date stamp and file type.",23,"Warning") PROC_update_load_address
 2280         ELSE
 2290          PROC_update_load_address
 2300         ENDIF
 2310       ELSE
 2320         IF LEFT$(tmp$,3)="FFF" THEN
 2330          IF FN_report_error("Updateing with this load address will create a date stamp and file type.",23,"Warning") PROC_update_load_address
 2340         ELSE
 2350          PROC_update_load_address
 2360         ENDIF
 2370       ENDIF
 2380      WHEN 25 : REM Execution address
 2390        *| Non_selectable
 2400      WHEN 26 : REM Update execution address
 2410       PROC_check_exists($ws%(wn%,1)):PROC_update_exec_address
 2420      WHEN 29 : REM Re-stamp file date
 2430       IF ws%(wn%,1)!378 THEN
 2440         PROC_restamp
 2450       ELSE
 2460         IF FN_report_error("Writing a date stamp will erase Load/Execute addresses.",23,"Warning") THEN PROC_restamp
 2470       ENDIF
 2480      WHEN 31 : REM Click left on filename
 2490        IF ws%(wn%,1)?259>0 THEN
 2500         ws%(wn%,1)?259-=1:b%!0=ws%(wn%,0):b%!4=ws%(wn%,1)!374
 2510         SYS"Wimp_GetIconState",,b%:SYS"Wimp_DeleteIcon",,b%:b%!4=b%!0
 2520         b%!28-=1:SYS"Wimp_CreateIcon",,b%+4 TO ws%(wn%,1)!374
 2530         PROC_redraw_icon(ws%(wn%,0),ws%(wn%,1)!374)
 2540        ENDIF
 2550      WHEN 33 : REM Click right on filename
 2560        IF LEN($(ws%(wn%,1)+ws%(wn%,1)?259))>29 THEN
 2570         ws%(wn%,1)?259+=1:b%!0=ws%(wn%,0):b%!4=ws%(wn%,1)!374
 2580         SYS"Wimp_GetIconState",,b%:SYS"Wimp_DeleteIcon",,b%:b%!4=b%!0
 2590         b%!28+=1:SYS"Wimp_CreateIcon",,b%+4 TO ws%(wn%,1)!374
 2600         PROC_redraw_icon(ws%(wn%,0),ws%(wn%,1)!374)
 2610        ENDIF
 2620      WHEN 35 : REM File type number
 2630        *| Non-selectable
 2640      WHEN 37 : REM Update file type
 2650        PROC_new_filetype_number
 2660        IF ws%(wn%,1)!378 THEN
 2670         PROC_update_file_type
 2680        ELSE
 2690         IF FN_report_error("Writing a file type will erase Load/Execute addresses.",23,"Warning") THEN PROC_update_file_type
 2700        ENDIF
 2710      WHEN 38 : REM Icon selected
 2720        g%=b%+&B00:b%!0=11:b%!4=12:b%!8=4:b%!12=5:b%!16=-1
 2730        SYS"OS_ReadVduVariables",b%,g%:SW%=(1<<(g%!8))*((g%!0)+1)
 2740        SH%=(1<<(g%!12))*((g%!4)+1):g%!0=ws%(wn%,0)
 2750        SYS"Wimp_GetWindowInfo",,g%:b%!0=ws%(wn%,0):b%!4=38
 2760        SYS"Wimp_GetIconState",,b%:x0%=g%!4+b%!8-g%!20
 2770        x1%=g%!4+b%!16-g%!20:y0%=g%!16+b%!12-g%!24
 2780        y1%=g%!16+b%!20-g%!24:b%!0=sw%:b%!4=5:b%!8=x0%
 2790        b%!12=y0%:b%!16=x1%:b%!20=y1%:b%!24=0:b%!28=0:b%!32=SW%
 2800        b%!36=SH%:SYS"Wimp_DragBox",,b%:dragging%=TRUE:saving%=TRUE
 2810     ENDCASE
 2820    ENDIF
 2830   ENDCASE
 2840 ENDCASE
 2850 ENDPROC
 2860
 2870DEF PROC_redraw
 2880y%=b%!16-b%!24:x%=b%!4-b%!20
 2890WHILE more%
 2900 SYS "Wimp_GetRectangle",,b% TO more%
 2910 ENDWHILE
 2920ENDPROC
 2930
 2940DEF PROC_key_pressed
 2950 wn%=FN_pos_from_handle(b%!0)
 2960 IF wn%<>-1 THEN
 2970  IF b%!24=13 THEN
 2980   CASE b%!4 OF
 2990    WHEN 22 : REM new load address
 3000       *| Ignore it !
 3010    WHEN 25 : REM new execution address
 3020       *| Ignore it !
 3030    WHEN 35 : REM new filetype number
 3040       PROC_new_filetype_number
 3050   ENDCASE
 3051  ELSE
 3060   SYS"Wimp_ProcessKey",b%!24
 3070  ENDIF
 3071 ELSE
 3072  SYS"Wimp_ProcessKey",b%!24
 3080 ENDIF
 3090 ENDPROC
 3100
 3110DEF PROC_new_filetype_number
 3120 load%=(EVAL("&"+$(ws%(wn%,1)+286))<<8) AND &FFFFFF00
 3130 type%=ws%(wn%,2):PROC_read_date_stamp:PROC_read_iconname
 3140 $(ws%(wn%,1)+274)=ftn$:PROC_redraw_icon(ws%(wn%,0),34)
 3150 $(ws%(wn%,1)+260)=iconname$
 3160 SYS"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
 3170 ENDPROC
 3180
 3190DEF PROC_Menu_selection
 3200 CASE !b% OF
 3210  WHEN 0 : REM 'About this program' window
 3220  WHEN 1 :
 3230    IF iw%=-2 THEN
 3240      SYS"Wimp_GetPointerInfo",,b%
 3250      PROC_floating_icon(b%!0,b%!4)
 3260      PROC_remove_from_icon_bar:!OnBar%=0
 3270    ELSE
 3280      icon%=FN_install_on_icon_bar:!OnBar%=1
 3290      b%!0=iw%:SYS"Wimp_DeleteWindow",,b%:iw%=-2
 3300    ENDIF
 3310  WHEN 2 : PROC_closedown:END
 3320 ENDCASE
 3330 SYS"Wimp_GetPointerInfo",,b%
 3340 IF b%!8=%001 SYS "Wimp_CreateMenu",,menu%,!b%-menu%!16/2-24,96+2*44
 3350 ENDPROC
 3360
 3370DEF PROC_Receive_message
 3380 CASE b%!16 OF
 3390  WHEN 0 :PROC_closedown:END
 3400  WHEN 2 :
 3410    IF saving% THEN
 3420     PROC_copy_file($ws%(wn%,1),FNstring(b%+44))
 3430     saving%=FALSE
 3440     GOTO 3520
 3450    REM skip this, not sure what it does !
 3460    REM  program doesn't seem to need it anyway !!!...
 3470     SYS"Wimp_GetPointerInfo",,b%:b%!20=b%!12
 3480     b%!24=b%!16:b%!28=b%!0:b%!32=b%!4:b%!0=44
 3490     b%!12=0 : REM ref% ????????
 3500     b%!16=3:b%!40=&FF7
 3510     SYS "Wimp_SendMessage",17,b%:WaitingAck%=TRUE
 3520    REM skipped.
 3530   ENDIF
 3540  WHEN 3 :PROC_new_window(FNstring(b%+44))
 3550  WHEN &502 :
 3560   wn%=FN_pos_from_handle(b%!32)
 3570   b%!12=b%!8:b%!16=&503:p%=b%+20
 3580   CASE b%!32 OF
 3590    WHEN iw% : REM Mouse is over the iconbar icon.
 3600     PROChelp("This is the attribute icon.")
 3610     PROChelp("Drag a file here to view/set its attributes")
 3620     PROChelp("Click SELECT to create a new file.")
 3630     PROChelp("")
 3640    WHEN infowindow% : REM Mouse is over the info window.
 3650     PROChelp("This is the Attribute utility.")
 3660     PROChelp("The current version of the program is not perfect but it is close.")
 3670    OTHERWISE : REM Mouse is over an attribute window.
 3680     CASE b%!36 OF
 3690      WHEN 0,1,2,3,4 :
 3700       PROChelp("This is one of the access bit icons.")
 3710       PROChelp("Click SELECT to toggle its state.")
 3720       PROChelp("Click on Update to write the current state to the object.")
 3730      WHEN 5 :
 3740       PROChelp("See *ACCESS in the user guide.")
 3750      WHEN 6 :
 3760       PROChelp("This is the access update icon.")
 3770       PROChelp("Click SELECT to set the access bits of the object.")
 3780      WHEN 7,8 :
 3790       PROChelp("This shows the object size in bytes.")
 3800      WHEN 9 :
 3810       PROChelp("Click SELECT to decrease the size by one byte.")
 3820      WHEN 10 :
 3830       PROChelp("Click SELECT to increase the size by one byte.")
 3840      WHEN 11,12 :
 3850       PROChelp("This is the object size in Kbytes.")
 3860      WHEN 13 :
 3870       PROChelp("Click SELECT to decrease the size by one Kbyte.")
 3880      WHEN 14 :
 3890       PROChelp("Click SELECT to increase the size by one Kbyte.")
 3900      WHEN 15,16 :
 3910       PROChelp("This is the object size in Mbytes.")
 3920      WHEN 17 :
 3930       PROChelp("Click SELECT to decrease the size by one Mbyte.")
 3940      WHEN 18 :
 3950       PROChelp("Click SELECT to increase the size by one Mbyte.")
 3960      WHEN 20 :
 3970       PROChelp("This is the object size update icon.")
 3980       PROChelp("Click SELECT to set the size of the object.")
 3990      WHEN 21,22 :
 4000       PROChelp("This is the objects load address.")
 4010       IF ws%(wn%,2)=1 PROChelp("Click SELECT to enter a new address.")
 4020      WHEN 23 :
 4030       PROChelp("Click SELECT to update the objects Load address.")
 4040      WHEN 24,25 :
 4050       PROChelp("This is the objects execution address.")
 4060       IF ws%(wn%,2)=1 PROChelp("Click SELECT to enter a new address.")
 4070      WHEN 26 :
 4080       PROChelp("Click SELECT to update the objects Execution address.")
 4090      WHEN 27,28 :
 4100       PROChelp("This is the objects date stamp.")
 4110      WHEN 29 :
 4120       PROChelp("Click SELECT to write a new date stamp to the object.")
 4130      WHEN ws%(wn%,1)!374,32 :
 4140       PROChelp("This is the path name of the object.")
 4150      WHEN 31 :
 4160       PROChelp("Click SELECT to view the left portion of the path name.")
 4170      WHEN 33 :
 4180       PROChelp("Click SELECT to view the right portion of the path name.")
 4190      WHEN 34 :
 4200       PROChelp("This is the objects file type in name form.")
 4210      WHEN 35 :
 4220       PROChelp("This is the objects file type in hex number form.")
 4230       PROChelp("Click SELECT to enter a new file type number.")
 4240      WHEN 37 :
 4250       PROChelp("Click SELECT to update the objects file type.")
 4260      WHEN 38 :
 4270       PROChelp("This is the objects icon.")
 4280       PROChelp("Drag it to copy the object to a new place.")
 4290     ENDCASE
 4300   ENDCASE
 4310   ?p%=0:!b%=(p%+4-b%)ANDNOT3
 4320   SYS "Wimp_SendMessage",17,b%,b%!4
 4330  WHEN &400C1 : PROC_get_mode_info
 4340 ENDCASE
 4350 ENDPROC
 4360
 4370DEF PROChelp(T$) $p%=T$+"|M":p%+=LENT$+2:ENDPROC
 4380
 4390DEF FNstring(s%):tmp$="":WHILE ?s%<>0:tmp$+=CHR$?s%:s%+=1:ENDWHILE:=tmp$
 4400
 4410DEF PROC_new_window(F$):Exists%=-1
 4420 FOR I%=0 TO maxfiles%
 4430  IF ws%(I%,2)<>0 THEN
 4440   IF $ws%(I%,1)=F$ THEN Exists%=I%:I%=maxfiles%
 4450  ENDIF
 4460 NEXT
 4470 IF Exists%<>-1 THEN
 4480  !b%=ws%(Exists%,0):SYS "Wimp_DeleteWindow",,b%
 4490  ws%(Exists%,2)=0:PROC_free_heap_block(ws%(Exists%,1))
 4500  ws%(Exists%,1)=0:ws%(Exists%,0)=0:moreroom%=TRUE
 4510 ENDIF
 4520 IF moreroom% THEN
 4530  wn%=FN_new_window_num
 4540  IF wn%=-1 THEN
 4550   PROC_error(1,"Too many windows")
 4560  ELSE
 4570   PROC_read_file_attributes(F$):PROC_file_window
 4580  ENDIF
 4590 ENDIF
 4600 ENDPROC
 4610
 4620DEF PROC_Define_menu:DIM menu% 28+3*24:$menu%="Attribute":menu%?12=7
 4630 menu%?13=2:menu%?14=7:menu%?15=0:menu%!16=LEN("Info  ")*16+12:menu%!20=44
 4640 menu%!24=0:menu%!28=0:menu%!32=FN_info_window(TaskTitle$,"View/set file attributes",CHR$169+" Exorcist",version$,b%):menu%!36=&7000001:$(menu%+40)="Info":menu%!52=1:menu%!56=-1:menu%!60=&7000001:$(menu%+64)="On bar"
 4650 menu%!76=&80:menu%!80=-1:menu%!84=&7000001:$(menu%+88)="Quit"
 4660 OnBar%=menu%+52:ENDPROC
 4670
 4680DEF PROC_get_mode_info
 4690 SYS"Wimp_ReadPixTrans",&100,1,"opton",,,,facts1%,ptrans1%
 4700 SYS"Wimp_ReadPixTrans",&100,1,"optoff",,,,facts2%,ptrans2%
 4710 ENDPROC
 4720
 4730DEF PROC_closedown:SYS "Wimp_CloseDown":ENDPROC
 4740
 4750DEF FN_info_window(N$,P$,A$,V$,b%):t%=LEN(N$)
 4760 b%!0=0:b%!4=0:b%!12=212:b%!16=0:IF LEN(P$)>t% t%=LEN(P$)
 4770 b%!20=0:b%!24=-1:b%!28=&84000093:IF LEN(A$)>t% t%=LEN(A$)
 4780 b%?32=7:b%?33=2:b%?34=7:b%?35=1:IF LEN(V$)>t% t%=LEN(V$)
 4790 b%!8=278+t%*16:b%?36=0:b%?37=0:b%?38=0:b%?39=0:b%!40=0
 4800 b%!44=-212:b%!48=280+t%*16:b%!52=0:b%!56=&119:b%!60=0
 4810 b%!64=0:b%!68=0:DIM b%!72 20:$(b%!72)="About this program"+CHR$13
 4820 b%!76=-1:b%!80=20:b%!84=8:b%!88=4:b%!92=-52:b%!96=156:b%!100=-4
 4830 b%!104=&7000211:$(b%+108)="Name:"+CHR$13:b%!120=4:b%!124=-104
 4840 b%!128=156:b%!132=-56:b%!136=&7000211:$(b%+140)="Purpose:"+CHR$13
 4850 b%!152=4:b%!156=-156:b%!160=156:b%!164=-108:b%!168=&7000211
 4860 $(b%+172)="Author:"+CHR$(13):b%!184=4:b%!188=-208:b%!192=156
 4870 b%!196=-160:b%!200=&7000211:$(b%+204)="Version:"+CHR$13:b%!216=160
 4880 b%!220=-52:b%!224=272+t%*16:b%!228=-4:b%!232=&0700013D
 4890 DIM b%!236 LEN(N$)+1:$(b%!236)=N$+CHR$13:b%!240=-1:b%!244=LEN(N$)+1
 4900 b%!248=160:b%!252=-104:b%!256=272+t%*16:b%!260=-56:b%!264=&0700013D
 4910 DIM b%!268 LEN(P$)+1:$(b%!268)=P$+CHR$13::b%!272=-1:b%!276=LEN(P$)+1
 4920 b%!280=160:b%!284=-156:b%!288=272+t%*16:b%!292=-108:b%!296=&0700013D
 4930 DIM b%!300 LEN(A$)+1:$(b%!300)=A$+CHR$13:b%!304=-1:b%!308=LEN(A$)+1
 4940 b%!312=160:b%!316=-208:b%!320=272+t%*16:b%!324=-160:b%!328=&0700013D
 4950 DIM b%!332 LEN(V$)+1:$(b%!332)=V$+CHR$13:b%!336=-1:b%!340=LEN(V$)+1
 4960 SYS "Wimp_CreateWindow",,b% TO infowindow%:=infowindow%
 4970
 4980DEF FN_directory(t%):IF t%=2 THEN :=TRUE ELSE :=FALSE
 4990
 5000DEF PROC_read_file_attributes(F$)
 5010 datestamp%=FALSE:datestamp$="stamp":iconname$="icon"
 5020 ftn$="":filetype%=0
 5030 IF F$="New_file" THEN
 5040  type%=1:load%=&FFFFFD00:exec%=0:len%=0:attr%=3
 5050  iconname$="file_ffd":PROC_read_date_stamp
 5060 ELSE
 5070  SYS"OS_File",5,F$ TO type%,,load%,exec%,len%,attr%
 5080  CASE type% OF
 5090   WHEN 0 : PROC_error(1,"'"+F$+"' not found")
 5100   WHEN 1 : tmp%=load% AND &FFF00000
 5110      IF tmp%=&FFF00000 THEN PROC_read_date_stamp
 5120      PROC_read_iconname
 5130   WHEN 2 : PROC_read_date_stamp:PROC_read_iconname
 5140  ENDCASE
 5150 ENDIF
 5160 ENDPROC
 5170
 5180DEF PROC_read_date_stamp
 5190 datestamp%=TRUE:filetype%=(load%>>>8) AND &FFF
 5200 SYS"OS_FSControl",18,,filetype% TO ,,l%,r%
 5210 f$=CHR$(l% AND &FF)+CHR$((l%>>8) AND &FF)+CHR$((l%>>16) AND &FF)
 5220 f$+=CHR$((l%>>24) AND &FF)+CHR$(r% AND &FF)+CHR$((r%>>8) AND &FF)
 5230 f$+=CHR$((r%>>16) AND &FF)+CHR$((r%>>24) AND &FF):ftn$=f$
 5240 WHILE RIGHT$(ftn$)=" ":ftn$=LEFT$(ftn$):ENDWHILE
 5250 datestamp$=STR$~(load% AND &FF)+STR$~(exec%)
 5260 ENDPROC
 5270
 5280DEF PROC_read_iconname
 5290 CASE type% OF
 5300  WHEN 1 : iconname$="file_"+STR$~(filetype%)
 5310  WHEN 2 :
 5320   IF LEFT$(FN_leafname(F$),1)="!" THEN
 5330    iconname$=FN_leafname(F$)
 5340    ftn$="Application"
 5350   ELSE
 5360    iconname$="directory"
 5370    ftn$="Directory"
 5380   ENDIF
 5390 ENDCASE
 5400 PROC_check_sprite_name
 5410 ENDPROC
 5420
 5430DEF PROC_check_sprite_name
 5440 LOCAL ERROR:ON ERROR LOCAL GOTO 5460
 5450 SYS"Wimp_SpriteOp",40,,iconname$:ENDPROC
 5460 CASE type% OF
 5470  WHEN 1 : iconname$="file_xxx"
 5480  WHEN 2 :
 5490   IF LEFT$(FN_leafname(F$),1)="!" THEN
 5500    iconname$="application"
 5510   ELSE
 5520    iconname$="directory"
 5530   ENDIF
 5540 ENDCASE
 5550 ENDPROC
 5560
 5570DEF FN_leafname(f$):e$=""
 5580 WHILE RIGHT$(f$)<>":" AND RIGHT$(f$)<>"." AND LEN(f$)>0
 5590  e$=RIGHT$(f$)+e$:f$=LEFT$(f$):ENDWHILE
 5600 =e$
 5610
 5620DEF PROC_file_window:ws%(wn%,2)=type%
 5630 winx%=(winx%+16) MOD 640:winy%-=32:IF winy%<600 winy%=900
 5640 ws%(wn%,1)=FN_get_heap_block(390):IF ws%(wn%,1)=0 THEN 6330
 5650 $(ws%(wn%,1))=F$:ws%(wn%,1)?259=0:IF LEN(F$)>29 ws%(wn%,1)?259=LEN(F$)-29
 5660 $(ws%(wn%,1)+260)=iconname$+CHR$0:$(ws%(wn%,1)+274)=ftn$
 5670 $(ws%(wn%,1)+286)=STR$~(filetype%):$(ws%(wn%,1)+302)=STR$(INT(len%/1024))
 5680 $(ws%(wn%,1)+290)=STR$(INT(len%/(1024*1024)))
 5690 $(ws%(wn%,1)+346)=FN_date:IFNOT(datestamp%) $(ws%(wn%,1)+346)="Unstamped"
 5700 $(ws%(wn%,1)+314)=STR$(len%):$(ws%(wn%,1)+326)=STR$~(load%)
 5710 $(ws%(wn%,1)+336)=STR$~(exec%):ws%(wn%,1)!370=attr%:ws%(wn%,1)!374=30
 5720 ws%(wn%,1)!378=datestamp%:b%!84=39:P%=b%+56:!b%=winx%+2:b%!4=winy%-184
 5730 b%!8=winx%+486:b%!12=winy%:b%!16=484:b%!20=500:b%!24=-1:b%!28=&FF00000F
 5740 b%?32=7:b%?33=2:b%?34=7:b%?35=1:b%?36=3:b%?37=1:b%?38=12:b%?39=0:b%!40=0
 5750 b%!44=0:b%!48=968:IFtype%=1 $(b%+72)="File" ELSE $(b%+72)="Directory"
 5760 b%!52=500:b%!56=&19:b%!60=2:b%!64=1:b%!68=&10001:P%+=32:P%!0=4:P%!4=4
 5770 P%!8=476:P%!12=48:P%!16=&17002111:P%!20=text%:P%!24=-1:P%!28=23:P%+=32
 5780 P%!0=4:P%!4=52:P%!8=476:P%!12=96:P%!16=&17002111:P%!20=text%+24:P%!24=-1
 5790 P%!28=23:P%+=32:P%!0=4:P%!4=100:P%!8=476:P%!12=144:P%!16=&17002111
 5800 P%!20=text%+47:P%!24=-1:P%!28=23:IF type%=2 THEN P%!16=&17402111
 5810 P%+=32:P%!0=4:P%!4=148:P%!16=&17002111:IF type%=2 THEN P%!16=&17402111
 5820 P%!8=476:P%!12=192:P%!20=text%+70:P%!24=-1:P%!28=23:P%+=32:P%!0=4
 5830 P%!4=196:P%!8=476:P%!12=240:P%!16=&17002111:P%!20=text%+92:P%!24=-1
 5840 P%!28=27:P%+=32:P%!0=4:P%!4=244:P%!8=350:P%!12=292:P%!16=&07000035
 5850 $(P%+20)="Attributes:":P%+=32:P%!0=350:P%!4=244:P%!8=476:P%!12=292
 5860 P%!16=&C701903D:$(P%+20)="Update":P%+=32:P%!0=4:P%!4=304:P%!8=140
 5870 P%!12=348:P%!16=&17000211:$(P%+20)="Bytes:":P%+=32:P%!0=140:P%!4=304
 5880 P%!8=400:P%!12=348:P%!16=&700013D:P%!20=ws%(wn%,1)+314:P%!24=-1:P%!28=10
 5890 P%+=32:P%!0=404:P%!4=304:P%!8=438:P%!12=348:P%!16=&C700203D
 5900 $(P%+20)=CHR$138:P%+=32:P%!0=442:P%!4=304:P%!8=476:P%!12=348
 5910 P%!16=&C700203D:$(P%+20)=CHR$139:P%+=32:P%!0=4:P%!4=352:P%!8=140
 5920 P%!12=396:P%!16=&17000211:$(P%+20)="KBytes:":P%+=32:P%!0=140:P%!4=352
 5930 P%!8=400:P%!12=396:P%!16=&700013D:P%!20=ws%(wn%,1)+302:P%!24=-1:P%!28=10
 5940 P%+=32:P%!0=404:P%!4=352:P%!8=438:P%!12=396:P%!16=&C700203D
 5950 $(P%+20)=CHR$138:P%+=32:P%!0=442:P%!4=352:P%!8=476:P%!12=396
 5960 P%!16=&C700203D:$(P%+20)=CHR$139:P%+=32:P%!0=4:P%!4=400:P%!8=140
 5970 P%!12=444:P%!16=&17000211:$(P%+20)="MBytes:":P%+=32:P%!0=140:P%!4=400
 5980 P%!8=400:P%!12=444:P%!16=&700013D:P%!20=ws%(wn%,1)+290:P%!24=-1:P%!28=10
 5990 P%+=32:P%!0=404:P%!4=400:P%!8=438:P%!12=444:P%!16=&C700203D
 6000 $(P%+20)=CHR$138:P%+=32:P%!0=442:P%!4=400:P%!8=476:P%!12=444
 6010 P%!16=&C700203D:$(P%+20)=CHR$139:P%+=32:P%!0=4:P%!4=448:P%!8=350
 6020 P%!12=496:P%!16=&07000035:$(P%+20)="File size:":P%+=32:P%!0=350:P%!4=448
 6030 P%!8=476:P%!12=496:P%!16=&C701903D:IF type%=2 P%!16=&C741903D
 6040 $(P%+20)="Update":P%+=32:P%!0=492:P%!4=4:P%!8=628:P%!16=&17000211
 6050 P%!12=52:$(P%+20)="Load:":P%+=32:P%!0=628:P%!4=4:P%!8=838:P%!12=52
 6060 P%!16=&700F13D:P%!20=ws%(wn%,1)+326:IF type%=2 P%!16=&700013D
 6070 P%!24=hexonly:P%!28=9:P%+=32:P%!0=838:P%!4=4:P%!8=964
 6080 P%!12=52:P%!16=&C701903D:$(P%+20)="Update":IF type%=2 P%!16=&C741903D
 6090 P%+=32:P%!0=492:P%!4=56:P%!8=628:P%!12=104:P%!16=&17000211
 6100 $(P%+20)="Execute:":P%+=32:P%!0=628:P%!4=56:P%!8=838:P%!12=104
 6110 P%!16=&0700F13D:P%!20=ws%(wn%,1)+336:IF type%=2 P%!16=&0700013D
 6120 P%!24=hexonly:P%!28=9:P%+=32::P%!0=838:P%!4=56:P%!8=964:P%!12=104
 6130 $(P%+20)="Update":P%!16=&C701903D:IF type%=2 P%!16=&C741903D
 6140 P%+=32:P%!0=488:P%!4=116:P%!8=964:P%!12=164:P%!16=&0700013D
 6150 P%!20=ws%(wn%,1)+346:P%!24=-1:P%!28=24:P%+=32:P%!0=488:P%!4=162:P%!8=800
 6160 P%!12=208:P%!16=&07000035:$(P%+20)="Date stamp:":P%+=32:P%!0=800:P%!4=162
 6170 P%!8=964:P%!12=208:P%!16=&C701903D:IF type%=2 P%!16=&C741903D
 6180 $(P%+20)="Re-stamp":P%+=32:P%!0=488:P%!4=220:P%!8=964:P%!12=268
 6190 P%!16=&070001B5:P%!20=ws%(wn%,1)?259+ws%(wn%,1):P%!24=-1:P%!28=257:P%+=32
 6200 P%!0=488:P%!4=266:P%!8=674:P%!12=308:P%!16=&C700203D:$(P%+20)="<<<<<<<<"
 6210 P%+=32:P%!0=674:P%!4=266:P%!8=776:P%!12=308:P%!16=&0700003D
 6220 $(P%+20)="Name":P%+=32:P%!0=776:P%!4=266:P%!8=964:P%!12=308
 6230 P%!16=&C700203D:$(P%+20)=">>>>>>>>":P%+=32:P%!0=660:P%!4=328:P%!8=964
 6240 P%!12=376:P%!16=&0700013D:P%!20=ws%(wn%,1)+274:P%!24=-1:P%!28=12:P%+=32
 6250 P%!0=660:P%!4=384:P%!8=964:P%!16=&0700F13D:IF type%=2 P%!16=&0700013D
 6260 P%!12=432:P%!20=ws%(wn%,1)+286:P%!24=hexonly:P%!28=4:P%+=32:P%!0=660
 6270 P%!4=440:P%!8=838:P%!12=488:P%!16=&0700003D:$(P%+20)="File type:":P%+=32
 6280 P%!0=838:P%!4=440:P%!8=964:P%!16=&C701903D:IF type%=2 P%!16=&C741903D
 6290 P%!12=488:$(P%+20)="Update":P%+=32:P%!0=530:P%!4=360:P%!8=610:P%!12=452
 6300 P%!16=&2000:$(P%+20)="":SYS "Wimp_CreateWindow",,b% TO ws%(wn%,0)
 6310 b%!0=ws%(wn%,0):SYS "Wimp_GetWindowInfo",,b%:SYS "Wimp_OpenWindow",,b%
 6320 ENDPROC
 6330 ws%(wn%,0)=0:ws%(wn%,1)=0:ws%(wn%,2)=0:REM dont touch!!!!!
 6340 PROC_error(1,"Can't open any more attribute windows."):moreroom%=FALSE
 6350 ENDPROC
 6360
 6370DEF PROC_initialise_heap:heapsize%=10000
 6380 DIM heap% heapsize%:SYS"OS_Heap",0,heap%,,heapsize%:ENDPROC
 6390
 6400DEF FN_get_heap_block(len):LOCAL pointer%
 6410 SYS"XOS_Heap",2,heap%,,len TO ,,pointer%
 6420 :=pointer%
 6430
 6440DEF PROC_free_heap_block(pointer%)
 6450 SYS"OS_Heap",3,heap%,pointer%:ENDPROC
 6460
 6470DEF FN_date
 6480 b%?0=exec% AND &FF:b%?1=((exec%>>>8) AND &FF):b%?2=((exec%>>>16) AND &FF)
 6490 b%?3=((exec%>>>24) AND &FF):b%?4=load% AND &FF
 6500 $(b%+20)="%24:%MI:%SE %DY%ST %M3 %CE%YR"+CHR$0
 6510 SYS "OS_ConvertDateAndTime",b%,b%+60,&F00,b%+20
 6520 IF LEFT$($(b%+60),23)="" THEN :="Date error"
 6530 :=LEFT$($(b%+60),23)
 6540
 6550DEF FN_pos_from_handle(h%):LOCAL point%:point%=0
 6560 WHILE ws%(point%,0)<>h% AND point%<maxfiles% :point%+=1:ENDWHILE
 6570 IF point%<maxfiles% THEN :=point% ELSE :=-1
 6580
 6590DEF FN_new_window_num:LOCAL point%:point%=0
 6600 WHILE ws%(point%,2)<>0 AND point%<maxfiles%:point%+=1:ENDWHILE
 6610 IF point%<maxfiles% THEN :=point% ELSE :=-1
 6620
 6630DEF FN_report_error(E$,t%,T$)
 6640 SYS"Wimp_ReportError",FNerr(1,E$),t%,T$ TO ,t%:=t%=1
 6650
 6660DEF FNerr(en%,er$):!e%=en%:$(e%+4)=er$:e%?(4+LEN($(e%+4)))=0:=e%
 6670
 6680DEF PROC_restamp:SYS"OS_File",5,ws%(wn%,1) TO tmp%
 6690 IF tmp%=0 PROC_error(1,"'"+$ws%(wn%,1)+"' Not found"):ENDPROC
 6700 SYS"OS_File",9,ws%(wn%,1):PROC_read_file_attributes($ws%(wn%,1))
 6710 PROC_redraw_date:$(ws%(wn%,1)+326)=STR$~(load%)
 6720 PROC_redraw_icon(ws%(wn%,0),22):$(ws%(wn%,1)+336)=STR$~(exec%)
 6730 PROC_redraw_icon(ws%(wn%,0),25)
 6740 IF NOT(ws%(wn%,1)!378) THEN
 6750  ws%(wn%,1)!378=TRUE:$(ws%(wn%,1)+286)="FFD"
 6760  PROC_redraw_icon(ws%(wn%,0),35)
 6770  $(ws%(wn%,1)+274)=ftn$:PROC_redraw_icon(ws%(wn%,0),34)
 6780  $(ws%(wn%,1)+260)=iconname$
 6790  SYS"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
 6800 ENDIF
 6810 ENDPROC
 6820
 6830DEF PROC_check_exists(F$)
 6840 LOCAL tmp%:SYS"OS_File",5,F$ TO tmp%
 6850 IF tmp%=0 THEN PROC_not_found(F$)
 6860 ENDPROC
 6870
 6880DEF PROC_not_found(F$):ERROR 1,"'"+F$+"' not found"
 6890 ENDPROC
 6900
 6910DEF PROC_update_exec_address
 6920 SYS"OS_File",5,ws%(wn%,1) TO ,,load%:exec%=EVAL("&"+$(ws%(wn%,1)+336))
 6930 IF ws%(wn%,1)!378 THEN PROC_redraw_date
 6940 SYS"OS_File",3,ws%(wn%,1),,exec%:ENDPROC
 6950
 6960DEF PROC_update_load_address
 6970 PROC_check_exists($ws%(wn%,1)):load%=EVAL("&"+tmp$)
 6980 SYS"OS_File",2,ws%(wn%,1),load%:PROC_read_file_attributes($ws%(wn%,1))
 6990 $(ws%(wn%,1)+346)=FN_date:IFNOT(datestamp%) $(ws%(wn%,1)+346)="Unstamped"
 7000 ws%(wn%,1)!378=datestamp%:PROC_redraw_icon(ws%(wn%,0),27)
 7010 $(ws%(wn%,1)+274)=ftn$:PROC_redraw_icon(ws%(wn%,0),34)
 7020 $(ws%(wn%,1)+286)=STR$~(filetype%):PROC_redraw_icon(ws%(wn%,0),35)
 7030 $(ws%(wn%,1)+260)=iconname$
 7040 SYS"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
 7050 ENDPROC
 7060
 7070DEF PROC_copy_file(from$,to$)
 7080 OSCLI"%COPY "+from$+" "+to$+" A~C~DF~L~N~P~QRS~T~V"
 7090 ENDPROC
 7100
 7110DEF FN_OSvar(Var$,b%):LOCAL end%
 7120 SYS "OS_ReadVarVal",Var$,b%,512,0 TO ,,end%:b%?end%=13:=$(b%)
 7130
 7140DEF PROC_error(err,report$)
 7150 IF report$="Too many windows" OR err=388 THEN moreroom%=FALSE
 7160 SYS "Wimp_ReportError",FNerr(err,report$),1,TaskTitle$:ENDPROC
 7170
 7180DEF PROC_update_file_type
 7190 PROC_check_exists($ws%(wn%,1)):ws%(wn%,1)!378=TRUE
 7200 SYS"OS_File",&12,ws%(wn%,1),EVAL("&"+$(ws%(wn%,1)+286))
 7210 SYS"OS_File",5,ws%(wn%,1) TO ,,load%,exec%
 7220 $(ws%(wn%,1)+326)="FFF"+$(ws%(wn%,1)+286)+RIGHT$($(ws%(wn%,1)+326),2)
 7230 PROC_redraw_icon(ws%(wn%,0),22):PROC_redraw_date:ws%(wn%,1)!378=TRUE
 7240 ENDPROC
 7250
 7260DEF PROC_redraw_date
 7270 $(ws%(wn%,1)+346)=FN_date:PROC_redraw_icon(ws%(wn%,0),27):ENDPROC
 7280
 7290DEF PROC_redraw_icon(w%,i%):b%!0=w%:b%!4=i%:SYS"Wimp_GetIconState",,b%
 7300 b%!4=b%!8+2:b%!8=b%!12+4:b%!12=b%!16-2:b%!16=b%!20-4
 7310 SYS"Wimp_UpdateWindow",,b% TO more%:PROC_redraw:ENDPROC
 7320
 7330DEF PROC_floating_icon(x%,y%)
 7340 spname$="!attribute":SYS"Wimp_SpriteOp",40,,spname$ TO ,,,w%,h%
 7350 b%!0=x%-w%-20:b%!4=y%-66:b%!8=x%+w%+20:b%!12=y%+62:b%!16=0:b%!20=0
 7360 b%!24=-1:b%!28=144:b%?32=7:b%?33=0:b%?34=7:b%?35=1:b%!36=0:b%!40=0
 7370 b%!44=0:b%!48=b%!8-b%!0:b%!52=130:b%!56=0:b%!60=&2000:b%!64=1:b%!68=0
 7380 b%!72=&000D:b%!84=1:b%!88=20:b%!92=22:b%!96=b%!48-20:b%!100=100
 7390 b%!104=&2002:$(b%+108)=spname$:SYS"Wimp_CreateWindow",,b% TO h%
 7400 b%!0=h%:SYS"Wimp_GetWindowInfo",,b%:SYS"Wimp_OpenWindow",,b%:iw%=h%
 7410 ENDPROC
 7420
 7430DEF FN_install_on_icon_bar:!b%=-2:b%!4=0:b%!8=0:spname$="!attribute"
 7440 SYS"Wimp_SpriteOp",40,,spname$ TO ,,,w%,h%:b%!12=w%*2:b%!16=h%*4
 7450 b%!20=&2102:DIM b%!24 (LENspname$+1):$(b%!24)=spname$
 7460 b%!28=1:b%!32=LEN(spname$)+1:SYS "Wimp_CreateIcon",,b% TO ic%:=ic%
 7470
 7480DEF PROC_remove_from_icon_bar
 7490 b%!0=-2:b%!4=icon%:SYS"Wimp_DeleteIcon",,b%:icon%=0
 7500 ENDPROC

� > !RunImage
�
 �   File attributes utility.
(�
2)�   Written by  J.Horsnell (Exorcist)
<�
F&�   This program is public domain.
P�
Z@� � � "A fatal setup error has occured."''�$;" at line ";�:�
d
n�_initialise_heap:ready%=�
x&maxfiles%=32:saving%=�:dragging%=�
�C� b% &2000,e% &100,f% 256,ws%(maxfiles%,2),hexonly 13,deconly 6
�F� text% 130,facts% 15,ptrans% 15,facts1% 15,facts2% 15,ptrans1% 15
�=� ptrans2% 15:$text%="   Public write access":moreroom%=�
�K$(text%+24)="   Public read access":$(text%+47)="   Owner write access"
�L$(text%+70)="   Owner read access":$hexonly="a0-9a-fA-F":$deconly="a0-9"
�,$(text%+92)="   Locked against deletion"
�&version$="1.31 (18 December 1989)"
�LTaskTitle$="File/Dir attributes":Attribute$=�_OSvar("!Attribute$Dir",b%)
�Lș "Wimp_Initialise",200,&4B534154,TaskTitle$:iw%=-2:winy%=932:winx%=-16
�=�_Define_menu:icon%=�_install_on_icon_bar:�_get_mode_info
�
�� � �_error(�,�$+Þ)
�
��
" ș "Wimp_Poll",1,b% � action%
 Ȏ action% �
   � 1 : �_redraw_window
"%   � 2 : ș "Wimp_OpenWindow",,b%
,3   � 3 : � delete window and free pointers etc.
6H     ș "Wimp_GetPointerInfo",,b%+100:dummy%=�_pos_from_handle(b%!0)
@     � dummy%=-1 �
J,      �_error(1,"Unknown window handle")
T
     �
^k      � b%!108=1 � �"Filer_OpenDir "+�$ws%(dummy%,1),�($ws%(dummy%,1))-�(�_leafname($ws%(dummy%,1)))-1)
h@      ș "Wimp_DeleteWindow",,b%:ws%(dummy%,2)=0:moreroom%=�
rJ      �_free_heap_block(ws%(dummy%,1)):ws%(dummy%,1)=0:ws%(dummy%,0)=0
|
     �
�   � 6 : �_Mouse_change
�   � 7 : �_dragged_box
�   � 8 : �_key_pressed
�   � 9 : �_Menu_selection
�"   � 17,18 : �_Receive_message
� �
�� 0
�
�� �_dragged_box
� dragging%=�
� � saving% �
�8  ș "Wimp_GetPointerInfo",,b%:b%!32=b%!4:b%!28=b%!0
�5  b%!24=b%!16:b%!20=b%!12:b%!16=1:b%!12=0:b%!36=0
1  b%!40=&FF7:$(b%+44)=�_leafname($ws%(wn%,1))
.  b%!0=60:ș"Wimp_SendMessage",17,b%,b%!20
 �
&/  b%!100=iw%:ș"Wimp_GetWindowInfo",,b%+100
0>  b%!104=b%!0+2:b%!108=b%!4+2:b%!112=b%!8-2:b%!116=b%!12-2
:!  ș"Wimp_OpenWindow",,b%+100
D �
N �
X
b� �_redraw_window
l"dummy%=�_pos_from_handle(b%!0)
vș"Wimp_SetColour",7
�&ș "Wimp_RedrawWindow",,b% � more%
� y%=b%!16-b%!24:x%=b%!4-b%!20
�ȕ more%
�. ȓ x%,y%+296,480,2:ȓ x%+480,y%+108,488,2
�. ȓ x%+480,y%,2,500:ȓ x%+480,y%+212,488,2
� ȓ x%+480,y%+312,488,2
�# � b%!28<x%+60 � b%!32<y%+260 �
�2  �_box(x%+4,y%+4,(ws%(dummy%,1)!370 � 32)=32)
�3  �_box(x%+4,y%+52,(ws%(dummy%,1)!370 � 16)=16)
�2  �_box(x%+4,y%+100,(ws%(dummy%,1)!370 � 2)=2)
�2  �_box(x%+4,y%+148,(ws%(dummy%,1)!370 � 1)=1)
�2  �_box(x%+4,y%+196,(ws%(dummy%,1)!370 � 8)=8)
� �
E ș"Wimp_ReadPixTrans",&100,1,ws%(dummy%,1)+260,,,,facts%,ptrans%
: ș"Wimp_SpriteOp",40,1,ws%(dummy%,1)+260 � ,,,sw%,sh%
V ș"Wimp_SpriteOp",52,1,ws%(dummy%,1)+260,x%+570-sw%,y%+406-2*sh%,8,facts%,ptrans%
 ' ș "Wimp_GetRectangle",,b% � more%
* �
4�
>
H� �_box(x%,y%,sw%)
R � sw% �
\>   ș"Wimp_SpriteOp",52,1,"opton",x%,y%,0,facts1%,ptrans1%
f �
p?   ș"Wimp_SpriteOp",52,1,"optoff",x%,y%,8,facts2%,ptrans2%
z �
� �
�
�� �_Mouse_change
� Ȏ b%!12 �
�  � iw% : � icon bar
�   Ȏ b%!8 �
�)    � 1 :� 'ADJUST'; dont do anything
�     � iw%<>-2 �
�      g%=b%+&B00
�1      b%!0=11:b%!4=12:b%!8=4:b%!12=5:b%!16=-1
�'      ș"OS_ReadVduVariables",b%,g%
�@      SW%=(1<<(g%!8))*((g%!0)+1):SH%=(1<<(g%!12))*((g%!4)+1)
�-      g%!0=iw%:ș"Wimp_GetWindowInfo",,g%
7      x0%=g%!4-2:x1%=g%!12+2:y0%=g%!8-2:y1%=g%!16+2
@      b%!0=iw%:b%!4=5:b%!8=x0%:b%!12=y0%:b%!16=x1%:b%!20=y1%
-      b%!24=0:b%!28=0:b%!32=SW%:b%!36=SH%
$*      ș"Wimp_DragBox",,b%:dragging%=�
.
     �
8
    � 2 :
B     � iw%=-2 �
L@      ș "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,96+3*44
V
     �
`=      ș "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,b%!4
j
     �
t1    � 4 :�_new_window(Attribute$+".New_file")
~   �
�%   : � must be a file/dir window
�   Ȏ b%!8 �
�
    � 2 :
�<     ș "Wimp_CreateMenu",0,menu%,!b%-menu%!16/2-24,b%!4
�
    � 4 :
�$    wn%=�_pos_from_handle(b%!12)
�    � wn%<>-1 �
�     Ȏ b%!16 �
�&      � 0  : � Public write access
�&        tmp%=(ws%(wn%,1)!370) � 32
�@        �  tmp%=32 � ws%(wn%,1)!370-=32 � ws%(wn%,1)!370+=32
�7        ș"Wimp_ForceRedraw",ws%(wn%,0),10,12,40,40
%      � 1  : � Public read access

&        tmp%=(ws%(wn%,1)!370) � 16
@        �  tmp%=16 � ws%(wn%,1)!370-=16 � ws%(wn%,1)!370+=16
7        ș"Wimp_ForceRedraw",ws%(wn%,0),10,60,40,88
(%      � 2  : � Owner write access
2%        tmp%=(ws%(wn%,1)!370) � 2
<=        �  tmp%=2 � ws%(wn%,1)!370-=2 � ws%(wn%,1)!370+=2
F9        ș"Wimp_ForceRedraw",ws%(wn%,0),10,108,40,136
P$      � 3  : � Owner read access
Z%        tmp%=(ws%(wn%,1)!370) � 1
d=        �  tmp%=1 � ws%(wn%,1)!370-=1 � ws%(wn%,1)!370+=1
n9        ș"Wimp_ForceRedraw",ws%(wn%,0),10,156,40,184
x*      � 4  : � Locked against deletion
�%        tmp%=(ws%(wn%,1)!370) � 8
�=        �  tmp%=8 � ws%(wn%,1)!370-=8 � ws%(wn%,1)!370+=8
�9        ș"Wimp_ForceRedraw",ws%(wn%,0),10,204,40,232
�$      � 6  : � Update attributes
�'        �_check_exists($ws%(wn%,1))
�7        ș "OS_File",4,ws%(wn%,1),,,,ws%(wn%,1)!370
�!      � 9  : � Decrease bytes
�%        �($(ws%(wn%,1)+314))>0 �
�8         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))-1)
�(         �_redraw_icon(ws%(wn%,0),8)
�B         �(�($(ws%(wn%,1)+314))/1024)<>�($(ws%(wn%,1)+302)) �
�9          $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))-1)
�*          �_redraw_icon(ws%(wn%,0),12)
D           �(�($(ws%(wn%,1)+302))/1024)<>�($(ws%(wn%,1)+290)) �
;            $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))-1)
,            �_redraw_icon(ws%(wn%,0),16)
"           �
,         �
6
        �
@!      � 10 : � Increase bytes
J-        �($(ws%(wn%,1)+314))<999292928 �
T8         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))+1)
^(         �_redraw_icon(ws%(wn%,0),8)
hB         �(�($(ws%(wn%,1)+314))/1024)<>�($(ws%(wn%,1)+302)) �
r9          $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))+1)
|*          �_redraw_icon(ws%(wn%,0),12)
�D           �(�($(ws%(wn%,1)+302))/1024)<>�($(ws%(wn%,1)+290)) �
�;            $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))+1)
�,            �_redraw_icon(ws%(wn%,0),16)
�           �
�         �
�
        �
�"      � 13 : � Decrease Kbytes
�&        � �($(ws%(wn%,1)+302))>0 �
�8         $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))-1)
�)         �_redraw_icon(ws%(wn%,0),12)
�;         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))-1024)
�(         �_redraw_icon(ws%(wn%,0),8)
�C         � �(�($(ws%(wn%,1)+302))/1024)<>�($(ws%(wn%,1)+290)) �
9          $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))-1)
*          �_redraw_icon(ws%(wn%,0),16)
         �
&
        �
0)      � 14 : � Increase Kbytes 975872
:+        � �($(ws%(wn%,1)+302))<975872 �
D8         $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))+1)
N)         �_redraw_icon(ws%(wn%,0),12)
X;         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))+1024)
b(         �_redraw_icon(ws%(wn%,0),8)
lC         � �(�($(ws%(wn%,1)+302))/1024)<>�($(ws%(wn%,1)+290)) �
v9          $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))+1)
�*          �_redraw_icon(ws%(wn%,0),16)
�         �
�
        �
�"      � 17 : � Decrease Mbytes
�&        � �($(ws%(wn%,1)+290))>0 �
�8         $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))-1)
�)         �_redraw_icon(ws%(wn%,0),16)
�;         $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))-1024)
�)         �_redraw_icon(ws%(wn%,0),12)
�@         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))-1024*1024)
�(         �_redraw_icon(ws%(wn%,0),8)
�
        �
�&      � 18 : � Increase Mbytes 953
(        � �($(ws%(wn%,1)+290))<953 �
8         $(ws%(wn%,1)+290)=�(�($(ws%(wn%,1)+290))+1)
)         �_redraw_icon(ws%(wn%,0),16)
 ;         $(ws%(wn%,1)+302)=�(�($(ws%(wn%,1)+302))+1024)
*)         �_redraw_icon(ws%(wn%,0),12)
4@         $(ws%(wn%,1)+314)=�(�($(ws%(wn%,1)+314))+1024*1024)
>(         �_redraw_icon(ws%(wn%,0),8)
H
        �
R#      � 20 : � Update file size
\'        �_check_exists($ws%(wn%,1))
f1        �_read_file_attributes($(ws%(wn%,1)))
p)        �"ACCESS "+$(ws%(wn%,1))+" W"
zG        ș"OS_File",7,ws%(wn%,1),load%,exec%,0,�($(ws%(wn%,1)+314))
�7        ș "OS_File",4,ws%(wn%,1),,,,ws%(wn%,1)!370
�      � 22 : � Load address
�        *| Non-selectable
�&      � 23 : � Update load address
�&       �_check_exists($ws%(wn%,1))
�.       ș"OS_File",5,ws%(wn%,1) � ,,,exec%
�;       tmp$=$(ws%(wn%,1)+326):tmp$=�8-�(tmp$),"0")+tmp$
�       � ws%(wn%,1)!378 �
�          � �tmp$,3)<>"FFF" �
ސ          � �_report_error("Updateing with this load address will destroy the date stamp and file type.",23,"Warning") �_update_load_address
�         �
�#          �_update_load_address
�         �
	       �
	         � �tmp$,3)="FFF" �
	�          � �_report_error("Updateing with this load address will create a date stamp and file type.",23,"Warning") �_update_load_address
	$         �
	.#          �_update_load_address
	8         �
	B       �
	L$      � 25 : � Execution address
	V        *| Non_selectable
	`+      � 26 : � Update execution address
	j<       �_check_exists($ws%(wn%,1)):�_update_exec_address
	t%      � 29 : � Re-stamp file date
	~       � ws%(wn%,1)!378 �
	�         �_restamp
	�       �
	�q         � �_report_error("Writing a date stamp will erase Load/Execute addresses.",23,"Warning") � �_restamp
	�       �
	�)      � 31 : � Click left on filename
	�         � ws%(wn%,1)?259>0 �
	�B         ws%(wn%,1)?259-=1:b%!0=ws%(wn%,0):b%!4=ws%(wn%,1)!374
	�H         ș"Wimp_GetIconState",,b%:ș"Wimp_DeleteIcon",,b%:b%!4=b%!0
	�@         b%!28-=1:ș"Wimp_CreateIcon",,b%+4 � ws%(wn%,1)!374
	�5         �_redraw_icon(ws%(wn%,0),ws%(wn%,1)!374)
	�
        �
	�*      � 33 : � Click right on filename
2        � �($(ws%(wn%,1)+ws%(wn%,1)?259))>29 �

B         ws%(wn%,1)?259+=1:b%!0=ws%(wn%,0):b%!4=ws%(wn%,1)!374
H         ș"Wimp_GetIconState",,b%:ș"Wimp_DeleteIcon",,b%:b%!4=b%!0
@         b%!28+=1:ș"Wimp_CreateIcon",,b%+4 � ws%(wn%,1)!374
(5         �_redraw_icon(ws%(wn%,0),ws%(wn%,1)!374)
2
        �
<#      � 35 : � File type number
F        *| Non-selectable
P#      � 37 : � Update file type
Z!        �_new_filetype_number
d        � ws%(wn%,1)!378 �
n         �_update_file_type
x
        �
�y         � �_report_error("Writing a file type will erase Load/Execute addresses.",23,"Warning") � �_update_file_type
�
        �
�       � 38 : � Icon selected
�>        g%=b%+&B00:b%!0=11:b%!4=12:b%!8=4:b%!12=5:b%!16=-1
�D        ș"OS_ReadVduVariables",b%,g%:SW%=(1<<(g%!8))*((g%!0)+1)
�7        SH%=(1<<(g%!12))*((g%!4)+1):g%!0=ws%(wn%,0)
�>        ș"Wimp_GetWindowInfo",,g%:b%!0=ws%(wn%,0):b%!4=38
�9        ș"Wimp_GetIconState",,b%:x0%=g%!4+b%!8-g%!20
�6        x1%=g%!4+b%!16-g%!20:y0%=g%!16+b%!12-g%!24
�:        y1%=g%!16+b%!20-g%!24:b%!0=sw%:b%!4=5:b%!8=x0%
�C        b%!12=y0%:b%!16=x1%:b%!20=y1%:b%!24=0:b%!28=0:b%!32=SW%
�@        b%!36=SH%:ș"Wimp_DragBox",,b%:dragging%=�:saving%=�
�
     �
	    �
   �
 �
" �
,
6� �_redraw
@ y%=b%!16-b%!24:x%=b%!4-b%!20
Jȕ more%
T' ș "Wimp_GetRectangle",,b% � more%
^ �
h�
r
|� �_key_pressed
�  wn%=�_pos_from_handle(b%!0)
� � wn%<>-1 �
�  � b%!24=13 �
�   Ȏ b%!4 �
�!    � 22 : � new load address
�       *| Ignore it !
�&    � 25 : � new execution address
�       *| Ignore it !
�$    � 35 : � new filetype number
�        �_new_filetype_number
�   �
�  �
�    ș"Wimp_ProcessKey",b%!24
�  �
� �
  ș"Wimp_ProcessKey",b%!24
 �
 �

&� �_new_filetype_number
04 load%=(�("&"+$(ws%(wn%,1)+286))<<8) � &FFFFFF00
:7 type%=ws%(wn%,2):�_read_date_stamp:�_read_iconname
D8 $(ws%(wn%,1)+274)=ftn$:�_redraw_icon(ws%(wn%,0),34)
N  $(ws%(wn%,1)+260)=iconname$
X4 ș"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
b �
l
v� �_Menu_selection
�
 Ȏ !b% �
�)  � 0 : � 'About this program' window
�  � 1 :
�    � iw%=-2 �
�%      ș"Wimp_GetPointerInfo",,b%
�$      �_floating_icon(b%!0,b%!4)
�*      �_remove_from_icon_bar:!OnBar%=0
�	    �
�/      icon%=�_install_on_icon_bar:!OnBar%=1
�3      b%!0=iw%:ș"Wimp_DeleteWindow",,b%:iw%=-2
�	    �
�  � 2 : �_closedown:�
� �

  ș"Wimp_GetPointerInfo",,b%

F � b%!8=%001 ș "Wimp_CreateMenu",,menu%,!b%-menu%!16/2-24,96+2*44

 �

 

*� �_Receive_message

4 Ȏ b%!16 �

>  � 0 :�_closedown:�

H  � 2 :

R    � saving% �

\0     �_copy_file($ws%(wn%,1),�string(b%+44))

f     saving%=�

p     � �d@M

z,    � skip this, not sure what it does !

�8    �  program doesn't seem to need it anyway !!!...

�0     ș"Wimp_GetPointerInfo",,b%:b%!20=b%!12

�2     b%!24=b%!16:b%!28=b%!0:b%!32=b%!4:b%!0=44

�"     b%!12=0 : � ref% ????????

�     b%!16=3:b%!40=&FF7

�2     ș "Wimp_SendMessage",17,b%:WaitingAck%=�

�    � skipped.

�   �

�'  � 3 :�_new_window(�string(b%+44))

�  � &502 :

�#   wn%=�_pos_from_handle(b%!32)

�%   b%!12=b%!8:b%!16=&503:p%=b%+20

�   Ȏ b%!32 �
1    � iw% : � Mouse is over the iconbar icon.
-     �help("This is the attribute icon.")
=     �help("Drag a file here to view/set its attributes")
$4     �help("Click SELECT to create a new file.")
.     �help("")
88    � infowindow% : � Mouse is over the info window.
B0     �help("This is the Attribute utility.")
LT     �help("The current version of the program is not perfect but it is close.")
V0     : � Mouse is over an attribute window.
`     Ȏ b%!36 �
j      � 0,1,2,3,4 :
t8       �help("This is one of the access bit icons.")
~5       �help("Click SELECT to toggle its state.")
�M       �help("Click on Update to write the current state to the object.")
�      � 5 :
�2       �help("See *ACCESS in the user guide.")
�      � 6 :
�3       �help("This is the access update icon.")
�F       �help("Click SELECT to set the access bits of the object.")
�      � 7,8 :
�8       �help("This shows the object size in bytes.")
�      � 9 :
�B       �help("Click SELECT to decrease the size by one byte.")
�      � 10 :
�B       �help("Click SELECT to increase the size by one byte.")
      � 11,12 :

6       �help("This is the object size in Kbytes.")
      � 13 :
C       �help("Click SELECT to decrease the size by one Kbyte.")
(      � 14 :
2C       �help("Click SELECT to increase the size by one Kbyte.")
<      � 15,16 :
F6       �help("This is the object size in Mbytes.")
P      � 17 :
ZC       �help("Click SELECT to decrease the size by one Mbyte.")
d      � 18 :
nC       �help("Click SELECT to increase the size by one Mbyte.")
x      � 20 :
�8       �help("This is the object size update icon.")
�?       �help("Click SELECT to set the size of the object.")
�      � 21,22 :
�5       �help("This is the objects load address.")
�G       � ws%(wn%,2)=1 �help("Click SELECT to enter a new address.")
�      � 23 :
�D       �help("Click SELECT to update the objects Load address.")
�      � 24,25 :
�:       �help("This is the objects execution address.")
�G       � ws%(wn%,2)=1 �help("Click SELECT to enter a new address.")
�      � 26 :
�I       �help("Click SELECT to update the objects Execution address.")
�      � 27,28 :
3       �help("This is the objects date stamp.")
      � 29 :
I       �help("Click SELECT to write a new date stamp to the object.")
"      � ws%(wn%,1)!374,32 :
,8       �help("This is the path name of the object.")
6      � 31 :
@K       �help("Click SELECT to view the left portion of the path name.")
J      � 33 :
TL       �help("Click SELECT to view the right portion of the path name.")
^      � 34 :
h?       �help("This is the objects file type in name form.")
r      � 35 :
|E       �help("This is the objects file type in hex number form.")
�A       �help("Click SELECT to enter a new file type number.")
�      � 37 :
�A       �help("Click SELECT to update the objects file type.")
�      � 38 :
�-       �help("This is the objects icon.")
�>       �help("Drag it to copy the object to a new place.")
�
     �
�   �
�   ?p%=0:!b%=(p%+4-b%)��3
�'   ș "Wimp_SendMessage",17,b%,b%!4
�   � &400C1 : �_get_mode_info
� �
� �

'� �help(T$) $p%=T$+"|M":p%+=�T$+2:�

&<� �string(s%):tmp$="":ȕ ?s%<>0:tmp$+=�?s%:s%+=1:�:=tmp$
0
:!� �_new_window(F$):Exists%=-1
D � I%=0 � maxfiles%
N  � ws%(I%,2)<>0 �
X0   � $ws%(I%,1)=F$ � Exists%=I%:I%=maxfiles%
b  �
l �
v � Exists%<>-1 �
�3  !b%=ws%(Exists%,0):ș "Wimp_DeleteWindow",,b%
�8  ws%(Exists%,2)=0:�_free_heap_block(ws%(Exists%,1))
�3  ws%(Exists%,1)=0:ws%(Exists%,0)=0:moreroom%=�
� �
� � moreroom% �
�  wn%=�_new_window_num
�  � wn%=-1 �
�$   �_error(1,"Too many windows")
�  �
�/   �_read_file_attributes(F$):�_file_window
�  �
� �
� �

A� �_Define_menu:� menu% 28+3*24:$menu%="Attribute":menu%?12=7
L menu%?13=2:menu%?14=7:menu%?15=0:menu%!16=�("Info  ")*16+12:menu%!20=44
 � menu%!24=0:menu%!28=0:menu%!32=�_info_window(TaskTitle$,"View/set file attributes",�169+" Exorcist",version$,b%):menu%!36=&7000001:$(menu%+40)="Info":menu%!52=1:menu%!56=-1:menu%!60=&7000001:$(menu%+64)="On bar"
*B menu%!76=&80:menu%!80=-1:menu%!84=&7000001:$(menu%+88)="Quit"
4 OnBar%=menu%+52:�
>
H� �_get_mode_info
R= ș"Wimp_ReadPixTrans",&100,1,"opton",,,,facts1%,ptrans1%
\> ș"Wimp_ReadPixTrans",&100,1,"optoff",,,,facts2%,ptrans2%
f �
p
z'� �_closedown:ș "Wimp_CloseDown":�
�
�,� �_info_window(N$,P$,A$,V$,b%):t%=�(N$)
�8 b%!0=0:b%!4=0:b%!12=212:b%!16=0:� �(P$)>t% t%=�(P$)
�9 b%!20=0:b%!24=-1:b%!28=&84000093:� �(A$)>t% t%=�(A$)
�8 b%?32=7:b%?33=2:b%?34=7:b%?35=1:� �(V$)>t% t%=�(V$)
�; b%!8=278+t%*16:b%?36=0:b%?37=0:b%?38=0:b%?39=0:b%!40=0
�: b%!44=-212:b%!48=280+t%*16:b%!52=0:b%!56=&119:b%!60=0
�A b%!64=0:b%!68=0:� b%!72 20:$(b%!72)="About this program"+�13
�D b%!76=-1:b%!80=20:b%!84=8:b%!88=4:b%!92=-52:b%!96=156:b%!100=-4
�? b%!104=&7000211:$(b%+108)="Name:"+�13:b%!120=4:b%!124=-104
�C b%!128=156:b%!132=-56:b%!136=&7000211:$(b%+140)="Purpose:"+�13
�@ b%!152=4:b%!156=-156:b%!160=156:b%!164=-108:b%!168=&7000211
�> $(b%+172)="Author:"+�(13):b%!184=4:b%!188=-208:b%!192=156
D b%!196=-160:b%!200=&7000211:$(b%+204)="Version:"+�13:b%!216=160
; b%!220=-52:b%!224=272+t%*16:b%!228=-4:b%!232=&0700013D
? � b%!236 �(N$)+1:$(b%!236)=N$+�13:b%!240=-1:b%!244=�(N$)+1
$H b%!248=160:b%!252=-104:b%!256=272+t%*16:b%!260=-56:b%!264=&0700013D
.@ � b%!268 �(P$)+1:$(b%!268)=P$+�13::b%!272=-1:b%!276=�(P$)+1
8I b%!280=160:b%!284=-156:b%!288=272+t%*16:b%!292=-108:b%!296=&0700013D
B? � b%!300 �(A$)+1:$(b%!300)=A$+�13:b%!304=-1:b%!308=�(A$)+1
LI b%!312=160:b%!316=-208:b%!320=272+t%*16:b%!324=-160:b%!328=&0700013D
V? � b%!332 �(V$)+1:$(b%!332)=V$+�13:b%!336=-1:b%!340=�(V$)+1
`: ș "Wimp_CreateWindow",,b% � infowindow%:=infowindow%
j
t(� �_directory(t%):� t%=2 � :=� � :=�
~
� � �_read_file_attributes(F$)
�5 datestamp%=�:datestamp$="stamp":iconname$="icon"
� ftn$="":filetype%=0
� � F$="New_file" �
�4  type%=1:load%=&FFFFFD00:exec%=0:len%=0:attr%=3
�,  iconname$="file_ffd":�_read_date_stamp
� �
�6  ș"OS_File",5,F$ � type%,,load%,exec%,len%,attr%
�  Ȏ type% �
�,   � 0 : �_error(1,"'"+F$+"' not found")
�#   � 1 : tmp%=load% � &FFF00000
�.      � tmp%=&FFF00000 � �_read_date_stamp
      �_read_iconname

.   � 2 : �_read_date_stamp:�_read_iconname
  �
 �
( �
2
<� �_read_date_stamp
F. datestamp%=�:filetype%=(load%>>>8) � &FFF
P- ș"OS_FSControl",18,,filetype% � ,,l%,r%
Z6 f$=�(l% � &FF)+�((l%>>8) � &FF)+�((l%>>16) � &FF)
d7 f$+=�((l%>>24) � &FF)+�(r% � &FF)+�((r%>>8) � &FF)
n4 f$+=�((r%>>16) � &FF)+�((r%>>24) � &FF):ftn$=f$
x  ȕ �ftn$)=" ":ftn$=�ftn$):�
�) datestamp$=�~(load% � &FF)+�~(exec%)
� �
�
�� �_read_iconname
� Ȏ type% �
�+  � 1 : iconname$="file_"+�~(filetype%)
�  � 2 :
�!   � ��_leafname(F$),1)="!" �
�     iconname$=�_leafname(F$)
�    ftn$="Application"
�   �
�    iconname$="directory"
�    ftn$="Directory"
   �
 �
 �_check_sprite_name
" �
,
6� �_check_sprite_name
@ � �:� � � � �DTU
J& ș"Wimp_SpriteOp",40,,iconname$:�
T Ȏ type% �
^   � 1 : iconname$="file_xxx"
h  � 2 :
r!   � ��_leafname(F$),1)="!" �
|    iconname$="application"
�   �
�    iconname$="directory"
�   �
� �
� �
�
�� �_leafname(f$):e$=""
�' ȕ �f$)<>":" � �f$)<>"." � �(f$)>0
�  e$=�f$)+e$:f$=�f$):�
� =e$
�
�$� �_file_window:ws%(wn%,2)=type%
�; winx%=(winx%+16) � 640:winy%-=32:� winy%<600 winy%=900
; ws%(wn%,1)=�_get_heap_block(390):� ws%(wn%,1)=0 � �tzX
I $(ws%(wn%,1))=F$:ws%(wn%,1)?259=0:� �(F$)>29 ws%(wn%,1)?259=�(F$)-29
: $(ws%(wn%,1)+260)=iconname$+�0:$(ws%(wn%,1)+274)=ftn$
&F $(ws%(wn%,1)+286)=�~(filetype%):$(ws%(wn%,1)+302)=�(�(len%/1024))
0- $(ws%(wn%,1)+290)=�(�(len%/(1024*1024)))
:J $(ws%(wn%,1)+346)=�_date:�(datestamp%) $(ws%(wn%,1)+346)="Unstamped"
D: $(ws%(wn%,1)+314)=�(len%):$(ws%(wn%,1)+326)=�~(load%)
NG $(ws%(wn%,1)+336)=�~(exec%):ws%(wn%,1)!370=attr%:ws%(wn%,1)!374=30
XK ws%(wn%,1)!378=datestamp%:b%!84=39:P%=b%+56:!b%=winx%+2:b%!4=winy%-184
bL b%!8=winx%+486:b%!12=winy%:b%!16=484:b%!20=500:b%!24=-1:b%!28=&FF00000F
lM b%?32=7:b%?33=2:b%?34=7:b%?35=1:b%?36=3:b%?37=1:b%?38=12:b%?39=0:b%!40=0
vF b%!44=0:b%!48=968:�type%=1 $(b%+72)="File" � $(b%+72)="Directory"
�J b%!52=500:b%!56=&19:b%!60=2:b%!64=1:b%!68=&10001:P%+=32:P%!0=4:P%!4=4
�K P%!8=476:P%!12=48:P%!16=&17002111:P%!20=text%:P%!24=-1:P%!28=23:P%+=32
�M P%!0=4:P%!4=52:P%!8=476:P%!12=96:P%!16=&17002111:P%!20=text%+24:P%!24=-1
�G P%!28=23:P%+=32:P%!0=4:P%!4=100:P%!8=476:P%!12=144:P%!16=&17002111
�A P%!20=text%+47:P%!24=-1:P%!28=23:� type%=2 � P%!16=&17402111
�G P%+=32:P%!0=4:P%!4=148:P%!16=&17002111:� type%=2 � P%!16=&17402111
�F P%!8=476:P%!12=192:P%!20=text%+70:P%!24=-1:P%!28=23:P%+=32:P%!0=4
�H P%!4=196:P%!8=476:P%!12=240:P%!16=&17002111:P%!20=text%+92:P%!24=-1
�G P%!28=27:P%+=32:P%!0=4:P%!4=244:P%!8=350:P%!12=292:P%!16=&07000035
�G $(P%+20)="Attributes:":P%+=32:P%!0=350:P%!4=244:P%!8=476:P%!12=292
�F P%!16=&C701903D:$(P%+20)="Update":P%+=32:P%!0=4:P%!4=304:P%!8=140
�I P%!12=348:P%!16=&17000211:$(P%+20)="Bytes:":P%+=32:P%!0=140:P%!4=304
�M P%!8=400:P%!12=348:P%!16=&700013D:P%!20=ws%(wn%,1)+314:P%!24=-1:P%!28=10
@ P%+=32:P%!0=404:P%!4=304:P%!8=438:P%!12=348:P%!16=&C700203D
> $(P%+20)=�138:P%+=32:P%!0=442:P%!4=304:P%!8=476:P%!12=348
B P%!16=&C700203D:$(P%+20)=�139:P%+=32:P%!0=4:P%!4=352:P%!8=140
 J P%!12=396:P%!16=&17000211:$(P%+20)="KBytes:":P%+=32:P%!0=140:P%!4=352
*M P%!8=400:P%!12=396:P%!16=&700013D:P%!20=ws%(wn%,1)+302:P%!24=-1:P%!28=10
4@ P%+=32:P%!0=404:P%!4=352:P%!8=438:P%!12=396:P%!16=&C700203D
>> $(P%+20)=�138:P%+=32:P%!0=442:P%!4=352:P%!8=476:P%!12=396
HB P%!16=&C700203D:$(P%+20)=�139:P%+=32:P%!0=4:P%!4=400:P%!8=140
RJ P%!12=444:P%!16=&17000211:$(P%+20)="MBytes:":P%+=32:P%!0=140:P%!4=400
\M P%!8=400:P%!12=444:P%!16=&700013D:P%!20=ws%(wn%,1)+290:P%!24=-1:P%!28=10
f@ P%+=32:P%!0=404:P%!4=400:P%!8=438:P%!12=444:P%!16=&C700203D
p> $(P%+20)=�138:P%+=32:P%!0=442:P%!4=400:P%!8=476:P%!12=444
zB P%!16=&C700203D:$(P%+20)=�139:P%+=32:P%!0=4:P%!4=448:P%!8=350
�M P%!12=496:P%!16=&07000035:$(P%+20)="File size:":P%+=32:P%!0=350:P%!4=448
�A P%!8=476:P%!12=496:P%!16=&C701903D:� type%=2 P%!16=&C741903D
�F $(P%+20)="Update":P%+=32:P%!0=492:P%!4=4:P%!8=628:P%!16=&17000211
�G P%!12=52:$(P%+20)="Load:":P%+=32:P%!0=628:P%!4=4:P%!8=838:P%!12=52
�A P%!16=&700F13D:P%!20=ws%(wn%,1)+326:� type%=2 P%!16=&700013D
�: P%!24=hexonly:P%!28=9:P%+=32:P%!0=838:P%!4=4:P%!8=964
�I P%!12=52:P%!16=&C701903D:$(P%+20)="Update":� type%=2 P%!16=&C741903D
�? P%+=32:P%!0=492:P%!4=56:P%!8=628:P%!12=104:P%!16=&17000211
�C $(P%+20)="Execute:":P%+=32:P%!0=628:P%!4=56:P%!8=838:P%!12=104
�C P%!16=&0700F13D:P%!20=ws%(wn%,1)+336:� type%=2 P%!16=&0700013D
�F P%!24=hexonly:P%!28=9:P%+=32::P%!0=838:P%!4=56:P%!8=964:P%!12=104
�@ $(P%+20)="Update":P%!16=&C701903D:� type%=2 P%!16=&C741903D
�@ P%+=32:P%!0=488:P%!4=116:P%!8=964:P%!12=164:P%!16=&0700013D
M P%!20=ws%(wn%,1)+346:P%!24=-1:P%!28=24:P%+=32:P%!0=488:P%!4=162:P%!8=800
N P%!12=208:P%!16=&07000035:$(P%+20)="Date stamp:":P%+=32:P%!0=800:P%!4=162
A P%!8=964:P%!12=208:P%!16=&C701903D:� type%=2 P%!16=&C741903D
$D $(P%+20)="Re-stamp":P%+=32:P%!0=488:P%!4=220:P%!8=964:P%!12=268
.N P%!16=&070001B5:P%!20=ws%(wn%,1)?259+ws%(wn%,1):P%!24=-1:P%!28=257:P%+=32
8M P%!0=488:P%!4=266:P%!8=674:P%!12=308:P%!16=&C700203D:$(P%+20)="<<<<<<<<"
B@ P%+=32:P%!0=674:P%!4=266:P%!8=776:P%!12=308:P%!16=&0700003D
L@ $(P%+20)="Name":P%+=32:P%!0=776:P%!4=266:P%!8=964:P%!12=308
VJ P%!16=&C700203D:$(P%+20)=">>>>>>>>":P%+=32:P%!0=660:P%!4=328:P%!8=964
`L P%!12=376:P%!16=&0700013D:P%!20=ws%(wn%,1)+274:P%!24=-1:P%!28=12:P%+=32
jI P%!0=660:P%!4=384:P%!8=964:P%!16=&0700F13D:� type%=2 P%!16=&0700013D
tI P%!12=432:P%!20=ws%(wn%,1)+286:P%!24=hexonly:P%!28=4:P%+=32:P%!0=660
~M P%!4=440:P%!8=838:P%!12=488:P%!16=&0700003D:$(P%+20)="File type:":P%+=32
�I P%!0=838:P%!4=440:P%!8=964:P%!16=&C701903D:� type%=2 P%!16=&C741903D
�L P%!12=488:$(P%+20)="Update":P%+=32:P%!0=530:P%!4=360:P%!8=610:P%!12=452
�D P%!16=&2000:$(P%+20)="":ș "Wimp_CreateWindow",,b% � ws%(wn%,0)
�I b%!0=ws%(wn%,0):ș "Wimp_GetWindowInfo",,b%:ș "Wimp_OpenWindow",,b%
� �
�= ws%(wn%,0)=0:ws%(wn%,1)=0:ws%(wn%,2)=0:� dont touch!!!!!
�D �_error(1,"Can't open any more attribute windows."):moreroom%=�
� �
�
�'� �_initialise_heap:heapsize%=10000
�7 � heap% heapsize%:ș"OS_Heap",0,heap%,,heapsize%:�
�
&� �_get_heap_block(len):� pointer%

+ ș"XOS_Heap",2,heap%,,len � ,,pointer%
 :=pointer%

(!� �_free_heap_block(pointer%)
2# ș"OS_Heap",3,heap%,pointer%:�
<
F� �_date
PH b%?0=exec% � &FF:b%?1=((exec%>>>8) � &FF):b%?2=((exec%>>>16) � &FF)
Z/ b%?3=((exec%>>>24) � &FF):b%?4=load% � &FF
d0 $(b%+20)="%24:%MI:%SE %DY%ST %M3 %CE%YR"+�0
n3 ș "OS_ConvertDateAndTime",b%,b%+60,&F00,b%+20
x( � �$(b%+60),23)="" � :="Date error"
� :=�$(b%+60),23)
�
�-� �_pos_from_handle(h%):� point%:point%=0
�9 ȕ ws%(point%,0)<>h% � point%<maxfiles% :point%+=1:�
�) � point%<maxfiles% � :=point% � :=-1
�
�(� �_new_window_num:� point%:point%=0
�7 ȕ ws%(point%,2)<>0 � point%<maxfiles%:point%+=1:�
�) � point%<maxfiles% � :=point% � :=-1
�
�� �_report_error(E$,t%,T$)
�6 ș"Wimp_ReportError",�err(1,E$),t%,T$ � ,t%:=t%=1
�
?� �err(en%,er$):!e%=en%:$(e%+4)=er$:e%?(4+�($(e%+4)))=0:=e%

/� �_restamp:ș"OS_File",5,ws%(wn%,1) � tmp%
"8 � tmp%=0 �_error(1,"'"+$ws%(wn%,1)+"' Not found"):�
,A ș"OS_File",9,ws%(wn%,1):�_read_file_attributes($ws%(wn%,1))
6. �_redraw_date:$(ws%(wn%,1)+326)=�~(load%)
@= �_redraw_icon(ws%(wn%,0),22):$(ws%(wn%,1)+336)=�~(exec%)
J! �_redraw_icon(ws%(wn%,0),25)
T � �(ws%(wn%,1)!378) �
^.  ws%(wn%,1)!378=�:$(ws%(wn%,1)+286)="FFD"
h"  �_redraw_icon(ws%(wn%,0),35)
r9  $(ws%(wn%,1)+274)=ftn$:�_redraw_icon(ws%(wn%,0),34)
|!  $(ws%(wn%,1)+260)=iconname$
�5  ș"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
� �
� �
�
�� �_check_exists(F$)
�# � tmp%:ș"OS_File",5,F$ � tmp%
� � tmp%=0 � �_not_found(F$)
� �
�
�.� �_not_found(F$):� 1,"'"+F$+"' not found"
� �
�
�� �_update_exec_address
F ș"OS_File",5,ws%(wn%,1) � ,,load%:exec%=�("&"+$(ws%(wn%,1)+336))
% � ws%(wn%,1)!378 � �_redraw_date
& ș"OS_File",3,ws%(wn%,1),,exec%:�
&
0� �_update_load_address
:2 �_check_exists($ws%(wn%,1)):load%=�("&"+tmp$)
DG ș"OS_File",2,ws%(wn%,1),load%:�_read_file_attributes($ws%(wn%,1))
NJ $(ws%(wn%,1)+346)=�_date:�(datestamp%) $(ws%(wn%,1)+346)="Unstamped"
X; ws%(wn%,1)!378=datestamp%:�_redraw_icon(ws%(wn%,0),27)
b8 $(ws%(wn%,1)+274)=ftn$:�_redraw_icon(ws%(wn%,0),34)
lA $(ws%(wn%,1)+286)=�~(filetype%):�_redraw_icon(ws%(wn%,0),35)
v  $(ws%(wn%,1)+260)=iconname$
�4 ș"Wimp_ForceRedraw",ws%(wn%,0),484,316,656,500
� �
�
�� �_copy_file(from$,to$)
�4 �"%COPY "+from$+" "+to$+" A~C~DF~L~N~P~QRS~T~V"
� �
�
�� �_OSvar(Var$,b%):� end%
�@ ș "OS_ReadVarVal",Var$,b%,512,0 � ,,end%:b%?end%=13:=$(b%)
�
�� �_error(err,report$)
�9 � report$="Too many windows" � err=388 � moreroom%=�
�; ș "Wimp_ReportError",�err(err,report$),1,TaskTitle$:�

� �_update_file_type
1 �_check_exists($ws%(wn%,1)):ws%(wn%,1)!378=�
 8 ș"OS_File",&12,ws%(wn%,1),�("&"+$(ws%(wn%,1)+286))
*- ș"OS_File",5,ws%(wn%,1) � ,,load%,exec%
4D $(ws%(wn%,1)+326)="FFF"+$(ws%(wn%,1)+286)+�$(ws%(wn%,1)+326),2)
>@ �_redraw_icon(ws%(wn%,0),22):�_redraw_date:ws%(wn%,1)!378=�
H �
R
\� �_redraw_date
f< $(ws%(wn%,1)+346)=�_date:�_redraw_icon(ws%(wn%,0),27):�
p
zD� �_redraw_icon(w%,i%):b%!0=w%:b%!4=i%:ș"Wimp_GetIconState",,b%
�9 b%!4=b%!8+2:b%!8=b%!12+4:b%!12=b%!16-2:b%!16=b%!20-4
�1 ș"Wimp_UpdateWindow",,b% � more%:�_redraw:�
�
�� �_floating_icon(x%,y%)
�B spname$="!attribute":ș"Wimp_SpriteOp",40,,spname$ � ,,,w%,h%
�G b%!0=x%-w%-20:b%!4=y%-66:b%!8=x%+w%+20:b%!12=y%+62:b%!16=0:b%!20=0
�G b%!24=-1:b%!28=144:b%?32=7:b%?33=0:b%?34=7:b%?35=1:b%!36=0:b%!40=0
�J b%!44=0:b%!48=b%!8-b%!0:b%!52=130:b%!56=0:b%!60=&2000:b%!64=1:b%!68=0
�D b%!72=&000D:b%!84=1:b%!88=20:b%!92=22:b%!96=b%!48-20:b%!100=100
�B b%!104=&2002:$(b%+108)=spname$:ș"Wimp_CreateWindow",,b% � h%
�F b%!0=h%:ș"Wimp_GetWindowInfo",,b%:ș"Wimp_OpenWindow",,b%:iw%=h%
� �
�
E� �_install_on_icon_bar:!b%=-2:b%!4=0:b%!8=0:spname$="!attribute"
C ș"Wimp_SpriteOp",40,,spname$ � ,,,w%,h%:b%!12=w%*2:b%!16=h%*4
6 b%!20=&2102:� b%!24 (�spname$+1):$(b%!24)=spname$
$C b%!28=1:b%!32=�(spname$)+1:ș "Wimp_CreateIcon",,b% � ic%:=ic%
.
8� �_remove_from_icon_bar
B7 b%!0=-2:b%!4=icon%:ș"Wimp_DeleteIcon",,b%:icon%=0
L �
�
00000000  0d 00 0a 11 f4 20 3e 20  21 52 75 6e 49 6d 61 67  |..... > !RunImag|
00000010  65 0d 00 14 05 f4 0d 00  1e 20 f4 20 20 20 46 69  |e........ .   Fi|
00000020  6c 65 20 61 74 74 72 69  62 75 74 65 73 20 75 74  |le attributes ut|
00000030  69 6c 69 74 79 2e 0d 00  28 05 f4 0d 00 32 29 f4  |ility...(....2).|
00000040  20 20 20 57 72 69 74 74  65 6e 20 62 79 20 20 4a  |   Written by  J|
00000050  2e 48 6f 72 73 6e 65 6c  6c 20 28 45 78 6f 72 63  |.Horsnell (Exorc|
00000060  69 73 74 29 0d 00 3c 05  f4 0d 00 46 26 f4 20 20  |ist)..<....F&.  |
00000070  20 54 68 69 73 20 70 72  6f 67 72 61 6d 20 69 73  | This program is|
00000080  20 70 75 62 6c 69 63 20  64 6f 6d 61 69 6e 2e 0d  | public domain..|
00000090  00 50 05 f4 0d 00 5a 40  ee 20 85 20 f1 20 22 41  |.P....Z@. . . "A|
000000a0  20 66 61 74 61 6c 20 73  65 74 75 70 20 65 72 72  | fatal setup err|
000000b0  6f 72 20 68 61 73 20 6f  63 63 75 72 65 64 2e 22  |or has occured."|
000000c0  27 27 f6 24 3b 22 20 61  74 20 6c 69 6e 65 20 22  |''.$;" at line "|
000000d0  3b 9e 3a e0 0d 00 64 04  0d 00 6e 1e f2 5f 69 6e  |;.:...d...n.._in|
000000e0  69 74 69 61 6c 69 73 65  5f 68 65 61 70 3a 72 65  |itialise_heap:re|
000000f0  61 64 79 25 3d b9 0d 00  78 26 6d 61 78 66 69 6c  |ady%=...x&maxfil|
00000100  65 73 25 3d 33 32 3a 73  61 76 69 6e 67 25 3d a3  |es%=32:saving%=.|
00000110  3a 64 72 61 67 67 69 6e  67 25 3d a3 0d 00 82 43  |:dragging%=....C|
00000120  de 20 62 25 20 26 32 30  30 30 2c 65 25 20 26 31  |. b% &2000,e% &1|
00000130  30 30 2c 66 25 20 32 35  36 2c 77 73 25 28 6d 61  |00,f% 256,ws%(ma|
00000140  78 66 69 6c 65 73 25 2c  32 29 2c 68 65 78 6f 6e  |xfiles%,2),hexon|
00000150  6c 79 20 31 33 2c 64 65  63 6f 6e 6c 79 20 36 0d  |ly 13,deconly 6.|
00000160  00 8c 46 de 20 74 65 78  74 25 20 31 33 30 2c 66  |..F. text% 130,f|
00000170  61 63 74 73 25 20 31 35  2c 70 74 72 61 6e 73 25  |acts% 15,ptrans%|
00000180  20 31 35 2c 66 61 63 74  73 31 25 20 31 35 2c 66  | 15,facts1% 15,f|
00000190  61 63 74 73 32 25 20 31  35 2c 70 74 72 61 6e 73  |acts2% 15,ptrans|
000001a0  31 25 20 31 35 0d 00 96  3d de 20 70 74 72 61 6e  |1% 15...=. ptran|
000001b0  73 32 25 20 31 35 3a 24  74 65 78 74 25 3d 22 20  |s2% 15:$text%=" |
000001c0  20 20 50 75 62 6c 69 63  20 77 72 69 74 65 20 61  |  Public write a|
000001d0  63 63 65 73 73 22 3a 6d  6f 72 65 72 6f 6f 6d 25  |ccess":moreroom%|
000001e0  3d b9 0d 00 a0 4b 24 28  74 65 78 74 25 2b 32 34  |=....K$(text%+24|
000001f0  29 3d 22 20 20 20 50 75  62 6c 69 63 20 72 65 61  |)="   Public rea|
00000200  64 20 61 63 63 65 73 73  22 3a 24 28 74 65 78 74  |d access":$(text|
00000210  25 2b 34 37 29 3d 22 20  20 20 4f 77 6e 65 72 20  |%+47)="   Owner |
00000220  77 72 69 74 65 20 61 63  63 65 73 73 22 0d 00 aa  |write access"...|
00000230  4c 24 28 74 65 78 74 25  2b 37 30 29 3d 22 20 20  |L$(text%+70)="  |
00000240  20 4f 77 6e 65 72 20 72  65 61 64 20 61 63 63 65  | Owner read acce|
00000250  73 73 22 3a 24 68 65 78  6f 6e 6c 79 3d 22 61 30  |ss":$hexonly="a0|
00000260  2d 39 61 2d 66 41 2d 46  22 3a 24 64 65 63 6f 6e  |-9a-fA-F":$decon|
00000270  6c 79 3d 22 61 30 2d 39  22 0d 00 b4 2c 24 28 74  |ly="a0-9"...,$(t|
00000280  65 78 74 25 2b 39 32 29  3d 22 20 20 20 4c 6f 63  |ext%+92)="   Loc|
00000290  6b 65 64 20 61 67 61 69  6e 73 74 20 64 65 6c 65  |ked against dele|
000002a0  74 69 6f 6e 22 0d 00 b5  26 76 65 72 73 69 6f 6e  |tion"...&version|
000002b0  24 3d 22 31 2e 33 31 20  28 31 38 20 44 65 63 65  |$="1.31 (18 Dece|
000002c0  6d 62 65 72 20 31 39 38  39 29 22 0d 00 be 4c 54  |mber 1989)"...LT|
000002d0  61 73 6b 54 69 74 6c 65  24 3d 22 46 69 6c 65 2f  |askTitle$="File/|
000002e0  44 69 72 20 61 74 74 72  69 62 75 74 65 73 22 3a  |Dir attributes":|
000002f0  41 74 74 72 69 62 75 74  65 24 3d a4 5f 4f 53 76  |Attribute$=._OSv|
00000300  61 72 28 22 21 41 74 74  72 69 62 75 74 65 24 44  |ar("!Attribute$D|
00000310  69 72 22 2c 62 25 29 0d  00 c8 4c c8 99 20 22 57  |ir",b%)...L.. "W|
00000320  69 6d 70 5f 49 6e 69 74  69 61 6c 69 73 65 22 2c  |imp_Initialise",|
00000330  32 30 30 2c 26 34 42 35  33 34 31 35 34 2c 54 61  |200,&4B534154,Ta|
00000340  73 6b 54 69 74 6c 65 24  3a 69 77 25 3d 2d 32 3a  |skTitle$:iw%=-2:|
00000350  77 69 6e 79 25 3d 39 33  32 3a 77 69 6e 78 25 3d  |winy%=932:winx%=|
00000360  2d 31 36 0d 00 d2 3d f2  5f 44 65 66 69 6e 65 5f  |-16...=._Define_|
00000370  6d 65 6e 75 3a 69 63 6f  6e 25 3d a4 5f 69 6e 73  |menu:icon%=._ins|
00000380  74 61 6c 6c 5f 6f 6e 5f  69 63 6f 6e 5f 62 61 72  |tall_on_icon_bar|
00000390  3a f2 5f 67 65 74 5f 6d  6f 64 65 5f 69 6e 66 6f  |:._get_mode_info|
000003a0  0d 00 dc 04 0d 00 e6 18  ee 20 85 20 f2 5f 65 72  |......... . ._er|
000003b0  72 6f 72 28 9f 2c f6 24  2b c3 9e 29 0d 00 f0 04  |ror(.,.$+..)....|
000003c0  0d 00 fa 05 f5 0d 01 04  22 20 c8 99 20 22 57 69  |........" .. "Wi|
000003d0  6d 70 5f 50 6f 6c 6c 22  2c 31 2c 62 25 20 b8 20  |mp_Poll",1,b% . |
000003e0  61 63 74 69 6f 6e 25 0d  01 0e 11 20 c8 8e 20 61  |action%.... .. a|
000003f0  63 74 69 6f 6e 25 20 ca  0d 01 18 1c 20 20 20 c9  |ction% .....   .|
00000400  20 31 20 3a 20 f2 5f 72  65 64 72 61 77 5f 77 69  | 1 : ._redraw_wi|
00000410  6e 64 6f 77 0d 01 22 25  20 20 20 c9 20 32 20 3a  |ndow.."%   . 2 :|
00000420  20 c8 99 20 22 57 69 6d  70 5f 4f 70 65 6e 57 69  | .. "Wimp_OpenWi|
00000430  6e 64 6f 77 22 2c 2c 62  25 0d 01 2c 33 20 20 20  |ndow",,b%..,3   |
00000440  c9 20 33 20 3a 20 f4 20  64 65 6c 65 74 65 20 77  |. 3 : . delete w|
00000450  69 6e 64 6f 77 20 61 6e  64 20 66 72 65 65 20 70  |indow and free p|
00000460  6f 69 6e 74 65 72 73 20  65 74 63 2e 0d 01 36 48  |ointers etc...6H|
00000470  20 20 20 20 20 c8 99 20  22 57 69 6d 70 5f 47 65  |     .. "Wimp_Ge|
00000480  74 50 6f 69 6e 74 65 72  49 6e 66 6f 22 2c 2c 62  |tPointerInfo",,b|
00000490  25 2b 31 30 30 3a 64 75  6d 6d 79 25 3d a4 5f 70  |%+100:dummy%=._p|
000004a0  6f 73 5f 66 72 6f 6d 5f  68 61 6e 64 6c 65 28 62  |os_from_handle(b|
000004b0  25 21 30 29 0d 01 40 16  20 20 20 20 20 e7 20 64  |%!0)..@.     . d|
000004c0  75 6d 6d 79 25 3d 2d 31  20 8c 0d 01 4a 2c 20 20  |ummy%=-1 ...J,  |
000004d0  20 20 20 20 f2 5f 65 72  72 6f 72 28 31 2c 22 55  |    ._error(1,"U|
000004e0  6e 6b 6e 6f 77 6e 20 77  69 6e 64 6f 77 20 68 61  |nknown window ha|
000004f0  6e 64 6c 65 22 29 0d 01  54 0a 20 20 20 20 20 cc  |ndle")..T.     .|
00000500  0d 01 5e 6b 20 20 20 20  20 20 e7 20 62 25 21 31  |..^k      . b%!1|
00000510  30 38 3d 31 20 8c 20 ff  22 46 69 6c 65 72 5f 4f  |08=1 . ."Filer_O|
00000520  70 65 6e 44 69 72 20 22  2b c0 24 77 73 25 28 64  |penDir "+.$ws%(d|
00000530  75 6d 6d 79 25 2c 31 29  2c a9 28 24 77 73 25 28  |ummy%,1),.($ws%(|
00000540  64 75 6d 6d 79 25 2c 31  29 29 2d a9 28 a4 5f 6c  |dummy%,1))-.(._l|
00000550  65 61 66 6e 61 6d 65 28  24 77 73 25 28 64 75 6d  |eafname($ws%(dum|
00000560  6d 79 25 2c 31 29 29 29  2d 31 29 0d 01 68 40 20  |my%,1)))-1)..h@ |
00000570  20 20 20 20 20 c8 99 20  22 57 69 6d 70 5f 44 65  |     .. "Wimp_De|
00000580  6c 65 74 65 57 69 6e 64  6f 77 22 2c 2c 62 25 3a  |leteWindow",,b%:|
00000590  77 73 25 28 64 75 6d 6d  79 25 2c 32 29 3d 30 3a  |ws%(dummy%,2)=0:|
000005a0  6d 6f 72 65 72 6f 6f 6d  25 3d b9 0d 01 72 4a 20  |moreroom%=...rJ |
000005b0  20 20 20 20 20 f2 5f 66  72 65 65 5f 68 65 61 70  |     ._free_heap|
000005c0  5f 62 6c 6f 63 6b 28 77  73 25 28 64 75 6d 6d 79  |_block(ws%(dummy|
000005d0  25 2c 31 29 29 3a 77 73  25 28 64 75 6d 6d 79 25  |%,1)):ws%(dummy%|
000005e0  2c 31 29 3d 30 3a 77 73  25 28 64 75 6d 6d 79 25  |,1)=0:ws%(dummy%|
000005f0  2c 30 29 3d 30 0d 01 7c  0a 20 20 20 20 20 cd 0d  |,0)=0..|.     ..|
00000600  01 86 1b 20 20 20 c9 20  36 20 3a 20 f2 5f 4d 6f  |...   . 6 : ._Mo|
00000610  75 73 65 5f 63 68 61 6e  67 65 0d 01 90 1a 20 20  |use_change....  |
00000620  20 c9 20 37 20 3a 20 f2  5f 64 72 61 67 67 65 64  | . 7 : ._dragged|
00000630  5f 62 6f 78 0d 01 9a 1a  20 20 20 c9 20 38 20 3a  |_box....   . 8 :|
00000640  20 f2 5f 6b 65 79 5f 70  72 65 73 73 65 64 0d 01  | ._key_pressed..|
00000650  a4 1d 20 20 20 c9 20 39  20 3a 20 f2 5f 4d 65 6e  |..   . 9 : ._Men|
00000660  75 5f 73 65 6c 65 63 74  69 6f 6e 0d 01 ae 22 20  |u_selection..." |
00000670  20 20 c9 20 31 37 2c 31  38 20 3a 20 f2 5f 52 65  |  . 17,18 : ._Re|
00000680  63 65 69 76 65 5f 6d 65  73 73 61 67 65 0d 01 b8  |ceive_message...|
00000690  06 20 cb 0d 01 c2 07 fd  20 30 0d 01 cc 04 0d 01  |. ...... 0......|
000006a0  d6 13 dd 20 f2 5f 64 72  61 67 67 65 64 5f 62 6f  |... ._dragged_bo|
000006b0  78 0d 01 e0 10 20 64 72  61 67 67 69 6e 67 25 3d  |x.... dragging%=|
000006c0  a3 0d 01 ea 10 20 e7 20  73 61 76 69 6e 67 25 20  |..... . saving% |
000006d0  8c 0d 01 f4 38 20 20 c8  99 20 22 57 69 6d 70 5f  |....8  .. "Wimp_|
000006e0  47 65 74 50 6f 69 6e 74  65 72 49 6e 66 6f 22 2c  |GetPointerInfo",|
000006f0  2c 62 25 3a 62 25 21 33  32 3d 62 25 21 34 3a 62  |,b%:b%!32=b%!4:b|
00000700  25 21 32 38 3d 62 25 21  30 0d 01 fe 35 20 20 62  |%!28=b%!0...5  b|
00000710  25 21 32 34 3d 62 25 21  31 36 3a 62 25 21 32 30  |%!24=b%!16:b%!20|
00000720  3d 62 25 21 31 32 3a 62  25 21 31 36 3d 31 3a 62  |=b%!12:b%!16=1:b|
00000730  25 21 31 32 3d 30 3a 62  25 21 33 36 3d 30 0d 02  |%!12=0:b%!36=0..|
00000740  08 31 20 20 62 25 21 34  30 3d 26 46 46 37 3a 24  |.1  b%!40=&FF7:$|
00000750  28 62 25 2b 34 34 29 3d  a4 5f 6c 65 61 66 6e 61  |(b%+44)=._leafna|
00000760  6d 65 28 24 77 73 25 28  77 6e 25 2c 31 29 29 0d  |me($ws%(wn%,1)).|
00000770  02 12 2e 20 20 62 25 21  30 3d 36 30 3a c8 99 22  |...  b%!0=60:.."|
00000780  57 69 6d 70 5f 53 65 6e  64 4d 65 73 73 61 67 65  |Wimp_SendMessage|
00000790  22 2c 31 37 2c 62 25 2c  62 25 21 32 30 0d 02 1c  |",17,b%,b%!20...|
000007a0  06 20 cc 0d 02 26 2f 20  20 62 25 21 31 30 30 3d  |. ...&/  b%!100=|
000007b0  69 77 25 3a c8 99 22 57  69 6d 70 5f 47 65 74 57  |iw%:.."Wimp_GetW|
000007c0  69 6e 64 6f 77 49 6e 66  6f 22 2c 2c 62 25 2b 31  |indowInfo",,b%+1|
000007d0  30 30 0d 02 30 3e 20 20  62 25 21 31 30 34 3d 62  |00..0>  b%!104=b|
000007e0  25 21 30 2b 32 3a 62 25  21 31 30 38 3d 62 25 21  |%!0+2:b%!108=b%!|
000007f0  34 2b 32 3a 62 25 21 31  31 32 3d 62 25 21 38 2d  |4+2:b%!112=b%!8-|
00000800  32 3a 62 25 21 31 31 36  3d 62 25 21 31 32 2d 32  |2:b%!116=b%!12-2|
00000810  0d 02 3a 21 20 20 c8 99  22 57 69 6d 70 5f 4f 70  |..:!  .."Wimp_Op|
00000820  65 6e 57 69 6e 64 6f 77  22 2c 2c 62 25 2b 31 30  |enWindow",,b%+10|
00000830  30 0d 02 44 06 20 cd 0d  02 4e 06 20 e1 0d 02 58  |0..D. ...N. ...X|
00000840  04 0d 02 62 15 dd 20 f2  5f 72 65 64 72 61 77 5f  |...b.. ._redraw_|
00000850  77 69 6e 64 6f 77 0d 02  6c 22 64 75 6d 6d 79 25  |window..l"dummy%|
00000860  3d a4 5f 70 6f 73 5f 66  72 6f 6d 5f 68 61 6e 64  |=._pos_from_hand|
00000870  6c 65 28 62 25 21 30 29  0d 02 76 18 c8 99 22 57  |le(b%!0)..v..."W|
00000880  69 6d 70 5f 53 65 74 43  6f 6c 6f 75 72 22 2c 37  |imp_SetColour",7|
00000890  0d 02 80 26 c8 99 20 22  57 69 6d 70 5f 52 65 64  |...&.. "Wimp_Red|
000008a0  72 61 77 57 69 6e 64 6f  77 22 2c 2c 62 25 20 b8  |rawWindow",,b% .|
000008b0  20 6d 6f 72 65 25 0d 02  8a 20 79 25 3d 62 25 21  | more%... y%=b%!|
000008c0  31 36 2d 62 25 21 32 34  3a 78 25 3d 62 25 21 34  |16-b%!24:x%=b%!4|
000008d0  2d 62 25 21 32 30 0d 02  94 0c c8 95 20 6d 6f 72  |-b%!20...... mor|
000008e0  65 25 0d 02 9e 2e 20 c8  93 20 78 25 2c 79 25 2b  |e%.... .. x%,y%+|
000008f0  32 39 36 2c 34 38 30 2c  32 3a c8 93 20 78 25 2b  |296,480,2:.. x%+|
00000900  34 38 30 2c 79 25 2b 31  30 38 2c 34 38 38 2c 32  |480,y%+108,488,2|
00000910  0d 02 a8 2e 20 c8 93 20  78 25 2b 34 38 30 2c 79  |.... .. x%+480,y|
00000920  25 2c 32 2c 35 30 30 3a  c8 93 20 78 25 2b 34 38  |%,2,500:.. x%+48|
00000930  30 2c 79 25 2b 32 31 32  2c 34 38 38 2c 32 0d 02  |0,y%+212,488,2..|
00000940  b2 1b 20 c8 93 20 78 25  2b 34 38 30 2c 79 25 2b  |.. .. x%+480,y%+|
00000950  33 31 32 2c 34 38 38 2c  32 0d 02 bc 23 20 e7 20  |312,488,2...# . |
00000960  62 25 21 32 38 3c 78 25  2b 36 30 20 80 20 62 25  |b%!28<x%+60 . b%|
00000970  21 33 32 3c 79 25 2b 32  36 30 20 8c 0d 02 c6 32  |!32<y%+260 ....2|
00000980  20 20 f2 5f 62 6f 78 28  78 25 2b 34 2c 79 25 2b  |  ._box(x%+4,y%+|
00000990  34 2c 28 77 73 25 28 64  75 6d 6d 79 25 2c 31 29  |4,(ws%(dummy%,1)|
000009a0  21 33 37 30 20 80 20 33  32 29 3d 33 32 29 0d 02  |!370 . 32)=32)..|
000009b0  d0 33 20 20 f2 5f 62 6f  78 28 78 25 2b 34 2c 79  |.3  ._box(x%+4,y|
000009c0  25 2b 35 32 2c 28 77 73  25 28 64 75 6d 6d 79 25  |%+52,(ws%(dummy%|
000009d0  2c 31 29 21 33 37 30 20  80 20 31 36 29 3d 31 36  |,1)!370 . 16)=16|
000009e0  29 0d 02 da 32 20 20 f2  5f 62 6f 78 28 78 25 2b  |)...2  ._box(x%+|
000009f0  34 2c 79 25 2b 31 30 30  2c 28 77 73 25 28 64 75  |4,y%+100,(ws%(du|
00000a00  6d 6d 79 25 2c 31 29 21  33 37 30 20 80 20 32 29  |mmy%,1)!370 . 2)|
00000a10  3d 32 29 0d 02 e4 32 20  20 f2 5f 62 6f 78 28 78  |=2)...2  ._box(x|
00000a20  25 2b 34 2c 79 25 2b 31  34 38 2c 28 77 73 25 28  |%+4,y%+148,(ws%(|
00000a30  64 75 6d 6d 79 25 2c 31  29 21 33 37 30 20 80 20  |dummy%,1)!370 . |
00000a40  31 29 3d 31 29 0d 02 ee  32 20 20 f2 5f 62 6f 78  |1)=1)...2  ._box|
00000a50  28 78 25 2b 34 2c 79 25  2b 31 39 36 2c 28 77 73  |(x%+4,y%+196,(ws|
00000a60  25 28 64 75 6d 6d 79 25  2c 31 29 21 33 37 30 20  |%(dummy%,1)!370 |
00000a70  80 20 38 29 3d 38 29 0d  02 f8 06 20 cd 0d 03 02  |. 8)=8).... ....|
00000a80  45 20 c8 99 22 57 69 6d  70 5f 52 65 61 64 50 69  |E .."Wimp_ReadPi|
00000a90  78 54 72 61 6e 73 22 2c  26 31 30 30 2c 31 2c 77  |xTrans",&100,1,w|
00000aa0  73 25 28 64 75 6d 6d 79  25 2c 31 29 2b 32 36 30  |s%(dummy%,1)+260|
00000ab0  2c 2c 2c 2c 66 61 63 74  73 25 2c 70 74 72 61 6e  |,,,,facts%,ptran|
00000ac0  73 25 0d 03 0c 3a 20 c8  99 22 57 69 6d 70 5f 53  |s%...: .."Wimp_S|
00000ad0  70 72 69 74 65 4f 70 22  2c 34 30 2c 31 2c 77 73  |priteOp",40,1,ws|
00000ae0  25 28 64 75 6d 6d 79 25  2c 31 29 2b 32 36 30 20  |%(dummy%,1)+260 |
00000af0  b8 20 2c 2c 2c 73 77 25  2c 73 68 25 0d 03 16 56  |. ,,,sw%,sh%...V|
00000b00  20 c8 99 22 57 69 6d 70  5f 53 70 72 69 74 65 4f  | .."Wimp_SpriteO|
00000b10  70 22 2c 35 32 2c 31 2c  77 73 25 28 64 75 6d 6d  |p",52,1,ws%(dumm|
00000b20  79 25 2c 31 29 2b 32 36  30 2c 78 25 2b 35 37 30  |y%,1)+260,x%+570|
00000b30  2d 73 77 25 2c 79 25 2b  34 30 36 2d 32 2a 73 68  |-sw%,y%+406-2*sh|
00000b40  25 2c 38 2c 66 61 63 74  73 25 2c 70 74 72 61 6e  |%,8,facts%,ptran|
00000b50  73 25 0d 03 20 27 20 c8  99 20 22 57 69 6d 70 5f  |s%.. ' .. "Wimp_|
00000b60  47 65 74 52 65 63 74 61  6e 67 6c 65 22 2c 2c 62  |GetRectangle",,b|
00000b70  25 20 b8 20 6d 6f 72 65  25 0d 03 2a 06 20 ce 0d  |% . more%..*. ..|
00000b80  03 34 05 e1 0d 03 3e 04  0d 03 48 16 dd 20 f2 5f  |.4....>...H.. ._|
00000b90  62 6f 78 28 78 25 2c 79  25 2c 73 77 25 29 0d 03  |box(x%,y%,sw%)..|
00000ba0  52 0c 20 e7 20 73 77 25  20 8c 0d 03 5c 3e 20 20  |R. . sw% ...\>  |
00000bb0  20 c8 99 22 57 69 6d 70  5f 53 70 72 69 74 65 4f  | .."Wimp_SpriteO|
00000bc0  70 22 2c 35 32 2c 31 2c  22 6f 70 74 6f 6e 22 2c  |p",52,1,"opton",|
00000bd0  78 25 2c 79 25 2c 30 2c  66 61 63 74 73 31 25 2c  |x%,y%,0,facts1%,|
00000be0  70 74 72 61 6e 73 31 25  0d 03 66 06 20 cc 0d 03  |ptrans1%..f. ...|
00000bf0  70 3f 20 20 20 c8 99 22  57 69 6d 70 5f 53 70 72  |p?   .."Wimp_Spr|
00000c00  69 74 65 4f 70 22 2c 35  32 2c 31 2c 22 6f 70 74  |iteOp",52,1,"opt|
00000c10  6f 66 66 22 2c 78 25 2c  79 25 2c 38 2c 66 61 63  |off",x%,y%,8,fac|
00000c20  74 73 32 25 2c 70 74 72  61 6e 73 32 25 0d 03 7a  |ts2%,ptrans2%..z|
00000c30  06 20 cd 0d 03 84 06 20  e1 0d 03 8e 04 0d 03 98  |. ..... ........|
00000c40  14 dd 20 f2 5f 4d 6f 75  73 65 5f 63 68 61 6e 67  |.. ._Mouse_chang|
00000c50  65 0d 03 a2 0f 20 c8 8e  20 62 25 21 31 32 20 ca  |e.... .. b%!12 .|
00000c60  0d 03 ac 18 20 20 c9 20  69 77 25 20 3a 20 f4 20  |....  . iw% : . |
00000c70  69 63 6f 6e 20 62 61 72  0d 03 b6 10 20 20 20 c8  |icon bar....   .|
00000c80  8e 20 62 25 21 38 20 ca  0d 03 c0 29 20 20 20 20  |. b%!8 ....)    |
00000c90  c9 20 31 20 3a f4 20 27  41 44 4a 55 53 54 27 3b  |. 1 :. 'ADJUST';|
00000ca0  20 64 6f 6e 74 20 64 6f  20 61 6e 79 74 68 69 6e  | dont do anythin|
00000cb0  67 0d 03 ca 14 20 20 20  20 20 e7 20 69 77 25 3c  |g....     . iw%<|
00000cc0  3e 2d 32 20 8c 0d 03 d4  14 20 20 20 20 20 20 67  |>-2 .....      g|
00000cd0  25 3d 62 25 2b 26 42 30  30 0d 03 de 31 20 20 20  |%=b%+&B00...1   |
00000ce0  20 20 20 62 25 21 30 3d  31 31 3a 62 25 21 34 3d  |   b%!0=11:b%!4=|
00000cf0  31 32 3a 62 25 21 38 3d  34 3a 62 25 21 31 32 3d  |12:b%!8=4:b%!12=|
00000d00  35 3a 62 25 21 31 36 3d  2d 31 0d 03 e8 27 20 20  |5:b%!16=-1...'  |
00000d10  20 20 20 20 c8 99 22 4f  53 5f 52 65 61 64 56 64  |    .."OS_ReadVd|
00000d20  75 56 61 72 69 61 62 6c  65 73 22 2c 62 25 2c 67  |uVariables",b%,g|
00000d30  25 0d 03 f2 40 20 20 20  20 20 20 53 57 25 3d 28  |%...@      SW%=(|
00000d40  31 3c 3c 28 67 25 21 38  29 29 2a 28 28 67 25 21  |1<<(g%!8))*((g%!|
00000d50  30 29 2b 31 29 3a 53 48  25 3d 28 31 3c 3c 28 67  |0)+1):SH%=(1<<(g|
00000d60  25 21 31 32 29 29 2a 28  28 67 25 21 34 29 2b 31  |%!12))*((g%!4)+1|
00000d70  29 0d 03 fc 2d 20 20 20  20 20 20 67 25 21 30 3d  |)...-      g%!0=|
00000d80  69 77 25 3a c8 99 22 57  69 6d 70 5f 47 65 74 57  |iw%:.."Wimp_GetW|
00000d90  69 6e 64 6f 77 49 6e 66  6f 22 2c 2c 67 25 0d 04  |indowInfo",,g%..|
00000da0  06 37 20 20 20 20 20 20  78 30 25 3d 67 25 21 34  |.7      x0%=g%!4|
00000db0  2d 32 3a 78 31 25 3d 67  25 21 31 32 2b 32 3a 79  |-2:x1%=g%!12+2:y|
00000dc0  30 25 3d 67 25 21 38 2d  32 3a 79 31 25 3d 67 25  |0%=g%!8-2:y1%=g%|
00000dd0  21 31 36 2b 32 0d 04 10  40 20 20 20 20 20 20 62  |!16+2...@      b|
00000de0  25 21 30 3d 69 77 25 3a  62 25 21 34 3d 35 3a 62  |%!0=iw%:b%!4=5:b|
00000df0  25 21 38 3d 78 30 25 3a  62 25 21 31 32 3d 79 30  |%!8=x0%:b%!12=y0|
00000e00  25 3a 62 25 21 31 36 3d  78 31 25 3a 62 25 21 32  |%:b%!16=x1%:b%!2|
00000e10  30 3d 79 31 25 0d 04 1a  2d 20 20 20 20 20 20 62  |0=y1%...-      b|
00000e20  25 21 32 34 3d 30 3a 62  25 21 32 38 3d 30 3a 62  |%!24=0:b%!28=0:b|
00000e30  25 21 33 32 3d 53 57 25  3a 62 25 21 33 36 3d 53  |%!32=SW%:b%!36=S|
00000e40  48 25 0d 04 24 2a 20 20  20 20 20 20 c8 99 22 57  |H%..$*      .."W|
00000e50  69 6d 70 5f 44 72 61 67  42 6f 78 22 2c 2c 62 25  |imp_DragBox",,b%|
00000e60  3a 64 72 61 67 67 69 6e  67 25 3d b9 0d 04 2e 0a  |:dragging%=.....|
00000e70  20 20 20 20 20 cd 0d 04  38 0d 20 20 20 20 c9 20  |     ...8.    . |
00000e80  32 20 3a 0d 04 42 13 20  20 20 20 20 e7 20 69 77  |2 :..B.     . iw|
00000e90  25 3d 2d 32 20 8c 0d 04  4c 40 20 20 20 20 20 20  |%=-2 ...L@      |
00000ea0  c8 99 20 22 57 69 6d 70  5f 43 72 65 61 74 65 4d  |.. "Wimp_CreateM|
00000eb0  65 6e 75 22 2c 30 2c 6d  65 6e 75 25 2c 21 62 25  |enu",0,menu%,!b%|
00000ec0  2d 6d 65 6e 75 25 21 31  36 2f 32 2d 32 34 2c 39  |-menu%!16/2-24,9|
00000ed0  36 2b 33 2a 34 34 0d 04  56 0a 20 20 20 20 20 cc  |6+3*44..V.     .|
00000ee0  0d 04 60 3d 20 20 20 20  20 20 c8 99 20 22 57 69  |..`=      .. "Wi|
00000ef0  6d 70 5f 43 72 65 61 74  65 4d 65 6e 75 22 2c 30  |mp_CreateMenu",0|
00000f00  2c 6d 65 6e 75 25 2c 21  62 25 2d 6d 65 6e 75 25  |,menu%,!b%-menu%|
00000f10  21 31 36 2f 32 2d 32 34  2c 62 25 21 34 0d 04 6a  |!16/2-24,b%!4..j|
00000f20  0a 20 20 20 20 20 cd 0d  04 74 31 20 20 20 20 c9  |.     ...t1    .|
00000f30  20 34 20 3a f2 5f 6e 65  77 5f 77 69 6e 64 6f 77  | 4 :._new_window|
00000f40  28 41 74 74 72 69 62 75  74 65 24 2b 22 2e 4e 65  |(Attribute$+".Ne|
00000f50  77 5f 66 69 6c 65 22 29  0d 04 7e 08 20 20 20 cb  |w_file")..~.   .|
00000f60  0d 04 88 25 20 20 7f 20  3a 20 f4 20 6d 75 73 74  |...%  . : . must|
00000f70  20 62 65 20 61 20 66 69  6c 65 2f 64 69 72 20 77  | be a file/dir w|
00000f80  69 6e 64 6f 77 0d 04 92  10 20 20 20 c8 8e 20 62  |indow....   .. b|
00000f90  25 21 38 20 ca 0d 04 9c  0d 20 20 20 20 c9 20 32  |%!8 .....    . 2|
00000fa0  20 3a 0d 04 a6 3c 20 20  20 20 20 c8 99 20 22 57  | :...<     .. "W|
00000fb0  69 6d 70 5f 43 72 65 61  74 65 4d 65 6e 75 22 2c  |imp_CreateMenu",|
00000fc0  30 2c 6d 65 6e 75 25 2c  21 62 25 2d 6d 65 6e 75  |0,menu%,!b%-menu|
00000fd0  25 21 31 36 2f 32 2d 32  34 2c 62 25 21 34 0d 04  |%!16/2-24,b%!4..|
00000fe0  b0 0d 20 20 20 20 c9 20  34 20 3a 0d 04 ba 24 20  |..    . 4 :...$ |
00000ff0  20 20 20 77 6e 25 3d a4  5f 70 6f 73 5f 66 72 6f  |   wn%=._pos_fro|
00001000  6d 5f 68 61 6e 64 6c 65  28 62 25 21 31 32 29 0d  |m_handle(b%!12).|
00001010  04 c4 13 20 20 20 20 e7  20 77 6e 25 3c 3e 2d 31  |...    . wn%<>-1|
00001020  20 8c 0d 04 ce 13 20 20  20 20 20 c8 8e 20 62 25  | .....     .. b%|
00001030  21 31 36 20 ca 0d 04 d8  26 20 20 20 20 20 20 c9  |!16 ....&      .|
00001040  20 30 20 20 3a 20 f4 20  50 75 62 6c 69 63 20 77  | 0  : . Public w|
00001050  72 69 74 65 20 61 63 63  65 73 73 0d 04 e2 26 20  |rite access...& |
00001060  20 20 20 20 20 20 20 74  6d 70 25 3d 28 77 73 25  |       tmp%=(ws%|
00001070  28 77 6e 25 2c 31 29 21  33 37 30 29 20 80 20 33  |(wn%,1)!370) . 3|
00001080  32 0d 04 ec 40 20 20 20  20 20 20 20 20 e7 20 20  |2...@        .  |
00001090  74 6d 70 25 3d 33 32 20  8c 20 77 73 25 28 77 6e  |tmp%=32 . ws%(wn|
000010a0  25 2c 31 29 21 33 37 30  2d 3d 33 32 20 8b 20 77  |%,1)!370-=32 . w|
000010b0  73 25 28 77 6e 25 2c 31  29 21 33 37 30 2b 3d 33  |s%(wn%,1)!370+=3|
000010c0  32 0d 04 f6 37 20 20 20  20 20 20 20 20 c8 99 22  |2...7        .."|
000010d0  57 69 6d 70 5f 46 6f 72  63 65 52 65 64 72 61 77  |Wimp_ForceRedraw|
000010e0  22 2c 77 73 25 28 77 6e  25 2c 30 29 2c 31 30 2c  |",ws%(wn%,0),10,|
000010f0  31 32 2c 34 30 2c 34 30  0d 05 00 25 20 20 20 20  |12,40,40...%    |
00001100  20 20 c9 20 31 20 20 3a  20 f4 20 50 75 62 6c 69  |  . 1  : . Publi|
00001110  63 20 72 65 61 64 20 61  63 63 65 73 73 0d 05 0a  |c read access...|
00001120  26 20 20 20 20 20 20 20  20 74 6d 70 25 3d 28 77  |&        tmp%=(w|
00001130  73 25 28 77 6e 25 2c 31  29 21 33 37 30 29 20 80  |s%(wn%,1)!370) .|
00001140  20 31 36 0d 05 14 40 20  20 20 20 20 20 20 20 e7  | 16...@        .|
00001150  20 20 74 6d 70 25 3d 31  36 20 8c 20 77 73 25 28  |  tmp%=16 . ws%(|
00001160  77 6e 25 2c 31 29 21 33  37 30 2d 3d 31 36 20 8b  |wn%,1)!370-=16 .|
00001170  20 77 73 25 28 77 6e 25  2c 31 29 21 33 37 30 2b  | ws%(wn%,1)!370+|
00001180  3d 31 36 0d 05 1e 37 20  20 20 20 20 20 20 20 c8  |=16...7        .|
00001190  99 22 57 69 6d 70 5f 46  6f 72 63 65 52 65 64 72  |."Wimp_ForceRedr|
000011a0  61 77 22 2c 77 73 25 28  77 6e 25 2c 30 29 2c 31  |aw",ws%(wn%,0),1|
000011b0  30 2c 36 30 2c 34 30 2c  38 38 0d 05 28 25 20 20  |0,60,40,88..(%  |
000011c0  20 20 20 20 c9 20 32 20  20 3a 20 f4 20 4f 77 6e  |    . 2  : . Own|
000011d0  65 72 20 77 72 69 74 65  20 61 63 63 65 73 73 0d  |er write access.|
000011e0  05 32 25 20 20 20 20 20  20 20 20 74 6d 70 25 3d  |.2%        tmp%=|
000011f0  28 77 73 25 28 77 6e 25  2c 31 29 21 33 37 30 29  |(ws%(wn%,1)!370)|
00001200  20 80 20 32 0d 05 3c 3d  20 20 20 20 20 20 20 20  | . 2..<=        |
00001210  e7 20 20 74 6d 70 25 3d  32 20 8c 20 77 73 25 28  |.  tmp%=2 . ws%(|
00001220  77 6e 25 2c 31 29 21 33  37 30 2d 3d 32 20 8b 20  |wn%,1)!370-=2 . |
00001230  77 73 25 28 77 6e 25 2c  31 29 21 33 37 30 2b 3d  |ws%(wn%,1)!370+=|
00001240  32 0d 05 46 39 20 20 20  20 20 20 20 20 c8 99 22  |2..F9        .."|
00001250  57 69 6d 70 5f 46 6f 72  63 65 52 65 64 72 61 77  |Wimp_ForceRedraw|
00001260  22 2c 77 73 25 28 77 6e  25 2c 30 29 2c 31 30 2c  |",ws%(wn%,0),10,|
00001270  31 30 38 2c 34 30 2c 31  33 36 0d 05 50 24 20 20  |108,40,136..P$  |
00001280  20 20 20 20 c9 20 33 20  20 3a 20 f4 20 4f 77 6e  |    . 3  : . Own|
00001290  65 72 20 72 65 61 64 20  61 63 63 65 73 73 0d 05  |er read access..|
000012a0  5a 25 20 20 20 20 20 20  20 20 74 6d 70 25 3d 28  |Z%        tmp%=(|
000012b0  77 73 25 28 77 6e 25 2c  31 29 21 33 37 30 29 20  |ws%(wn%,1)!370) |
000012c0  80 20 31 0d 05 64 3d 20  20 20 20 20 20 20 20 e7  |. 1..d=        .|
000012d0  20 20 74 6d 70 25 3d 31  20 8c 20 77 73 25 28 77  |  tmp%=1 . ws%(w|
000012e0  6e 25 2c 31 29 21 33 37  30 2d 3d 31 20 8b 20 77  |n%,1)!370-=1 . w|
000012f0  73 25 28 77 6e 25 2c 31  29 21 33 37 30 2b 3d 31  |s%(wn%,1)!370+=1|
00001300  0d 05 6e 39 20 20 20 20  20 20 20 20 c8 99 22 57  |..n9        .."W|
00001310  69 6d 70 5f 46 6f 72 63  65 52 65 64 72 61 77 22  |imp_ForceRedraw"|
00001320  2c 77 73 25 28 77 6e 25  2c 30 29 2c 31 30 2c 31  |,ws%(wn%,0),10,1|
00001330  35 36 2c 34 30 2c 31 38  34 0d 05 78 2a 20 20 20  |56,40,184..x*   |
00001340  20 20 20 c9 20 34 20 20  3a 20 f4 20 4c 6f 63 6b  |   . 4  : . Lock|
00001350  65 64 20 61 67 61 69 6e  73 74 20 64 65 6c 65 74  |ed against delet|
00001360  69 6f 6e 0d 05 82 25 20  20 20 20 20 20 20 20 74  |ion...%        t|
00001370  6d 70 25 3d 28 77 73 25  28 77 6e 25 2c 31 29 21  |mp%=(ws%(wn%,1)!|
00001380  33 37 30 29 20 80 20 38  0d 05 8c 3d 20 20 20 20  |370) . 8...=    |
00001390  20 20 20 20 e7 20 20 74  6d 70 25 3d 38 20 8c 20  |    .  tmp%=8 . |
000013a0  77 73 25 28 77 6e 25 2c  31 29 21 33 37 30 2d 3d  |ws%(wn%,1)!370-=|
000013b0  38 20 8b 20 77 73 25 28  77 6e 25 2c 31 29 21 33  |8 . ws%(wn%,1)!3|
000013c0  37 30 2b 3d 38 0d 05 96  39 20 20 20 20 20 20 20  |70+=8...9       |
000013d0  20 c8 99 22 57 69 6d 70  5f 46 6f 72 63 65 52 65  | .."Wimp_ForceRe|
000013e0  64 72 61 77 22 2c 77 73  25 28 77 6e 25 2c 30 29  |draw",ws%(wn%,0)|
000013f0  2c 31 30 2c 32 30 34 2c  34 30 2c 32 33 32 0d 05  |,10,204,40,232..|
00001400  a0 24 20 20 20 20 20 20  c9 20 36 20 20 3a 20 f4  |.$      . 6  : .|
00001410  20 55 70 64 61 74 65 20  61 74 74 72 69 62 75 74  | Update attribut|
00001420  65 73 0d 05 aa 27 20 20  20 20 20 20 20 20 f2 5f  |es...'        ._|
00001430  63 68 65 63 6b 5f 65 78  69 73 74 73 28 24 77 73  |check_exists($ws|
00001440  25 28 77 6e 25 2c 31 29  29 0d 05 b4 37 20 20 20  |%(wn%,1))...7   |
00001450  20 20 20 20 20 c8 99 20  22 4f 53 5f 46 69 6c 65  |     .. "OS_File|
00001460  22 2c 34 2c 77 73 25 28  77 6e 25 2c 31 29 2c 2c  |",4,ws%(wn%,1),,|
00001470  2c 2c 77 73 25 28 77 6e  25 2c 31 29 21 33 37 30  |,,ws%(wn%,1)!370|
00001480  0d 05 be 21 20 20 20 20  20 20 c9 20 39 20 20 3a  |...!      . 9  :|
00001490  20 f4 20 44 65 63 72 65  61 73 65 20 62 79 74 65  | . Decrease byte|
000014a0  73 0d 05 c8 25 20 20 20  20 20 20 20 20 e7 bb 28  |s...%        ..(|
000014b0  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 33 31 34  |$(ws%(wn%,1)+314|
000014c0  29 29 3e 30 20 8c 0d 05  d2 38 20 20 20 20 20 20  |))>0 ....8      |
000014d0  20 20 20 24 28 77 73 25  28 77 6e 25 2c 31 29 2b  |   $(ws%(wn%,1)+|
000014e0  33 31 34 29 3d c3 28 bb  28 24 28 77 73 25 28 77  |314)=.(.($(ws%(w|
000014f0  6e 25 2c 31 29 2b 33 31  34 29 29 2d 31 29 0d 05  |n%,1)+314))-1)..|
00001500  dc 28 20 20 20 20 20 20  20 20 20 f2 5f 72 65 64  |.(         ._red|
00001510  72 61 77 5f 69 63 6f 6e  28 77 73 25 28 77 6e 25  |raw_icon(ws%(wn%|
00001520  2c 30 29 2c 38 29 0d 05  e6 42 20 20 20 20 20 20  |,0),8)...B      |
00001530  20 20 20 e7 a8 28 bb 28  24 28 77 73 25 28 77 6e  |   ..(.($(ws%(wn|
00001540  25 2c 31 29 2b 33 31 34  29 29 2f 31 30 32 34 29  |%,1)+314))/1024)|
00001550  3c 3e bb 28 24 28 77 73  25 28 77 6e 25 2c 31 29  |<>.($(ws%(wn%,1)|
00001560  2b 33 30 32 29 29 20 8c  0d 05 f0 39 20 20 20 20  |+302)) ....9    |
00001570  20 20 20 20 20 20 24 28  77 73 25 28 77 6e 25 2c  |      $(ws%(wn%,|
00001580  31 29 2b 33 30 32 29 3d  c3 28 bb 28 24 28 77 73  |1)+302)=.(.($(ws|
00001590  25 28 77 6e 25 2c 31 29  2b 33 30 32 29 29 2d 31  |%(wn%,1)+302))-1|
000015a0  29 0d 05 fa 2a 20 20 20  20 20 20 20 20 20 20 f2  |)...*          .|
000015b0  5f 72 65 64 72 61 77 5f  69 63 6f 6e 28 77 73 25  |_redraw_icon(ws%|
000015c0  28 77 6e 25 2c 30 29 2c  31 32 29 0d 06 04 44 20  |(wn%,0),12)...D |
000015d0  20 20 20 20 20 20 20 20  20 20 e7 a8 28 bb 28 24  |          ..(.($|
000015e0  28 77 73 25 28 77 6e 25  2c 31 29 2b 33 30 32 29  |(ws%(wn%,1)+302)|
000015f0  29 2f 31 30 32 34 29 3c  3e bb 28 24 28 77 73 25  |)/1024)<>.($(ws%|
00001600  28 77 6e 25 2c 31 29 2b  32 39 30 29 29 20 8c 0d  |(wn%,1)+290)) ..|
00001610  06 0e 3b 20 20 20 20 20  20 20 20 20 20 20 20 24  |..;            $|
00001620  28 77 73 25 28 77 6e 25  2c 31 29 2b 32 39 30 29  |(ws%(wn%,1)+290)|
00001630  3d c3 28 bb 28 24 28 77  73 25 28 77 6e 25 2c 31  |=.(.($(ws%(wn%,1|
00001640  29 2b 32 39 30 29 29 2d  31 29 0d 06 18 2c 20 20  |)+290))-1)...,  |
00001650  20 20 20 20 20 20 20 20  20 20 f2 5f 72 65 64 72  |          ._redr|
00001660  61 77 5f 69 63 6f 6e 28  77 73 25 28 77 6e 25 2c  |aw_icon(ws%(wn%,|
00001670  30 29 2c 31 36 29 0d 06  22 10 20 20 20 20 20 20  |0),16)..".      |
00001680  20 20 20 20 20 cd 0d 06  2c 0e 20 20 20 20 20 20  |     ...,.      |
00001690  20 20 20 cd 0d 06 36 0d  20 20 20 20 20 20 20 20  |   ...6.        |
000016a0  cd 0d 06 40 21 20 20 20  20 20 20 c9 20 31 30 20  |...@!      . 10 |
000016b0  3a 20 f4 20 49 6e 63 72  65 61 73 65 20 62 79 74  |: . Increase byt|
000016c0  65 73 0d 06 4a 2d 20 20  20 20 20 20 20 20 e7 bb  |es..J-        ..|
000016d0  28 24 28 77 73 25 28 77  6e 25 2c 31 29 2b 33 31  |($(ws%(wn%,1)+31|
000016e0  34 29 29 3c 39 39 39 32  39 32 39 32 38 20 8c 0d  |4))<999292928 ..|
000016f0  06 54 38 20 20 20 20 20  20 20 20 20 24 28 77 73  |.T8         $(ws|
00001700  25 28 77 6e 25 2c 31 29  2b 33 31 34 29 3d c3 28  |%(wn%,1)+314)=.(|
00001710  bb 28 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |.($(ws%(wn%,1)+3|
00001720  31 34 29 29 2b 31 29 0d  06 5e 28 20 20 20 20 20  |14))+1)..^(     |
00001730  20 20 20 20 f2 5f 72 65  64 72 61 77 5f 69 63 6f  |    ._redraw_ico|
00001740  6e 28 77 73 25 28 77 6e  25 2c 30 29 2c 38 29 0d  |n(ws%(wn%,0),8).|
00001750  06 68 42 20 20 20 20 20  20 20 20 20 e7 a8 28 bb  |.hB         ..(.|
00001760  28 24 28 77 73 25 28 77  6e 25 2c 31 29 2b 33 31  |($(ws%(wn%,1)+31|
00001770  34 29 29 2f 31 30 32 34  29 3c 3e bb 28 24 28 77  |4))/1024)<>.($(w|
00001780  73 25 28 77 6e 25 2c 31  29 2b 33 30 32 29 29 20  |s%(wn%,1)+302)) |
00001790  8c 0d 06 72 39 20 20 20  20 20 20 20 20 20 20 24  |...r9          $|
000017a0  28 77 73 25 28 77 6e 25  2c 31 29 2b 33 30 32 29  |(ws%(wn%,1)+302)|
000017b0  3d c3 28 bb 28 24 28 77  73 25 28 77 6e 25 2c 31  |=.(.($(ws%(wn%,1|
000017c0  29 2b 33 30 32 29 29 2b  31 29 0d 06 7c 2a 20 20  |)+302))+1)..|*  |
000017d0  20 20 20 20 20 20 20 20  f2 5f 72 65 64 72 61 77  |        ._redraw|
000017e0  5f 69 63 6f 6e 28 77 73  25 28 77 6e 25 2c 30 29  |_icon(ws%(wn%,0)|
000017f0  2c 31 32 29 0d 06 86 44  20 20 20 20 20 20 20 20  |,12)...D        |
00001800  20 20 20 e7 a8 28 bb 28  24 28 77 73 25 28 77 6e  |   ..(.($(ws%(wn|
00001810  25 2c 31 29 2b 33 30 32  29 29 2f 31 30 32 34 29  |%,1)+302))/1024)|
00001820  3c 3e bb 28 24 28 77 73  25 28 77 6e 25 2c 31 29  |<>.($(ws%(wn%,1)|
00001830  2b 32 39 30 29 29 20 8c  0d 06 90 3b 20 20 20 20  |+290)) ....;    |
00001840  20 20 20 20 20 20 20 20  24 28 77 73 25 28 77 6e  |        $(ws%(wn|
00001850  25 2c 31 29 2b 32 39 30  29 3d c3 28 bb 28 24 28  |%,1)+290)=.(.($(|
00001860  77 73 25 28 77 6e 25 2c  31 29 2b 32 39 30 29 29  |ws%(wn%,1)+290))|
00001870  2b 31 29 0d 06 9a 2c 20  20 20 20 20 20 20 20 20  |+1)...,         |
00001880  20 20 20 f2 5f 72 65 64  72 61 77 5f 69 63 6f 6e  |   ._redraw_icon|
00001890  28 77 73 25 28 77 6e 25  2c 30 29 2c 31 36 29 0d  |(ws%(wn%,0),16).|
000018a0  06 a4 10 20 20 20 20 20  20 20 20 20 20 20 cd 0d  |...           ..|
000018b0  06 ae 0e 20 20 20 20 20  20 20 20 20 cd 0d 06 b8  |...         ....|
000018c0  0d 20 20 20 20 20 20 20  20 cd 0d 06 c2 22 20 20  |.        ...."  |
000018d0  20 20 20 20 c9 20 31 33  20 3a 20 f4 20 44 65 63  |    . 13 : . Dec|
000018e0  72 65 61 73 65 20 4b 62  79 74 65 73 0d 06 cc 26  |rease Kbytes...&|
000018f0  20 20 20 20 20 20 20 20  e7 20 bb 28 24 28 77 73  |        . .($(ws|
00001900  25 28 77 6e 25 2c 31 29  2b 33 30 32 29 29 3e 30  |%(wn%,1)+302))>0|
00001910  20 8c 0d 06 d6 38 20 20  20 20 20 20 20 20 20 24  | ....8         $|
00001920  28 77 73 25 28 77 6e 25  2c 31 29 2b 33 30 32 29  |(ws%(wn%,1)+302)|
00001930  3d c3 28 bb 28 24 28 77  73 25 28 77 6e 25 2c 31  |=.(.($(ws%(wn%,1|
00001940  29 2b 33 30 32 29 29 2d  31 29 0d 06 e0 29 20 20  |)+302))-1)...)  |
00001950  20 20 20 20 20 20 20 f2  5f 72 65 64 72 61 77 5f  |       ._redraw_|
00001960  69 63 6f 6e 28 77 73 25  28 77 6e 25 2c 30 29 2c  |icon(ws%(wn%,0),|
00001970  31 32 29 0d 06 ea 3b 20  20 20 20 20 20 20 20 20  |12)...;         |
00001980  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 33 31 34  |$(ws%(wn%,1)+314|
00001990  29 3d c3 28 bb 28 24 28  77 73 25 28 77 6e 25 2c  |)=.(.($(ws%(wn%,|
000019a0  31 29 2b 33 31 34 29 29  2d 31 30 32 34 29 0d 06  |1)+314))-1024)..|
000019b0  f4 28 20 20 20 20 20 20  20 20 20 f2 5f 72 65 64  |.(         ._red|
000019c0  72 61 77 5f 69 63 6f 6e  28 77 73 25 28 77 6e 25  |raw_icon(ws%(wn%|
000019d0  2c 30 29 2c 38 29 0d 06  fe 43 20 20 20 20 20 20  |,0),8)...C      |
000019e0  20 20 20 e7 20 a8 28 bb  28 24 28 77 73 25 28 77  |   . .(.($(ws%(w|
000019f0  6e 25 2c 31 29 2b 33 30  32 29 29 2f 31 30 32 34  |n%,1)+302))/1024|
00001a00  29 3c 3e bb 28 24 28 77  73 25 28 77 6e 25 2c 31  |)<>.($(ws%(wn%,1|
00001a10  29 2b 32 39 30 29 29 20  8c 0d 07 08 39 20 20 20  |)+290)) ....9   |
00001a20  20 20 20 20 20 20 20 24  28 77 73 25 28 77 6e 25  |       $(ws%(wn%|
00001a30  2c 31 29 2b 32 39 30 29  3d c3 28 bb 28 24 28 77  |,1)+290)=.(.($(w|
00001a40  73 25 28 77 6e 25 2c 31  29 2b 32 39 30 29 29 2d  |s%(wn%,1)+290))-|
00001a50  31 29 0d 07 12 2a 20 20  20 20 20 20 20 20 20 20  |1)...*          |
00001a60  f2 5f 72 65 64 72 61 77  5f 69 63 6f 6e 28 77 73  |._redraw_icon(ws|
00001a70  25 28 77 6e 25 2c 30 29  2c 31 36 29 0d 07 1c 0e  |%(wn%,0),16)....|
00001a80  20 20 20 20 20 20 20 20  20 cd 0d 07 26 0d 20 20  |         ...&.  |
00001a90  20 20 20 20 20 20 cd 0d  07 30 29 20 20 20 20 20  |      ...0)     |
00001aa0  20 c9 20 31 34 20 3a 20  f4 20 49 6e 63 72 65 61  | . 14 : . Increa|
00001ab0  73 65 20 4b 62 79 74 65  73 20 39 37 35 38 37 32  |se Kbytes 975872|
00001ac0  0d 07 3a 2b 20 20 20 20  20 20 20 20 e7 20 bb 28  |..:+        . .(|
00001ad0  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 33 30 32  |$(ws%(wn%,1)+302|
00001ae0  29 29 3c 39 37 35 38 37  32 20 8c 0d 07 44 38 20  |))<975872 ...D8 |
00001af0  20 20 20 20 20 20 20 20  24 28 77 73 25 28 77 6e  |        $(ws%(wn|
00001b00  25 2c 31 29 2b 33 30 32  29 3d c3 28 bb 28 24 28  |%,1)+302)=.(.($(|
00001b10  77 73 25 28 77 6e 25 2c  31 29 2b 33 30 32 29 29  |ws%(wn%,1)+302))|
00001b20  2b 31 29 0d 07 4e 29 20  20 20 20 20 20 20 20 20  |+1)..N)         |
00001b30  f2 5f 72 65 64 72 61 77  5f 69 63 6f 6e 28 77 73  |._redraw_icon(ws|
00001b40  25 28 77 6e 25 2c 30 29  2c 31 32 29 0d 07 58 3b  |%(wn%,0),12)..X;|
00001b50  20 20 20 20 20 20 20 20  20 24 28 77 73 25 28 77  |         $(ws%(w|
00001b60  6e 25 2c 31 29 2b 33 31  34 29 3d c3 28 bb 28 24  |n%,1)+314)=.(.($|
00001b70  28 77 73 25 28 77 6e 25  2c 31 29 2b 33 31 34 29  |(ws%(wn%,1)+314)|
00001b80  29 2b 31 30 32 34 29 0d  07 62 28 20 20 20 20 20  |)+1024)..b(     |
00001b90  20 20 20 20 f2 5f 72 65  64 72 61 77 5f 69 63 6f  |    ._redraw_ico|
00001ba0  6e 28 77 73 25 28 77 6e  25 2c 30 29 2c 38 29 0d  |n(ws%(wn%,0),8).|
00001bb0  07 6c 43 20 20 20 20 20  20 20 20 20 e7 20 a8 28  |.lC         . .(|
00001bc0  bb 28 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |.($(ws%(wn%,1)+3|
00001bd0  30 32 29 29 2f 31 30 32  34 29 3c 3e bb 28 24 28  |02))/1024)<>.($(|
00001be0  77 73 25 28 77 6e 25 2c  31 29 2b 32 39 30 29 29  |ws%(wn%,1)+290))|
00001bf0  20 8c 0d 07 76 39 20 20  20 20 20 20 20 20 20 20  | ...v9          |
00001c00  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 32 39 30  |$(ws%(wn%,1)+290|
00001c10  29 3d c3 28 bb 28 24 28  77 73 25 28 77 6e 25 2c  |)=.(.($(ws%(wn%,|
00001c20  31 29 2b 32 39 30 29 29  2b 31 29 0d 07 80 2a 20  |1)+290))+1)...* |
00001c30  20 20 20 20 20 20 20 20  20 f2 5f 72 65 64 72 61  |         ._redra|
00001c40  77 5f 69 63 6f 6e 28 77  73 25 28 77 6e 25 2c 30  |w_icon(ws%(wn%,0|
00001c50  29 2c 31 36 29 0d 07 8a  0e 20 20 20 20 20 20 20  |),16)....       |
00001c60  20 20 cd 0d 07 94 0d 20  20 20 20 20 20 20 20 cd  |  .....        .|
00001c70  0d 07 9e 22 20 20 20 20  20 20 c9 20 31 37 20 3a  |..."      . 17 :|
00001c80  20 f4 20 44 65 63 72 65  61 73 65 20 4d 62 79 74  | . Decrease Mbyt|
00001c90  65 73 0d 07 a8 26 20 20  20 20 20 20 20 20 e7 20  |es...&        . |
00001ca0  bb 28 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 32  |.($(ws%(wn%,1)+2|
00001cb0  39 30 29 29 3e 30 20 8c  0d 07 b2 38 20 20 20 20  |90))>0 ....8    |
00001cc0  20 20 20 20 20 24 28 77  73 25 28 77 6e 25 2c 31  |     $(ws%(wn%,1|
00001cd0  29 2b 32 39 30 29 3d c3  28 bb 28 24 28 77 73 25  |)+290)=.(.($(ws%|
00001ce0  28 77 6e 25 2c 31 29 2b  32 39 30 29 29 2d 31 29  |(wn%,1)+290))-1)|
00001cf0  0d 07 bc 29 20 20 20 20  20 20 20 20 20 f2 5f 72  |...)         ._r|
00001d00  65 64 72 61 77 5f 69 63  6f 6e 28 77 73 25 28 77  |edraw_icon(ws%(w|
00001d10  6e 25 2c 30 29 2c 31 36  29 0d 07 c6 3b 20 20 20  |n%,0),16)...;   |
00001d20  20 20 20 20 20 20 24 28  77 73 25 28 77 6e 25 2c  |      $(ws%(wn%,|
00001d30  31 29 2b 33 30 32 29 3d  c3 28 bb 28 24 28 77 73  |1)+302)=.(.($(ws|
00001d40  25 28 77 6e 25 2c 31 29  2b 33 30 32 29 29 2d 31  |%(wn%,1)+302))-1|
00001d50  30 32 34 29 0d 07 d0 29  20 20 20 20 20 20 20 20  |024)...)        |
00001d60  20 f2 5f 72 65 64 72 61  77 5f 69 63 6f 6e 28 77  | ._redraw_icon(w|
00001d70  73 25 28 77 6e 25 2c 30  29 2c 31 32 29 0d 07 da  |s%(wn%,0),12)...|
00001d80  40 20 20 20 20 20 20 20  20 20 24 28 77 73 25 28  |@         $(ws%(|
00001d90  77 6e 25 2c 31 29 2b 33  31 34 29 3d c3 28 bb 28  |wn%,1)+314)=.(.(|
00001da0  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 33 31 34  |$(ws%(wn%,1)+314|
00001db0  29 29 2d 31 30 32 34 2a  31 30 32 34 29 0d 07 e4  |))-1024*1024)...|
00001dc0  28 20 20 20 20 20 20 20  20 20 f2 5f 72 65 64 72  |(         ._redr|
00001dd0  61 77 5f 69 63 6f 6e 28  77 73 25 28 77 6e 25 2c  |aw_icon(ws%(wn%,|
00001de0  30 29 2c 38 29 0d 07 ee  0d 20 20 20 20 20 20 20  |0),8)....       |
00001df0  20 cd 0d 07 f8 26 20 20  20 20 20 20 c9 20 31 38  | ....&      . 18|
00001e00  20 3a 20 f4 20 49 6e 63  72 65 61 73 65 20 4d 62  | : . Increase Mb|
00001e10  79 74 65 73 20 39 35 33  0d 08 02 28 20 20 20 20  |ytes 953...(    |
00001e20  20 20 20 20 e7 20 bb 28  24 28 77 73 25 28 77 6e  |    . .($(ws%(wn|
00001e30  25 2c 31 29 2b 32 39 30  29 29 3c 39 35 33 20 8c  |%,1)+290))<953 .|
00001e40  0d 08 0c 38 20 20 20 20  20 20 20 20 20 24 28 77  |...8         $(w|
00001e50  73 25 28 77 6e 25 2c 31  29 2b 32 39 30 29 3d c3  |s%(wn%,1)+290)=.|
00001e60  28 bb 28 24 28 77 73 25  28 77 6e 25 2c 31 29 2b  |(.($(ws%(wn%,1)+|
00001e70  32 39 30 29 29 2b 31 29  0d 08 16 29 20 20 20 20  |290))+1)...)    |
00001e80  20 20 20 20 20 f2 5f 72  65 64 72 61 77 5f 69 63  |     ._redraw_ic|
00001e90  6f 6e 28 77 73 25 28 77  6e 25 2c 30 29 2c 31 36  |on(ws%(wn%,0),16|
00001ea0  29 0d 08 20 3b 20 20 20  20 20 20 20 20 20 24 28  |).. ;         $(|
00001eb0  77 73 25 28 77 6e 25 2c  31 29 2b 33 30 32 29 3d  |ws%(wn%,1)+302)=|
00001ec0  c3 28 bb 28 24 28 77 73  25 28 77 6e 25 2c 31 29  |.(.($(ws%(wn%,1)|
00001ed0  2b 33 30 32 29 29 2b 31  30 32 34 29 0d 08 2a 29  |+302))+1024)..*)|
00001ee0  20 20 20 20 20 20 20 20  20 f2 5f 72 65 64 72 61  |         ._redra|
00001ef0  77 5f 69 63 6f 6e 28 77  73 25 28 77 6e 25 2c 30  |w_icon(ws%(wn%,0|
00001f00  29 2c 31 32 29 0d 08 34  40 20 20 20 20 20 20 20  |),12)..4@       |
00001f10  20 20 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |  $(ws%(wn%,1)+3|
00001f20  31 34 29 3d c3 28 bb 28  24 28 77 73 25 28 77 6e  |14)=.(.($(ws%(wn|
00001f30  25 2c 31 29 2b 33 31 34  29 29 2b 31 30 32 34 2a  |%,1)+314))+1024*|
00001f40  31 30 32 34 29 0d 08 3e  28 20 20 20 20 20 20 20  |1024)..>(       |
00001f50  20 20 f2 5f 72 65 64 72  61 77 5f 69 63 6f 6e 28  |  ._redraw_icon(|
00001f60  77 73 25 28 77 6e 25 2c  30 29 2c 38 29 0d 08 48  |ws%(wn%,0),8)..H|
00001f70  0d 20 20 20 20 20 20 20  20 cd 0d 08 52 23 20 20  |.        ...R#  |
00001f80  20 20 20 20 c9 20 32 30  20 3a 20 f4 20 55 70 64  |    . 20 : . Upd|
00001f90  61 74 65 20 66 69 6c 65  20 73 69 7a 65 0d 08 5c  |ate file size..\|
00001fa0  27 20 20 20 20 20 20 20  20 f2 5f 63 68 65 63 6b  |'        ._check|
00001fb0  5f 65 78 69 73 74 73 28  24 77 73 25 28 77 6e 25  |_exists($ws%(wn%|
00001fc0  2c 31 29 29 0d 08 66 31  20 20 20 20 20 20 20 20  |,1))..f1        |
00001fd0  f2 5f 72 65 61 64 5f 66  69 6c 65 5f 61 74 74 72  |._read_file_attr|
00001fe0  69 62 75 74 65 73 28 24  28 77 73 25 28 77 6e 25  |ibutes($(ws%(wn%|
00001ff0  2c 31 29 29 29 0d 08 70  29 20 20 20 20 20 20 20  |,1)))..p)       |
00002000  20 ff 22 41 43 43 45 53  53 20 22 2b 24 28 77 73  | ."ACCESS "+$(ws|
00002010  25 28 77 6e 25 2c 31 29  29 2b 22 20 57 22 0d 08  |%(wn%,1))+" W"..|
00002020  7a 47 20 20 20 20 20 20  20 20 c8 99 22 4f 53 5f  |zG        .."OS_|
00002030  46 69 6c 65 22 2c 37 2c  77 73 25 28 77 6e 25 2c  |File",7,ws%(wn%,|
00002040  31 29 2c 6c 6f 61 64 25  2c 65 78 65 63 25 2c 30  |1),load%,exec%,0|
00002050  2c bb 28 24 28 77 73 25  28 77 6e 25 2c 31 29 2b  |,.($(ws%(wn%,1)+|
00002060  33 31 34 29 29 0d 08 84  37 20 20 20 20 20 20 20  |314))...7       |
00002070  20 c8 99 20 22 4f 53 5f  46 69 6c 65 22 2c 34 2c  | .. "OS_File",4,|
00002080  77 73 25 28 77 6e 25 2c  31 29 2c 2c 2c 2c 77 73  |ws%(wn%,1),,,,ws|
00002090  25 28 77 6e 25 2c 31 29  21 33 37 30 0d 08 8e 1f  |%(wn%,1)!370....|
000020a0  20 20 20 20 20 20 c9 20  32 32 20 3a 20 f4 20 4c  |      . 22 : . L|
000020b0  6f 61 64 20 61 64 64 72  65 73 73 0d 08 98 1d 20  |oad address.... |
000020c0  20 20 20 20 20 20 20 2a  7c 20 4e 6f 6e 2d 73 65  |       *| Non-se|
000020d0  6c 65 63 74 61 62 6c 65  0d 08 a2 26 20 20 20 20  |lectable...&    |
000020e0  20 20 c9 20 32 33 20 3a  20 f4 20 55 70 64 61 74  |  . 23 : . Updat|
000020f0  65 20 6c 6f 61 64 20 61  64 64 72 65 73 73 0d 08  |e load address..|
00002100  ac 26 20 20 20 20 20 20  20 f2 5f 63 68 65 63 6b  |.&       ._check|
00002110  5f 65 78 69 73 74 73 28  24 77 73 25 28 77 6e 25  |_exists($ws%(wn%|
00002120  2c 31 29 29 0d 08 b6 2e  20 20 20 20 20 20 20 c8  |,1))....       .|
00002130  99 22 4f 53 5f 46 69 6c  65 22 2c 35 2c 77 73 25  |."OS_File",5,ws%|
00002140  28 77 6e 25 2c 31 29 20  b8 20 2c 2c 2c 65 78 65  |(wn%,1) . ,,,exe|
00002150  63 25 0d 08 c0 3b 20 20  20 20 20 20 20 74 6d 70  |c%...;       tmp|
00002160  24 3d 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |$=$(ws%(wn%,1)+3|
00002170  32 36 29 3a 74 6d 70 24  3d c4 38 2d a9 28 74 6d  |26):tmp$=.8-.(tm|
00002180  70 24 29 2c 22 30 22 29  2b 74 6d 70 24 0d 08 ca  |p$),"0")+tmp$...|
00002190  1d 20 20 20 20 20 20 20  e7 20 77 73 25 28 77 6e  |.       . ws%(wn|
000021a0  25 2c 31 29 21 33 37 38  20 8c 0d 08 d4 20 20 20  |%,1)!378 ....   |
000021b0  20 20 20 20 20 20 20 e7  20 c0 74 6d 70 24 2c 33  |       . .tmp$,3|
000021c0  29 3c 3e 22 46 46 46 22  20 8c 0d 08 de 90 20 20  |)<>"FFF" .....  |
000021d0  20 20 20 20 20 20 20 20  e7 20 a4 5f 72 65 70 6f  |        . ._repo|
000021e0  72 74 5f 65 72 72 6f 72  28 22 55 70 64 61 74 65  |rt_error("Update|
000021f0  69 6e 67 20 77 69 74 68  20 74 68 69 73 20 6c 6f  |ing with this lo|
00002200  61 64 20 61 64 64 72 65  73 73 20 77 69 6c 6c 20  |ad address will |
00002210  64 65 73 74 72 6f 79 20  74 68 65 20 64 61 74 65  |destroy the date|
00002220  20 73 74 61 6d 70 20 61  6e 64 20 66 69 6c 65 20  | stamp and file |
00002230  74 79 70 65 2e 22 2c 32  33 2c 22 57 61 72 6e 69  |type.",23,"Warni|
00002240  6e 67 22 29 20 f2 5f 75  70 64 61 74 65 5f 6c 6f  |ng") ._update_lo|
00002250  61 64 5f 61 64 64 72 65  73 73 0d 08 e8 0e 20 20  |ad_address....  |
00002260  20 20 20 20 20 20 20 cc  0d 08 f2 23 20 20 20 20  |       ....#    |
00002270  20 20 20 20 20 20 f2 5f  75 70 64 61 74 65 5f 6c  |      ._update_l|
00002280  6f 61 64 5f 61 64 64 72  65 73 73 0d 08 fc 0e 20  |oad_address.... |
00002290  20 20 20 20 20 20 20 20  cd 0d 09 06 0c 20 20 20  |        .....   |
000022a0  20 20 20 20 cc 0d 09 10  1f 20 20 20 20 20 20 20  |    .....       |
000022b0  20 20 e7 20 c0 74 6d 70  24 2c 33 29 3d 22 46 46  |  . .tmp$,3)="FF|
000022c0  46 22 20 8c 0d 09 1a 8d  20 20 20 20 20 20 20 20  |F" .....        |
000022d0  20 20 e7 20 a4 5f 72 65  70 6f 72 74 5f 65 72 72  |  . ._report_err|
000022e0  6f 72 28 22 55 70 64 61  74 65 69 6e 67 20 77 69  |or("Updateing wi|
000022f0  74 68 20 74 68 69 73 20  6c 6f 61 64 20 61 64 64  |th this load add|
00002300  72 65 73 73 20 77 69 6c  6c 20 63 72 65 61 74 65  |ress will create|
00002310  20 61 20 64 61 74 65 20  73 74 61 6d 70 20 61 6e  | a date stamp an|
00002320  64 20 66 69 6c 65 20 74  79 70 65 2e 22 2c 32 33  |d file type.",23|
00002330  2c 22 57 61 72 6e 69 6e  67 22 29 20 f2 5f 75 70  |,"Warning") ._up|
00002340  64 61 74 65 5f 6c 6f 61  64 5f 61 64 64 72 65 73  |date_load_addres|
00002350  73 0d 09 24 0e 20 20 20  20 20 20 20 20 20 cc 0d  |s..$.         ..|
00002360  09 2e 23 20 20 20 20 20  20 20 20 20 20 f2 5f 75  |..#          ._u|
00002370  70 64 61 74 65 5f 6c 6f  61 64 5f 61 64 64 72 65  |pdate_load_addre|
00002380  73 73 0d 09 38 0e 20 20  20 20 20 20 20 20 20 cd  |ss..8.         .|
00002390  0d 09 42 0c 20 20 20 20  20 20 20 cd 0d 09 4c 24  |..B.       ...L$|
000023a0  20 20 20 20 20 20 c9 20  32 35 20 3a 20 f4 20 45  |      . 25 : . E|
000023b0  78 65 63 75 74 69 6f 6e  20 61 64 64 72 65 73 73  |xecution address|
000023c0  0d 09 56 1d 20 20 20 20  20 20 20 20 2a 7c 20 4e  |..V.        *| N|
000023d0  6f 6e 5f 73 65 6c 65 63  74 61 62 6c 65 0d 09 60  |on_selectable..`|
000023e0  2b 20 20 20 20 20 20 c9  20 32 36 20 3a 20 f4 20  |+      . 26 : . |
000023f0  55 70 64 61 74 65 20 65  78 65 63 75 74 69 6f 6e  |Update execution|
00002400  20 61 64 64 72 65 73 73  0d 09 6a 3c 20 20 20 20  | address..j<    |
00002410  20 20 20 f2 5f 63 68 65  63 6b 5f 65 78 69 73 74  |   ._check_exist|
00002420  73 28 24 77 73 25 28 77  6e 25 2c 31 29 29 3a f2  |s($ws%(wn%,1)):.|
00002430  5f 75 70 64 61 74 65 5f  65 78 65 63 5f 61 64 64  |_update_exec_add|
00002440  72 65 73 73 0d 09 74 25  20 20 20 20 20 20 c9 20  |ress..t%      . |
00002450  32 39 20 3a 20 f4 20 52  65 2d 73 74 61 6d 70 20  |29 : . Re-stamp |
00002460  66 69 6c 65 20 64 61 74  65 0d 09 7e 1d 20 20 20  |file date..~.   |
00002470  20 20 20 20 e7 20 77 73  25 28 77 6e 25 2c 31 29  |    . ws%(wn%,1)|
00002480  21 33 37 38 20 8c 0d 09  88 16 20 20 20 20 20 20  |!378 .....      |
00002490  20 20 20 f2 5f 72 65 73  74 61 6d 70 0d 09 92 0c  |   ._restamp....|
000024a0  20 20 20 20 20 20 20 cc  0d 09 9c 71 20 20 20 20  |       ....q    |
000024b0  20 20 20 20 20 e7 20 a4  5f 72 65 70 6f 72 74 5f  |     . ._report_|
000024c0  65 72 72 6f 72 28 22 57  72 69 74 69 6e 67 20 61  |error("Writing a|
000024d0  20 64 61 74 65 20 73 74  61 6d 70 20 77 69 6c 6c  | date stamp will|
000024e0  20 65 72 61 73 65 20 4c  6f 61 64 2f 45 78 65 63  | erase Load/Exec|
000024f0  75 74 65 20 61 64 64 72  65 73 73 65 73 2e 22 2c  |ute addresses.",|
00002500  32 33 2c 22 57 61 72 6e  69 6e 67 22 29 20 8c 20  |23,"Warning") . |
00002510  f2 5f 72 65 73 74 61 6d  70 0d 09 a6 0c 20 20 20  |._restamp....   |
00002520  20 20 20 20 cd 0d 09 b0  29 20 20 20 20 20 20 c9  |    ....)      .|
00002530  20 33 31 20 3a 20 f4 20  43 6c 69 63 6b 20 6c 65  | 31 : . Click le|
00002540  66 74 20 6f 6e 20 66 69  6c 65 6e 61 6d 65 0d 09  |ft on filename..|
00002550  ba 20 20 20 20 20 20 20  20 20 e7 20 77 73 25 28  |.         . ws%(|
00002560  77 6e 25 2c 31 29 3f 32  35 39 3e 30 20 8c 0d 09  |wn%,1)?259>0 ...|
00002570  c4 42 20 20 20 20 20 20  20 20 20 77 73 25 28 77  |.B         ws%(w|
00002580  6e 25 2c 31 29 3f 32 35  39 2d 3d 31 3a 62 25 21  |n%,1)?259-=1:b%!|
00002590  30 3d 77 73 25 28 77 6e  25 2c 30 29 3a 62 25 21  |0=ws%(wn%,0):b%!|
000025a0  34 3d 77 73 25 28 77 6e  25 2c 31 29 21 33 37 34  |4=ws%(wn%,1)!374|
000025b0  0d 09 ce 48 20 20 20 20  20 20 20 20 20 c8 99 22  |...H         .."|
000025c0  57 69 6d 70 5f 47 65 74  49 63 6f 6e 53 74 61 74  |Wimp_GetIconStat|
000025d0  65 22 2c 2c 62 25 3a c8  99 22 57 69 6d 70 5f 44  |e",,b%:.."Wimp_D|
000025e0  65 6c 65 74 65 49 63 6f  6e 22 2c 2c 62 25 3a 62  |eleteIcon",,b%:b|
000025f0  25 21 34 3d 62 25 21 30  0d 09 d8 40 20 20 20 20  |%!4=b%!0...@    |
00002600  20 20 20 20 20 62 25 21  32 38 2d 3d 31 3a c8 99  |     b%!28-=1:..|
00002610  22 57 69 6d 70 5f 43 72  65 61 74 65 49 63 6f 6e  |"Wimp_CreateIcon|
00002620  22 2c 2c 62 25 2b 34 20  b8 20 77 73 25 28 77 6e  |",,b%+4 . ws%(wn|
00002630  25 2c 31 29 21 33 37 34  0d 09 e2 35 20 20 20 20  |%,1)!374...5    |
00002640  20 20 20 20 20 f2 5f 72  65 64 72 61 77 5f 69 63  |     ._redraw_ic|
00002650  6f 6e 28 77 73 25 28 77  6e 25 2c 30 29 2c 77 73  |on(ws%(wn%,0),ws|
00002660  25 28 77 6e 25 2c 31 29  21 33 37 34 29 0d 09 ec  |%(wn%,1)!374)...|
00002670  0d 20 20 20 20 20 20 20  20 cd 0d 09 f6 2a 20 20  |.        ....*  |
00002680  20 20 20 20 c9 20 33 33  20 3a 20 f4 20 43 6c 69  |    . 33 : . Cli|
00002690  63 6b 20 72 69 67 68 74  20 6f 6e 20 66 69 6c 65  |ck right on file|
000026a0  6e 61 6d 65 0d 0a 00 32  20 20 20 20 20 20 20 20  |name...2        |
000026b0  e7 20 a9 28 24 28 77 73  25 28 77 6e 25 2c 31 29  |. .($(ws%(wn%,1)|
000026c0  2b 77 73 25 28 77 6e 25  2c 31 29 3f 32 35 39 29  |+ws%(wn%,1)?259)|
000026d0  29 3e 32 39 20 8c 0d 0a  0a 42 20 20 20 20 20 20  |)>29 ....B      |
000026e0  20 20 20 77 73 25 28 77  6e 25 2c 31 29 3f 32 35  |   ws%(wn%,1)?25|
000026f0  39 2b 3d 31 3a 62 25 21  30 3d 77 73 25 28 77 6e  |9+=1:b%!0=ws%(wn|
00002700  25 2c 30 29 3a 62 25 21  34 3d 77 73 25 28 77 6e  |%,0):b%!4=ws%(wn|
00002710  25 2c 31 29 21 33 37 34  0d 0a 14 48 20 20 20 20  |%,1)!374...H    |
00002720  20 20 20 20 20 c8 99 22  57 69 6d 70 5f 47 65 74  |     .."Wimp_Get|
00002730  49 63 6f 6e 53 74 61 74  65 22 2c 2c 62 25 3a c8  |IconState",,b%:.|
00002740  99 22 57 69 6d 70 5f 44  65 6c 65 74 65 49 63 6f  |."Wimp_DeleteIco|
00002750  6e 22 2c 2c 62 25 3a 62  25 21 34 3d 62 25 21 30  |n",,b%:b%!4=b%!0|
00002760  0d 0a 1e 40 20 20 20 20  20 20 20 20 20 62 25 21  |...@         b%!|
00002770  32 38 2b 3d 31 3a c8 99  22 57 69 6d 70 5f 43 72  |28+=1:.."Wimp_Cr|
00002780  65 61 74 65 49 63 6f 6e  22 2c 2c 62 25 2b 34 20  |eateIcon",,b%+4 |
00002790  b8 20 77 73 25 28 77 6e  25 2c 31 29 21 33 37 34  |. ws%(wn%,1)!374|
000027a0  0d 0a 28 35 20 20 20 20  20 20 20 20 20 f2 5f 72  |..(5         ._r|
000027b0  65 64 72 61 77 5f 69 63  6f 6e 28 77 73 25 28 77  |edraw_icon(ws%(w|
000027c0  6e 25 2c 30 29 2c 77 73  25 28 77 6e 25 2c 31 29  |n%,0),ws%(wn%,1)|
000027d0  21 33 37 34 29 0d 0a 32  0d 20 20 20 20 20 20 20  |!374)..2.       |
000027e0  20 cd 0d 0a 3c 23 20 20  20 20 20 20 c9 20 33 35  | ...<#      . 35|
000027f0  20 3a 20 f4 20 46 69 6c  65 20 74 79 70 65 20 6e  | : . File type n|
00002800  75 6d 62 65 72 0d 0a 46  1d 20 20 20 20 20 20 20  |umber..F.       |
00002810  20 2a 7c 20 4e 6f 6e 2d  73 65 6c 65 63 74 61 62  | *| Non-selectab|
00002820  6c 65 0d 0a 50 23 20 20  20 20 20 20 c9 20 33 37  |le..P#      . 37|
00002830  20 3a 20 f4 20 55 70 64  61 74 65 20 66 69 6c 65  | : . Update file|
00002840  20 74 79 70 65 0d 0a 5a  21 20 20 20 20 20 20 20  | type..Z!       |
00002850  20 f2 5f 6e 65 77 5f 66  69 6c 65 74 79 70 65 5f  | ._new_filetype_|
00002860  6e 75 6d 62 65 72 0d 0a  64 1e 20 20 20 20 20 20  |number..d.      |
00002870  20 20 e7 20 77 73 25 28  77 6e 25 2c 31 29 21 33  |  . ws%(wn%,1)!3|
00002880  37 38 20 8c 0d 0a 6e 1f  20 20 20 20 20 20 20 20  |78 ...n.        |
00002890  20 f2 5f 75 70 64 61 74  65 5f 66 69 6c 65 5f 74  | ._update_file_t|
000028a0  79 70 65 0d 0a 78 0d 20  20 20 20 20 20 20 20 cc  |ype..x.        .|
000028b0  0d 0a 82 79 20 20 20 20  20 20 20 20 20 e7 20 a4  |...y         . .|
000028c0  5f 72 65 70 6f 72 74 5f  65 72 72 6f 72 28 22 57  |_report_error("W|
000028d0  72 69 74 69 6e 67 20 61  20 66 69 6c 65 20 74 79  |riting a file ty|
000028e0  70 65 20 77 69 6c 6c 20  65 72 61 73 65 20 4c 6f  |pe will erase Lo|
000028f0  61 64 2f 45 78 65 63 75  74 65 20 61 64 64 72 65  |ad/Execute addre|
00002900  73 73 65 73 2e 22 2c 32  33 2c 22 57 61 72 6e 69  |sses.",23,"Warni|
00002910  6e 67 22 29 20 8c 20 f2  5f 75 70 64 61 74 65 5f  |ng") . ._update_|
00002920  66 69 6c 65 5f 74 79 70  65 0d 0a 8c 0d 20 20 20  |file_type....   |
00002930  20 20 20 20 20 cd 0d 0a  96 20 20 20 20 20 20 20  |     ....       |
00002940  c9 20 33 38 20 3a 20 f4  20 49 63 6f 6e 20 73 65  |. 38 : . Icon se|
00002950  6c 65 63 74 65 64 0d 0a  a0 3e 20 20 20 20 20 20  |lected...>      |
00002960  20 20 67 25 3d 62 25 2b  26 42 30 30 3a 62 25 21  |  g%=b%+&B00:b%!|
00002970  30 3d 31 31 3a 62 25 21  34 3d 31 32 3a 62 25 21  |0=11:b%!4=12:b%!|
00002980  38 3d 34 3a 62 25 21 31  32 3d 35 3a 62 25 21 31  |8=4:b%!12=5:b%!1|
00002990  36 3d 2d 31 0d 0a aa 44  20 20 20 20 20 20 20 20  |6=-1...D        |
000029a0  c8 99 22 4f 53 5f 52 65  61 64 56 64 75 56 61 72  |.."OS_ReadVduVar|
000029b0  69 61 62 6c 65 73 22 2c  62 25 2c 67 25 3a 53 57  |iables",b%,g%:SW|
000029c0  25 3d 28 31 3c 3c 28 67  25 21 38 29 29 2a 28 28  |%=(1<<(g%!8))*((|
000029d0  67 25 21 30 29 2b 31 29  0d 0a b4 37 20 20 20 20  |g%!0)+1)...7    |
000029e0  20 20 20 20 53 48 25 3d  28 31 3c 3c 28 67 25 21  |    SH%=(1<<(g%!|
000029f0  31 32 29 29 2a 28 28 67  25 21 34 29 2b 31 29 3a  |12))*((g%!4)+1):|
00002a00  67 25 21 30 3d 77 73 25  28 77 6e 25 2c 30 29 0d  |g%!0=ws%(wn%,0).|
00002a10  0a be 3e 20 20 20 20 20  20 20 20 c8 99 22 57 69  |..>        .."Wi|
00002a20  6d 70 5f 47 65 74 57 69  6e 64 6f 77 49 6e 66 6f  |mp_GetWindowInfo|
00002a30  22 2c 2c 67 25 3a 62 25  21 30 3d 77 73 25 28 77  |",,g%:b%!0=ws%(w|
00002a40  6e 25 2c 30 29 3a 62 25  21 34 3d 33 38 0d 0a c8  |n%,0):b%!4=38...|
00002a50  39 20 20 20 20 20 20 20  20 c8 99 22 57 69 6d 70  |9        .."Wimp|
00002a60  5f 47 65 74 49 63 6f 6e  53 74 61 74 65 22 2c 2c  |_GetIconState",,|
00002a70  62 25 3a 78 30 25 3d 67  25 21 34 2b 62 25 21 38  |b%:x0%=g%!4+b%!8|
00002a80  2d 67 25 21 32 30 0d 0a  d2 36 20 20 20 20 20 20  |-g%!20...6      |
00002a90  20 20 78 31 25 3d 67 25  21 34 2b 62 25 21 31 36  |  x1%=g%!4+b%!16|
00002aa0  2d 67 25 21 32 30 3a 79  30 25 3d 67 25 21 31 36  |-g%!20:y0%=g%!16|
00002ab0  2b 62 25 21 31 32 2d 67  25 21 32 34 0d 0a dc 3a  |+b%!12-g%!24...:|
00002ac0  20 20 20 20 20 20 20 20  79 31 25 3d 67 25 21 31  |        y1%=g%!1|
00002ad0  36 2b 62 25 21 32 30 2d  67 25 21 32 34 3a 62 25  |6+b%!20-g%!24:b%|
00002ae0  21 30 3d 73 77 25 3a 62  25 21 34 3d 35 3a 62 25  |!0=sw%:b%!4=5:b%|
00002af0  21 38 3d 78 30 25 0d 0a  e6 43 20 20 20 20 20 20  |!8=x0%...C      |
00002b00  20 20 62 25 21 31 32 3d  79 30 25 3a 62 25 21 31  |  b%!12=y0%:b%!1|
00002b10  36 3d 78 31 25 3a 62 25  21 32 30 3d 79 31 25 3a  |6=x1%:b%!20=y1%:|
00002b20  62 25 21 32 34 3d 30 3a  62 25 21 32 38 3d 30 3a  |b%!24=0:b%!28=0:|
00002b30  62 25 21 33 32 3d 53 57  25 0d 0a f0 40 20 20 20  |b%!32=SW%...@   |
00002b40  20 20 20 20 20 62 25 21  33 36 3d 53 48 25 3a c8  |     b%!36=SH%:.|
00002b50  99 22 57 69 6d 70 5f 44  72 61 67 42 6f 78 22 2c  |."Wimp_DragBox",|
00002b60  2c 62 25 3a 64 72 61 67  67 69 6e 67 25 3d b9 3a  |,b%:dragging%=.:|
00002b70  73 61 76 69 6e 67 25 3d  b9 0d 0a fa 0a 20 20 20  |saving%=.....   |
00002b80  20 20 cb 0d 0b 04 09 20  20 20 20 cd 0d 0b 0e 08  |  .....    .....|
00002b90  20 20 20 cb 0d 0b 18 06  20 cb 0d 0b 22 06 20 e1  |   ..... ...". .|
00002ba0  0d 0b 2c 04 0d 0b 36 0e  dd 20 f2 5f 72 65 64 72  |..,...6.. ._redr|
00002bb0  61 77 0d 0b 40 20 79 25  3d 62 25 21 31 36 2d 62  |aw..@ y%=b%!16-b|
00002bc0  25 21 32 34 3a 78 25 3d  62 25 21 34 2d 62 25 21  |%!24:x%=b%!4-b%!|
00002bd0  32 30 0d 0b 4a 0c c8 95  20 6d 6f 72 65 25 0d 0b  |20..J... more%..|
00002be0  54 27 20 c8 99 20 22 57  69 6d 70 5f 47 65 74 52  |T' .. "Wimp_GetR|
00002bf0  65 63 74 61 6e 67 6c 65  22 2c 2c 62 25 20 b8 20  |ectangle",,b% . |
00002c00  6d 6f 72 65 25 0d 0b 5e  06 20 ce 0d 0b 68 05 e1  |more%..^. ...h..|
00002c10  0d 0b 72 04 0d 0b 7c 13  dd 20 f2 5f 6b 65 79 5f  |..r...|.. ._key_|
00002c20  70 72 65 73 73 65 64 0d  0b 86 20 20 77 6e 25 3d  |pressed...  wn%=|
00002c30  a4 5f 70 6f 73 5f 66 72  6f 6d 5f 68 61 6e 64 6c  |._pos_from_handl|
00002c40  65 28 62 25 21 30 29 0d  0b 90 10 20 e7 20 77 6e  |e(b%!0).... . wn|
00002c50  25 3c 3e 2d 31 20 8c 0d  0b 9a 12 20 20 e7 20 62  |%<>-1 .....  . b|
00002c60  25 21 32 34 3d 31 33 20  8c 0d 0b a4 10 20 20 20  |%!24=13 .....   |
00002c70  c8 8e 20 62 25 21 34 20  ca 0d 0b ae 21 20 20 20  |.. b%!4 ....!   |
00002c80  20 c9 20 32 32 20 3a 20  f4 20 6e 65 77 20 6c 6f  | . 22 : . new lo|
00002c90  61 64 20 61 64 64 72 65  73 73 0d 0b b8 19 20 20  |ad address....  |
00002ca0  20 20 20 20 20 2a 7c 20  49 67 6e 6f 72 65 20 69  |     *| Ignore i|
00002cb0  74 20 21 0d 0b c2 26 20  20 20 20 c9 20 32 35 20  |t !...&    . 25 |
00002cc0  3a 20 f4 20 6e 65 77 20  65 78 65 63 75 74 69 6f  |: . new executio|
00002cd0  6e 20 61 64 64 72 65 73  73 0d 0b cc 19 20 20 20  |n address....   |
00002ce0  20 20 20 20 2a 7c 20 49  67 6e 6f 72 65 20 69 74  |    *| Ignore it|
00002cf0  20 21 0d 0b d6 24 20 20  20 20 c9 20 33 35 20 3a  | !...$    . 35 :|
00002d00  20 f4 20 6e 65 77 20 66  69 6c 65 74 79 70 65 20  | . new filetype |
00002d10  6e 75 6d 62 65 72 0d 0b  e0 20 20 20 20 20 20 20  |number...       |
00002d20  20 f2 5f 6e 65 77 5f 66  69 6c 65 74 79 70 65 5f  | ._new_filetype_|
00002d30  6e 75 6d 62 65 72 0d 0b  ea 08 20 20 20 cb 0d 0b  |number....   ...|
00002d40  eb 07 20 20 cc 0d 0b f4  20 20 20 20 c8 99 22 57  |..  ....    .."W|
00002d50  69 6d 70 5f 50 72 6f 63  65 73 73 4b 65 79 22 2c  |imp_ProcessKey",|
00002d60  62 25 21 32 34 0d 0b fe  07 20 20 cd 0d 0b ff 06  |b%!24....  .....|
00002d70  20 cc 0d 0c 00 1f 20 20  c8 99 22 57 69 6d 70 5f  | .....  .."Wimp_|
00002d80  50 72 6f 63 65 73 73 4b  65 79 22 2c 62 25 21 32  |ProcessKey",b%!2|
00002d90  34 0d 0c 08 06 20 cd 0d  0c 12 06 20 e1 0d 0c 1c  |4.... ..... ....|
00002da0  04 0d 0c 26 1b dd 20 f2  5f 6e 65 77 5f 66 69 6c  |...&.. ._new_fil|
00002db0  65 74 79 70 65 5f 6e 75  6d 62 65 72 0d 0c 30 34  |etype_number..04|
00002dc0  20 6c 6f 61 64 25 3d 28  a0 28 22 26 22 2b 24 28  | load%=(.("&"+$(|
00002dd0  77 73 25 28 77 6e 25 2c  31 29 2b 32 38 36 29 29  |ws%(wn%,1)+286))|
00002de0  3c 3c 38 29 20 80 20 26  46 46 46 46 46 46 30 30  |<<8) . &FFFFFF00|
00002df0  0d 0c 3a 37 20 74 79 70  65 25 3d 77 73 25 28 77  |..:7 type%=ws%(w|
00002e00  6e 25 2c 32 29 3a f2 5f  72 65 61 64 5f 64 61 74  |n%,2):._read_dat|
00002e10  65 5f 73 74 61 6d 70 3a  f2 5f 72 65 61 64 5f 69  |e_stamp:._read_i|
00002e20  63 6f 6e 6e 61 6d 65 0d  0c 44 38 20 24 28 77 73  |conname..D8 $(ws|
00002e30  25 28 77 6e 25 2c 31 29  2b 32 37 34 29 3d 66 74  |%(wn%,1)+274)=ft|
00002e40  6e 24 3a f2 5f 72 65 64  72 61 77 5f 69 63 6f 6e  |n$:._redraw_icon|
00002e50  28 77 73 25 28 77 6e 25  2c 30 29 2c 33 34 29 0d  |(ws%(wn%,0),34).|
00002e60  0c 4e 20 20 24 28 77 73  25 28 77 6e 25 2c 31 29  |.N  $(ws%(wn%,1)|
00002e70  2b 32 36 30 29 3d 69 63  6f 6e 6e 61 6d 65 24 0d  |+260)=iconname$.|
00002e80  0c 58 34 20 c8 99 22 57  69 6d 70 5f 46 6f 72 63  |.X4 .."Wimp_Forc|
00002e90  65 52 65 64 72 61 77 22  2c 77 73 25 28 77 6e 25  |eRedraw",ws%(wn%|
00002ea0  2c 30 29 2c 34 38 34 2c  33 31 36 2c 36 35 36 2c  |,0),484,316,656,|
00002eb0  35 30 30 0d 0c 62 06 20  e1 0d 0c 6c 04 0d 0c 76  |500..b. ...l...v|
00002ec0  16 dd 20 f2 5f 4d 65 6e  75 5f 73 65 6c 65 63 74  |.. ._Menu_select|
00002ed0  69 6f 6e 0d 0c 80 0d 20  c8 8e 20 21 62 25 20 ca  |ion.... .. !b% .|
00002ee0  0d 0c 8a 29 20 20 c9 20  30 20 3a 20 f4 20 27 41  |...)  . 0 : . 'A|
00002ef0  62 6f 75 74 20 74 68 69  73 20 70 72 6f 67 72 61  |bout this progra|
00002f00  6d 27 20 77 69 6e 64 6f  77 0d 0c 94 0b 20 20 c9  |m' window....  .|
00002f10  20 31 20 3a 0d 0c 9e 12  20 20 20 20 e7 20 69 77  | 1 :....    . iw|
00002f20  25 3d 2d 32 20 8c 0d 0c  a8 25 20 20 20 20 20 20  |%=-2 ....%      |
00002f30  c8 99 22 57 69 6d 70 5f  47 65 74 50 6f 69 6e 74  |.."Wimp_GetPoint|
00002f40  65 72 49 6e 66 6f 22 2c  2c 62 25 0d 0c b2 24 20  |erInfo",,b%...$ |
00002f50  20 20 20 20 20 f2 5f 66  6c 6f 61 74 69 6e 67 5f  |     ._floating_|
00002f60  69 63 6f 6e 28 62 25 21  30 2c 62 25 21 34 29 0d  |icon(b%!0,b%!4).|
00002f70  0c bc 2a 20 20 20 20 20  20 f2 5f 72 65 6d 6f 76  |..*      ._remov|
00002f80  65 5f 66 72 6f 6d 5f 69  63 6f 6e 5f 62 61 72 3a  |e_from_icon_bar:|
00002f90  21 4f 6e 42 61 72 25 3d  30 0d 0c c6 09 20 20 20  |!OnBar%=0....   |
00002fa0  20 cc 0d 0c d0 2f 20 20  20 20 20 20 69 63 6f 6e  | ..../      icon|
00002fb0  25 3d a4 5f 69 6e 73 74  61 6c 6c 5f 6f 6e 5f 69  |%=._install_on_i|
00002fc0  63 6f 6e 5f 62 61 72 3a  21 4f 6e 42 61 72 25 3d  |con_bar:!OnBar%=|
00002fd0  31 0d 0c da 33 20 20 20  20 20 20 62 25 21 30 3d  |1...3      b%!0=|
00002fe0  69 77 25 3a c8 99 22 57  69 6d 70 5f 44 65 6c 65  |iw%:.."Wimp_Dele|
00002ff0  74 65 57 69 6e 64 6f 77  22 2c 2c 62 25 3a 69 77  |teWindow",,b%:iw|
00003000  25 3d 2d 32 0d 0c e4 09  20 20 20 20 cd 0d 0c ee  |%=-2....    ....|
00003010  19 20 20 c9 20 32 20 3a  20 f2 5f 63 6c 6f 73 65  |.  . 2 : ._close|
00003020  64 6f 77 6e 3a e0 0d 0c  f8 06 20 cb 0d 0d 02 20  |down:..... .... |
00003030  20 c8 99 22 57 69 6d 70  5f 47 65 74 50 6f 69 6e  | .."Wimp_GetPoin|
00003040  74 65 72 49 6e 66 6f 22  2c 2c 62 25 0d 0d 0c 46  |terInfo",,b%...F|
00003050  20 e7 20 62 25 21 38 3d  25 30 30 31 20 c8 99 20  | . b%!8=%001 .. |
00003060  22 57 69 6d 70 5f 43 72  65 61 74 65 4d 65 6e 75  |"Wimp_CreateMenu|
00003070  22 2c 2c 6d 65 6e 75 25  2c 21 62 25 2d 6d 65 6e  |",,menu%,!b%-men|
00003080  75 25 21 31 36 2f 32 2d  32 34 2c 39 36 2b 32 2a  |u%!16/2-24,96+2*|
00003090  34 34 0d 0d 16 06 20 e1  0d 0d 20 04 0d 0d 2a 17  |44.... ... ...*.|
000030a0  dd 20 f2 5f 52 65 63 65  69 76 65 5f 6d 65 73 73  |. ._Receive_mess|
000030b0  61 67 65 0d 0d 34 0f 20  c8 8e 20 62 25 21 31 36  |age..4. .. b%!16|
000030c0  20 ca 0d 0d 3e 18 20 20  c9 20 30 20 3a f2 5f 63  | ...>.  . 0 :._c|
000030d0  6c 6f 73 65 64 6f 77 6e  3a e0 0d 0d 48 0b 20 20  |losedown:...H.  |
000030e0  c9 20 32 20 3a 0d 0d 52  13 20 20 20 20 e7 20 73  |. 2 :..R.    . s|
000030f0  61 76 69 6e 67 25 20 8c  0d 0d 5c 30 20 20 20 20  |aving% ...\0    |
00003100  20 f2 5f 63 6f 70 79 5f  66 69 6c 65 28 24 77 73  | ._copy_file($ws|
00003110  25 28 77 6e 25 2c 31 29  2c a4 73 74 72 69 6e 67  |%(wn%,1),.string|
00003120  28 62 25 2b 34 34 29 29  0d 0d 66 12 20 20 20 20  |(b%+44))..f.    |
00003130  20 73 61 76 69 6e 67 25  3d a3 0d 0d 70 0f 20 20  | saving%=...p.  |
00003140  20 20 20 e5 20 8d 64 40  4d 0d 0d 7a 2c 20 20 20  |   . .d@M..z,   |
00003150  20 f4 20 73 6b 69 70 20  74 68 69 73 2c 20 6e 6f  | . skip this, no|
00003160  74 20 73 75 72 65 20 77  68 61 74 20 69 74 20 64  |t sure what it d|
00003170  6f 65 73 20 21 0d 0d 84  38 20 20 20 20 f4 20 20  |oes !...8    .  |
00003180  70 72 6f 67 72 61 6d 20  64 6f 65 73 6e 27 74 20  |program doesn't |
00003190  73 65 65 6d 20 74 6f 20  6e 65 65 64 20 69 74 20  |seem to need it |
000031a0  61 6e 79 77 61 79 20 21  21 21 2e 2e 2e 0d 0d 8e  |anyway !!!......|
000031b0  30 20 20 20 20 20 c8 99  22 57 69 6d 70 5f 47 65  |0     .."Wimp_Ge|
000031c0  74 50 6f 69 6e 74 65 72  49 6e 66 6f 22 2c 2c 62  |tPointerInfo",,b|
000031d0  25 3a 62 25 21 32 30 3d  62 25 21 31 32 0d 0d 98  |%:b%!20=b%!12...|
000031e0  32 20 20 20 20 20 62 25  21 32 34 3d 62 25 21 31  |2     b%!24=b%!1|
000031f0  36 3a 62 25 21 32 38 3d  62 25 21 30 3a 62 25 21  |6:b%!28=b%!0:b%!|
00003200  33 32 3d 62 25 21 34 3a  62 25 21 30 3d 34 34 0d  |32=b%!4:b%!0=44.|
00003210  0d a2 22 20 20 20 20 20  62 25 21 31 32 3d 30 20  |.."     b%!12=0 |
00003220  3a 20 f4 20 72 65 66 25  20 3f 3f 3f 3f 3f 3f 3f  |: . ref% ???????|
00003230  3f 0d 0d ac 1b 20 20 20  20 20 62 25 21 31 36 3d  |?....     b%!16=|
00003240  33 3a 62 25 21 34 30 3d  26 46 46 37 0d 0d b6 32  |3:b%!40=&FF7...2|
00003250  20 20 20 20 20 c8 99 20  22 57 69 6d 70 5f 53 65  |     .. "Wimp_Se|
00003260  6e 64 4d 65 73 73 61 67  65 22 2c 31 37 2c 62 25  |ndMessage",17,b%|
00003270  3a 57 61 69 74 69 6e 67  41 63 6b 25 3d b9 0d 0d  |:WaitingAck%=...|
00003280  c0 12 20 20 20 20 f4 20  73 6b 69 70 70 65 64 2e  |..    . skipped.|
00003290  0d 0d ca 08 20 20 20 cd  0d 0d d4 27 20 20 c9 20  |....   ....'  . |
000032a0  33 20 3a f2 5f 6e 65 77  5f 77 69 6e 64 6f 77 28  |3 :._new_window(|
000032b0  a4 73 74 72 69 6e 67 28  62 25 2b 34 34 29 29 0d  |.string(b%+44)).|
000032c0  0d de 0e 20 20 c9 20 26  35 30 32 20 3a 0d 0d e8  |...  . &502 :...|
000032d0  23 20 20 20 77 6e 25 3d  a4 5f 70 6f 73 5f 66 72  |#   wn%=._pos_fr|
000032e0  6f 6d 5f 68 61 6e 64 6c  65 28 62 25 21 33 32 29  |om_handle(b%!32)|
000032f0  0d 0d f2 25 20 20 20 62  25 21 31 32 3d 62 25 21  |...%   b%!12=b%!|
00003300  38 3a 62 25 21 31 36 3d  26 35 30 33 3a 70 25 3d  |8:b%!16=&503:p%=|
00003310  62 25 2b 32 30 0d 0d fc  11 20 20 20 c8 8e 20 62  |b%+20....   .. b|
00003320  25 21 33 32 20 ca 0d 0e  06 31 20 20 20 20 c9 20  |%!32 ....1    . |
00003330  69 77 25 20 3a 20 f4 20  4d 6f 75 73 65 20 69 73  |iw% : . Mouse is|
00003340  20 6f 76 65 72 20 74 68  65 20 69 63 6f 6e 62 61  | over the iconba|
00003350  72 20 69 63 6f 6e 2e 0d  0e 10 2d 20 20 20 20 20  |r icon....-     |
00003360  f2 68 65 6c 70 28 22 54  68 69 73 20 69 73 20 74  |.help("This is t|
00003370  68 65 20 61 74 74 72 69  62 75 74 65 20 69 63 6f  |he attribute ico|
00003380  6e 2e 22 29 0d 0e 1a 3d  20 20 20 20 20 f2 68 65  |n.")...=     .he|
00003390  6c 70 28 22 44 72 61 67  20 61 20 66 69 6c 65 20  |lp("Drag a file |
000033a0  68 65 72 65 20 74 6f 20  76 69 65 77 2f 73 65 74  |here to view/set|
000033b0  20 69 74 73 20 61 74 74  72 69 62 75 74 65 73 22  | its attributes"|
000033c0  29 0d 0e 24 34 20 20 20  20 20 f2 68 65 6c 70 28  |)..$4     .help(|
000033d0  22 43 6c 69 63 6b 20 53  45 4c 45 43 54 20 74 6f  |"Click SELECT to|
000033e0  20 63 72 65 61 74 65 20  61 20 6e 65 77 20 66 69  | create a new fi|
000033f0  6c 65 2e 22 29 0d 0e 2e  12 20 20 20 20 20 f2 68  |le.")....     .h|
00003400  65 6c 70 28 22 22 29 0d  0e 38 38 20 20 20 20 c9  |elp("")..88    .|
00003410  20 69 6e 66 6f 77 69 6e  64 6f 77 25 20 3a 20 f4  | infowindow% : .|
00003420  20 4d 6f 75 73 65 20 69  73 20 6f 76 65 72 20 74  | Mouse is over t|
00003430  68 65 20 69 6e 66 6f 20  77 69 6e 64 6f 77 2e 0d  |he info window..|
00003440  0e 42 30 20 20 20 20 20  f2 68 65 6c 70 28 22 54  |.B0     .help("T|
00003450  68 69 73 20 69 73 20 74  68 65 20 41 74 74 72 69  |his is the Attri|
00003460  62 75 74 65 20 75 74 69  6c 69 74 79 2e 22 29 0d  |bute utility.").|
00003470  0e 4c 54 20 20 20 20 20  f2 68 65 6c 70 28 22 54  |.LT     .help("T|
00003480  68 65 20 63 75 72 72 65  6e 74 20 76 65 72 73 69  |he current versi|
00003490  6f 6e 20 6f 66 20 74 68  65 20 70 72 6f 67 72 61  |on of the progra|
000034a0  6d 20 69 73 20 6e 6f 74  20 70 65 72 66 65 63 74  |m is not perfect|
000034b0  20 62 75 74 20 69 74 20  69 73 20 63 6c 6f 73 65  | but it is close|
000034c0  2e 22 29 0d 0e 56 30 20  20 20 20 7f 20 3a 20 f4  |.")..V0    . : .|
000034d0  20 4d 6f 75 73 65 20 69  73 20 6f 76 65 72 20 61  | Mouse is over a|
000034e0  6e 20 61 74 74 72 69 62  75 74 65 20 77 69 6e 64  |n attribute wind|
000034f0  6f 77 2e 0d 0e 60 13 20  20 20 20 20 c8 8e 20 62  |ow...`.     .. b|
00003500  25 21 33 36 20 ca 0d 0e  6a 17 20 20 20 20 20 20  |%!36 ...j.      |
00003510  c9 20 30 2c 31 2c 32 2c  33 2c 34 20 3a 0d 0e 74  |. 0,1,2,3,4 :..t|
00003520  38 20 20 20 20 20 20 20  f2 68 65 6c 70 28 22 54  |8       .help("T|
00003530  68 69 73 20 69 73 20 6f  6e 65 20 6f 66 20 74 68  |his is one of th|
00003540  65 20 61 63 63 65 73 73  20 62 69 74 20 69 63 6f  |e access bit ico|
00003550  6e 73 2e 22 29 0d 0e 7e  35 20 20 20 20 20 20 20  |ns.")..~5       |
00003560  f2 68 65 6c 70 28 22 43  6c 69 63 6b 20 53 45 4c  |.help("Click SEL|
00003570  45 43 54 20 74 6f 20 74  6f 67 67 6c 65 20 69 74  |ECT to toggle it|
00003580  73 20 73 74 61 74 65 2e  22 29 0d 0e 88 4d 20 20  |s state.")...M  |
00003590  20 20 20 20 20 f2 68 65  6c 70 28 22 43 6c 69 63  |     .help("Clic|
000035a0  6b 20 6f 6e 20 55 70 64  61 74 65 20 74 6f 20 77  |k on Update to w|
000035b0  72 69 74 65 20 74 68 65  20 63 75 72 72 65 6e 74  |rite the current|
000035c0  20 73 74 61 74 65 20 74  6f 20 74 68 65 20 6f 62  | state to the ob|
000035d0  6a 65 63 74 2e 22 29 0d  0e 92 0f 20 20 20 20 20  |ject.")....     |
000035e0  20 c9 20 35 20 3a 0d 0e  9c 32 20 20 20 20 20 20  | . 5 :...2      |
000035f0  20 f2 68 65 6c 70 28 22  53 65 65 20 2a 41 43 43  | .help("See *ACC|
00003600  45 53 53 20 69 6e 20 74  68 65 20 75 73 65 72 20  |ESS in the user |
00003610  67 75 69 64 65 2e 22 29  0d 0e a6 0f 20 20 20 20  |guide.")....    |
00003620  20 20 c9 20 36 20 3a 0d  0e b0 33 20 20 20 20 20  |  . 6 :...3     |
00003630  20 20 f2 68 65 6c 70 28  22 54 68 69 73 20 69 73  |  .help("This is|
00003640  20 74 68 65 20 61 63 63  65 73 73 20 75 70 64 61  | the access upda|
00003650  74 65 20 69 63 6f 6e 2e  22 29 0d 0e ba 46 20 20  |te icon.")...F  |
00003660  20 20 20 20 20 f2 68 65  6c 70 28 22 43 6c 69 63  |     .help("Clic|
00003670  6b 20 53 45 4c 45 43 54  20 74 6f 20 73 65 74 20  |k SELECT to set |
00003680  74 68 65 20 61 63 63 65  73 73 20 62 69 74 73 20  |the access bits |
00003690  6f 66 20 74 68 65 20 6f  62 6a 65 63 74 2e 22 29  |of the object.")|
000036a0  0d 0e c4 11 20 20 20 20  20 20 c9 20 37 2c 38 20  |....      . 7,8 |
000036b0  3a 0d 0e ce 38 20 20 20  20 20 20 20 f2 68 65 6c  |:...8       .hel|
000036c0  70 28 22 54 68 69 73 20  73 68 6f 77 73 20 74 68  |p("This shows th|
000036d0  65 20 6f 62 6a 65 63 74  20 73 69 7a 65 20 69 6e  |e object size in|
000036e0  20 62 79 74 65 73 2e 22  29 0d 0e d8 0f 20 20 20  | bytes.")....   |
000036f0  20 20 20 c9 20 39 20 3a  0d 0e e2 42 20 20 20 20  |   . 9 :...B    |
00003700  20 20 20 f2 68 65 6c 70  28 22 43 6c 69 63 6b 20  |   .help("Click |
00003710  53 45 4c 45 43 54 20 74  6f 20 64 65 63 72 65 61  |SELECT to decrea|
00003720  73 65 20 74 68 65 20 73  69 7a 65 20 62 79 20 6f  |se the size by o|
00003730  6e 65 20 62 79 74 65 2e  22 29 0d 0e ec 10 20 20  |ne byte.")....  |
00003740  20 20 20 20 c9 20 31 30  20 3a 0d 0e f6 42 20 20  |    . 10 :...B  |
00003750  20 20 20 20 20 f2 68 65  6c 70 28 22 43 6c 69 63  |     .help("Clic|
00003760  6b 20 53 45 4c 45 43 54  20 74 6f 20 69 6e 63 72  |k SELECT to incr|
00003770  65 61 73 65 20 74 68 65  20 73 69 7a 65 20 62 79  |ease the size by|
00003780  20 6f 6e 65 20 62 79 74  65 2e 22 29 0d 0f 00 13  | one byte.")....|
00003790  20 20 20 20 20 20 c9 20  31 31 2c 31 32 20 3a 0d  |      . 11,12 :.|
000037a0  0f 0a 36 20 20 20 20 20  20 20 f2 68 65 6c 70 28  |..6       .help(|
000037b0  22 54 68 69 73 20 69 73  20 74 68 65 20 6f 62 6a  |"This is the obj|
000037c0  65 63 74 20 73 69 7a 65  20 69 6e 20 4b 62 79 74  |ect size in Kbyt|
000037d0  65 73 2e 22 29 0d 0f 14  10 20 20 20 20 20 20 c9  |es.")....      .|
000037e0  20 31 33 20 3a 0d 0f 1e  43 20 20 20 20 20 20 20  | 13 :...C       |
000037f0  f2 68 65 6c 70 28 22 43  6c 69 63 6b 20 53 45 4c  |.help("Click SEL|
00003800  45 43 54 20 74 6f 20 64  65 63 72 65 61 73 65 20  |ECT to decrease |
00003810  74 68 65 20 73 69 7a 65  20 62 79 20 6f 6e 65 20  |the size by one |
00003820  4b 62 79 74 65 2e 22 29  0d 0f 28 10 20 20 20 20  |Kbyte.")..(.    |
00003830  20 20 c9 20 31 34 20 3a  0d 0f 32 43 20 20 20 20  |  . 14 :..2C    |
00003840  20 20 20 f2 68 65 6c 70  28 22 43 6c 69 63 6b 20  |   .help("Click |
00003850  53 45 4c 45 43 54 20 74  6f 20 69 6e 63 72 65 61  |SELECT to increa|
00003860  73 65 20 74 68 65 20 73  69 7a 65 20 62 79 20 6f  |se the size by o|
00003870  6e 65 20 4b 62 79 74 65  2e 22 29 0d 0f 3c 13 20  |ne Kbyte.")..<. |
00003880  20 20 20 20 20 c9 20 31  35 2c 31 36 20 3a 0d 0f  |     . 15,16 :..|
00003890  46 36 20 20 20 20 20 20  20 f2 68 65 6c 70 28 22  |F6       .help("|
000038a0  54 68 69 73 20 69 73 20  74 68 65 20 6f 62 6a 65  |This is the obje|
000038b0  63 74 20 73 69 7a 65 20  69 6e 20 4d 62 79 74 65  |ct size in Mbyte|
000038c0  73 2e 22 29 0d 0f 50 10  20 20 20 20 20 20 c9 20  |s.")..P.      . |
000038d0  31 37 20 3a 0d 0f 5a 43  20 20 20 20 20 20 20 f2  |17 :..ZC       .|
000038e0  68 65 6c 70 28 22 43 6c  69 63 6b 20 53 45 4c 45  |help("Click SELE|
000038f0  43 54 20 74 6f 20 64 65  63 72 65 61 73 65 20 74  |CT to decrease t|
00003900  68 65 20 73 69 7a 65 20  62 79 20 6f 6e 65 20 4d  |he size by one M|
00003910  62 79 74 65 2e 22 29 0d  0f 64 10 20 20 20 20 20  |byte.")..d.     |
00003920  20 c9 20 31 38 20 3a 0d  0f 6e 43 20 20 20 20 20  | . 18 :..nC     |
00003930  20 20 f2 68 65 6c 70 28  22 43 6c 69 63 6b 20 53  |  .help("Click S|
00003940  45 4c 45 43 54 20 74 6f  20 69 6e 63 72 65 61 73  |ELECT to increas|
00003950  65 20 74 68 65 20 73 69  7a 65 20 62 79 20 6f 6e  |e the size by on|
00003960  65 20 4d 62 79 74 65 2e  22 29 0d 0f 78 10 20 20  |e Mbyte.")..x.  |
00003970  20 20 20 20 c9 20 32 30  20 3a 0d 0f 82 38 20 20  |    . 20 :...8  |
00003980  20 20 20 20 20 f2 68 65  6c 70 28 22 54 68 69 73  |     .help("This|
00003990  20 69 73 20 74 68 65 20  6f 62 6a 65 63 74 20 73  | is the object s|
000039a0  69 7a 65 20 75 70 64 61  74 65 20 69 63 6f 6e 2e  |ize update icon.|
000039b0  22 29 0d 0f 8c 3f 20 20  20 20 20 20 20 f2 68 65  |")...?       .he|
000039c0  6c 70 28 22 43 6c 69 63  6b 20 53 45 4c 45 43 54  |lp("Click SELECT|
000039d0  20 74 6f 20 73 65 74 20  74 68 65 20 73 69 7a 65  | to set the size|
000039e0  20 6f 66 20 74 68 65 20  6f 62 6a 65 63 74 2e 22  | of the object."|
000039f0  29 0d 0f 96 13 20 20 20  20 20 20 c9 20 32 31 2c  |)....      . 21,|
00003a00  32 32 20 3a 0d 0f a0 35  20 20 20 20 20 20 20 f2  |22 :...5       .|
00003a10  68 65 6c 70 28 22 54 68  69 73 20 69 73 20 74 68  |help("This is th|
00003a20  65 20 6f 62 6a 65 63 74  73 20 6c 6f 61 64 20 61  |e objects load a|
00003a30  64 64 72 65 73 73 2e 22  29 0d 0f aa 47 20 20 20  |ddress.")...G   |
00003a40  20 20 20 20 e7 20 77 73  25 28 77 6e 25 2c 32 29  |    . ws%(wn%,2)|
00003a50  3d 31 20 f2 68 65 6c 70  28 22 43 6c 69 63 6b 20  |=1 .help("Click |
00003a60  53 45 4c 45 43 54 20 74  6f 20 65 6e 74 65 72 20  |SELECT to enter |
00003a70  61 20 6e 65 77 20 61 64  64 72 65 73 73 2e 22 29  |a new address.")|
00003a80  0d 0f b4 10 20 20 20 20  20 20 c9 20 32 33 20 3a  |....      . 23 :|
00003a90  0d 0f be 44 20 20 20 20  20 20 20 f2 68 65 6c 70  |...D       .help|
00003aa0  28 22 43 6c 69 63 6b 20  53 45 4c 45 43 54 20 74  |("Click SELECT t|
00003ab0  6f 20 75 70 64 61 74 65  20 74 68 65 20 6f 62 6a  |o update the obj|
00003ac0  65 63 74 73 20 4c 6f 61  64 20 61 64 64 72 65 73  |ects Load addres|
00003ad0  73 2e 22 29 0d 0f c8 13  20 20 20 20 20 20 c9 20  |s.")....      . |
00003ae0  32 34 2c 32 35 20 3a 0d  0f d2 3a 20 20 20 20 20  |24,25 :...:     |
00003af0  20 20 f2 68 65 6c 70 28  22 54 68 69 73 20 69 73  |  .help("This is|
00003b00  20 74 68 65 20 6f 62 6a  65 63 74 73 20 65 78 65  | the objects exe|
00003b10  63 75 74 69 6f 6e 20 61  64 64 72 65 73 73 2e 22  |cution address."|
00003b20  29 0d 0f dc 47 20 20 20  20 20 20 20 e7 20 77 73  |)...G       . ws|
00003b30  25 28 77 6e 25 2c 32 29  3d 31 20 f2 68 65 6c 70  |%(wn%,2)=1 .help|
00003b40  28 22 43 6c 69 63 6b 20  53 45 4c 45 43 54 20 74  |("Click SELECT t|
00003b50  6f 20 65 6e 74 65 72 20  61 20 6e 65 77 20 61 64  |o enter a new ad|
00003b60  64 72 65 73 73 2e 22 29  0d 0f e6 10 20 20 20 20  |dress.")....    |
00003b70  20 20 c9 20 32 36 20 3a  0d 0f f0 49 20 20 20 20  |  . 26 :...I    |
00003b80  20 20 20 f2 68 65 6c 70  28 22 43 6c 69 63 6b 20  |   .help("Click |
00003b90  53 45 4c 45 43 54 20 74  6f 20 75 70 64 61 74 65  |SELECT to update|
00003ba0  20 74 68 65 20 6f 62 6a  65 63 74 73 20 45 78 65  | the objects Exe|
00003bb0  63 75 74 69 6f 6e 20 61  64 64 72 65 73 73 2e 22  |cution address."|
00003bc0  29 0d 0f fa 13 20 20 20  20 20 20 c9 20 32 37 2c  |)....      . 27,|
00003bd0  32 38 20 3a 0d 10 04 33  20 20 20 20 20 20 20 f2  |28 :...3       .|
00003be0  68 65 6c 70 28 22 54 68  69 73 20 69 73 20 74 68  |help("This is th|
00003bf0  65 20 6f 62 6a 65 63 74  73 20 64 61 74 65 20 73  |e objects date s|
00003c00  74 61 6d 70 2e 22 29 0d  10 0e 10 20 20 20 20 20  |tamp.")....     |
00003c10  20 c9 20 32 39 20 3a 0d  10 18 49 20 20 20 20 20  | . 29 :...I     |
00003c20  20 20 f2 68 65 6c 70 28  22 43 6c 69 63 6b 20 53  |  .help("Click S|
00003c30  45 4c 45 43 54 20 74 6f  20 77 72 69 74 65 20 61  |ELECT to write a|
00003c40  20 6e 65 77 20 64 61 74  65 20 73 74 61 6d 70 20  | new date stamp |
00003c50  74 6f 20 74 68 65 20 6f  62 6a 65 63 74 2e 22 29  |to the object.")|
00003c60  0d 10 22 1f 20 20 20 20  20 20 c9 20 77 73 25 28  |..".      . ws%(|
00003c70  77 6e 25 2c 31 29 21 33  37 34 2c 33 32 20 3a 0d  |wn%,1)!374,32 :.|
00003c80  10 2c 38 20 20 20 20 20  20 20 f2 68 65 6c 70 28  |.,8       .help(|
00003c90  22 54 68 69 73 20 69 73  20 74 68 65 20 70 61 74  |"This is the pat|
00003ca0  68 20 6e 61 6d 65 20 6f  66 20 74 68 65 20 6f 62  |h name of the ob|
00003cb0  6a 65 63 74 2e 22 29 0d  10 36 10 20 20 20 20 20  |ject.")..6.     |
00003cc0  20 c9 20 33 31 20 3a 0d  10 40 4b 20 20 20 20 20  | . 31 :..@K     |
00003cd0  20 20 f2 68 65 6c 70 28  22 43 6c 69 63 6b 20 53  |  .help("Click S|
00003ce0  45 4c 45 43 54 20 74 6f  20 76 69 65 77 20 74 68  |ELECT to view th|
00003cf0  65 20 6c 65 66 74 20 70  6f 72 74 69 6f 6e 20 6f  |e left portion o|
00003d00  66 20 74 68 65 20 70 61  74 68 20 6e 61 6d 65 2e  |f the path name.|
00003d10  22 29 0d 10 4a 10 20 20  20 20 20 20 c9 20 33 33  |")..J.      . 33|
00003d20  20 3a 0d 10 54 4c 20 20  20 20 20 20 20 f2 68 65  | :..TL       .he|
00003d30  6c 70 28 22 43 6c 69 63  6b 20 53 45 4c 45 43 54  |lp("Click SELECT|
00003d40  20 74 6f 20 76 69 65 77  20 74 68 65 20 72 69 67  | to view the rig|
00003d50  68 74 20 70 6f 72 74 69  6f 6e 20 6f 66 20 74 68  |ht portion of th|
00003d60  65 20 70 61 74 68 20 6e  61 6d 65 2e 22 29 0d 10  |e path name.")..|
00003d70  5e 10 20 20 20 20 20 20  c9 20 33 34 20 3a 0d 10  |^.      . 34 :..|
00003d80  68 3f 20 20 20 20 20 20  20 f2 68 65 6c 70 28 22  |h?       .help("|
00003d90  54 68 69 73 20 69 73 20  74 68 65 20 6f 62 6a 65  |This is the obje|
00003da0  63 74 73 20 66 69 6c 65  20 74 79 70 65 20 69 6e  |cts file type in|
00003db0  20 6e 61 6d 65 20 66 6f  72 6d 2e 22 29 0d 10 72  | name form.")..r|
00003dc0  10 20 20 20 20 20 20 c9  20 33 35 20 3a 0d 10 7c  |.      . 35 :..||
00003dd0  45 20 20 20 20 20 20 20  f2 68 65 6c 70 28 22 54  |E       .help("T|
00003de0  68 69 73 20 69 73 20 74  68 65 20 6f 62 6a 65 63  |his is the objec|
00003df0  74 73 20 66 69 6c 65 20  74 79 70 65 20 69 6e 20  |ts file type in |
00003e00  68 65 78 20 6e 75 6d 62  65 72 20 66 6f 72 6d 2e  |hex number form.|
00003e10  22 29 0d 10 86 41 20 20  20 20 20 20 20 f2 68 65  |")...A       .he|
00003e20  6c 70 28 22 43 6c 69 63  6b 20 53 45 4c 45 43 54  |lp("Click SELECT|
00003e30  20 74 6f 20 65 6e 74 65  72 20 61 20 6e 65 77 20  | to enter a new |
00003e40  66 69 6c 65 20 74 79 70  65 20 6e 75 6d 62 65 72  |file type number|
00003e50  2e 22 29 0d 10 90 10 20  20 20 20 20 20 c9 20 33  |.")....      . 3|
00003e60  37 20 3a 0d 10 9a 41 20  20 20 20 20 20 20 f2 68  |7 :...A       .h|
00003e70  65 6c 70 28 22 43 6c 69  63 6b 20 53 45 4c 45 43  |elp("Click SELEC|
00003e80  54 20 74 6f 20 75 70 64  61 74 65 20 74 68 65 20  |T to update the |
00003e90  6f 62 6a 65 63 74 73 20  66 69 6c 65 20 74 79 70  |objects file typ|
00003ea0  65 2e 22 29 0d 10 a4 10  20 20 20 20 20 20 c9 20  |e.")....      . |
00003eb0  33 38 20 3a 0d 10 ae 2d  20 20 20 20 20 20 20 f2  |38 :...-       .|
00003ec0  68 65 6c 70 28 22 54 68  69 73 20 69 73 20 74 68  |help("This is th|
00003ed0  65 20 6f 62 6a 65 63 74  73 20 69 63 6f 6e 2e 22  |e objects icon."|
00003ee0  29 0d 10 b8 3e 20 20 20  20 20 20 20 f2 68 65 6c  |)...>       .hel|
00003ef0  70 28 22 44 72 61 67 20  69 74 20 74 6f 20 63 6f  |p("Drag it to co|
00003f00  70 79 20 74 68 65 20 6f  62 6a 65 63 74 20 74 6f  |py the object to|
00003f10  20 61 20 6e 65 77 20 70  6c 61 63 65 2e 22 29 0d  | a new place.").|
00003f20  10 c2 0a 20 20 20 20 20  cb 0d 10 cc 08 20 20 20  |...     .....   |
00003f30  cb 0d 10 d6 1d 20 20 20  3f 70 25 3d 30 3a 21 62  |.....   ?p%=0:!b|
00003f40  25 3d 28 70 25 2b 34 2d  62 25 29 80 ac 33 0d 10  |%=(p%+4-b%)..3..|
00003f50  e0 27 20 20 20 c8 99 20  22 57 69 6d 70 5f 53 65  |.'   .. "Wimp_Se|
00003f60  6e 64 4d 65 73 73 61 67  65 22 2c 31 37 2c 62 25  |ndMessage",17,b%|
00003f70  2c 62 25 21 34 0d 10 ea  20 20 20 c9 20 26 34 30  |,b%!4...   . &40|
00003f80  30 43 31 20 3a 20 f2 5f  67 65 74 5f 6d 6f 64 65  |0C1 : ._get_mode|
00003f90  5f 69 6e 66 6f 0d 10 f4  06 20 cb 0d 10 fe 06 20  |_info.... ..... |
00003fa0  e1 0d 11 08 04 0d 11 12  27 dd 20 f2 68 65 6c 70  |........'. .help|
00003fb0  28 54 24 29 20 24 70 25  3d 54 24 2b 22 7c 4d 22  |(T$) $p%=T$+"|M"|
00003fc0  3a 70 25 2b 3d a9 54 24  2b 32 3a e1 0d 11 1c 04  |:p%+=.T$+2:.....|
00003fd0  0d 11 26 3c dd 20 a4 73  74 72 69 6e 67 28 73 25  |..&<. .string(s%|
00003fe0  29 3a 74 6d 70 24 3d 22  22 3a c8 95 20 3f 73 25  |):tmp$="":.. ?s%|
00003ff0  3c 3e 30 3a 74 6d 70 24  2b 3d bd 3f 73 25 3a 73  |<>0:tmp$+=.?s%:s|
00004000  25 2b 3d 31 3a ce 3a 3d  74 6d 70 24 0d 11 30 04  |%+=1:.:=tmp$..0.|
00004010  0d 11 3a 21 dd 20 f2 5f  6e 65 77 5f 77 69 6e 64  |..:!. ._new_wind|
00004020  6f 77 28 46 24 29 3a 45  78 69 73 74 73 25 3d 2d  |ow(F$):Exists%=-|
00004030  31 0d 11 44 17 20 e3 20  49 25 3d 30 20 b8 20 6d  |1..D. . I%=0 . m|
00004040  61 78 66 69 6c 65 73 25  0d 11 4e 16 20 20 e7 20  |axfiles%..N.  . |
00004050  77 73 25 28 49 25 2c 32  29 3c 3e 30 20 8c 0d 11  |ws%(I%,2)<>0 ...|
00004060  58 30 20 20 20 e7 20 24  77 73 25 28 49 25 2c 31  |X0   . $ws%(I%,1|
00004070  29 3d 46 24 20 8c 20 45  78 69 73 74 73 25 3d 49  |)=F$ . Exists%=I|
00004080  25 3a 49 25 3d 6d 61 78  66 69 6c 65 73 25 0d 11  |%:I%=maxfiles%..|
00004090  62 07 20 20 cd 0d 11 6c  06 20 ed 0d 11 76 14 20  |b.  ...l. ...v. |
000040a0  e7 20 45 78 69 73 74 73  25 3c 3e 2d 31 20 8c 0d  |. Exists%<>-1 ..|
000040b0  11 80 33 20 20 21 62 25  3d 77 73 25 28 45 78 69  |..3  !b%=ws%(Exi|
000040c0  73 74 73 25 2c 30 29 3a  c8 99 20 22 57 69 6d 70  |sts%,0):.. "Wimp|
000040d0  5f 44 65 6c 65 74 65 57  69 6e 64 6f 77 22 2c 2c  |_DeleteWindow",,|
000040e0  62 25 0d 11 8a 38 20 20  77 73 25 28 45 78 69 73  |b%...8  ws%(Exis|
000040f0  74 73 25 2c 32 29 3d 30  3a f2 5f 66 72 65 65 5f  |ts%,2)=0:._free_|
00004100  68 65 61 70 5f 62 6c 6f  63 6b 28 77 73 25 28 45  |heap_block(ws%(E|
00004110  78 69 73 74 73 25 2c 31  29 29 0d 11 94 33 20 20  |xists%,1))...3  |
00004120  77 73 25 28 45 78 69 73  74 73 25 2c 31 29 3d 30  |ws%(Exists%,1)=0|
00004130  3a 77 73 25 28 45 78 69  73 74 73 25 2c 30 29 3d  |:ws%(Exists%,0)=|
00004140  30 3a 6d 6f 72 65 72 6f  6f 6d 25 3d b9 0d 11 9e  |0:moreroom%=....|
00004150  06 20 cd 0d 11 a8 12 20  e7 20 6d 6f 72 65 72 6f  |. ..... . morero|
00004160  6f 6d 25 20 8c 0d 11 b2  1a 20 20 77 6e 25 3d a4  |om% .....  wn%=.|
00004170  5f 6e 65 77 5f 77 69 6e  64 6f 77 5f 6e 75 6d 0d  |_new_window_num.|
00004180  11 bc 10 20 20 e7 20 77  6e 25 3d 2d 31 20 8c 0d  |...  . wn%=-1 ..|
00004190  11 c6 24 20 20 20 f2 5f  65 72 72 6f 72 28 31 2c  |..$   ._error(1,|
000041a0  22 54 6f 6f 20 6d 61 6e  79 20 77 69 6e 64 6f 77  |"Too many window|
000041b0  73 22 29 0d 11 d0 07 20  20 cc 0d 11 da 2f 20 20  |s")....  ..../  |
000041c0  20 f2 5f 72 65 61 64 5f  66 69 6c 65 5f 61 74 74  | ._read_file_att|
000041d0  72 69 62 75 74 65 73 28  46 24 29 3a f2 5f 66 69  |ributes(F$):._fi|
000041e0  6c 65 5f 77 69 6e 64 6f  77 0d 11 e4 07 20 20 cd  |le_window....  .|
000041f0  0d 11 ee 06 20 cd 0d 11  f8 06 20 e1 0d 12 02 04  |.... ..... .....|
00004200  0d 12 0c 41 dd 20 f2 5f  44 65 66 69 6e 65 5f 6d  |...A. ._Define_m|
00004210  65 6e 75 3a de 20 6d 65  6e 75 25 20 32 38 2b 33  |enu:. menu% 28+3|
00004220  2a 32 34 3a 24 6d 65 6e  75 25 3d 22 41 74 74 72  |*24:$menu%="Attr|
00004230  69 62 75 74 65 22 3a 6d  65 6e 75 25 3f 31 32 3d  |ibute":menu%?12=|
00004240  37 0d 12 16 4c 20 6d 65  6e 75 25 3f 31 33 3d 32  |7...L menu%?13=2|
00004250  3a 6d 65 6e 75 25 3f 31  34 3d 37 3a 6d 65 6e 75  |:menu%?14=7:menu|
00004260  25 3f 31 35 3d 30 3a 6d  65 6e 75 25 21 31 36 3d  |%?15=0:menu%!16=|
00004270  a9 28 22 49 6e 66 6f 20  20 22 29 2a 31 36 2b 31  |.("Info  ")*16+1|
00004280  32 3a 6d 65 6e 75 25 21  32 30 3d 34 34 0d 12 20  |2:menu%!20=44.. |
00004290  d8 20 6d 65 6e 75 25 21  32 34 3d 30 3a 6d 65 6e  |. menu%!24=0:men|
000042a0  75 25 21 32 38 3d 30 3a  6d 65 6e 75 25 21 33 32  |u%!28=0:menu%!32|
000042b0  3d a4 5f 69 6e 66 6f 5f  77 69 6e 64 6f 77 28 54  |=._info_window(T|
000042c0  61 73 6b 54 69 74 6c 65  24 2c 22 56 69 65 77 2f  |askTitle$,"View/|
000042d0  73 65 74 20 66 69 6c 65  20 61 74 74 72 69 62 75  |set file attribu|
000042e0  74 65 73 22 2c bd 31 36  39 2b 22 20 45 78 6f 72  |tes",.169+" Exor|
000042f0  63 69 73 74 22 2c 76 65  72 73 69 6f 6e 24 2c 62  |cist",version$,b|
00004300  25 29 3a 6d 65 6e 75 25  21 33 36 3d 26 37 30 30  |%):menu%!36=&700|
00004310  30 30 30 31 3a 24 28 6d  65 6e 75 25 2b 34 30 29  |0001:$(menu%+40)|
00004320  3d 22 49 6e 66 6f 22 3a  6d 65 6e 75 25 21 35 32  |="Info":menu%!52|
00004330  3d 31 3a 6d 65 6e 75 25  21 35 36 3d 2d 31 3a 6d  |=1:menu%!56=-1:m|
00004340  65 6e 75 25 21 36 30 3d  26 37 30 30 30 30 30 31  |enu%!60=&7000001|
00004350  3a 24 28 6d 65 6e 75 25  2b 36 34 29 3d 22 4f 6e  |:$(menu%+64)="On|
00004360  20 62 61 72 22 0d 12 2a  42 20 6d 65 6e 75 25 21  | bar"..*B menu%!|
00004370  37 36 3d 26 38 30 3a 6d  65 6e 75 25 21 38 30 3d  |76=&80:menu%!80=|
00004380  2d 31 3a 6d 65 6e 75 25  21 38 34 3d 26 37 30 30  |-1:menu%!84=&700|
00004390  30 30 30 31 3a 24 28 6d  65 6e 75 25 2b 38 38 29  |0001:$(menu%+88)|
000043a0  3d 22 51 75 69 74 22 0d  12 34 16 20 4f 6e 42 61  |="Quit"..4. OnBa|
000043b0  72 25 3d 6d 65 6e 75 25  2b 35 32 3a e1 0d 12 3e  |r%=menu%+52:...>|
000043c0  04 0d 12 48 15 dd 20 f2  5f 67 65 74 5f 6d 6f 64  |...H.. ._get_mod|
000043d0  65 5f 69 6e 66 6f 0d 12  52 3d 20 c8 99 22 57 69  |e_info..R= .."Wi|
000043e0  6d 70 5f 52 65 61 64 50  69 78 54 72 61 6e 73 22  |mp_ReadPixTrans"|
000043f0  2c 26 31 30 30 2c 31 2c  22 6f 70 74 6f 6e 22 2c  |,&100,1,"opton",|
00004400  2c 2c 2c 66 61 63 74 73  31 25 2c 70 74 72 61 6e  |,,,facts1%,ptran|
00004410  73 31 25 0d 12 5c 3e 20  c8 99 22 57 69 6d 70 5f  |s1%..\> .."Wimp_|
00004420  52 65 61 64 50 69 78 54  72 61 6e 73 22 2c 26 31  |ReadPixTrans",&1|
00004430  30 30 2c 31 2c 22 6f 70  74 6f 66 66 22 2c 2c 2c  |00,1,"optoff",,,|
00004440  2c 66 61 63 74 73 32 25  2c 70 74 72 61 6e 73 32  |,facts2%,ptrans2|
00004450  25 0d 12 66 06 20 e1 0d  12 70 04 0d 12 7a 27 dd  |%..f. ...p...z'.|
00004460  20 f2 5f 63 6c 6f 73 65  64 6f 77 6e 3a c8 99 20  | ._closedown:.. |
00004470  22 57 69 6d 70 5f 43 6c  6f 73 65 44 6f 77 6e 22  |"Wimp_CloseDown"|
00004480  3a e1 0d 12 84 04 0d 12  8e 2c dd 20 a4 5f 69 6e  |:........,. ._in|
00004490  66 6f 5f 77 69 6e 64 6f  77 28 4e 24 2c 50 24 2c  |fo_window(N$,P$,|
000044a0  41 24 2c 56 24 2c 62 25  29 3a 74 25 3d a9 28 4e  |A$,V$,b%):t%=.(N|
000044b0  24 29 0d 12 98 38 20 62  25 21 30 3d 30 3a 62 25  |$)...8 b%!0=0:b%|
000044c0  21 34 3d 30 3a 62 25 21  31 32 3d 32 31 32 3a 62  |!4=0:b%!12=212:b|
000044d0  25 21 31 36 3d 30 3a e7  20 a9 28 50 24 29 3e 74  |%!16=0:. .(P$)>t|
000044e0  25 20 74 25 3d a9 28 50  24 29 0d 12 a2 39 20 62  |% t%=.(P$)...9 b|
000044f0  25 21 32 30 3d 30 3a 62  25 21 32 34 3d 2d 31 3a  |%!20=0:b%!24=-1:|
00004500  62 25 21 32 38 3d 26 38  34 30 30 30 30 39 33 3a  |b%!28=&84000093:|
00004510  e7 20 a9 28 41 24 29 3e  74 25 20 74 25 3d a9 28  |. .(A$)>t% t%=.(|
00004520  41 24 29 0d 12 ac 38 20  62 25 3f 33 32 3d 37 3a  |A$)...8 b%?32=7:|
00004530  62 25 3f 33 33 3d 32 3a  62 25 3f 33 34 3d 37 3a  |b%?33=2:b%?34=7:|
00004540  62 25 3f 33 35 3d 31 3a  e7 20 a9 28 56 24 29 3e  |b%?35=1:. .(V$)>|
00004550  74 25 20 74 25 3d a9 28  56 24 29 0d 12 b6 3b 20  |t% t%=.(V$)...; |
00004560  62 25 21 38 3d 32 37 38  2b 74 25 2a 31 36 3a 62  |b%!8=278+t%*16:b|
00004570  25 3f 33 36 3d 30 3a 62  25 3f 33 37 3d 30 3a 62  |%?36=0:b%?37=0:b|
00004580  25 3f 33 38 3d 30 3a 62  25 3f 33 39 3d 30 3a 62  |%?38=0:b%?39=0:b|
00004590  25 21 34 30 3d 30 0d 12  c0 3a 20 62 25 21 34 34  |%!40=0...: b%!44|
000045a0  3d 2d 32 31 32 3a 62 25  21 34 38 3d 32 38 30 2b  |=-212:b%!48=280+|
000045b0  74 25 2a 31 36 3a 62 25  21 35 32 3d 30 3a 62 25  |t%*16:b%!52=0:b%|
000045c0  21 35 36 3d 26 31 31 39  3a 62 25 21 36 30 3d 30  |!56=&119:b%!60=0|
000045d0  0d 12 ca 41 20 62 25 21  36 34 3d 30 3a 62 25 21  |...A b%!64=0:b%!|
000045e0  36 38 3d 30 3a de 20 62  25 21 37 32 20 32 30 3a  |68=0:. b%!72 20:|
000045f0  24 28 62 25 21 37 32 29  3d 22 41 62 6f 75 74 20  |$(b%!72)="About |
00004600  74 68 69 73 20 70 72 6f  67 72 61 6d 22 2b bd 31  |this program"+.1|
00004610  33 0d 12 d4 44 20 62 25  21 37 36 3d 2d 31 3a 62  |3...D b%!76=-1:b|
00004620  25 21 38 30 3d 32 30 3a  62 25 21 38 34 3d 38 3a  |%!80=20:b%!84=8:|
00004630  62 25 21 38 38 3d 34 3a  62 25 21 39 32 3d 2d 35  |b%!88=4:b%!92=-5|
00004640  32 3a 62 25 21 39 36 3d  31 35 36 3a 62 25 21 31  |2:b%!96=156:b%!1|
00004650  30 30 3d 2d 34 0d 12 de  3f 20 62 25 21 31 30 34  |00=-4...? b%!104|
00004660  3d 26 37 30 30 30 32 31  31 3a 24 28 62 25 2b 31  |=&7000211:$(b%+1|
00004670  30 38 29 3d 22 4e 61 6d  65 3a 22 2b bd 31 33 3a  |08)="Name:"+.13:|
00004680  62 25 21 31 32 30 3d 34  3a 62 25 21 31 32 34 3d  |b%!120=4:b%!124=|
00004690  2d 31 30 34 0d 12 e8 43  20 62 25 21 31 32 38 3d  |-104...C b%!128=|
000046a0  31 35 36 3a 62 25 21 31  33 32 3d 2d 35 36 3a 62  |156:b%!132=-56:b|
000046b0  25 21 31 33 36 3d 26 37  30 30 30 32 31 31 3a 24  |%!136=&7000211:$|
000046c0  28 62 25 2b 31 34 30 29  3d 22 50 75 72 70 6f 73  |(b%+140)="Purpos|
000046d0  65 3a 22 2b bd 31 33 0d  12 f2 40 20 62 25 21 31  |e:"+.13...@ b%!1|
000046e0  35 32 3d 34 3a 62 25 21  31 35 36 3d 2d 31 35 36  |52=4:b%!156=-156|
000046f0  3a 62 25 21 31 36 30 3d  31 35 36 3a 62 25 21 31  |:b%!160=156:b%!1|
00004700  36 34 3d 2d 31 30 38 3a  62 25 21 31 36 38 3d 26  |64=-108:b%!168=&|
00004710  37 30 30 30 32 31 31 0d  12 fc 3e 20 24 28 62 25  |7000211...> $(b%|
00004720  2b 31 37 32 29 3d 22 41  75 74 68 6f 72 3a 22 2b  |+172)="Author:"+|
00004730  bd 28 31 33 29 3a 62 25  21 31 38 34 3d 34 3a 62  |.(13):b%!184=4:b|
00004740  25 21 31 38 38 3d 2d 32  30 38 3a 62 25 21 31 39  |%!188=-208:b%!19|
00004750  32 3d 31 35 36 0d 13 06  44 20 62 25 21 31 39 36  |2=156...D b%!196|
00004760  3d 2d 31 36 30 3a 62 25  21 32 30 30 3d 26 37 30  |=-160:b%!200=&70|
00004770  30 30 32 31 31 3a 24 28  62 25 2b 32 30 34 29 3d  |00211:$(b%+204)=|
00004780  22 56 65 72 73 69 6f 6e  3a 22 2b bd 31 33 3a 62  |"Version:"+.13:b|
00004790  25 21 32 31 36 3d 31 36  30 0d 13 10 3b 20 62 25  |%!216=160...; b%|
000047a0  21 32 32 30 3d 2d 35 32  3a 62 25 21 32 32 34 3d  |!220=-52:b%!224=|
000047b0  32 37 32 2b 74 25 2a 31  36 3a 62 25 21 32 32 38  |272+t%*16:b%!228|
000047c0  3d 2d 34 3a 62 25 21 32  33 32 3d 26 30 37 30 30  |=-4:b%!232=&0700|
000047d0  30 31 33 44 0d 13 1a 3f  20 de 20 62 25 21 32 33  |013D...? . b%!23|
000047e0  36 20 a9 28 4e 24 29 2b  31 3a 24 28 62 25 21 32  |6 .(N$)+1:$(b%!2|
000047f0  33 36 29 3d 4e 24 2b bd  31 33 3a 62 25 21 32 34  |36)=N$+.13:b%!24|
00004800  30 3d 2d 31 3a 62 25 21  32 34 34 3d a9 28 4e 24  |0=-1:b%!244=.(N$|
00004810  29 2b 31 0d 13 24 48 20  62 25 21 32 34 38 3d 31  |)+1..$H b%!248=1|
00004820  36 30 3a 62 25 21 32 35  32 3d 2d 31 30 34 3a 62  |60:b%!252=-104:b|
00004830  25 21 32 35 36 3d 32 37  32 2b 74 25 2a 31 36 3a  |%!256=272+t%*16:|
00004840  62 25 21 32 36 30 3d 2d  35 36 3a 62 25 21 32 36  |b%!260=-56:b%!26|
00004850  34 3d 26 30 37 30 30 30  31 33 44 0d 13 2e 40 20  |4=&0700013D...@ |
00004860  de 20 62 25 21 32 36 38  20 a9 28 50 24 29 2b 31  |. b%!268 .(P$)+1|
00004870  3a 24 28 62 25 21 32 36  38 29 3d 50 24 2b bd 31  |:$(b%!268)=P$+.1|
00004880  33 3a 3a 62 25 21 32 37  32 3d 2d 31 3a 62 25 21  |3::b%!272=-1:b%!|
00004890  32 37 36 3d a9 28 50 24  29 2b 31 0d 13 38 49 20  |276=.(P$)+1..8I |
000048a0  62 25 21 32 38 30 3d 31  36 30 3a 62 25 21 32 38  |b%!280=160:b%!28|
000048b0  34 3d 2d 31 35 36 3a 62  25 21 32 38 38 3d 32 37  |4=-156:b%!288=27|
000048c0  32 2b 74 25 2a 31 36 3a  62 25 21 32 39 32 3d 2d  |2+t%*16:b%!292=-|
000048d0  31 30 38 3a 62 25 21 32  39 36 3d 26 30 37 30 30  |108:b%!296=&0700|
000048e0  30 31 33 44 0d 13 42 3f  20 de 20 62 25 21 33 30  |013D..B? . b%!30|
000048f0  30 20 a9 28 41 24 29 2b  31 3a 24 28 62 25 21 33  |0 .(A$)+1:$(b%!3|
00004900  30 30 29 3d 41 24 2b bd  31 33 3a 62 25 21 33 30  |00)=A$+.13:b%!30|
00004910  34 3d 2d 31 3a 62 25 21  33 30 38 3d a9 28 41 24  |4=-1:b%!308=.(A$|
00004920  29 2b 31 0d 13 4c 49 20  62 25 21 33 31 32 3d 31  |)+1..LI b%!312=1|
00004930  36 30 3a 62 25 21 33 31  36 3d 2d 32 30 38 3a 62  |60:b%!316=-208:b|
00004940  25 21 33 32 30 3d 32 37  32 2b 74 25 2a 31 36 3a  |%!320=272+t%*16:|
00004950  62 25 21 33 32 34 3d 2d  31 36 30 3a 62 25 21 33  |b%!324=-160:b%!3|
00004960  32 38 3d 26 30 37 30 30  30 31 33 44 0d 13 56 3f  |28=&0700013D..V?|
00004970  20 de 20 62 25 21 33 33  32 20 a9 28 56 24 29 2b  | . b%!332 .(V$)+|
00004980  31 3a 24 28 62 25 21 33  33 32 29 3d 56 24 2b bd  |1:$(b%!332)=V$+.|
00004990  31 33 3a 62 25 21 33 33  36 3d 2d 31 3a 62 25 21  |13:b%!336=-1:b%!|
000049a0  33 34 30 3d a9 28 56 24  29 2b 31 0d 13 60 3a 20  |340=.(V$)+1..`: |
000049b0  c8 99 20 22 57 69 6d 70  5f 43 72 65 61 74 65 57  |.. "Wimp_CreateW|
000049c0  69 6e 64 6f 77 22 2c 2c  62 25 20 b8 20 69 6e 66  |indow",,b% . inf|
000049d0  6f 77 69 6e 64 6f 77 25  3a 3d 69 6e 66 6f 77 69  |owindow%:=infowi|
000049e0  6e 64 6f 77 25 0d 13 6a  04 0d 13 74 28 dd 20 a4  |ndow%..j...t(. .|
000049f0  5f 64 69 72 65 63 74 6f  72 79 28 74 25 29 3a e7  |_directory(t%):.|
00004a00  20 74 25 3d 32 20 8c 20  3a 3d b9 20 8b 20 3a 3d  | t%=2 . :=. . :=|
00004a10  a3 0d 13 7e 04 0d 13 88  20 dd 20 f2 5f 72 65 61  |...~.... . ._rea|
00004a20  64 5f 66 69 6c 65 5f 61  74 74 72 69 62 75 74 65  |d_file_attribute|
00004a30  73 28 46 24 29 0d 13 92  35 20 64 61 74 65 73 74  |s(F$)...5 datest|
00004a40  61 6d 70 25 3d a3 3a 64  61 74 65 73 74 61 6d 70  |amp%=.:datestamp|
00004a50  24 3d 22 73 74 61 6d 70  22 3a 69 63 6f 6e 6e 61  |$="stamp":iconna|
00004a60  6d 65 24 3d 22 69 63 6f  6e 22 0d 13 9c 18 20 66  |me$="icon".... f|
00004a70  74 6e 24 3d 22 22 3a 66  69 6c 65 74 79 70 65 25  |tn$="":filetype%|
00004a80  3d 30 0d 13 a6 16 20 e7  20 46 24 3d 22 4e 65 77  |=0.... . F$="New|
00004a90  5f 66 69 6c 65 22 20 8c  0d 13 b0 34 20 20 74 79  |_file" ....4  ty|
00004aa0  70 65 25 3d 31 3a 6c 6f  61 64 25 3d 26 46 46 46  |pe%=1:load%=&FFF|
00004ab0  46 46 44 30 30 3a 65 78  65 63 25 3d 30 3a 6c 65  |FFD00:exec%=0:le|
00004ac0  6e 25 3d 30 3a 61 74 74  72 25 3d 33 0d 13 ba 2c  |n%=0:attr%=3...,|
00004ad0  20 20 69 63 6f 6e 6e 61  6d 65 24 3d 22 66 69 6c  |  iconname$="fil|
00004ae0  65 5f 66 66 64 22 3a f2  5f 72 65 61 64 5f 64 61  |e_ffd":._read_da|
00004af0  74 65 5f 73 74 61 6d 70  0d 13 c4 06 20 cc 0d 13  |te_stamp.... ...|
00004b00  ce 36 20 20 c8 99 22 4f  53 5f 46 69 6c 65 22 2c  |.6  .."OS_File",|
00004b10  35 2c 46 24 20 b8 20 74  79 70 65 25 2c 2c 6c 6f  |5,F$ . type%,,lo|
00004b20  61 64 25 2c 65 78 65 63  25 2c 6c 65 6e 25 2c 61  |ad%,exec%,len%,a|
00004b30  74 74 72 25 0d 13 d8 10  20 20 c8 8e 20 74 79 70  |ttr%....  .. typ|
00004b40  65 25 20 ca 0d 13 e2 2c  20 20 20 c9 20 30 20 3a  |e% ....,   . 0 :|
00004b50  20 f2 5f 65 72 72 6f 72  28 31 2c 22 27 22 2b 46  | ._error(1,"'"+F|
00004b60  24 2b 22 27 20 6e 6f 74  20 66 6f 75 6e 64 22 29  |$+"' not found")|
00004b70  0d 13 ec 23 20 20 20 c9  20 31 20 3a 20 74 6d 70  |...#   . 1 : tmp|
00004b80  25 3d 6c 6f 61 64 25 20  80 20 26 46 46 46 30 30  |%=load% . &FFF00|
00004b90  30 30 30 0d 13 f6 2e 20  20 20 20 20 20 e7 20 74  |000....      . t|
00004ba0  6d 70 25 3d 26 46 46 46  30 30 30 30 30 20 8c 20  |mp%=&FFF00000 . |
00004bb0  f2 5f 72 65 61 64 5f 64  61 74 65 5f 73 74 61 6d  |._read_date_stam|
00004bc0  70 0d 14 00 19 20 20 20  20 20 20 f2 5f 72 65 61  |p....      ._rea|
00004bd0  64 5f 69 63 6f 6e 6e 61  6d 65 0d 14 0a 2e 20 20  |d_iconname....  |
00004be0  20 c9 20 32 20 3a 20 f2  5f 72 65 61 64 5f 64 61  | . 2 : ._read_da|
00004bf0  74 65 5f 73 74 61 6d 70  3a f2 5f 72 65 61 64 5f  |te_stamp:._read_|
00004c00  69 63 6f 6e 6e 61 6d 65  0d 14 14 07 20 20 cb 0d  |iconname....  ..|
00004c10  14 1e 06 20 cd 0d 14 28  06 20 e1 0d 14 32 04 0d  |... ...(. ...2..|
00004c20  14 3c 17 dd 20 f2 5f 72  65 61 64 5f 64 61 74 65  |.<.. ._read_date|
00004c30  5f 73 74 61 6d 70 0d 14  46 2e 20 64 61 74 65 73  |_stamp..F. dates|
00004c40  74 61 6d 70 25 3d b9 3a  66 69 6c 65 74 79 70 65  |tamp%=.:filetype|
00004c50  25 3d 28 6c 6f 61 64 25  3e 3e 3e 38 29 20 80 20  |%=(load%>>>8) . |
00004c60  26 46 46 46 0d 14 50 2d  20 c8 99 22 4f 53 5f 46  |&FFF..P- .."OS_F|
00004c70  53 43 6f 6e 74 72 6f 6c  22 2c 31 38 2c 2c 66 69  |SControl",18,,fi|
00004c80  6c 65 74 79 70 65 25 20  b8 20 2c 2c 6c 25 2c 72  |letype% . ,,l%,r|
00004c90  25 0d 14 5a 36 20 66 24  3d bd 28 6c 25 20 80 20  |%..Z6 f$=.(l% . |
00004ca0  26 46 46 29 2b bd 28 28  6c 25 3e 3e 38 29 20 80  |&FF)+.((l%>>8) .|
00004cb0  20 26 46 46 29 2b bd 28  28 6c 25 3e 3e 31 36 29  | &FF)+.((l%>>16)|
00004cc0  20 80 20 26 46 46 29 0d  14 64 37 20 66 24 2b 3d  | . &FF)..d7 f$+=|
00004cd0  bd 28 28 6c 25 3e 3e 32  34 29 20 80 20 26 46 46  |.((l%>>24) . &FF|
00004ce0  29 2b bd 28 72 25 20 80  20 26 46 46 29 2b bd 28  |)+.(r% . &FF)+.(|
00004cf0  28 72 25 3e 3e 38 29 20  80 20 26 46 46 29 0d 14  |(r%>>8) . &FF)..|
00004d00  6e 34 20 66 24 2b 3d bd  28 28 72 25 3e 3e 31 36  |n4 f$+=.((r%>>16|
00004d10  29 20 80 20 26 46 46 29  2b bd 28 28 72 25 3e 3e  |) . &FF)+.((r%>>|
00004d20  32 34 29 20 80 20 26 46  46 29 3a 66 74 6e 24 3d  |24) . &FF):ftn$=|
00004d30  66 24 0d 14 78 20 20 c8  95 20 c2 66 74 6e 24 29  |f$..x  .. .ftn$)|
00004d40  3d 22 20 22 3a 66 74 6e  24 3d c0 66 74 6e 24 29  |=" ":ftn$=.ftn$)|
00004d50  3a ce 0d 14 82 29 20 64  61 74 65 73 74 61 6d 70  |:....) datestamp|
00004d60  24 3d c3 7e 28 6c 6f 61  64 25 20 80 20 26 46 46  |$=.~(load% . &FF|
00004d70  29 2b c3 7e 28 65 78 65  63 25 29 0d 14 8c 06 20  |)+.~(exec%).... |
00004d80  e1 0d 14 96 04 0d 14 a0  15 dd 20 f2 5f 72 65 61  |.......... ._rea|
00004d90  64 5f 69 63 6f 6e 6e 61  6d 65 0d 14 aa 0f 20 c8  |d_iconname.... .|
00004da0  8e 20 74 79 70 65 25 20  ca 0d 14 b4 2b 20 20 c9  |. type% ....+  .|
00004db0  20 31 20 3a 20 69 63 6f  6e 6e 61 6d 65 24 3d 22  | 1 : iconname$="|
00004dc0  66 69 6c 65 5f 22 2b c3  7e 28 66 69 6c 65 74 79  |file_"+.~(filety|
00004dd0  70 65 25 29 0d 14 be 0b  20 20 c9 20 32 20 3a 0d  |pe%)....  . 2 :.|
00004de0  14 c8 21 20 20 20 e7 20  c0 a4 5f 6c 65 61 66 6e  |..!   . .._leafn|
00004df0  61 6d 65 28 46 24 29 2c  31 29 3d 22 21 22 20 8c  |ame(F$),1)="!" .|
00004e00  0d 14 d2 20 20 20 20 20  69 63 6f 6e 6e 61 6d 65  |...     iconname|
00004e10  24 3d a4 5f 6c 65 61 66  6e 61 6d 65 28 46 24 29  |$=._leafname(F$)|
00004e20  0d 14 dc 1a 20 20 20 20  66 74 6e 24 3d 22 41 70  |....    ftn$="Ap|
00004e30  70 6c 69 63 61 74 69 6f  6e 22 0d 14 e6 08 20 20  |plication"....  |
00004e40  20 cc 0d 14 f0 1d 20 20  20 20 69 63 6f 6e 6e 61  | .....    iconna|
00004e50  6d 65 24 3d 22 64 69 72  65 63 74 6f 72 79 22 0d  |me$="directory".|
00004e60  14 fa 18 20 20 20 20 66  74 6e 24 3d 22 44 69 72  |...    ftn$="Dir|
00004e70  65 63 74 6f 72 79 22 0d  15 04 08 20 20 20 cd 0d  |ectory"....   ..|
00004e80  15 0e 06 20 cb 0d 15 18  18 20 f2 5f 63 68 65 63  |... ..... ._chec|
00004e90  6b 5f 73 70 72 69 74 65  5f 6e 61 6d 65 0d 15 22  |k_sprite_name.."|
00004ea0  06 20 e1 0d 15 2c 04 0d  15 36 19 dd 20 f2 5f 63  |. ...,...6.. ._c|
00004eb0  68 65 63 6b 5f 73 70 72  69 74 65 5f 6e 61 6d 65  |heck_sprite_name|
00004ec0  0d 15 40 15 20 ea 20 85  3a ee 20 85 20 ea 20 e5  |..@. . .:. . . .|
00004ed0  20 8d 44 54 55 0d 15 4a  26 20 c8 99 22 57 69 6d  | .DTU..J& .."Wim|
00004ee0  70 5f 53 70 72 69 74 65  4f 70 22 2c 34 30 2c 2c  |p_SpriteOp",40,,|
00004ef0  69 63 6f 6e 6e 61 6d 65  24 3a e1 0d 15 54 0f 20  |iconname$:...T. |
00004f00  c8 8e 20 74 79 70 65 25  20 ca 0d 15 5e 20 20 20  |.. type% ...^   |
00004f10  c9 20 31 20 3a 20 69 63  6f 6e 6e 61 6d 65 24 3d  |. 1 : iconname$=|
00004f20  22 66 69 6c 65 5f 78 78  78 22 0d 15 68 0b 20 20  |"file_xxx"..h.  |
00004f30  c9 20 32 20 3a 0d 15 72  21 20 20 20 e7 20 c0 a4  |. 2 :..r!   . ..|
00004f40  5f 6c 65 61 66 6e 61 6d  65 28 46 24 29 2c 31 29  |_leafname(F$),1)|
00004f50  3d 22 21 22 20 8c 0d 15  7c 1f 20 20 20 20 69 63  |="!" ...|.    ic|
00004f60  6f 6e 6e 61 6d 65 24 3d  22 61 70 70 6c 69 63 61  |onname$="applica|
00004f70  74 69 6f 6e 22 0d 15 86  08 20 20 20 cc 0d 15 90  |tion"....   ....|
00004f80  1d 20 20 20 20 69 63 6f  6e 6e 61 6d 65 24 3d 22  |.    iconname$="|
00004f90  64 69 72 65 63 74 6f 72  79 22 0d 15 9a 08 20 20  |directory"....  |
00004fa0  20 cd 0d 15 a4 06 20 cb  0d 15 ae 06 20 e1 0d 15  | ..... ..... ...|
00004fb0  b8 04 0d 15 c2 1a dd 20  a4 5f 6c 65 61 66 6e 61  |....... ._leafna|
00004fc0  6d 65 28 66 24 29 3a 65  24 3d 22 22 0d 15 cc 27  |me(f$):e$=""...'|
00004fd0  20 c8 95 20 c2 66 24 29  3c 3e 22 3a 22 20 80 20  | .. .f$)<>":" . |
00004fe0  c2 66 24 29 3c 3e 22 2e  22 20 80 20 a9 28 66 24  |.f$)<>"." . .(f$|
00004ff0  29 3e 30 0d 15 d6 1a 20  20 65 24 3d c2 66 24 29  |)>0....  e$=.f$)|
00005000  2b 65 24 3a 66 24 3d c0  66 24 29 3a ce 0d 15 e0  |+e$:f$=.f$):....|
00005010  08 20 3d 65 24 0d 15 ea  04 0d 15 f4 24 dd 20 f2  |. =e$.......$. .|
00005020  5f 66 69 6c 65 5f 77 69  6e 64 6f 77 3a 77 73 25  |_file_window:ws%|
00005030  28 77 6e 25 2c 32 29 3d  74 79 70 65 25 0d 15 fe  |(wn%,2)=type%...|
00005040  3b 20 77 69 6e 78 25 3d  28 77 69 6e 78 25 2b 31  |; winx%=(winx%+1|
00005050  36 29 20 83 20 36 34 30  3a 77 69 6e 79 25 2d 3d  |6) . 640:winy%-=|
00005060  33 32 3a e7 20 77 69 6e  79 25 3c 36 30 30 20 77  |32:. winy%<600 w|
00005070  69 6e 79 25 3d 39 30 30  0d 16 08 3b 20 77 73 25  |iny%=900...; ws%|
00005080  28 77 6e 25 2c 31 29 3d  a4 5f 67 65 74 5f 68 65  |(wn%,1)=._get_he|
00005090  61 70 5f 62 6c 6f 63 6b  28 33 39 30 29 3a e7 20  |ap_block(390):. |
000050a0  77 73 25 28 77 6e 25 2c  31 29 3d 30 20 8c 20 8d  |ws%(wn%,1)=0 . .|
000050b0  74 7a 58 0d 16 12 49 20  24 28 77 73 25 28 77 6e  |tzX...I $(ws%(wn|
000050c0  25 2c 31 29 29 3d 46 24  3a 77 73 25 28 77 6e 25  |%,1))=F$:ws%(wn%|
000050d0  2c 31 29 3f 32 35 39 3d  30 3a e7 20 a9 28 46 24  |,1)?259=0:. .(F$|
000050e0  29 3e 32 39 20 77 73 25  28 77 6e 25 2c 31 29 3f  |)>29 ws%(wn%,1)?|
000050f0  32 35 39 3d a9 28 46 24  29 2d 32 39 0d 16 1c 3a  |259=.(F$)-29...:|
00005100  20 24 28 77 73 25 28 77  6e 25 2c 31 29 2b 32 36  | $(ws%(wn%,1)+26|
00005110  30 29 3d 69 63 6f 6e 6e  61 6d 65 24 2b bd 30 3a  |0)=iconname$+.0:|
00005120  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 32 37 34  |$(ws%(wn%,1)+274|
00005130  29 3d 66 74 6e 24 0d 16  26 46 20 24 28 77 73 25  |)=ftn$..&F $(ws%|
00005140  28 77 6e 25 2c 31 29 2b  32 38 36 29 3d c3 7e 28  |(wn%,1)+286)=.~(|
00005150  66 69 6c 65 74 79 70 65  25 29 3a 24 28 77 73 25  |filetype%):$(ws%|
00005160  28 77 6e 25 2c 31 29 2b  33 30 32 29 3d c3 28 a8  |(wn%,1)+302)=.(.|
00005170  28 6c 65 6e 25 2f 31 30  32 34 29 29 0d 16 30 2d  |(len%/1024))..0-|
00005180  20 24 28 77 73 25 28 77  6e 25 2c 31 29 2b 32 39  | $(ws%(wn%,1)+29|
00005190  30 29 3d c3 28 a8 28 6c  65 6e 25 2f 28 31 30 32  |0)=.(.(len%/(102|
000051a0  34 2a 31 30 32 34 29 29  29 0d 16 3a 4a 20 24 28  |4*1024)))..:J $(|
000051b0  77 73 25 28 77 6e 25 2c  31 29 2b 33 34 36 29 3d  |ws%(wn%,1)+346)=|
000051c0  a4 5f 64 61 74 65 3a e7  ac 28 64 61 74 65 73 74  |._date:..(datest|
000051d0  61 6d 70 25 29 20 24 28  77 73 25 28 77 6e 25 2c  |amp%) $(ws%(wn%,|
000051e0  31 29 2b 33 34 36 29 3d  22 55 6e 73 74 61 6d 70  |1)+346)="Unstamp|
000051f0  65 64 22 0d 16 44 3a 20  24 28 77 73 25 28 77 6e  |ed"..D: $(ws%(wn|
00005200  25 2c 31 29 2b 33 31 34  29 3d c3 28 6c 65 6e 25  |%,1)+314)=.(len%|
00005210  29 3a 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |):$(ws%(wn%,1)+3|
00005220  32 36 29 3d c3 7e 28 6c  6f 61 64 25 29 0d 16 4e  |26)=.~(load%)..N|
00005230  47 20 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |G $(ws%(wn%,1)+3|
00005240  33 36 29 3d c3 7e 28 65  78 65 63 25 29 3a 77 73  |36)=.~(exec%):ws|
00005250  25 28 77 6e 25 2c 31 29  21 33 37 30 3d 61 74 74  |%(wn%,1)!370=att|
00005260  72 25 3a 77 73 25 28 77  6e 25 2c 31 29 21 33 37  |r%:ws%(wn%,1)!37|
00005270  34 3d 33 30 0d 16 58 4b  20 77 73 25 28 77 6e 25  |4=30..XK ws%(wn%|
00005280  2c 31 29 21 33 37 38 3d  64 61 74 65 73 74 61 6d  |,1)!378=datestam|
00005290  70 25 3a 62 25 21 38 34  3d 33 39 3a 50 25 3d 62  |p%:b%!84=39:P%=b|
000052a0  25 2b 35 36 3a 21 62 25  3d 77 69 6e 78 25 2b 32  |%+56:!b%=winx%+2|
000052b0  3a 62 25 21 34 3d 77 69  6e 79 25 2d 31 38 34 0d  |:b%!4=winy%-184.|
000052c0  16 62 4c 20 62 25 21 38  3d 77 69 6e 78 25 2b 34  |.bL b%!8=winx%+4|
000052d0  38 36 3a 62 25 21 31 32  3d 77 69 6e 79 25 3a 62  |86:b%!12=winy%:b|
000052e0  25 21 31 36 3d 34 38 34  3a 62 25 21 32 30 3d 35  |%!16=484:b%!20=5|
000052f0  30 30 3a 62 25 21 32 34  3d 2d 31 3a 62 25 21 32  |00:b%!24=-1:b%!2|
00005300  38 3d 26 46 46 30 30 30  30 30 46 0d 16 6c 4d 20  |8=&FF00000F..lM |
00005310  62 25 3f 33 32 3d 37 3a  62 25 3f 33 33 3d 32 3a  |b%?32=7:b%?33=2:|
00005320  62 25 3f 33 34 3d 37 3a  62 25 3f 33 35 3d 31 3a  |b%?34=7:b%?35=1:|
00005330  62 25 3f 33 36 3d 33 3a  62 25 3f 33 37 3d 31 3a  |b%?36=3:b%?37=1:|
00005340  62 25 3f 33 38 3d 31 32  3a 62 25 3f 33 39 3d 30  |b%?38=12:b%?39=0|
00005350  3a 62 25 21 34 30 3d 30  0d 16 76 46 20 62 25 21  |:b%!40=0..vF b%!|
00005360  34 34 3d 30 3a 62 25 21  34 38 3d 39 36 38 3a e7  |44=0:b%!48=968:.|
00005370  74 79 70 65 25 3d 31 20  24 28 62 25 2b 37 32 29  |type%=1 $(b%+72)|
00005380  3d 22 46 69 6c 65 22 20  8b 20 24 28 62 25 2b 37  |="File" . $(b%+7|
00005390  32 29 3d 22 44 69 72 65  63 74 6f 72 79 22 0d 16  |2)="Directory"..|
000053a0  80 4a 20 62 25 21 35 32  3d 35 30 30 3a 62 25 21  |.J b%!52=500:b%!|
000053b0  35 36 3d 26 31 39 3a 62  25 21 36 30 3d 32 3a 62  |56=&19:b%!60=2:b|
000053c0  25 21 36 34 3d 31 3a 62  25 21 36 38 3d 26 31 30  |%!64=1:b%!68=&10|
000053d0  30 30 31 3a 50 25 2b 3d  33 32 3a 50 25 21 30 3d  |001:P%+=32:P%!0=|
000053e0  34 3a 50 25 21 34 3d 34  0d 16 8a 4b 20 50 25 21  |4:P%!4=4...K P%!|
000053f0  38 3d 34 37 36 3a 50 25  21 31 32 3d 34 38 3a 50  |8=476:P%!12=48:P|
00005400  25 21 31 36 3d 26 31 37  30 30 32 31 31 31 3a 50  |%!16=&17002111:P|
00005410  25 21 32 30 3d 74 65 78  74 25 3a 50 25 21 32 34  |%!20=text%:P%!24|
00005420  3d 2d 31 3a 50 25 21 32  38 3d 32 33 3a 50 25 2b  |=-1:P%!28=23:P%+|
00005430  3d 33 32 0d 16 94 4d 20  50 25 21 30 3d 34 3a 50  |=32...M P%!0=4:P|
00005440  25 21 34 3d 35 32 3a 50  25 21 38 3d 34 37 36 3a  |%!4=52:P%!8=476:|
00005450  50 25 21 31 32 3d 39 36  3a 50 25 21 31 36 3d 26  |P%!12=96:P%!16=&|
00005460  31 37 30 30 32 31 31 31  3a 50 25 21 32 30 3d 74  |17002111:P%!20=t|
00005470  65 78 74 25 2b 32 34 3a  50 25 21 32 34 3d 2d 31  |ext%+24:P%!24=-1|
00005480  0d 16 9e 47 20 50 25 21  32 38 3d 32 33 3a 50 25  |...G P%!28=23:P%|
00005490  2b 3d 33 32 3a 50 25 21  30 3d 34 3a 50 25 21 34  |+=32:P%!0=4:P%!4|
000054a0  3d 31 30 30 3a 50 25 21  38 3d 34 37 36 3a 50 25  |=100:P%!8=476:P%|
000054b0  21 31 32 3d 31 34 34 3a  50 25 21 31 36 3d 26 31  |!12=144:P%!16=&1|
000054c0  37 30 30 32 31 31 31 0d  16 a8 41 20 50 25 21 32  |7002111...A P%!2|
000054d0  30 3d 74 65 78 74 25 2b  34 37 3a 50 25 21 32 34  |0=text%+47:P%!24|
000054e0  3d 2d 31 3a 50 25 21 32  38 3d 32 33 3a e7 20 74  |=-1:P%!28=23:. t|
000054f0  79 70 65 25 3d 32 20 8c  20 50 25 21 31 36 3d 26  |ype%=2 . P%!16=&|
00005500  31 37 34 30 32 31 31 31  0d 16 b2 47 20 50 25 2b  |17402111...G P%+|
00005510  3d 33 32 3a 50 25 21 30  3d 34 3a 50 25 21 34 3d  |=32:P%!0=4:P%!4=|
00005520  31 34 38 3a 50 25 21 31  36 3d 26 31 37 30 30 32  |148:P%!16=&17002|
00005530  31 31 31 3a e7 20 74 79  70 65 25 3d 32 20 8c 20  |111:. type%=2 . |
00005540  50 25 21 31 36 3d 26 31  37 34 30 32 31 31 31 0d  |P%!16=&17402111.|
00005550  16 bc 46 20 50 25 21 38  3d 34 37 36 3a 50 25 21  |..F P%!8=476:P%!|
00005560  31 32 3d 31 39 32 3a 50  25 21 32 30 3d 74 65 78  |12=192:P%!20=tex|
00005570  74 25 2b 37 30 3a 50 25  21 32 34 3d 2d 31 3a 50  |t%+70:P%!24=-1:P|
00005580  25 21 32 38 3d 32 33 3a  50 25 2b 3d 33 32 3a 50  |%!28=23:P%+=32:P|
00005590  25 21 30 3d 34 0d 16 c6  48 20 50 25 21 34 3d 31  |%!0=4...H P%!4=1|
000055a0  39 36 3a 50 25 21 38 3d  34 37 36 3a 50 25 21 31  |96:P%!8=476:P%!1|
000055b0  32 3d 32 34 30 3a 50 25  21 31 36 3d 26 31 37 30  |2=240:P%!16=&170|
000055c0  30 32 31 31 31 3a 50 25  21 32 30 3d 74 65 78 74  |02111:P%!20=text|
000055d0  25 2b 39 32 3a 50 25 21  32 34 3d 2d 31 0d 16 d0  |%+92:P%!24=-1...|
000055e0  47 20 50 25 21 32 38 3d  32 37 3a 50 25 2b 3d 33  |G P%!28=27:P%+=3|
000055f0  32 3a 50 25 21 30 3d 34  3a 50 25 21 34 3d 32 34  |2:P%!0=4:P%!4=24|
00005600  34 3a 50 25 21 38 3d 33  35 30 3a 50 25 21 31 32  |4:P%!8=350:P%!12|
00005610  3d 32 39 32 3a 50 25 21  31 36 3d 26 30 37 30 30  |=292:P%!16=&0700|
00005620  30 30 33 35 0d 16 da 47  20 24 28 50 25 2b 32 30  |0035...G $(P%+20|
00005630  29 3d 22 41 74 74 72 69  62 75 74 65 73 3a 22 3a  |)="Attributes:":|
00005640  50 25 2b 3d 33 32 3a 50  25 21 30 3d 33 35 30 3a  |P%+=32:P%!0=350:|
00005650  50 25 21 34 3d 32 34 34  3a 50 25 21 38 3d 34 37  |P%!4=244:P%!8=47|
00005660  36 3a 50 25 21 31 32 3d  32 39 32 0d 16 e4 46 20  |6:P%!12=292...F |
00005670  50 25 21 31 36 3d 26 43  37 30 31 39 30 33 44 3a  |P%!16=&C701903D:|
00005680  24 28 50 25 2b 32 30 29  3d 22 55 70 64 61 74 65  |$(P%+20)="Update|
00005690  22 3a 50 25 2b 3d 33 32  3a 50 25 21 30 3d 34 3a  |":P%+=32:P%!0=4:|
000056a0  50 25 21 34 3d 33 30 34  3a 50 25 21 38 3d 31 34  |P%!4=304:P%!8=14|
000056b0  30 0d 16 ee 49 20 50 25  21 31 32 3d 33 34 38 3a  |0...I P%!12=348:|
000056c0  50 25 21 31 36 3d 26 31  37 30 30 30 32 31 31 3a  |P%!16=&17000211:|
000056d0  24 28 50 25 2b 32 30 29  3d 22 42 79 74 65 73 3a  |$(P%+20)="Bytes:|
000056e0  22 3a 50 25 2b 3d 33 32  3a 50 25 21 30 3d 31 34  |":P%+=32:P%!0=14|
000056f0  30 3a 50 25 21 34 3d 33  30 34 0d 16 f8 4d 20 50  |0:P%!4=304...M P|
00005700  25 21 38 3d 34 30 30 3a  50 25 21 31 32 3d 33 34  |%!8=400:P%!12=34|
00005710  38 3a 50 25 21 31 36 3d  26 37 30 30 30 31 33 44  |8:P%!16=&700013D|
00005720  3a 50 25 21 32 30 3d 77  73 25 28 77 6e 25 2c 31  |:P%!20=ws%(wn%,1|
00005730  29 2b 33 31 34 3a 50 25  21 32 34 3d 2d 31 3a 50  |)+314:P%!24=-1:P|
00005740  25 21 32 38 3d 31 30 0d  17 02 40 20 50 25 2b 3d  |%!28=10...@ P%+=|
00005750  33 32 3a 50 25 21 30 3d  34 30 34 3a 50 25 21 34  |32:P%!0=404:P%!4|
00005760  3d 33 30 34 3a 50 25 21  38 3d 34 33 38 3a 50 25  |=304:P%!8=438:P%|
00005770  21 31 32 3d 33 34 38 3a  50 25 21 31 36 3d 26 43  |!12=348:P%!16=&C|
00005780  37 30 30 32 30 33 44 0d  17 0c 3e 20 24 28 50 25  |700203D...> $(P%|
00005790  2b 32 30 29 3d bd 31 33  38 3a 50 25 2b 3d 33 32  |+20)=.138:P%+=32|
000057a0  3a 50 25 21 30 3d 34 34  32 3a 50 25 21 34 3d 33  |:P%!0=442:P%!4=3|
000057b0  30 34 3a 50 25 21 38 3d  34 37 36 3a 50 25 21 31  |04:P%!8=476:P%!1|
000057c0  32 3d 33 34 38 0d 17 16  42 20 50 25 21 31 36 3d  |2=348...B P%!16=|
000057d0  26 43 37 30 30 32 30 33  44 3a 24 28 50 25 2b 32  |&C700203D:$(P%+2|
000057e0  30 29 3d bd 31 33 39 3a  50 25 2b 3d 33 32 3a 50  |0)=.139:P%+=32:P|
000057f0  25 21 30 3d 34 3a 50 25  21 34 3d 33 35 32 3a 50  |%!0=4:P%!4=352:P|
00005800  25 21 38 3d 31 34 30 0d  17 20 4a 20 50 25 21 31  |%!8=140.. J P%!1|
00005810  32 3d 33 39 36 3a 50 25  21 31 36 3d 26 31 37 30  |2=396:P%!16=&170|
00005820  30 30 32 31 31 3a 24 28  50 25 2b 32 30 29 3d 22  |00211:$(P%+20)="|
00005830  4b 42 79 74 65 73 3a 22  3a 50 25 2b 3d 33 32 3a  |KBytes:":P%+=32:|
00005840  50 25 21 30 3d 31 34 30  3a 50 25 21 34 3d 33 35  |P%!0=140:P%!4=35|
00005850  32 0d 17 2a 4d 20 50 25  21 38 3d 34 30 30 3a 50  |2..*M P%!8=400:P|
00005860  25 21 31 32 3d 33 39 36  3a 50 25 21 31 36 3d 26  |%!12=396:P%!16=&|
00005870  37 30 30 30 31 33 44 3a  50 25 21 32 30 3d 77 73  |700013D:P%!20=ws|
00005880  25 28 77 6e 25 2c 31 29  2b 33 30 32 3a 50 25 21  |%(wn%,1)+302:P%!|
00005890  32 34 3d 2d 31 3a 50 25  21 32 38 3d 31 30 0d 17  |24=-1:P%!28=10..|
000058a0  34 40 20 50 25 2b 3d 33  32 3a 50 25 21 30 3d 34  |4@ P%+=32:P%!0=4|
000058b0  30 34 3a 50 25 21 34 3d  33 35 32 3a 50 25 21 38  |04:P%!4=352:P%!8|
000058c0  3d 34 33 38 3a 50 25 21  31 32 3d 33 39 36 3a 50  |=438:P%!12=396:P|
000058d0  25 21 31 36 3d 26 43 37  30 30 32 30 33 44 0d 17  |%!16=&C700203D..|
000058e0  3e 3e 20 24 28 50 25 2b  32 30 29 3d bd 31 33 38  |>> $(P%+20)=.138|
000058f0  3a 50 25 2b 3d 33 32 3a  50 25 21 30 3d 34 34 32  |:P%+=32:P%!0=442|
00005900  3a 50 25 21 34 3d 33 35  32 3a 50 25 21 38 3d 34  |:P%!4=352:P%!8=4|
00005910  37 36 3a 50 25 21 31 32  3d 33 39 36 0d 17 48 42  |76:P%!12=396..HB|
00005920  20 50 25 21 31 36 3d 26  43 37 30 30 32 30 33 44  | P%!16=&C700203D|
00005930  3a 24 28 50 25 2b 32 30  29 3d bd 31 33 39 3a 50  |:$(P%+20)=.139:P|
00005940  25 2b 3d 33 32 3a 50 25  21 30 3d 34 3a 50 25 21  |%+=32:P%!0=4:P%!|
00005950  34 3d 34 30 30 3a 50 25  21 38 3d 31 34 30 0d 17  |4=400:P%!8=140..|
00005960  52 4a 20 50 25 21 31 32  3d 34 34 34 3a 50 25 21  |RJ P%!12=444:P%!|
00005970  31 36 3d 26 31 37 30 30  30 32 31 31 3a 24 28 50  |16=&17000211:$(P|
00005980  25 2b 32 30 29 3d 22 4d  42 79 74 65 73 3a 22 3a  |%+20)="MBytes:":|
00005990  50 25 2b 3d 33 32 3a 50  25 21 30 3d 31 34 30 3a  |P%+=32:P%!0=140:|
000059a0  50 25 21 34 3d 34 30 30  0d 17 5c 4d 20 50 25 21  |P%!4=400..\M P%!|
000059b0  38 3d 34 30 30 3a 50 25  21 31 32 3d 34 34 34 3a  |8=400:P%!12=444:|
000059c0  50 25 21 31 36 3d 26 37  30 30 30 31 33 44 3a 50  |P%!16=&700013D:P|
000059d0  25 21 32 30 3d 77 73 25  28 77 6e 25 2c 31 29 2b  |%!20=ws%(wn%,1)+|
000059e0  32 39 30 3a 50 25 21 32  34 3d 2d 31 3a 50 25 21  |290:P%!24=-1:P%!|
000059f0  32 38 3d 31 30 0d 17 66  40 20 50 25 2b 3d 33 32  |28=10..f@ P%+=32|
00005a00  3a 50 25 21 30 3d 34 30  34 3a 50 25 21 34 3d 34  |:P%!0=404:P%!4=4|
00005a10  30 30 3a 50 25 21 38 3d  34 33 38 3a 50 25 21 31  |00:P%!8=438:P%!1|
00005a20  32 3d 34 34 34 3a 50 25  21 31 36 3d 26 43 37 30  |2=444:P%!16=&C70|
00005a30  30 32 30 33 44 0d 17 70  3e 20 24 28 50 25 2b 32  |0203D..p> $(P%+2|
00005a40  30 29 3d bd 31 33 38 3a  50 25 2b 3d 33 32 3a 50  |0)=.138:P%+=32:P|
00005a50  25 21 30 3d 34 34 32 3a  50 25 21 34 3d 34 30 30  |%!0=442:P%!4=400|
00005a60  3a 50 25 21 38 3d 34 37  36 3a 50 25 21 31 32 3d  |:P%!8=476:P%!12=|
00005a70  34 34 34 0d 17 7a 42 20  50 25 21 31 36 3d 26 43  |444..zB P%!16=&C|
00005a80  37 30 30 32 30 33 44 3a  24 28 50 25 2b 32 30 29  |700203D:$(P%+20)|
00005a90  3d bd 31 33 39 3a 50 25  2b 3d 33 32 3a 50 25 21  |=.139:P%+=32:P%!|
00005aa0  30 3d 34 3a 50 25 21 34  3d 34 34 38 3a 50 25 21  |0=4:P%!4=448:P%!|
00005ab0  38 3d 33 35 30 0d 17 84  4d 20 50 25 21 31 32 3d  |8=350...M P%!12=|
00005ac0  34 39 36 3a 50 25 21 31  36 3d 26 30 37 30 30 30  |496:P%!16=&07000|
00005ad0  30 33 35 3a 24 28 50 25  2b 32 30 29 3d 22 46 69  |035:$(P%+20)="Fi|
00005ae0  6c 65 20 73 69 7a 65 3a  22 3a 50 25 2b 3d 33 32  |le size:":P%+=32|
00005af0  3a 50 25 21 30 3d 33 35  30 3a 50 25 21 34 3d 34  |:P%!0=350:P%!4=4|
00005b00  34 38 0d 17 8e 41 20 50  25 21 38 3d 34 37 36 3a  |48...A P%!8=476:|
00005b10  50 25 21 31 32 3d 34 39  36 3a 50 25 21 31 36 3d  |P%!12=496:P%!16=|
00005b20  26 43 37 30 31 39 30 33  44 3a e7 20 74 79 70 65  |&C701903D:. type|
00005b30  25 3d 32 20 50 25 21 31  36 3d 26 43 37 34 31 39  |%=2 P%!16=&C7419|
00005b40  30 33 44 0d 17 98 46 20  24 28 50 25 2b 32 30 29  |03D...F $(P%+20)|
00005b50  3d 22 55 70 64 61 74 65  22 3a 50 25 2b 3d 33 32  |="Update":P%+=32|
00005b60  3a 50 25 21 30 3d 34 39  32 3a 50 25 21 34 3d 34  |:P%!0=492:P%!4=4|
00005b70  3a 50 25 21 38 3d 36 32  38 3a 50 25 21 31 36 3d  |:P%!8=628:P%!16=|
00005b80  26 31 37 30 30 30 32 31  31 0d 17 a2 47 20 50 25  |&17000211...G P%|
00005b90  21 31 32 3d 35 32 3a 24  28 50 25 2b 32 30 29 3d  |!12=52:$(P%+20)=|
00005ba0  22 4c 6f 61 64 3a 22 3a  50 25 2b 3d 33 32 3a 50  |"Load:":P%+=32:P|
00005bb0  25 21 30 3d 36 32 38 3a  50 25 21 34 3d 34 3a 50  |%!0=628:P%!4=4:P|
00005bc0  25 21 38 3d 38 33 38 3a  50 25 21 31 32 3d 35 32  |%!8=838:P%!12=52|
00005bd0  0d 17 ac 41 20 50 25 21  31 36 3d 26 37 30 30 46  |...A P%!16=&700F|
00005be0  31 33 44 3a 50 25 21 32  30 3d 77 73 25 28 77 6e  |13D:P%!20=ws%(wn|
00005bf0  25 2c 31 29 2b 33 32 36  3a e7 20 74 79 70 65 25  |%,1)+326:. type%|
00005c00  3d 32 20 50 25 21 31 36  3d 26 37 30 30 30 31 33  |=2 P%!16=&700013|
00005c10  44 0d 17 b6 3a 20 50 25  21 32 34 3d 68 65 78 6f  |D...: P%!24=hexo|
00005c20  6e 6c 79 3a 50 25 21 32  38 3d 39 3a 50 25 2b 3d  |nly:P%!28=9:P%+=|
00005c30  33 32 3a 50 25 21 30 3d  38 33 38 3a 50 25 21 34  |32:P%!0=838:P%!4|
00005c40  3d 34 3a 50 25 21 38 3d  39 36 34 0d 17 c0 49 20  |=4:P%!8=964...I |
00005c50  50 25 21 31 32 3d 35 32  3a 50 25 21 31 36 3d 26  |P%!12=52:P%!16=&|
00005c60  43 37 30 31 39 30 33 44  3a 24 28 50 25 2b 32 30  |C701903D:$(P%+20|
00005c70  29 3d 22 55 70 64 61 74  65 22 3a e7 20 74 79 70  |)="Update":. typ|
00005c80  65 25 3d 32 20 50 25 21  31 36 3d 26 43 37 34 31  |e%=2 P%!16=&C741|
00005c90  39 30 33 44 0d 17 ca 3f  20 50 25 2b 3d 33 32 3a  |903D...? P%+=32:|
00005ca0  50 25 21 30 3d 34 39 32  3a 50 25 21 34 3d 35 36  |P%!0=492:P%!4=56|
00005cb0  3a 50 25 21 38 3d 36 32  38 3a 50 25 21 31 32 3d  |:P%!8=628:P%!12=|
00005cc0  31 30 34 3a 50 25 21 31  36 3d 26 31 37 30 30 30  |104:P%!16=&17000|
00005cd0  32 31 31 0d 17 d4 43 20  24 28 50 25 2b 32 30 29  |211...C $(P%+20)|
00005ce0  3d 22 45 78 65 63 75 74  65 3a 22 3a 50 25 2b 3d  |="Execute:":P%+=|
00005cf0  33 32 3a 50 25 21 30 3d  36 32 38 3a 50 25 21 34  |32:P%!0=628:P%!4|
00005d00  3d 35 36 3a 50 25 21 38  3d 38 33 38 3a 50 25 21  |=56:P%!8=838:P%!|
00005d10  31 32 3d 31 30 34 0d 17  de 43 20 50 25 21 31 36  |12=104...C P%!16|
00005d20  3d 26 30 37 30 30 46 31  33 44 3a 50 25 21 32 30  |=&0700F13D:P%!20|
00005d30  3d 77 73 25 28 77 6e 25  2c 31 29 2b 33 33 36 3a  |=ws%(wn%,1)+336:|
00005d40  e7 20 74 79 70 65 25 3d  32 20 50 25 21 31 36 3d  |. type%=2 P%!16=|
00005d50  26 30 37 30 30 30 31 33  44 0d 17 e8 46 20 50 25  |&0700013D...F P%|
00005d60  21 32 34 3d 68 65 78 6f  6e 6c 79 3a 50 25 21 32  |!24=hexonly:P%!2|
00005d70  38 3d 39 3a 50 25 2b 3d  33 32 3a 3a 50 25 21 30  |8=9:P%+=32::P%!0|
00005d80  3d 38 33 38 3a 50 25 21  34 3d 35 36 3a 50 25 21  |=838:P%!4=56:P%!|
00005d90  38 3d 39 36 34 3a 50 25  21 31 32 3d 31 30 34 0d  |8=964:P%!12=104.|
00005da0  17 f2 40 20 24 28 50 25  2b 32 30 29 3d 22 55 70  |..@ $(P%+20)="Up|
00005db0  64 61 74 65 22 3a 50 25  21 31 36 3d 26 43 37 30  |date":P%!16=&C70|
00005dc0  31 39 30 33 44 3a e7 20  74 79 70 65 25 3d 32 20  |1903D:. type%=2 |
00005dd0  50 25 21 31 36 3d 26 43  37 34 31 39 30 33 44 0d  |P%!16=&C741903D.|
00005de0  17 fc 40 20 50 25 2b 3d  33 32 3a 50 25 21 30 3d  |..@ P%+=32:P%!0=|
00005df0  34 38 38 3a 50 25 21 34  3d 31 31 36 3a 50 25 21  |488:P%!4=116:P%!|
00005e00  38 3d 39 36 34 3a 50 25  21 31 32 3d 31 36 34 3a  |8=964:P%!12=164:|
00005e10  50 25 21 31 36 3d 26 30  37 30 30 30 31 33 44 0d  |P%!16=&0700013D.|
00005e20  18 06 4d 20 50 25 21 32  30 3d 77 73 25 28 77 6e  |..M P%!20=ws%(wn|
00005e30  25 2c 31 29 2b 33 34 36  3a 50 25 21 32 34 3d 2d  |%,1)+346:P%!24=-|
00005e40  31 3a 50 25 21 32 38 3d  32 34 3a 50 25 2b 3d 33  |1:P%!28=24:P%+=3|
00005e50  32 3a 50 25 21 30 3d 34  38 38 3a 50 25 21 34 3d  |2:P%!0=488:P%!4=|
00005e60  31 36 32 3a 50 25 21 38  3d 38 30 30 0d 18 10 4e  |162:P%!8=800...N|
00005e70  20 50 25 21 31 32 3d 32  30 38 3a 50 25 21 31 36  | P%!12=208:P%!16|
00005e80  3d 26 30 37 30 30 30 30  33 35 3a 24 28 50 25 2b  |=&07000035:$(P%+|
00005e90  32 30 29 3d 22 44 61 74  65 20 73 74 61 6d 70 3a  |20)="Date stamp:|
00005ea0  22 3a 50 25 2b 3d 33 32  3a 50 25 21 30 3d 38 30  |":P%+=32:P%!0=80|
00005eb0  30 3a 50 25 21 34 3d 31  36 32 0d 18 1a 41 20 50  |0:P%!4=162...A P|
00005ec0  25 21 38 3d 39 36 34 3a  50 25 21 31 32 3d 32 30  |%!8=964:P%!12=20|
00005ed0  38 3a 50 25 21 31 36 3d  26 43 37 30 31 39 30 33  |8:P%!16=&C701903|
00005ee0  44 3a e7 20 74 79 70 65  25 3d 32 20 50 25 21 31  |D:. type%=2 P%!1|
00005ef0  36 3d 26 43 37 34 31 39  30 33 44 0d 18 24 44 20  |6=&C741903D..$D |
00005f00  24 28 50 25 2b 32 30 29  3d 22 52 65 2d 73 74 61  |$(P%+20)="Re-sta|
00005f10  6d 70 22 3a 50 25 2b 3d  33 32 3a 50 25 21 30 3d  |mp":P%+=32:P%!0=|
00005f20  34 38 38 3a 50 25 21 34  3d 32 32 30 3a 50 25 21  |488:P%!4=220:P%!|
00005f30  38 3d 39 36 34 3a 50 25  21 31 32 3d 32 36 38 0d  |8=964:P%!12=268.|
00005f40  18 2e 4e 20 50 25 21 31  36 3d 26 30 37 30 30 30  |..N P%!16=&07000|
00005f50  31 42 35 3a 50 25 21 32  30 3d 77 73 25 28 77 6e  |1B5:P%!20=ws%(wn|
00005f60  25 2c 31 29 3f 32 35 39  2b 77 73 25 28 77 6e 25  |%,1)?259+ws%(wn%|
00005f70  2c 31 29 3a 50 25 21 32  34 3d 2d 31 3a 50 25 21  |,1):P%!24=-1:P%!|
00005f80  32 38 3d 32 35 37 3a 50  25 2b 3d 33 32 0d 18 38  |28=257:P%+=32..8|
00005f90  4d 20 50 25 21 30 3d 34  38 38 3a 50 25 21 34 3d  |M P%!0=488:P%!4=|
00005fa0  32 36 36 3a 50 25 21 38  3d 36 37 34 3a 50 25 21  |266:P%!8=674:P%!|
00005fb0  31 32 3d 33 30 38 3a 50  25 21 31 36 3d 26 43 37  |12=308:P%!16=&C7|
00005fc0  30 30 32 30 33 44 3a 24  28 50 25 2b 32 30 29 3d  |00203D:$(P%+20)=|
00005fd0  22 3c 3c 3c 3c 3c 3c 3c  3c 22 0d 18 42 40 20 50  |"<<<<<<<<"..B@ P|
00005fe0  25 2b 3d 33 32 3a 50 25  21 30 3d 36 37 34 3a 50  |%+=32:P%!0=674:P|
00005ff0  25 21 34 3d 32 36 36 3a  50 25 21 38 3d 37 37 36  |%!4=266:P%!8=776|
00006000  3a 50 25 21 31 32 3d 33  30 38 3a 50 25 21 31 36  |:P%!12=308:P%!16|
00006010  3d 26 30 37 30 30 30 30  33 44 0d 18 4c 40 20 24  |=&0700003D..L@ $|
00006020  28 50 25 2b 32 30 29 3d  22 4e 61 6d 65 22 3a 50  |(P%+20)="Name":P|
00006030  25 2b 3d 33 32 3a 50 25  21 30 3d 37 37 36 3a 50  |%+=32:P%!0=776:P|
00006040  25 21 34 3d 32 36 36 3a  50 25 21 38 3d 39 36 34  |%!4=266:P%!8=964|
00006050  3a 50 25 21 31 32 3d 33  30 38 0d 18 56 4a 20 50  |:P%!12=308..VJ P|
00006060  25 21 31 36 3d 26 43 37  30 30 32 30 33 44 3a 24  |%!16=&C700203D:$|
00006070  28 50 25 2b 32 30 29 3d  22 3e 3e 3e 3e 3e 3e 3e  |(P%+20)=">>>>>>>|
00006080  3e 22 3a 50 25 2b 3d 33  32 3a 50 25 21 30 3d 36  |>":P%+=32:P%!0=6|
00006090  36 30 3a 50 25 21 34 3d  33 32 38 3a 50 25 21 38  |60:P%!4=328:P%!8|
000060a0  3d 39 36 34 0d 18 60 4c  20 50 25 21 31 32 3d 33  |=964..`L P%!12=3|
000060b0  37 36 3a 50 25 21 31 36  3d 26 30 37 30 30 30 31  |76:P%!16=&070001|
000060c0  33 44 3a 50 25 21 32 30  3d 77 73 25 28 77 6e 25  |3D:P%!20=ws%(wn%|
000060d0  2c 31 29 2b 32 37 34 3a  50 25 21 32 34 3d 2d 31  |,1)+274:P%!24=-1|
000060e0  3a 50 25 21 32 38 3d 31  32 3a 50 25 2b 3d 33 32  |:P%!28=12:P%+=32|
000060f0  0d 18 6a 49 20 50 25 21  30 3d 36 36 30 3a 50 25  |..jI P%!0=660:P%|
00006100  21 34 3d 33 38 34 3a 50  25 21 38 3d 39 36 34 3a  |!4=384:P%!8=964:|
00006110  50 25 21 31 36 3d 26 30  37 30 30 46 31 33 44 3a  |P%!16=&0700F13D:|
00006120  e7 20 74 79 70 65 25 3d  32 20 50 25 21 31 36 3d  |. type%=2 P%!16=|
00006130  26 30 37 30 30 30 31 33  44 0d 18 74 49 20 50 25  |&0700013D..tI P%|
00006140  21 31 32 3d 34 33 32 3a  50 25 21 32 30 3d 77 73  |!12=432:P%!20=ws|
00006150  25 28 77 6e 25 2c 31 29  2b 32 38 36 3a 50 25 21  |%(wn%,1)+286:P%!|
00006160  32 34 3d 68 65 78 6f 6e  6c 79 3a 50 25 21 32 38  |24=hexonly:P%!28|
00006170  3d 34 3a 50 25 2b 3d 33  32 3a 50 25 21 30 3d 36  |=4:P%+=32:P%!0=6|
00006180  36 30 0d 18 7e 4d 20 50  25 21 34 3d 34 34 30 3a  |60..~M P%!4=440:|
00006190  50 25 21 38 3d 38 33 38  3a 50 25 21 31 32 3d 34  |P%!8=838:P%!12=4|
000061a0  38 38 3a 50 25 21 31 36  3d 26 30 37 30 30 30 30  |88:P%!16=&070000|
000061b0  33 44 3a 24 28 50 25 2b  32 30 29 3d 22 46 69 6c  |3D:$(P%+20)="Fil|
000061c0  65 20 74 79 70 65 3a 22  3a 50 25 2b 3d 33 32 0d  |e type:":P%+=32.|
000061d0  18 88 49 20 50 25 21 30  3d 38 33 38 3a 50 25 21  |..I P%!0=838:P%!|
000061e0  34 3d 34 34 30 3a 50 25  21 38 3d 39 36 34 3a 50  |4=440:P%!8=964:P|
000061f0  25 21 31 36 3d 26 43 37  30 31 39 30 33 44 3a e7  |%!16=&C701903D:.|
00006200  20 74 79 70 65 25 3d 32  20 50 25 21 31 36 3d 26  | type%=2 P%!16=&|
00006210  43 37 34 31 39 30 33 44  0d 18 92 4c 20 50 25 21  |C741903D...L P%!|
00006220  31 32 3d 34 38 38 3a 24  28 50 25 2b 32 30 29 3d  |12=488:$(P%+20)=|
00006230  22 55 70 64 61 74 65 22  3a 50 25 2b 3d 33 32 3a  |"Update":P%+=32:|
00006240  50 25 21 30 3d 35 33 30  3a 50 25 21 34 3d 33 36  |P%!0=530:P%!4=36|
00006250  30 3a 50 25 21 38 3d 36  31 30 3a 50 25 21 31 32  |0:P%!8=610:P%!12|
00006260  3d 34 35 32 0d 18 9c 44  20 50 25 21 31 36 3d 26  |=452...D P%!16=&|
00006270  32 30 30 30 3a 24 28 50  25 2b 32 30 29 3d 22 22  |2000:$(P%+20)=""|
00006280  3a c8 99 20 22 57 69 6d  70 5f 43 72 65 61 74 65  |:.. "Wimp_Create|
00006290  57 69 6e 64 6f 77 22 2c  2c 62 25 20 b8 20 77 73  |Window",,b% . ws|
000062a0  25 28 77 6e 25 2c 30 29  0d 18 a6 49 20 62 25 21  |%(wn%,0)...I b%!|
000062b0  30 3d 77 73 25 28 77 6e  25 2c 30 29 3a c8 99 20  |0=ws%(wn%,0):.. |
000062c0  22 57 69 6d 70 5f 47 65  74 57 69 6e 64 6f 77 49  |"Wimp_GetWindowI|
000062d0  6e 66 6f 22 2c 2c 62 25  3a c8 99 20 22 57 69 6d  |nfo",,b%:.. "Wim|
000062e0  70 5f 4f 70 65 6e 57 69  6e 64 6f 77 22 2c 2c 62  |p_OpenWindow",,b|
000062f0  25 0d 18 b0 06 20 e1 0d  18 ba 3d 20 77 73 25 28  |%.... ....= ws%(|
00006300  77 6e 25 2c 30 29 3d 30  3a 77 73 25 28 77 6e 25  |wn%,0)=0:ws%(wn%|
00006310  2c 31 29 3d 30 3a 77 73  25 28 77 6e 25 2c 32 29  |,1)=0:ws%(wn%,2)|
00006320  3d 30 3a f4 20 64 6f 6e  74 20 74 6f 75 63 68 21  |=0:. dont touch!|
00006330  21 21 21 21 0d 18 c4 44  20 f2 5f 65 72 72 6f 72  |!!!!...D ._error|
00006340  28 31 2c 22 43 61 6e 27  74 20 6f 70 65 6e 20 61  |(1,"Can't open a|
00006350  6e 79 20 6d 6f 72 65 20  61 74 74 72 69 62 75 74  |ny more attribut|
00006360  65 20 77 69 6e 64 6f 77  73 2e 22 29 3a 6d 6f 72  |e windows."):mor|
00006370  65 72 6f 6f 6d 25 3d a3  0d 18 ce 06 20 e1 0d 18  |eroom%=..... ...|
00006380  d8 04 0d 18 e2 27 dd 20  f2 5f 69 6e 69 74 69 61  |.....'. ._initia|
00006390  6c 69 73 65 5f 68 65 61  70 3a 68 65 61 70 73 69  |lise_heap:heapsi|
000063a0  7a 65 25 3d 31 30 30 30  30 0d 18 ec 37 20 de 20  |ze%=10000...7 . |
000063b0  68 65 61 70 25 20 68 65  61 70 73 69 7a 65 25 3a  |heap% heapsize%:|
000063c0  c8 99 22 4f 53 5f 48 65  61 70 22 2c 30 2c 68 65  |.."OS_Heap",0,he|
000063d0  61 70 25 2c 2c 68 65 61  70 73 69 7a 65 25 3a e1  |ap%,,heapsize%:.|
000063e0  0d 18 f6 04 0d 19 00 26  dd 20 a4 5f 67 65 74 5f  |.......&. ._get_|
000063f0  68 65 61 70 5f 62 6c 6f  63 6b 28 6c 65 6e 29 3a  |heap_block(len):|
00006400  ea 20 70 6f 69 6e 74 65  72 25 0d 19 0a 2b 20 c8  |. pointer%...+ .|
00006410  99 22 58 4f 53 5f 48 65  61 70 22 2c 32 2c 68 65  |."XOS_Heap",2,he|
00006420  61 70 25 2c 2c 6c 65 6e  20 b8 20 2c 2c 70 6f 69  |ap%,,len . ,,poi|
00006430  6e 74 65 72 25 0d 19 14  0f 20 3a 3d 70 6f 69 6e  |nter%.... :=poin|
00006440  74 65 72 25 0d 19 1e 04  0d 19 28 21 dd 20 f2 5f  |ter%......(!. ._|
00006450  66 72 65 65 5f 68 65 61  70 5f 62 6c 6f 63 6b 28  |free_heap_block(|
00006460  70 6f 69 6e 74 65 72 25  29 0d 19 32 23 20 c8 99  |pointer%)..2# ..|
00006470  22 4f 53 5f 48 65 61 70  22 2c 33 2c 68 65 61 70  |"OS_Heap",3,heap|
00006480  25 2c 70 6f 69 6e 74 65  72 25 3a e1 0d 19 3c 04  |%,pointer%:...<.|
00006490  0d 19 46 0c dd 20 a4 5f  64 61 74 65 0d 19 50 48  |..F.. ._date..PH|
000064a0  20 62 25 3f 30 3d 65 78  65 63 25 20 80 20 26 46  | b%?0=exec% . &F|
000064b0  46 3a 62 25 3f 31 3d 28  28 65 78 65 63 25 3e 3e  |F:b%?1=((exec%>>|
000064c0  3e 38 29 20 80 20 26 46  46 29 3a 62 25 3f 32 3d  |>8) . &FF):b%?2=|
000064d0  28 28 65 78 65 63 25 3e  3e 3e 31 36 29 20 80 20  |((exec%>>>16) . |
000064e0  26 46 46 29 0d 19 5a 2f  20 62 25 3f 33 3d 28 28  |&FF)..Z/ b%?3=((|
000064f0  65 78 65 63 25 3e 3e 3e  32 34 29 20 80 20 26 46  |exec%>>>24) . &F|
00006500  46 29 3a 62 25 3f 34 3d  6c 6f 61 64 25 20 80 20  |F):b%?4=load% . |
00006510  26 46 46 0d 19 64 30 20  24 28 62 25 2b 32 30 29  |&FF..d0 $(b%+20)|
00006520  3d 22 25 32 34 3a 25 4d  49 3a 25 53 45 20 25 44  |="%24:%MI:%SE %D|
00006530  59 25 53 54 20 25 4d 33  20 25 43 45 25 59 52 22  |Y%ST %M3 %CE%YR"|
00006540  2b bd 30 0d 19 6e 33 20  c8 99 20 22 4f 53 5f 43  |+.0..n3 .. "OS_C|
00006550  6f 6e 76 65 72 74 44 61  74 65 41 6e 64 54 69 6d  |onvertDateAndTim|
00006560  65 22 2c 62 25 2c 62 25  2b 36 30 2c 26 46 30 30  |e",b%,b%+60,&F00|
00006570  2c 62 25 2b 32 30 0d 19  78 28 20 e7 20 c0 24 28  |,b%+20..x( . .$(|
00006580  62 25 2b 36 30 29 2c 32  33 29 3d 22 22 20 8c 20  |b%+60),23)="" . |
00006590  3a 3d 22 44 61 74 65 20  65 72 72 6f 72 22 0d 19  |:="Date error"..|
000065a0  82 14 20 3a 3d c0 24 28  62 25 2b 36 30 29 2c 32  |.. :=.$(b%+60),2|
000065b0  33 29 0d 19 8c 04 0d 19  96 2d dd 20 a4 5f 70 6f  |3).......-. ._po|
000065c0  73 5f 66 72 6f 6d 5f 68  61 6e 64 6c 65 28 68 25  |s_from_handle(h%|
000065d0  29 3a ea 20 70 6f 69 6e  74 25 3a 70 6f 69 6e 74  |):. point%:point|
000065e0  25 3d 30 0d 19 a0 39 20  c8 95 20 77 73 25 28 70  |%=0...9 .. ws%(p|
000065f0  6f 69 6e 74 25 2c 30 29  3c 3e 68 25 20 80 20 70  |oint%,0)<>h% . p|
00006600  6f 69 6e 74 25 3c 6d 61  78 66 69 6c 65 73 25 20  |oint%<maxfiles% |
00006610  3a 70 6f 69 6e 74 25 2b  3d 31 3a ce 0d 19 aa 29  |:point%+=1:....)|
00006620  20 e7 20 70 6f 69 6e 74  25 3c 6d 61 78 66 69 6c  | . point%<maxfil|
00006630  65 73 25 20 8c 20 3a 3d  70 6f 69 6e 74 25 20 8b  |es% . :=point% .|
00006640  20 3a 3d 2d 31 0d 19 b4  04 0d 19 be 28 dd 20 a4  | :=-1.......(. .|
00006650  5f 6e 65 77 5f 77 69 6e  64 6f 77 5f 6e 75 6d 3a  |_new_window_num:|
00006660  ea 20 70 6f 69 6e 74 25  3a 70 6f 69 6e 74 25 3d  |. point%:point%=|
00006670  30 0d 19 c8 37 20 c8 95  20 77 73 25 28 70 6f 69  |0...7 .. ws%(poi|
00006680  6e 74 25 2c 32 29 3c 3e  30 20 80 20 70 6f 69 6e  |nt%,2)<>0 . poin|
00006690  74 25 3c 6d 61 78 66 69  6c 65 73 25 3a 70 6f 69  |t%<maxfiles%:poi|
000066a0  6e 74 25 2b 3d 31 3a ce  0d 19 d2 29 20 e7 20 70  |nt%+=1:....) . p|
000066b0  6f 69 6e 74 25 3c 6d 61  78 66 69 6c 65 73 25 20  |oint%<maxfiles% |
000066c0  8c 20 3a 3d 70 6f 69 6e  74 25 20 8b 20 3a 3d 2d  |. :=point% . :=-|
000066d0  31 0d 19 dc 04 0d 19 e6  1e dd 20 a4 5f 72 65 70  |1......... ._rep|
000066e0  6f 72 74 5f 65 72 72 6f  72 28 45 24 2c 74 25 2c  |ort_error(E$,t%,|
000066f0  54 24 29 0d 19 f0 36 20  c8 99 22 57 69 6d 70 5f  |T$)...6 .."Wimp_|
00006700  52 65 70 6f 72 74 45 72  72 6f 72 22 2c a4 65 72  |ReportError",.er|
00006710  72 28 31 2c 45 24 29 2c  74 25 2c 54 24 20 b8 20  |r(1,E$),t%,T$ . |
00006720  2c 74 25 3a 3d 74 25 3d  31 0d 19 fa 04 0d 1a 04  |,t%:=t%=1.......|
00006730  3f dd 20 a4 65 72 72 28  65 6e 25 2c 65 72 24 29  |?. .err(en%,er$)|
00006740  3a 21 65 25 3d 65 6e 25  3a 24 28 65 25 2b 34 29  |:!e%=en%:$(e%+4)|
00006750  3d 65 72 24 3a 65 25 3f  28 34 2b a9 28 24 28 65  |=er$:e%?(4+.($(e|
00006760  25 2b 34 29 29 29 3d 30  3a 3d 65 25 0d 1a 0e 04  |%+4)))=0:=e%....|
00006770  0d 1a 18 2f dd 20 f2 5f  72 65 73 74 61 6d 70 3a  |.../. ._restamp:|
00006780  c8 99 22 4f 53 5f 46 69  6c 65 22 2c 35 2c 77 73  |.."OS_File",5,ws|
00006790  25 28 77 6e 25 2c 31 29  20 b8 20 74 6d 70 25 0d  |%(wn%,1) . tmp%.|
000067a0  1a 22 38 20 e7 20 74 6d  70 25 3d 30 20 f2 5f 65  |."8 . tmp%=0 ._e|
000067b0  72 72 6f 72 28 31 2c 22  27 22 2b 24 77 73 25 28  |rror(1,"'"+$ws%(|
000067c0  77 6e 25 2c 31 29 2b 22  27 20 4e 6f 74 20 66 6f  |wn%,1)+"' Not fo|
000067d0  75 6e 64 22 29 3a e1 0d  1a 2c 41 20 c8 99 22 4f  |und"):...,A .."O|
000067e0  53 5f 46 69 6c 65 22 2c  39 2c 77 73 25 28 77 6e  |S_File",9,ws%(wn|
000067f0  25 2c 31 29 3a f2 5f 72  65 61 64 5f 66 69 6c 65  |%,1):._read_file|
00006800  5f 61 74 74 72 69 62 75  74 65 73 28 24 77 73 25  |_attributes($ws%|
00006810  28 77 6e 25 2c 31 29 29  0d 1a 36 2e 20 f2 5f 72  |(wn%,1))..6. ._r|
00006820  65 64 72 61 77 5f 64 61  74 65 3a 24 28 77 73 25  |edraw_date:$(ws%|
00006830  28 77 6e 25 2c 31 29 2b  33 32 36 29 3d c3 7e 28  |(wn%,1)+326)=.~(|
00006840  6c 6f 61 64 25 29 0d 1a  40 3d 20 f2 5f 72 65 64  |load%)..@= ._red|
00006850  72 61 77 5f 69 63 6f 6e  28 77 73 25 28 77 6e 25  |raw_icon(ws%(wn%|
00006860  2c 30 29 2c 32 32 29 3a  24 28 77 73 25 28 77 6e  |,0),22):$(ws%(wn|
00006870  25 2c 31 29 2b 33 33 36  29 3d c3 7e 28 65 78 65  |%,1)+336)=.~(exe|
00006880  63 25 29 0d 1a 4a 21 20  f2 5f 72 65 64 72 61 77  |c%)..J! ._redraw|
00006890  5f 69 63 6f 6e 28 77 73  25 28 77 6e 25 2c 30 29  |_icon(ws%(wn%,0)|
000068a0  2c 32 35 29 0d 1a 54 1a  20 e7 20 ac 28 77 73 25  |,25)..T. . .(ws%|
000068b0  28 77 6e 25 2c 31 29 21  33 37 38 29 20 8c 0d 1a  |(wn%,1)!378) ...|
000068c0  5e 2e 20 20 77 73 25 28  77 6e 25 2c 31 29 21 33  |^.  ws%(wn%,1)!3|
000068d0  37 38 3d b9 3a 24 28 77  73 25 28 77 6e 25 2c 31  |78=.:$(ws%(wn%,1|
000068e0  29 2b 32 38 36 29 3d 22  46 46 44 22 0d 1a 68 22  |)+286)="FFD"..h"|
000068f0  20 20 f2 5f 72 65 64 72  61 77 5f 69 63 6f 6e 28  |  ._redraw_icon(|
00006900  77 73 25 28 77 6e 25 2c  30 29 2c 33 35 29 0d 1a  |ws%(wn%,0),35)..|
00006910  72 39 20 20 24 28 77 73  25 28 77 6e 25 2c 31 29  |r9  $(ws%(wn%,1)|
00006920  2b 32 37 34 29 3d 66 74  6e 24 3a f2 5f 72 65 64  |+274)=ftn$:._red|
00006930  72 61 77 5f 69 63 6f 6e  28 77 73 25 28 77 6e 25  |raw_icon(ws%(wn%|
00006940  2c 30 29 2c 33 34 29 0d  1a 7c 21 20 20 24 28 77  |,0),34)..|!  $(w|
00006950  73 25 28 77 6e 25 2c 31  29 2b 32 36 30 29 3d 69  |s%(wn%,1)+260)=i|
00006960  63 6f 6e 6e 61 6d 65 24  0d 1a 86 35 20 20 c8 99  |conname$...5  ..|
00006970  22 57 69 6d 70 5f 46 6f  72 63 65 52 65 64 72 61  |"Wimp_ForceRedra|
00006980  77 22 2c 77 73 25 28 77  6e 25 2c 30 29 2c 34 38  |w",ws%(wn%,0),48|
00006990  34 2c 33 31 36 2c 36 35  36 2c 35 30 30 0d 1a 90  |4,316,656,500...|
000069a0  06 20 cd 0d 1a 9a 06 20  e1 0d 1a a4 04 0d 1a ae  |. ..... ........|
000069b0  18 dd 20 f2 5f 63 68 65  63 6b 5f 65 78 69 73 74  |.. ._check_exist|
000069c0  73 28 46 24 29 0d 1a b8  23 20 ea 20 74 6d 70 25  |s(F$)...# . tmp%|
000069d0  3a c8 99 22 4f 53 5f 46  69 6c 65 22 2c 35 2c 46  |:.."OS_File",5,F|
000069e0  24 20 b8 20 74 6d 70 25  0d 1a c2 1f 20 e7 20 74  |$ . tmp%.... . t|
000069f0  6d 70 25 3d 30 20 8c 20  f2 5f 6e 6f 74 5f 66 6f  |mp%=0 . ._not_fo|
00006a00  75 6e 64 28 46 24 29 0d  1a cc 06 20 e1 0d 1a d6  |und(F$).... ....|
00006a10  04 0d 1a e0 2e dd 20 f2  5f 6e 6f 74 5f 66 6f 75  |...... ._not_fou|
00006a20  6e 64 28 46 24 29 3a 85  20 31 2c 22 27 22 2b 46  |nd(F$):. 1,"'"+F|
00006a30  24 2b 22 27 20 6e 6f 74  20 66 6f 75 6e 64 22 0d  |$+"' not found".|
00006a40  1a ea 06 20 e1 0d 1a f4  04 0d 1a fe 1b dd 20 f2  |... .......... .|
00006a50  5f 75 70 64 61 74 65 5f  65 78 65 63 5f 61 64 64  |_update_exec_add|
00006a60  72 65 73 73 0d 1b 08 46  20 c8 99 22 4f 53 5f 46  |ress...F .."OS_F|
00006a70  69 6c 65 22 2c 35 2c 77  73 25 28 77 6e 25 2c 31  |ile",5,ws%(wn%,1|
00006a80  29 20 b8 20 2c 2c 6c 6f  61 64 25 3a 65 78 65 63  |) . ,,load%:exec|
00006a90  25 3d a0 28 22 26 22 2b  24 28 77 73 25 28 77 6e  |%=.("&"+$(ws%(wn|
00006aa0  25 2c 31 29 2b 33 33 36  29 29 0d 1b 12 25 20 e7  |%,1)+336))...% .|
00006ab0  20 77 73 25 28 77 6e 25  2c 31 29 21 33 37 38 20  | ws%(wn%,1)!378 |
00006ac0  8c 20 f2 5f 72 65 64 72  61 77 5f 64 61 74 65 0d  |. ._redraw_date.|
00006ad0  1b 1c 26 20 c8 99 22 4f  53 5f 46 69 6c 65 22 2c  |..& .."OS_File",|
00006ae0  33 2c 77 73 25 28 77 6e  25 2c 31 29 2c 2c 65 78  |3,ws%(wn%,1),,ex|
00006af0  65 63 25 3a e1 0d 1b 26  04 0d 1b 30 1b dd 20 f2  |ec%:...&...0.. .|
00006b00  5f 75 70 64 61 74 65 5f  6c 6f 61 64 5f 61 64 64  |_update_load_add|
00006b10  72 65 73 73 0d 1b 3a 32  20 f2 5f 63 68 65 63 6b  |ress..:2 ._check|
00006b20  5f 65 78 69 73 74 73 28  24 77 73 25 28 77 6e 25  |_exists($ws%(wn%|
00006b30  2c 31 29 29 3a 6c 6f 61  64 25 3d a0 28 22 26 22  |,1)):load%=.("&"|
00006b40  2b 74 6d 70 24 29 0d 1b  44 47 20 c8 99 22 4f 53  |+tmp$)..DG .."OS|
00006b50  5f 46 69 6c 65 22 2c 32  2c 77 73 25 28 77 6e 25  |_File",2,ws%(wn%|
00006b60  2c 31 29 2c 6c 6f 61 64  25 3a f2 5f 72 65 61 64  |,1),load%:._read|
00006b70  5f 66 69 6c 65 5f 61 74  74 72 69 62 75 74 65 73  |_file_attributes|
00006b80  28 24 77 73 25 28 77 6e  25 2c 31 29 29 0d 1b 4e  |($ws%(wn%,1))..N|
00006b90  4a 20 24 28 77 73 25 28  77 6e 25 2c 31 29 2b 33  |J $(ws%(wn%,1)+3|
00006ba0  34 36 29 3d a4 5f 64 61  74 65 3a e7 ac 28 64 61  |46)=._date:..(da|
00006bb0  74 65 73 74 61 6d 70 25  29 20 24 28 77 73 25 28  |testamp%) $(ws%(|
00006bc0  77 6e 25 2c 31 29 2b 33  34 36 29 3d 22 55 6e 73  |wn%,1)+346)="Uns|
00006bd0  74 61 6d 70 65 64 22 0d  1b 58 3b 20 77 73 25 28  |tamped"..X; ws%(|
00006be0  77 6e 25 2c 31 29 21 33  37 38 3d 64 61 74 65 73  |wn%,1)!378=dates|
00006bf0  74 61 6d 70 25 3a f2 5f  72 65 64 72 61 77 5f 69  |tamp%:._redraw_i|
00006c00  63 6f 6e 28 77 73 25 28  77 6e 25 2c 30 29 2c 32  |con(ws%(wn%,0),2|
00006c10  37 29 0d 1b 62 38 20 24  28 77 73 25 28 77 6e 25  |7)..b8 $(ws%(wn%|
00006c20  2c 31 29 2b 32 37 34 29  3d 66 74 6e 24 3a f2 5f  |,1)+274)=ftn$:._|
00006c30  72 65 64 72 61 77 5f 69  63 6f 6e 28 77 73 25 28  |redraw_icon(ws%(|
00006c40  77 6e 25 2c 30 29 2c 33  34 29 0d 1b 6c 41 20 24  |wn%,0),34)..lA $|
00006c50  28 77 73 25 28 77 6e 25  2c 31 29 2b 32 38 36 29  |(ws%(wn%,1)+286)|
00006c60  3d c3 7e 28 66 69 6c 65  74 79 70 65 25 29 3a f2  |=.~(filetype%):.|
00006c70  5f 72 65 64 72 61 77 5f  69 63 6f 6e 28 77 73 25  |_redraw_icon(ws%|
00006c80  28 77 6e 25 2c 30 29 2c  33 35 29 0d 1b 76 20 20  |(wn%,0),35)..v  |
00006c90  24 28 77 73 25 28 77 6e  25 2c 31 29 2b 32 36 30  |$(ws%(wn%,1)+260|
00006ca0  29 3d 69 63 6f 6e 6e 61  6d 65 24 0d 1b 80 34 20  |)=iconname$...4 |
00006cb0  c8 99 22 57 69 6d 70 5f  46 6f 72 63 65 52 65 64  |.."Wimp_ForceRed|
00006cc0  72 61 77 22 2c 77 73 25  28 77 6e 25 2c 30 29 2c  |raw",ws%(wn%,0),|
00006cd0  34 38 34 2c 33 31 36 2c  36 35 36 2c 35 30 30 0d  |484,316,656,500.|
00006ce0  1b 8a 06 20 e1 0d 1b 94  04 0d 1b 9e 1c dd 20 f2  |... .......... .|
00006cf0  5f 63 6f 70 79 5f 66 69  6c 65 28 66 72 6f 6d 24  |_copy_file(from$|
00006d00  2c 74 6f 24 29 0d 1b a8  34 20 ff 22 25 43 4f 50  |,to$)...4 ."%COP|
00006d10  59 20 22 2b 66 72 6f 6d  24 2b 22 20 22 2b 74 6f  |Y "+from$+" "+to|
00006d20  24 2b 22 20 41 7e 43 7e  44 46 7e 4c 7e 4e 7e 50  |$+" A~C~DF~L~N~P|
00006d30  7e 51 52 53 7e 54 7e 56  22 0d 1b b2 06 20 e1 0d  |~QRS~T~V".... ..|
00006d40  1b bc 04 0d 1b c6 1d dd  20 a4 5f 4f 53 76 61 72  |........ ._OSvar|
00006d50  28 56 61 72 24 2c 62 25  29 3a ea 20 65 6e 64 25  |(Var$,b%):. end%|
00006d60  0d 1b d0 40 20 c8 99 20  22 4f 53 5f 52 65 61 64  |...@ .. "OS_Read|
00006d70  56 61 72 56 61 6c 22 2c  56 61 72 24 2c 62 25 2c  |VarVal",Var$,b%,|
00006d80  35 31 32 2c 30 20 b8 20  2c 2c 65 6e 64 25 3a 62  |512,0 . ,,end%:b|
00006d90  25 3f 65 6e 64 25 3d 31  33 3a 3d 24 28 62 25 29  |%?end%=13:=$(b%)|
00006da0  0d 1b da 04 0d 1b e4 1a  dd 20 f2 5f 65 72 72 6f  |......... ._erro|
00006db0  72 28 65 72 72 2c 72 65  70 6f 72 74 24 29 0d 1b  |r(err,report$)..|
00006dc0  ee 39 20 e7 20 72 65 70  6f 72 74 24 3d 22 54 6f  |.9 . report$="To|
00006dd0  6f 20 6d 61 6e 79 20 77  69 6e 64 6f 77 73 22 20  |o many windows" |
00006de0  84 20 65 72 72 3d 33 38  38 20 8c 20 6d 6f 72 65  |. err=388 . more|
00006df0  72 6f 6f 6d 25 3d a3 0d  1b f8 3b 20 c8 99 20 22  |room%=....; .. "|
00006e00  57 69 6d 70 5f 52 65 70  6f 72 74 45 72 72 6f 72  |Wimp_ReportError|
00006e10  22 2c a4 65 72 72 28 65  72 72 2c 72 65 70 6f 72  |",.err(err,repor|
00006e20  74 24 29 2c 31 2c 54 61  73 6b 54 69 74 6c 65 24  |t$),1,TaskTitle$|
00006e30  3a e1 0d 1c 02 04 0d 1c  0c 18 dd 20 f2 5f 75 70  |:.......... ._up|
00006e40  64 61 74 65 5f 66 69 6c  65 5f 74 79 70 65 0d 1c  |date_file_type..|
00006e50  16 31 20 f2 5f 63 68 65  63 6b 5f 65 78 69 73 74  |.1 ._check_exist|
00006e60  73 28 24 77 73 25 28 77  6e 25 2c 31 29 29 3a 77  |s($ws%(wn%,1)):w|
00006e70  73 25 28 77 6e 25 2c 31  29 21 33 37 38 3d b9 0d  |s%(wn%,1)!378=..|
00006e80  1c 20 38 20 c8 99 22 4f  53 5f 46 69 6c 65 22 2c  |. 8 .."OS_File",|
00006e90  26 31 32 2c 77 73 25 28  77 6e 25 2c 31 29 2c a0  |&12,ws%(wn%,1),.|
00006ea0  28 22 26 22 2b 24 28 77  73 25 28 77 6e 25 2c 31  |("&"+$(ws%(wn%,1|
00006eb0  29 2b 32 38 36 29 29 0d  1c 2a 2d 20 c8 99 22 4f  |)+286))..*- .."O|
00006ec0  53 5f 46 69 6c 65 22 2c  35 2c 77 73 25 28 77 6e  |S_File",5,ws%(wn|
00006ed0  25 2c 31 29 20 b8 20 2c  2c 6c 6f 61 64 25 2c 65  |%,1) . ,,load%,e|
00006ee0  78 65 63 25 0d 1c 34 44  20 24 28 77 73 25 28 77  |xec%..4D $(ws%(w|
00006ef0  6e 25 2c 31 29 2b 33 32  36 29 3d 22 46 46 46 22  |n%,1)+326)="FFF"|
00006f00  2b 24 28 77 73 25 28 77  6e 25 2c 31 29 2b 32 38  |+$(ws%(wn%,1)+28|
00006f10  36 29 2b c2 24 28 77 73  25 28 77 6e 25 2c 31 29  |6)+.$(ws%(wn%,1)|
00006f20  2b 33 32 36 29 2c 32 29  0d 1c 3e 40 20 f2 5f 72  |+326),2)..>@ ._r|
00006f30  65 64 72 61 77 5f 69 63  6f 6e 28 77 73 25 28 77  |edraw_icon(ws%(w|
00006f40  6e 25 2c 30 29 2c 32 32  29 3a f2 5f 72 65 64 72  |n%,0),22):._redr|
00006f50  61 77 5f 64 61 74 65 3a  77 73 25 28 77 6e 25 2c  |aw_date:ws%(wn%,|
00006f60  31 29 21 33 37 38 3d b9  0d 1c 48 06 20 e1 0d 1c  |1)!378=...H. ...|
00006f70  52 04 0d 1c 5c 13 dd 20  f2 5f 72 65 64 72 61 77  |R...\.. ._redraw|
00006f80  5f 64 61 74 65 0d 1c 66  3c 20 24 28 77 73 25 28  |_date..f< $(ws%(|
00006f90  77 6e 25 2c 31 29 2b 33  34 36 29 3d a4 5f 64 61  |wn%,1)+346)=._da|
00006fa0  74 65 3a f2 5f 72 65 64  72 61 77 5f 69 63 6f 6e  |te:._redraw_icon|
00006fb0  28 77 73 25 28 77 6e 25  2c 30 29 2c 32 37 29 3a  |(ws%(wn%,0),27):|
00006fc0  e1 0d 1c 70 04 0d 1c 7a  44 dd 20 f2 5f 72 65 64  |...p...zD. ._red|
00006fd0  72 61 77 5f 69 63 6f 6e  28 77 25 2c 69 25 29 3a  |raw_icon(w%,i%):|
00006fe0  62 25 21 30 3d 77 25 3a  62 25 21 34 3d 69 25 3a  |b%!0=w%:b%!4=i%:|
00006ff0  c8 99 22 57 69 6d 70 5f  47 65 74 49 63 6f 6e 53  |.."Wimp_GetIconS|
00007000  74 61 74 65 22 2c 2c 62  25 0d 1c 84 39 20 62 25  |tate",,b%...9 b%|
00007010  21 34 3d 62 25 21 38 2b  32 3a 62 25 21 38 3d 62  |!4=b%!8+2:b%!8=b|
00007020  25 21 31 32 2b 34 3a 62  25 21 31 32 3d 62 25 21  |%!12+4:b%!12=b%!|
00007030  31 36 2d 32 3a 62 25 21  31 36 3d 62 25 21 32 30  |16-2:b%!16=b%!20|
00007040  2d 34 0d 1c 8e 31 20 c8  99 22 57 69 6d 70 5f 55  |-4...1 .."Wimp_U|
00007050  70 64 61 74 65 57 69 6e  64 6f 77 22 2c 2c 62 25  |pdateWindow",,b%|
00007060  20 b8 20 6d 6f 72 65 25  3a f2 5f 72 65 64 72 61  | . more%:._redra|
00007070  77 3a e1 0d 1c 98 04 0d  1c a2 1c dd 20 f2 5f 66  |w:.......... ._f|
00007080  6c 6f 61 74 69 6e 67 5f  69 63 6f 6e 28 78 25 2c  |loating_icon(x%,|
00007090  79 25 29 0d 1c ac 42 20  73 70 6e 61 6d 65 24 3d  |y%)...B spname$=|
000070a0  22 21 61 74 74 72 69 62  75 74 65 22 3a c8 99 22  |"!attribute":.."|
000070b0  57 69 6d 70 5f 53 70 72  69 74 65 4f 70 22 2c 34  |Wimp_SpriteOp",4|
000070c0  30 2c 2c 73 70 6e 61 6d  65 24 20 b8 20 2c 2c 2c  |0,,spname$ . ,,,|
000070d0  77 25 2c 68 25 0d 1c b6  47 20 62 25 21 30 3d 78  |w%,h%...G b%!0=x|
000070e0  25 2d 77 25 2d 32 30 3a  62 25 21 34 3d 79 25 2d  |%-w%-20:b%!4=y%-|
000070f0  36 36 3a 62 25 21 38 3d  78 25 2b 77 25 2b 32 30  |66:b%!8=x%+w%+20|
00007100  3a 62 25 21 31 32 3d 79  25 2b 36 32 3a 62 25 21  |:b%!12=y%+62:b%!|
00007110  31 36 3d 30 3a 62 25 21  32 30 3d 30 0d 1c c0 47  |16=0:b%!20=0...G|
00007120  20 62 25 21 32 34 3d 2d  31 3a 62 25 21 32 38 3d  | b%!24=-1:b%!28=|
00007130  31 34 34 3a 62 25 3f 33  32 3d 37 3a 62 25 3f 33  |144:b%?32=7:b%?3|
00007140  33 3d 30 3a 62 25 3f 33  34 3d 37 3a 62 25 3f 33  |3=0:b%?34=7:b%?3|
00007150  35 3d 31 3a 62 25 21 33  36 3d 30 3a 62 25 21 34  |5=1:b%!36=0:b%!4|
00007160  30 3d 30 0d 1c ca 4a 20  62 25 21 34 34 3d 30 3a  |0=0...J b%!44=0:|
00007170  62 25 21 34 38 3d 62 25  21 38 2d 62 25 21 30 3a  |b%!48=b%!8-b%!0:|
00007180  62 25 21 35 32 3d 31 33  30 3a 62 25 21 35 36 3d  |b%!52=130:b%!56=|
00007190  30 3a 62 25 21 36 30 3d  26 32 30 30 30 3a 62 25  |0:b%!60=&2000:b%|
000071a0  21 36 34 3d 31 3a 62 25  21 36 38 3d 30 0d 1c d4  |!64=1:b%!68=0...|
000071b0  44 20 62 25 21 37 32 3d  26 30 30 30 44 3a 62 25  |D b%!72=&000D:b%|
000071c0  21 38 34 3d 31 3a 62 25  21 38 38 3d 32 30 3a 62  |!84=1:b%!88=20:b|
000071d0  25 21 39 32 3d 32 32 3a  62 25 21 39 36 3d 62 25  |%!92=22:b%!96=b%|
000071e0  21 34 38 2d 32 30 3a 62  25 21 31 30 30 3d 31 30  |!48-20:b%!100=10|
000071f0  30 0d 1c de 42 20 62 25  21 31 30 34 3d 26 32 30  |0...B b%!104=&20|
00007200  30 32 3a 24 28 62 25 2b  31 30 38 29 3d 73 70 6e  |02:$(b%+108)=spn|
00007210  61 6d 65 24 3a c8 99 22  57 69 6d 70 5f 43 72 65  |ame$:.."Wimp_Cre|
00007220  61 74 65 57 69 6e 64 6f  77 22 2c 2c 62 25 20 b8  |ateWindow",,b% .|
00007230  20 68 25 0d 1c e8 46 20  62 25 21 30 3d 68 25 3a  | h%...F b%!0=h%:|
00007240  c8 99 22 57 69 6d 70 5f  47 65 74 57 69 6e 64 6f  |.."Wimp_GetWindo|
00007250  77 49 6e 66 6f 22 2c 2c  62 25 3a c8 99 22 57 69  |wInfo",,b%:.."Wi|
00007260  6d 70 5f 4f 70 65 6e 57  69 6e 64 6f 77 22 2c 2c  |mp_OpenWindow",,|
00007270  62 25 3a 69 77 25 3d 68  25 0d 1c f2 06 20 e1 0d  |b%:iw%=h%.... ..|
00007280  1c fc 04 0d 1d 06 45 dd  20 a4 5f 69 6e 73 74 61  |......E. ._insta|
00007290  6c 6c 5f 6f 6e 5f 69 63  6f 6e 5f 62 61 72 3a 21  |ll_on_icon_bar:!|
000072a0  62 25 3d 2d 32 3a 62 25  21 34 3d 30 3a 62 25 21  |b%=-2:b%!4=0:b%!|
000072b0  38 3d 30 3a 73 70 6e 61  6d 65 24 3d 22 21 61 74  |8=0:spname$="!at|
000072c0  74 72 69 62 75 74 65 22  0d 1d 10 43 20 c8 99 22  |tribute"...C .."|
000072d0  57 69 6d 70 5f 53 70 72  69 74 65 4f 70 22 2c 34  |Wimp_SpriteOp",4|
000072e0  30 2c 2c 73 70 6e 61 6d  65 24 20 b8 20 2c 2c 2c  |0,,spname$ . ,,,|
000072f0  77 25 2c 68 25 3a 62 25  21 31 32 3d 77 25 2a 32  |w%,h%:b%!12=w%*2|
00007300  3a 62 25 21 31 36 3d 68  25 2a 34 0d 1d 1a 36 20  |:b%!16=h%*4...6 |
00007310  62 25 21 32 30 3d 26 32  31 30 32 3a de 20 62 25  |b%!20=&2102:. b%|
00007320  21 32 34 20 28 a9 73 70  6e 61 6d 65 24 2b 31 29  |!24 (.spname$+1)|
00007330  3a 24 28 62 25 21 32 34  29 3d 73 70 6e 61 6d 65  |:$(b%!24)=spname|
00007340  24 0d 1d 24 43 20 62 25  21 32 38 3d 31 3a 62 25  |$..$C b%!28=1:b%|
00007350  21 33 32 3d a9 28 73 70  6e 61 6d 65 24 29 2b 31  |!32=.(spname$)+1|
00007360  3a c8 99 20 22 57 69 6d  70 5f 43 72 65 61 74 65  |:.. "Wimp_Create|
00007370  49 63 6f 6e 22 2c 2c 62  25 20 b8 20 69 63 25 3a  |Icon",,b% . ic%:|
00007380  3d 69 63 25 0d 1d 2e 04  0d 1d 38 1c dd 20 f2 5f  |=ic%......8.. ._|
00007390  72 65 6d 6f 76 65 5f 66  72 6f 6d 5f 69 63 6f 6e  |remove_from_icon|
000073a0  5f 62 61 72 0d 1d 42 37  20 62 25 21 30 3d 2d 32  |_bar..B7 b%!0=-2|
000073b0  3a 62 25 21 34 3d 69 63  6f 6e 25 3a c8 99 22 57  |:b%!4=icon%:.."W|
000073c0  69 6d 70 5f 44 65 6c 65  74 65 49 63 6f 6e 22 2c  |imp_DeleteIcon",|
000073d0  2c 62 25 3a 69 63 6f 6e  25 3d 30 0d 1d 4c 06 20  |,b%:icon%=0..L. |
000073e0  e1 0d ff                                          |...|
000073e3