Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199206b.adf » June92 » !AWJune92/Goodies/PD/!TinyClock/!RunImageS
!AWJune92/Goodies/PD/!TinyClock/!RunImageS
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199206b.adf » June92 |
Filename: | !AWJune92/Goodies/PD/!TinyClock/!RunImageS |
Read OK: | ✔ |
File size: | 3A45 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM > !RunImage 20REM 30REM This program puts a clock on the desktop iconbar (Richard Chubb) 40REM ... and allows you to set it - Richard Hallas 50REM : 60REM All lines at the end separated by colons have been added by RH, and 70REM a few others have been modified/added. However, the program remains 80REM functionally identical to its previous incarnation, except for the 90REM added facilities. 100REM 110REM The clock now appears on the LEFT of the icon bar by default. 120REM 130REM This is ***Version 2*** - R.H. 140 150ON ERROR PROCerror 160 170REM Set up arrays and variables 180 190DIM Block 256,Menus 2048,InfoW 1024,SetClockW 1024,IndTextInfo 2048,IndTextSetClock 2048,Window 256,IconBlock 256,NewIconBlock 256,ClockInfo 25 200DIM Day$(6),Month$(11),days(11):RESTORE +1:FOR N=0 TO 6:READ Day$(N):NEXT:FOR N=0 TO 11:READ Month$(N),days(N):NEXT 210DATA Sun,Mon,Tue,Wed,Thu,Fri,Sat,January,31,February,28,March,31,April,30,May,31,June,30,July,31,August,31,September,30,October,31,November,30,December,31 220 230REM Make program sprite area 240 250DIM Sprites 6952 260!Sprites=6952 270Sprites!4=0 280Sprites!8=16 290Sprites!12=16 300SYS "OS_SpriteOp",&10A,Sprites,"<TinyClock+2$Dir>.!Sprites" 310 320REM Initialise Wimp 330 340SYS "Wimp_Initialise",200,&4B534154,"Tiny Clock +2" TO ,Task 350SYS "Wimp_OpenTemplate",,"<TinyClock+2$Dir>.Templates" 360SYS "Wimp_LoadTemplate",,InfoW,IndTextInfo,IndTextInfo+2048,-1,"Info",0 370SYS "Wimp_CreateWindow",,InfoW TO Info 380SYS "Wimp_LoadTemplate",,SetClockW,IndTextSetClock,IndTextSetClock+2048,-1,"Set clock" 390SYS "Wimp_CreateWindow",,SetClockW TO SetClock 400SYS "Wimp_CloseTemplate" 410 420REM Find Default side of Icon bar to use 430 440Side=-2:PROCreadside 450 460REM Identify which clock face to use 470 480Change=FALSE 490InfoIcon=13 500PROCreadmodevariables:OldYEig=YEigFactor 510IF YEigFactor<=1 THEN Face$="clkicon":ELSE Face$="12clkicon" 520REM Update Info box sprite icon to the Mode 20 version if necessary VALVALVALVAL 530IF YEigFactor=2 THEN 540 Block!0=Info 550 Block!4=InfoIcon 560 SYS "Wimp_GetIconState",,Block 570 SYS "Wimp_DeleteIcon",,Block 580 NewIconBlock!0=Info:FOR bytes=4 TO 36 STEP 4:NewIconBlock!bytes=Block!(bytes+4):NEXT 590 $(NewIconBlock+24)=Face$+CHR$0 600 SYS "Wimp_CreateIcon",,NewIconBlock TO InfoIcon 610 Block!0=Info:Block!4=InfoIcon:Block!8=0:Block!12=0 620 SYS "Wimp_SetIconState",,Block 630ENDIF 640 650REM Put Icon on the iconbar 660 670Block!0=Side 680Block!4=0 690Block!8=-16 700Block!12=114 710Block!16=100 720Block!20=&17003002 730$(Block+24)=Face$ 740SYS "Wimp_CreateIcon",,Block TO IconBar 750 760REM Build menus 770 780M%=Menus 790PROCMenu_init("Tiny Clock+2") 800PROCMenu_item("Info",0,Info) 810PROCMenu_item("Change Sides",0,-1) 820PROCMenu_item("Quit",&80,-1) 830 840REM Main program loop 850 860Secs%=99 870Done=FALSE 880REPEAT 890 SYS "Wimp_Poll",%10010110010,Block TO Reason 900 CASE Reason OF 910 WHEN 2 : SYS "Wimp_OpenWindow",,Block 920 WHEN 3 : SYS "Wimp_CloseWindow",,Block 930 WHEN 6 : PROCMouseButton 940 WHEN 9 : PROCDecodeMenu 950 WHEN 17,18 : PROCRecieveMessage 960 ENDCASE 970 980Time$=TIME$ 990IF VALRIGHT$(Time$,2)<>Secs% THEN 1000 Secs%=VALRIGHT$(Time$,2) 1010 Time$=LEFT$(Time$,LENTime$-3) 1020 Mins=VALRIGHT$(Time$,2)+Secs%/60 1030 Time$=LEFT$(Time$,LENTime$-3) 1040 Hours=VALRIGHT$(Time$,2)MOD12+Mins/60 1050 1060 PROCreadmodevariables:IF YEigFactor<=1 THEN Face$="clkicon":ELSE Face$="12clkicon" 1070 IF YEigFactor<>OldYEig THEN Change=TRUE 1080 SYS "Wimp_BaseOfSprites" TO ,iconsprite% 1090 SYS "OS_SpriteOp",&13C,iconsprite%,Face$,0 TO r0,r1,r2,r3 1100 SYS "OS_SpriteOp",&122,Sprites,Face$,0,0,8 1110 1120 GCOL 0,5 1130 X0%=(57/2)*2 1140 IF YEigFactor=1 THEN Y0%=(57/2)*2:ELSE Y0%=(29/2)*4 1150 1160REM Draw hours hand 1170 1180 MOVE X0%,Y0% 1190 MOVE X0%+16*SIN((Hours-.7)*2*PI/12),Y0%+16*COS((Hours-.7)*2*PI/12) 1200 PLOT 85,X0%+16*SIN((Hours+.7)*2*PI/12),Y0%+16*COS((Hours+.7)*2*PI/12) 1210 PLOT 85,X0%+34*SIN(Hours*2*PI/12),Y0%+34*COS(Hours*2*PI/12) 1220 1230REM Draw minutes hand 1240 1250 MOVE X0%,Y0% 1260 MOVE X0%+16*SIN((Mins-.5)*2*PI/60),Y0%+16*COS((Mins-.5)*2*PI/60) 1270 PLOT 85,X0%+16*SIN((Mins+.5)*2*PI/60),Y0%+16*COS((Mins+.5)*2*PI/60) 1280 PLOT 85,X0%+50*SIN(Mins*2*PI/60),Y0%+50*COS(Mins*2*PI/60) 1290 1300REM Draw seconds hand 1310 1320 GCOL 0,11 1330 MOVE X0%,Y0% 1340 DRAW BY 50*SIN(Secs%*2*PI/60),50*COS(Secs%*2*PI/60) 1350 CIRCLE FILL X0%,Y0%,4 1360 1370REM Restore VDU output to screen 1380 1390 SYS "OS_SpriteOp",r0,r1,r2,r3 1400 1410REM Make desktop replot clock icon (and Info Box - RH) 1420 1430 IF Change THEN 1440 Block!0=Side 1450 Block!4=IconBar 1460 SYS "Wimp_DeleteIcon",,Block 1470 Block!0=Side 1480 Block!4=0 1490 Block!8=-16 1500 Block!12=114 1510 Block!16=100 1520 Block!20=&17003002 1530 $(Block+24)=Face$ 1540 SYS "Wimp_CreateIcon",,Block TO IconBar 1550 1560 Block!0=Info 1570 Block!4=InfoIcon 1580 SYS "Wimp_GetIconState",,Block 1590 SYS "Wimp_DeleteIcon",,Block 1600 NewIconBlock!0=Info:FOR bytes=4 TO 32 STEP 4:NewIconBlock!bytes=Block!(bytes+4):NEXT 1610 $(NewIconBlock+24)=Face$+CHR$0 1620 SYS "Wimp_CreateIcon",,NewIconBlock TO InfoIcon 1630 Block!0=Info:Block!4=InfoIcon:Block!8=0:Block!12=0 1640 SYS "Wimp_SetIconState",,Block 1650 1660 Change=FALSE 1670 1680 ELSE 1690 1700 Block!0=Side 1710 Block!4=IconBar 1720 Block!8=0 1730 Block!12=0 1740 SYS "Wimp_SetIconState",,Block 1750 1760 Block!0=Info 1770 Block!4=InfoIcon :REM Icon number of clock face icon in Info Box 1780 Block!8=0 1790 Block!12=0 1800 SYS "Wimp_SetIconState",,Block 1810 ENDIF 1820 OldYEig=YEigFactor 1830ENDIF 1840 1850UNTIL Done 1860SYS "Wimp_CloseDown",Task,&4B534154 1870END 1880 1890REM Error handler 1900 1910DEF PROCerror 1920 ON ERROR QUIT 1930 Block!0=ERR 1940 $(Block+4)=REPORT$+" at line "+STR$ERL+CHR$0 1950 SYS "Wimp_ReportError",Block,%010,"Tiny Clock +2" 1960 SYS "Wimp_CloseDown",Task,&4B534154 1970END 1980 1990REM Message handler 2000 2010DEF PROCRecieveMessage 2020 CASE Block!16 OF 2030 WHEN 0 : Done=TRUE 2040 ENDCASE 2050ENDPROC 2060 2070REM Mouse button handler 2080 2090DEF PROCMouseButton 2100IF Block!12=SetClock THEN PROCdecodeSetClockPresses 2110 IF Block!12=-2 AND Block!16=IconBar THEN 2120 CASE NOTBlock!20 AND Block!8 OF 2130 WHEN 1 2140 PROCopen(SetClock,TRUE) 2150 WHEN 2 2160 PROCmake_menu 2170 ENDCASE 2180 ELSE IF Block!12=Info AND Block!16=InfoIcon THEN 2190 CASE NOTBlock!20 AND Block!8 OF 2200 WHEN 1:PROCopen(SetClock,TRUE) 2210 ENDCASE 2220 ENDIF 2230 ENDIF 2240ENDPROC 2250 2260DEF PROCmake_menu 2270 Block!0=Block!0-48 2280 IF Block!0<0 THEN Block!0=0 2290 IF Block!4<254 THEN Block!4=254 2300 SYS "Wimp_CreateMenu",,Menus,Block!0-48,Block!4 2310ENDPROC 2320 2330REM A menu entry has been selected 2340 2350DEF PROCDecodeMenu 2360 CASE Block!0 OF 2370 WHEN 0 2380 PROCopen(Info,TRUE) 2390 WHEN 1 2400 IF Side=-1 THEN Side=-2 ELSE Side=-1 2410 PROCwriteside 2420 Change=TRUE 2430 WHEN 2 2440 Done=TRUE 2450 ENDCASE 2460 SYS "Wimp_GetPointerInfo",,Block 2470 IF (Block!8 AND 1)=1 THEN PROCmake_menu 2480ENDPROC 2490 2500REM 2510REM Initialise a set menu options 2520REM 2530REM Title = Title at top of menu 2540REM 2550 2560DEF PROCMenu_init(Title$) 2570 L%=LENTitle$+1 2580 $M%=Title$ 2590 M%?12=7 2600 M%?13=2 2610 M%?14=6 2620 M%?15=0 2630 M%!16=(L%+1)*16 2640 M%!20=40 2650 M%!24=0 2660 P%=M%+28 2670ENDPROC 2680 2690REM 2700REM Add an entry to the menu list (Call Menu_init first) 2710REM 2720REM Text = Text of menu entry 2730REM 2740REM Flags = +1 for 'this item is ticked' 2750REM +2 for 'there is a dotted line after' 2760REM +&80 for 'This is the last item' 2770REM 2780REM Link = address of following menu or handle of window to link to 2790REM 2800 2810DEF PROCMenu_item(Text$,Flags%,Link%) 2820 P%!0=Flags%AND255 2830 P%!4=Link% 2840 P%!8=&07003021 2850 $(P%+12)=Text$ 2860 P%+=24 2870 IF LENText$>L% THEN L%=LENText$ : M%!16=(L%+1)*16 2880ENDPROC 2890: 2900DEF PROCreadmodevariables 2910SYS "OS_ReadModeVariable",-1,11 TO ,,Xpixels 2920SYS "OS_ReadModeVariable",-1,12 TO ,,Ypixels 2930SYS "OS_ReadModeVariable",-1,4 TO ,,XEigFactor 2940SYS "OS_ReadModeVariable",-1,5 TO ,,YEigFactor 2950ENDPROC 2960: 2970DEF PROCdecidewindowposition(Window) 2980width=(Window!12-Window!4)/(2^XEigFactor):height=(Window!16-Window!8)/(2^YEigFactor) 2990x=(Xpixels+1-width)/2:y=(Ypixels+1-height)/2 3000REM Above coordinates centralise window (in OS units again) 3010REM Now convert to screen coordinates: 3020x=x*(2^XEigFactor):y=y*(2^YEigFactor) 3030width=width*(2^XEigFactor):height=height*(2^YEigFactor) 3040Window!12=x+width:Window!4=x 3050Window!16=y+height:Window!8=y 3060ENDPROC 3070: 3080DEF PROCopen(WindowHandle,TopOfStack) 3090PROCreadmodevariables 3100Window!0=WindowHandle 3110SYS "Wimp_GetWindowState",,Window 3120PROCdecidewindowposition(Window) 3130IF TopOfStack THEN Window!28=-1 3140SYS "Wimp_OpenWindow",,Window 3150IF WindowHandle=SetClock THEN PROCreadClockInfo:PROCsetClockIcons 3160ENDPROC 3170: 3180DEF PROCclose(WindowHandle) 3190Window!0=WindowHandle 3200SYS "Wimp_GetWindowState",,Window 3210SYS "Wimp_CloseWindow",,Window 3220IF WindowHandle=MainWindow THEN Done=TRUE 3230ENDPROC 3240: 3250DEF PROCUpdateIcons(Icon,Icon$) 3260IconBlock!0=SetClock:IconBlock!4=Icon 3270SYS "Wimp_GetIconState",,IconBlock 3280SYS "Wimp_DeleteIcon",,IconBlock 3290NewIconBlock!0=SetClock:FOR bytes=4 TO 32 STEP 4:NewIconBlock!bytes=IconBlock!(bytes+4):NEXT 3300$(NewIconBlock+24)=Icon$+CHR$0 3310SYS "Wimp_CreateIcon",,NewIconBlock 3320IconBlock!0=SetClock:IconBlock!4=Icon:IconBlock!8=0:IconBlock!12=0 3330SYS "Wimp_SetIconState",,IconBlock 3340ENDPROC 3350: 3360DEF PROCdecodeSetClockPresses 3370REM Which arrow icon is being pressed? 3380CASE Block!16 OF 3390 WHEN 0: REM Hours Increase 3400 hh=FNincrease(hh,0,23) 3410 IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 3420 IF hh=12 THEN ampm$="pm" 3430 IF hh=0 THEN hours=12:ampm$="am" 3440 IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 3450 PROCupdate(2,STR$(hours)+":"+minutes$+" "+ampm$) 3460 WHEN 1: REM Hours Decrease 3470 hh=FNdecrease(hh,0,23) 3480 IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 3490 IF hh=12 THEN ampm$="pm" 3500 IF hh=0 THEN hours=12:ampm$="am" 3510 IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 3520 PROCupdate(2,STR$(hours)+":"+minutes$+" "+ampm$) 3530 WHEN 3: REM Minutes Increase 3540 mm=FNincrease(mm,0,59) 3550 IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 3560 IF hh=12 THEN ampm$="pm" 3570 IF hh=0 THEN hours=12:ampm$="am" 3580 IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 3590 PROCupdate(2,STR$(hours)+":"+minutes$+" "+ampm$) 3600 WHEN 4: REM Minutes Decrease 3610 mm=FNdecrease(mm,0,59) 3620 IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 3630 IF hh=12 THEN ampm$="pm" 3640 IF hh=0 THEN hours=12:ampm$="am" 3650 IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 3660 PROCupdate(2,STR$(hours)+":"+minutes$+" "+ampm$) 3670 WHEN 5: REM *** SET CLOCK NOW!!! *** 3680 SYS "OS_Word",15,ClockInfo 3690 WHEN 6: REM Decrease Day, Date 3700 nn=FNdecrease(nn,1,days(mnth)) 3710 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 3720 day$=Day$(day):ddd$=day$ 3730 contents$=day$+", "+STR$(nn) 3740 PROCstndrdth 3750 PROCupdate(7,contents$) 3760 WHEN 8: REM Increase Day, Date 3770 nn=FNincrease(nn,1,days(mnth)) 3780 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 3790 day$=Day$(day):ddd$=day$ 3800 contents$=day$+", "+STR$(nn) 3810 PROCstndrdth 3820 PROCupdate(7,contents$) 3830 WHEN 9: REM Decrease Month 3840 mnth=FNdecrease(mnth,0,11) 3850 mmm$=MID$(Month$(mnth),1,3) 3860 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 3870 day$=Day$(day):ddd$=day$ 3880 contents$=day$+", "+STR$(nn) 3890 PROCstndrdth 3900 PROCupdate(7,contents$) 3910 PROCupdate(11,Month$(mnth)) 3920 WHEN 10: REM Increase Month 3930 mnth=FNincrease(mnth,0,11) 3940 mmm$=MID$(Month$(mnth),1,3) 3950 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 3960 day$=Day$(day):ddd$=day$ 3970 contents$=day$+", "+STR$(nn) 3980 PROCstndrdth 3990 PROCupdate(7,contents$) 4000 PROCupdate(11,Month$(mnth)) 4010 WHEN 12: REM Decrease Year 4020 yyyy=FNdecrease(VAL(yyyy$),1753,9999) 4030 yyyy$=STR$(yyyy) 4040 IF FNleap(yyyy) THEN days(1)=29:ELSE days(1)=28 4050 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 4060 day$=Day$(day):ddd$=day$ 4070 contents$=day$+", "+STR$(nn) 4080 PROCstndrdth 4090 PROCupdate(7,contents$) 4100 PROCupdate(14,yyyy$) 4110 WHEN 13: REM Increase Year 4120 yyyy=FNincrease(VAL(yyyy$),1753,9999) 4130 yyyy$=STR$(yyyy) 4140 IF FNleap(yyyy) THEN days(1)=29:ELSE days(1)=28 4150 day=FNdayofweek(nn,mnth+1,VAL(yyyy$)) 4160 day$=Day$(day):ddd$=day$ 4170 contents$=day$+", "+STR$(nn) 4180 PROCstndrdth 4190 PROCupdate(7,contents$) 4200 PROCupdate(14,yyyy$) 4210 WHEN 15: REM Decrease Seconds 4220 ss=FNdecrease(ss,0,59) 4230 IF ss<10 THEN seconds$="0"+STR$(ss):ELSE seconds$=STR$(ss) 4240 PROCupdate(16,seconds$+" secs") 4250 WHEN 16: REM Reset Seconds to 00 4260 ss=0 4270 seconds$="00" 4280 PROCupdate(16,seconds$+" secs") 4290 WHEN 17: REM Increase Seconds 4300 ss=FNincrease(ss,0,59) 4310 IF ss<10 THEN seconds$="0"+STR$(ss):ELSE seconds$=STR$(ss) 4320 PROCupdate(16,seconds$+" secs") 4330ENDCASE 4340ENDPROC 4350: 4360DEF PROCreadClockInfo 4370Clock$=TIME$ 4380ddd$=MID$(Clock$,1,3) 4390nn=VAL(MID$(Clock$,5,2)) 4400mmm$=MID$(Clock$,8,3) 4410yyyy$=MID$(Clock$,12,4) 4420hh=VAL(MID$(Clock$,17,2)) 4430mm=VAL(MID$(Clock$,20,2)) 4440ss=VAL(MID$(Clock$,23,2)) 4450FOR N=0 TO 11 4460IF mmm$=MID$(Month$(N),1,3) THEN mnth=N 4470NEXT 4480ENDPROC 4490: 4500DEF FNincrease(var,lowerlimit,upperlimit) 4510var+=1:IF var>upperlimit THEN var=lowerlimit 4520=var 4530: 4540DEF FNdecrease(var,lowerlimit,upperlimit) 4550var-=1:IF var<lowerlimit THEN var=upperlimit 4560=var 4570: 4580DEF PROCupdate(Icon,Icon$) 4590IF nn<10 THEN nn$="0"+STR$(nn):ELSE nn$=STR$(nn) 4600IF hh<10 THEN hh$="0"+STR$(hh):ELSE hh$=STR$(hh) 4610IF mm<10 THEN mm$="0"+STR$(mm):ELSE mm$=STR$(mm) 4620IF ss<10 THEN ss$="0"+STR$(ss):ELSE ss$=STR$(ss) 4630Clock$=ddd$+","+nn$+" "+mmm$+" "+yyyy$+"."+hh$+":"+mm$+":"+ss$ 4640ClockInfo?0=24:$(ClockInfo+1)=Clock$ 4650PROCUpdateIcons(Icon,Icon$) 4660ENDPROC 4670: 4680DEF PROCsetClockIcons 4690:REM Hours: 4700IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 4710IF hh=12 THEN ampm$="pm" 4720IF hh=0 THEN hours=12:ampm$="am" 4730IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 4740PROCUpdateIcons(2,STR$(hours)+":"+minutes$+" "+ampm$) 4750:REM Minutes: 4760IF hh>12 THEN hours=hh-12:ampm$="pm":ELSE hours=hh:ampm$="am" 4770IF hh=12 THEN ampm$="pm" 4780IF hh=0 THEN hours=12:ampm$="am" 4790IF mm<10 THEN minutes$="0"+STR$(mm):ELSE minutes$=STR$(mm) 4800PROCUpdateIcons(2,STR$(hours)+":"+minutes$+" "+ampm$) 4810:REM Seconds: 4820IF ss<10 THEN seconds$="0"+STR$(ss):ELSE seconds$=STR$(ss) 4830PROCUpdateIcons(16,seconds$+" secs") 4840:REM Year: 4850PROCUpdateIcons(14,yyyy$) 4860:REM Month: 4870PROCUpdateIcons(11,Month$(mnth)) 4880:REM Day, Date: 4890contents$=ddd$+", "+STR$(nn) 4900PROCstndrdth 4910PROCUpdateIcons(7,contents$) 4920ENDPROC 4930: 4940DEF FNdayofweek(Day,Month,Year) 4950=(INT(30.57*Month)+INT(365.25*Year-395.25)+(Year-1) DIV 400-(Year-1) DIV 100+Day+(Month>2)+(Month>2 AND NOT FNleap(Year))) MOD 7 4960: 4970DEF FNleap(Year) 4980=((Year MOD 400)=0) OR ((Year MOD 100)<>0) AND ((Year MOD 4)=0) 4990: 5000DEF PROCstndrdth 5010CASE nn OF 5020 WHEN 1,21,31 : contents$+="st" 5030 WHEN 2,22 : contents$+="nd" 5040 WHEN 3,23 : contents$+="rd" 5050 OTHERWISE : contents$+="th" 5060 ENDCASE 5070ENDPROC 5080: 5090DEF PROCreadside 5100ON ERROR LOCAL Side=-2:ENDPROC 5110Default=OPENIN "<TinyClock+2$Dir>.Side" 5120Side=BGET#(Default):Side=-Side 5130CLOSE#Default 5140IF Side<>-2 AND Side<>-1 THEN Side=-2 5150ENDPROC 5160: 5170DEF PROCwriteside 5180ON ERROR LOCAL PROClocalerrorwriting:ENDPROC 5190Default=OPENOUT "<TinyClock+2$Dir>.Side" 5200BPUT#Default,-Side 5210CLOSE#Default 5220ENDPROC 5230: 5240DEF PROClocalerrorwriting 5260Block!0=ERR 5270$(Block+4)="Tiny Clock was unable to record the default loading position of the clock face."+CHR$0 5280SYS "Wimp_ReportError",Block,%001,"Tiny Clock +2" 5290ENDPROC
� > !RunImage � F� This program puts a clock on the desktop iconbar (Richard Chubb) (3� ... and allows you to set it - Richard Hallas 2� : <I� All lines at the end separated by colons have been added by RH, and FI� a few others have been modified/added. However, the program remains PH� functionally identical to its previous incarnation, except for the Z� added facilities. d� nC� The clock now appears on the LEFT of the icon bar by default. x� �$� This is ***Version 2*** - R.H. � �� � �error � �!� Set up arrays and variables � ��� Block 256,Menus 2048,InfoW 1024,SetClockW 1024,IndTextInfo 2048,IndTextSetClock 2048,Window 256,IconBlock 256,NewIconBlock 256,ClockInfo 25 �]� Day$(6),Month$(11),days(11):� +1:� N=0 � 6:� Day$(N):�:� N=0 � 11:� Month$(N),days(N):� қ� Sun,Mon,Tue,Wed,Thu,Fri,Sat,January,31,February,28,March,31,April,30,May,31,June,30,July,31,August,31,September,30,October,31,November,30,December,31 � �� Make program sprite area � �� Sprites 6952 !Sprites=6952 Sprites!4=0 Sprites!8=16 "Sprites!12=16 ,>ș "OS_SpriteOp",&10A,Sprites,"<TinyClock+2$Dir>.!Sprites" 6 @� Initialise Wimp J T>ș "Wimp_Initialise",200,&4B534154,"Tiny Clock +2" � ,Task ^9ș "Wimp_OpenTemplate",,"<TinyClock+2$Dir>.Templates" hJș "Wimp_LoadTemplate",,InfoW,IndTextInfo,IndTextInfo+2048,-1,"Info",0 r(ș "Wimp_CreateWindow",,InfoW � Info |Yș "Wimp_LoadTemplate",,SetClockW,IndTextSetClock,IndTextSetClock+2048,-1,"Set clock" �0ș "Wimp_CreateWindow",,SetClockW � SetClock �ș "Wimp_CloseTemplate" � �*� Find Default side of Icon bar to use � �Side=-2:�readside � �&� Identify which clock face to use � �Change=� �InfoIcon=13 �)�readmodevariables:OldYEig=YEigFactor �9� YEigFactor<=1 � Face$="clkicon":� Face$="12clkicon" J� Update Info box sprite icon to the Mode 20 version if necessary ���� � YEigFactor=2 � Block!0=Info & Block!4=InfoIcon 0# ș "Wimp_GetIconState",,Block :! ș "Wimp_DeleteIcon",,Block DQ NewIconBlock!0=Info:� bytes=4 � 36 � 4:NewIconBlock!bytes=Block!(bytes+4):� N! $(NewIconBlock+24)=Face$+�0 X3 ș "Wimp_CreateIcon",,NewIconBlock � InfoIcon b8 Block!0=Info:Block!4=InfoIcon:Block!8=0:Block!12=0 l# ș "Wimp_SetIconState",,Block v� � �� Put Icon on the iconbar � �Block!0=Side � Block!4=0 �Block!8=-16 �Block!12=114 �Block!16=100 �Block!20=&17003002 �$(Block+24)=Face$ �)ș "Wimp_CreateIcon",,Block � IconBar � �� Build menus M%=Menus �Menu_init("Tiny Clock+2") �Menu_item("Info",0,Info) *#�Menu_item("Change Sides",0,-1) 4�Menu_item("Quit",&80,-1) > H� Main program loop R \Secs%=99 f Done=� p� z0 ș "Wimp_Poll",%10010110010,Block � Reason � Ȏ Reason � �) � 2 : ș "Wimp_OpenWindow",,Block �* � 3 : ș "Wimp_CloseWindow",,Block � � 6 : �MouseButton � � 9 : �DecodeMenu �! � 17,18 : �RecieveMessage � � � �Time$=�$ �� ��Time$,2)<>Secs% � � Secs%=��Time$,2) � Time$=�Time$,�Time$-3) � Mins=��Time$,2)+Secs%/60 Time$=�Time$,�Time$-3) ! Hours=��Time$,2)�12+Mins/60 $N �readmodevariables:� YEigFactor<=1 � Face$="clkicon":� Face$="12clkicon" .& � YEigFactor<>OldYEig � Change=� 8, ș "Wimp_BaseOfSprites" � ,iconsprite% B= ș "OS_SpriteOp",&13C,iconsprite%,Face$,0 � r0,r1,r2,r3 L/ ș "OS_SpriteOp",&122,Sprites,Face$,0,0,8 V ` � 0,5 j X0%=(57/2)*2 t2 � YEigFactor=1 � Y0%=(57/2)*2:� Y0%=(29/2)*4 ~ �� Draw hours hand � � � X0%,Y0% �? � X0%+16*�((Hours-.7)*2*�/12),Y0%+16*�((Hours-.7)*2*�/12) �B � 85,X0%+16*�((Hours+.7)*2*�/12),Y0%+16*�((Hours+.7)*2*�/12) �8 � 85,X0%+34*�(Hours*2*�/12),Y0%+34*�(Hours*2*�/12) � �� Draw minutes hand � � � X0%,Y0% �= � X0%+16*�((Mins-.5)*2*�/60),Y0%+16*�((Mins-.5)*2*�/60) �@ � 85,X0%+16*�((Mins+.5)*2*�/60),Y0%+16*�((Mins+.5)*2*�/60) 6 � 85,X0%+50*�(Mins*2*�/60),Y0%+50*�(Mins*2*�/60) � Draw seconds hand ( � 0,11 2 � X0%,Y0% <0 � BY 50*�(Secs%*2*�/60),50*�(Secs%*2*�/60) F ȏ Ȑ X0%,Y0%,4 P Z"� Restore VDU output to screen d n" ș "OS_SpriteOp",r0,r1,r2,r3 x �8� Make desktop replot clock icon (and Info Box - RH) � � � Change � � Block!0=Side � Block!4=IconBar �# ș "Wimp_DeleteIcon",,Block � Block!0=Side � Block!4=0 � Block!8=-16 � Block!12=114 � Block!16=100 � Block!20=&17003002 � $(Block+24)=Face$ - ș "Wimp_CreateIcon",,Block � IconBar Block!0=Info " Block!4=InfoIcon ,% ș "Wimp_GetIconState",,Block 6# ș "Wimp_DeleteIcon",,Block @S NewIconBlock!0=Info:� bytes=4 � 32 � 4:NewIconBlock!bytes=Block!(bytes+4):� J# $(NewIconBlock+24)=Face$+�0 T5 ș "Wimp_CreateIcon",,NewIconBlock � InfoIcon ^: Block!0=Info:Block!4=InfoIcon:Block!8=0:Block!12=0 h% ș "Wimp_SetIconState",,Block r | Change=� � � � � � Block!0=Side � Block!4=IconBar � Block!8=0 � Block!12=0 �% ș "Wimp_SetIconState",,Block � � Block!0=Info �K Block!4=InfoIcon :� Icon number of clock face icon in Info Box � Block!8=0 � Block!12=0 % ș "Wimp_SetIconState",,Block � OldYEig=YEigFactor &� 0 : � Done D&ș "Wimp_CloseDown",Task,&4B534154 N� X b� Error handler l v� �error � � � Ș � Block!0=� �% $(Block+4)=�$+" at line "+Þ+�0 �6 ș "Wimp_ReportError",Block,%010,"Tiny Clock +2" �( ș "Wimp_CloseDown",Task,&4B534154 �� � �� Message handler � �� �RecieveMessage � Ȏ Block!16 � � � 0 : Done=� � � � � Mouse button handler *� �MouseButton 40� Block!12=SetClock � �decodeSetClockPresses >( � Block!12=-2 � Block!16=IconBar � H Ȏ �Block!20 � Block!8 � R � 1 \ �open(SetClock,�) f � 2 p �make_menu z � �/ � � Block!12=Info � Block!16=InfoIcon � �" Ȏ �Block!20 � Block!8 � �! � 1:�open(SetClock,�) � � � � � � �� � �� �make_menu � Block!0=Block!0-48 � � Block!0<0 � Block!0=0 �! � Block!4<254 � Block!4=254 �4 ș "Wimp_CreateMenu",,Menus,Block!0-48,Block!4 � $� A menu entry has been selected $ .� �DecodeMenu 8 Ȏ Block!0 � B � 0 L �open(Info,�) V � 1 `' � Side=-1 � Side=-2 � Side=-1 j �writeside t Change=� ~ � 2 � Done=� � � �% ș "Wimp_GetPointerInfo",,Block �$ � (Block!8 � 1)=1 � �make_menu �� � �� �#� Initialise a set menu options �� �"� Title = Title at top of menu �� � � �Menu_init(Title$) L%=�Title$+1 $M%=Title$ M%?12=7 ( M%?13=2 2 M%?14=6 < M%?15=0 F M%!16=(L%+1)*16 P M%!20=40 Z M%!24=0 d P%=M%+28 n� x �� �:� Add an entry to the menu list (Call Menu_init first) �� � � Text = Text of menu entry �� �0� Flags = +1 for 'this item is ticked' �9� +2 for 'there is a dotted line after' �2� +&80 for 'This is the last item' �� �F� Link = address of following menu or handle of window to link to �� � �$� �Menu_item(Text$,Flags%,Link%) P%!0=Flags%�255 P%!4=Link% P%!8=&07003021 " $(P%+12)=Text$ , P%+=24 6/ � �Text$>L% � L%=�Text$ : M%!16=(L%+1)*16 @� J: T� �readmodevariables ^.ș "OS_ReadModeVariable",-1,11 � ,,Xpixels h.ș "OS_ReadModeVariable",-1,12 � ,,Ypixels r0ș "OS_ReadModeVariable",-1,4 � ,,XEigFactor |0ș "OS_ReadModeVariable",-1,5 � ,,YEigFactor �� �: �#� �decidewindowposition(Window) �Xwidth=(Window!12-Window!4)/(2^XEigFactor):height=(Window!16-Window!8)/(2^YEigFactor) �0x=(Xpixels+1-width)/2:y=(Ypixels+1-height)/2 �=� Above coordinates centralise window (in OS units again) �(� Now convert to screen coordinates: �)x=x*(2^XEigFactor):y=y*(2^YEigFactor) �;width=width*(2^XEigFactor):height=height*(2^YEigFactor) � Window!12=x+width:Window!4=x �!Window!16=y+height:Window!8=y �� �: $� �open(WindowHandle,TopOfStack) �readmodevariables Window!0=WindowHandle &$ș "Wimp_GetWindowState",,Window 0!�decidewindowposition(Window) :� TopOfStack � Window!28=-1 D ș "Wimp_OpenWindow",,Window N;� WindowHandle=SetClock � �readClockInfo:�setClockIcons X� b: l� �close(WindowHandle) vWindow!0=WindowHandle �$ș "Wimp_GetWindowState",,Window �!ș "Wimp_CloseWindow",,Window �&� WindowHandle=MainWindow � Done=� �� �: �� �UpdateIcons(Icon,Icon$) �)IconBlock!0=SetClock:IconBlock!4=Icon �%ș "Wimp_GetIconState",,IconBlock �#ș "Wimp_DeleteIcon",,IconBlock �WNewIconBlock!0=SetClock:� bytes=4 � 32 � 4:NewIconBlock!bytes=IconBlock!(bytes+4):� �$(NewIconBlock+24)=Icon$+�0 �&ș "Wimp_CreateIcon",,NewIconBlock �FIconBlock!0=SetClock:IconBlock!4=Icon:IconBlock!8=0:IconBlock!12=0 %ș "Wimp_SetIconState",,IconBlock � : � �decodeSetClockPresses *(� Which arrow icon is being pressed? 4Ȏ Block!16 � >7 � 0: � Hours Increase H hh=�increase(hh,0,23) R> � hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" \ � hh=12 � ampm$="pm" f$ � hh=0 � hours=12:ampm$="am" p5 � mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) z2 �update(2,�(hours)+":"+minutes$+" "+ampm$) �7 � 1: � Hours Decrease � hh=�decrease(hh,0,23) �> � hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" � � hh=12 � ampm$="pm" �$ � hh=0 � hours=12:ampm$="am" �5 � mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) �2 �update(2,�(hours)+":"+minutes$+" "+ampm$) �9 � 3: � Minutes Increase � mm=�increase(mm,0,59) �> � hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" � � hh=12 � ampm$="pm" �$ � hh=0 � hours=12:ampm$="am" �5 � mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) 2 �update(2,�(hours)+":"+minutes$+" "+ampm$) 9 � 4: � Minutes Decrease mm=�decrease(mm,0,59) $> � hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" . � hh=12 � ampm$="pm" 8$ � hh=0 � hours=12:ampm$="am" B5 � mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) L2 �update(2,�(hours)+":"+minutes$+" "+ampm$) VA � 5: � *** SET CLOCK NOW!!! *** `! ș "OS_Word",15,ClockInfo j; � 6: � Decrease Day, Date t% nn=�decrease(nn,1,days(mnth)) ~* day=�dayofweek(nn,mnth+1,�(yyyy$)) � day$=Day$(day):ddd$=day$ �! contents$=day$+", "+�(nn) � �stndrdth � �update(7,contents$) �; � 8: � Increase Day, Date �% nn=�increase(nn,1,days(mnth)) �* day=�dayofweek(nn,mnth+1,�(yyyy$)) � day$=Day$(day):ddd$=day$ �! contents$=day$+", "+�(nn) � �stndrdth � �update(7,contents$) �7 � 9: � Decrease Month ! mnth=�decrease(mnth,0,11) mmm$=�Month$(mnth),1,3) * day=�dayofweek(nn,mnth+1,�(yyyy$)) day$=Day$(day):ddd$=day$ (! contents$=day$+", "+�(nn) 2 �stndrdth < �update(7,contents$) F �update(11,Month$(mnth)) P7 � 10: � Increase Month Z! mnth=�increase(mnth,0,11) d mmm$=�Month$(mnth),1,3) n* day=�dayofweek(nn,mnth+1,�(yyyy$)) x day$=Day$(day):ddd$=day$ �! contents$=day$+", "+�(nn) � �stndrdth � �update(7,contents$) � �update(11,Month$(mnth)) �6 � 12: � Decrease Year �* yyyy=�decrease(�(yyyy$),1753,9999) � yyyy$=�(yyyy) �/ � �leap(yyyy) � days(1)=29:� days(1)=28 �* day=�dayofweek(nn,mnth+1,�(yyyy$)) � day$=Day$(day):ddd$=day$ �! contents$=day$+", "+�(nn) � �stndrdth � �update(7,contents$) �update(14,yyyy$) 6 � 13: � Increase Year * yyyy=�increase(�(yyyy$),1753,9999) " yyyy$=�(yyyy) ,/ � �leap(yyyy) � days(1)=29:� days(1)=28 6* day=�dayofweek(nn,mnth+1,�(yyyy$)) @ day$=Day$(day):ddd$=day$ J! contents$=day$+", "+�(nn) T �stndrdth ^ �update(7,contents$) h �update(14,yyyy$) r9 � 15: � Decrease Seconds | ss=�decrease(ss,0,59) �5 � ss<10 � seconds$="0"+�(ss):� seconds$=�(ss) �$ �update(16,seconds$+" secs") �< � 16: � Reset Seconds to 00 � ss=0 � seconds$="00" �$ �update(16,seconds$+" secs") �9 � 17: � Increase Seconds � ss=�increase(ss,0,59) �5 � ss<10 � seconds$="0"+�(ss):� seconds$=�(ss) �$ �update(16,seconds$+" secs") �� �� �: � �readClockInfo Clock$=�$ ddd$=�Clock$,1,3) &nn=�(�Clock$,5,2)) 0mmm$=�Clock$,8,3) :yyyy$=�Clock$,12,4) Dhh=�(�Clock$,17,2)) Nmm=�(�Clock$,20,2)) Xss=�(�Clock$,23,2)) b� N=0 � 11 l#� mmm$=�Month$(N),1,3) � mnth=N v� �� �: �*� �increase(var,lowerlimit,upperlimit) �,var+=1:� var>upperlimit � var=lowerlimit �=var �: �*� �decrease(var,lowerlimit,upperlimit) �,var-=1:� var<lowerlimit � var=upperlimit �=var �: �� �update(Icon,Icon$) �'� nn<10 � nn$="0"+�(nn):� nn$=�(nn) �'� hh<10 � hh$="0"+�(hh):� hh$=�(hh) '� mm<10 � mm$="0"+�(mm):� mm$=�(mm) '� ss<10 � ss$="0"+�(ss):� ss$=�(ss) BClock$=ddd$+","+nn$+" "+mmm$+" "+yyyy$+"."+hh$+":"+mm$+":"+ss$ (ClockInfo?0=24:$(ClockInfo+1)=Clock$ *�UpdateIcons(Icon,Icon$) 4� >: H� �setClockIcons R :� Hours: \:� hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" f� hh=12 � ampm$="pm" p � hh=0 � hours=12:ampm$="am" z1� mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) �3�UpdateIcons(2,�(hours)+":"+minutes$+" "+ampm$) �:� Minutes: �:� hh>12 � hours=hh-12:ampm$="pm":� hours=hh:ampm$="am" �� hh=12 � ampm$="pm" � � hh=0 � hours=12:ampm$="am" �1� mm<10 � minutes$="0"+�(mm):� minutes$=�(mm) �3�UpdateIcons(2,�(hours)+":"+minutes$+" "+ampm$) �:� Seconds: �1� ss<10 � seconds$="0"+�(ss):� seconds$=�(ss) �%�UpdateIcons(16,seconds$+" secs") �:� Year: ��UpdateIcons(14,yyyy$) � :� Month: !�UpdateIcons(11,Month$(mnth)) :� Day, Date: contents$=ddd$+", "+�(nn) $ �stndrdth .�UpdateIcons(7,contents$) 8� B: L � �dayofweek(Day,Month,Year) Vu=(�(30.57*Month)+�(365.25*Year-395.25)+(Year-1) � 400-(Year-1) � 100+Day+(Month>2)+(Month>2 � � �leap(Year))) � 7 `: j� �leap(Year) t:=((Year � 400)=0) � ((Year � 100)<>0) � ((Year � 4)=0) ~: �� �stndrdth �Ȏ nn � �! � 1,21,31 : contents$+="st" � � 2,22 : contents$+="nd" � � 3,23 : contents$+="rd" � : contents$+="th" � � �� �: �� �readside �� � � Side=-2:� �&Default=� "<TinyClock+2$Dir>.Side" Side=�#(Default):Side=-Side �#Default #� Side<>-2 � Side<>-1 � Side=-2 � (: 2� �writeside <� � � �localerrorwriting:� F&Default=� "<TinyClock+2$Dir>.Side" P�#Default,-Side Z �#Default d� n: x� �localerrorwriting � Block!0=� �c$(Block+4)="Tiny Clock was unable to record the default loading position of the clock face."+�0 �4ș "Wimp_ReportError",Block,%001,"Tiny Clock +2" �� �
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 46 f4 20 54 68 69 73 |e........F. This| 00000020 20 70 72 6f 67 72 61 6d 20 70 75 74 73 20 61 20 | program puts a | 00000030 63 6c 6f 63 6b 20 6f 6e 20 74 68 65 20 64 65 73 |clock on the des| 00000040 6b 74 6f 70 20 69 63 6f 6e 62 61 72 20 28 52 69 |ktop iconbar (Ri| 00000050 63 68 61 72 64 20 43 68 75 62 62 29 0d 00 28 33 |chard Chubb)..(3| 00000060 f4 20 2e 2e 2e 20 61 6e 64 20 61 6c 6c 6f 77 73 |. ... and allows| 00000070 20 79 6f 75 20 74 6f 20 73 65 74 20 69 74 20 2d | you to set it -| 00000080 20 52 69 63 68 61 72 64 20 48 61 6c 6c 61 73 0d | Richard Hallas.| 00000090 00 32 07 f4 20 3a 0d 00 3c 49 f4 20 41 6c 6c 20 |.2.. :..<I. All | 000000a0 6c 69 6e 65 73 20 61 74 20 74 68 65 20 65 6e 64 |lines at the end| 000000b0 20 73 65 70 61 72 61 74 65 64 20 62 79 20 63 6f | separated by co| 000000c0 6c 6f 6e 73 20 68 61 76 65 20 62 65 65 6e 20 61 |lons have been a| 000000d0 64 64 65 64 20 62 79 20 52 48 2c 20 61 6e 64 0d |dded by RH, and.| 000000e0 00 46 49 f4 20 61 20 66 65 77 20 6f 74 68 65 72 |.FI. a few other| 000000f0 73 20 68 61 76 65 20 62 65 65 6e 20 6d 6f 64 69 |s have been modi| 00000100 66 69 65 64 2f 61 64 64 65 64 2e 20 48 6f 77 65 |fied/added. Howe| 00000110 76 65 72 2c 20 74 68 65 20 70 72 6f 67 72 61 6d |ver, the program| 00000120 20 72 65 6d 61 69 6e 73 0d 00 50 48 f4 20 66 75 | remains..PH. fu| 00000130 6e 63 74 69 6f 6e 61 6c 6c 79 20 69 64 65 6e 74 |nctionally ident| 00000140 69 63 61 6c 20 74 6f 20 69 74 73 20 70 72 65 76 |ical to its prev| 00000150 69 6f 75 73 20 69 6e 63 61 72 6e 61 74 69 6f 6e |ious incarnation| 00000160 2c 20 65 78 63 65 70 74 20 66 6f 72 20 74 68 65 |, except for the| 00000170 0d 00 5a 17 f4 20 61 64 64 65 64 20 66 61 63 69 |..Z.. added faci| 00000180 6c 69 74 69 65 73 2e 0d 00 64 05 f4 0d 00 6e 43 |lities...d....nC| 00000190 f4 20 54 68 65 20 63 6c 6f 63 6b 20 6e 6f 77 20 |. The clock now | 000001a0 61 70 70 65 61 72 73 20 6f 6e 20 74 68 65 20 4c |appears on the L| 000001b0 45 46 54 20 6f 66 20 74 68 65 20 69 63 6f 6e 20 |EFT of the icon | 000001c0 62 61 72 20 62 79 20 64 65 66 61 75 6c 74 2e 0d |bar by default..| 000001d0 00 78 05 f4 0d 00 82 24 f4 20 54 68 69 73 20 69 |.x.....$. This i| 000001e0 73 20 2a 2a 2a 56 65 72 73 69 6f 6e 20 32 2a 2a |s ***Version 2**| 000001f0 2a 20 2d 20 52 2e 48 2e 0d 00 8c 05 20 0d 00 96 |* - R.H..... ...| 00000200 0e ee 20 85 20 f2 65 72 72 6f 72 0d 00 a0 04 0d |.. . .error.....| 00000210 00 aa 21 f4 20 53 65 74 20 75 70 20 61 72 72 61 |..!. Set up arra| 00000220 79 73 20 61 6e 64 20 76 61 72 69 61 62 6c 65 73 |ys and variables| 00000230 0d 00 b4 04 0d 00 be 91 de 20 42 6c 6f 63 6b 20 |......... Block | 00000240 32 35 36 2c 4d 65 6e 75 73 20 32 30 34 38 2c 49 |256,Menus 2048,I| 00000250 6e 66 6f 57 20 31 30 32 34 2c 53 65 74 43 6c 6f |nfoW 1024,SetClo| 00000260 63 6b 57 20 31 30 32 34 2c 49 6e 64 54 65 78 74 |ckW 1024,IndText| 00000270 49 6e 66 6f 20 32 30 34 38 2c 49 6e 64 54 65 78 |Info 2048,IndTex| 00000280 74 53 65 74 43 6c 6f 63 6b 20 32 30 34 38 2c 57 |tSetClock 2048,W| 00000290 69 6e 64 6f 77 20 32 35 36 2c 49 63 6f 6e 42 6c |indow 256,IconBl| 000002a0 6f 63 6b 20 32 35 36 2c 4e 65 77 49 63 6f 6e 42 |ock 256,NewIconB| 000002b0 6c 6f 63 6b 20 32 35 36 2c 43 6c 6f 63 6b 49 6e |lock 256,ClockIn| 000002c0 66 6f 20 32 35 0d 00 c8 5d de 20 44 61 79 24 28 |fo 25...]. Day$(| 000002d0 36 29 2c 4d 6f 6e 74 68 24 28 31 31 29 2c 64 61 |6),Month$(11),da| 000002e0 79 73 28 31 31 29 3a f7 20 2b 31 3a e3 20 4e 3d |ys(11):. +1:. N=| 000002f0 30 20 b8 20 36 3a f3 20 44 61 79 24 28 4e 29 3a |0 . 6:. Day$(N):| 00000300 ed 3a e3 20 4e 3d 30 20 b8 20 31 31 3a f3 20 4d |.:. N=0 . 11:. M| 00000310 6f 6e 74 68 24 28 4e 29 2c 64 61 79 73 28 4e 29 |onth$(N),days(N)| 00000320 3a ed 0d 00 d2 9b dc 20 53 75 6e 2c 4d 6f 6e 2c |:...... Sun,Mon,| 00000330 54 75 65 2c 57 65 64 2c 54 68 75 2c 46 72 69 2c |Tue,Wed,Thu,Fri,| 00000340 53 61 74 2c 4a 61 6e 75 61 72 79 2c 33 31 2c 46 |Sat,January,31,F| 00000350 65 62 72 75 61 72 79 2c 32 38 2c 4d 61 72 63 68 |ebruary,28,March| 00000360 2c 33 31 2c 41 70 72 69 6c 2c 33 30 2c 4d 61 79 |,31,April,30,May| 00000370 2c 33 31 2c 4a 75 6e 65 2c 33 30 2c 4a 75 6c 79 |,31,June,30,July| 00000380 2c 33 31 2c 41 75 67 75 73 74 2c 33 31 2c 53 65 |,31,August,31,Se| 00000390 70 74 65 6d 62 65 72 2c 33 30 2c 4f 63 74 6f 62 |ptember,30,Octob| 000003a0 65 72 2c 33 31 2c 4e 6f 76 65 6d 62 65 72 2c 33 |er,31,November,3| 000003b0 30 2c 44 65 63 65 6d 62 65 72 2c 33 31 0d 00 dc |0,December,31...| 000003c0 04 0d 00 e6 1e f4 20 4d 61 6b 65 20 70 72 6f 67 |...... Make prog| 000003d0 72 61 6d 20 73 70 72 69 74 65 20 61 72 65 61 0d |ram sprite area.| 000003e0 00 f0 04 0d 00 fa 12 de 20 53 70 72 69 74 65 73 |........ Sprites| 000003f0 20 36 39 35 32 0d 01 04 11 21 53 70 72 69 74 65 | 6952....!Sprite| 00000400 73 3d 36 39 35 32 0d 01 0e 0f 53 70 72 69 74 65 |s=6952....Sprite| 00000410 73 21 34 3d 30 0d 01 18 10 53 70 72 69 74 65 73 |s!4=0....Sprites| 00000420 21 38 3d 31 36 0d 01 22 11 53 70 72 69 74 65 73 |!8=16..".Sprites| 00000430 21 31 32 3d 31 36 0d 01 2c 3e c8 99 20 22 4f 53 |!12=16..,>.. "OS| 00000440 5f 53 70 72 69 74 65 4f 70 22 2c 26 31 30 41 2c |_SpriteOp",&10A,| 00000450 53 70 72 69 74 65 73 2c 22 3c 54 69 6e 79 43 6c |Sprites,"<TinyCl| 00000460 6f 63 6b 2b 32 24 44 69 72 3e 2e 21 53 70 72 69 |ock+2$Dir>.!Spri| 00000470 74 65 73 22 0d 01 36 04 0d 01 40 15 f4 20 49 6e |tes"..6...@.. In| 00000480 69 74 69 61 6c 69 73 65 20 57 69 6d 70 0d 01 4a |itialise Wimp..J| 00000490 04 0d 01 54 3e c8 99 20 22 57 69 6d 70 5f 49 6e |...T>.. "Wimp_In| 000004a0 69 74 69 61 6c 69 73 65 22 2c 32 30 30 2c 26 34 |itialise",200,&4| 000004b0 42 35 33 34 31 35 34 2c 22 54 69 6e 79 20 43 6c |B534154,"Tiny Cl| 000004c0 6f 63 6b 20 2b 32 22 20 b8 20 2c 54 61 73 6b 0d |ock +2" . ,Task.| 000004d0 01 5e 39 c8 99 20 22 57 69 6d 70 5f 4f 70 65 6e |.^9.. "Wimp_Open| 000004e0 54 65 6d 70 6c 61 74 65 22 2c 2c 22 3c 54 69 6e |Template",,"<Tin| 000004f0 79 43 6c 6f 63 6b 2b 32 24 44 69 72 3e 2e 54 65 |yClock+2$Dir>.Te| 00000500 6d 70 6c 61 74 65 73 22 0d 01 68 4a c8 99 20 22 |mplates"..hJ.. "| 00000510 57 69 6d 70 5f 4c 6f 61 64 54 65 6d 70 6c 61 74 |Wimp_LoadTemplat| 00000520 65 22 2c 2c 49 6e 66 6f 57 2c 49 6e 64 54 65 78 |e",,InfoW,IndTex| 00000530 74 49 6e 66 6f 2c 49 6e 64 54 65 78 74 49 6e 66 |tInfo,IndTextInf| 00000540 6f 2b 32 30 34 38 2c 2d 31 2c 22 49 6e 66 6f 22 |o+2048,-1,"Info"| 00000550 2c 30 0d 01 72 28 c8 99 20 22 57 69 6d 70 5f 43 |,0..r(.. "Wimp_C| 00000560 72 65 61 74 65 57 69 6e 64 6f 77 22 2c 2c 49 6e |reateWindow",,In| 00000570 66 6f 57 20 b8 20 49 6e 66 6f 0d 01 7c 59 c8 99 |foW . Info..|Y..| 00000580 20 22 57 69 6d 70 5f 4c 6f 61 64 54 65 6d 70 6c | "Wimp_LoadTempl| 00000590 61 74 65 22 2c 2c 53 65 74 43 6c 6f 63 6b 57 2c |ate",,SetClockW,| 000005a0 49 6e 64 54 65 78 74 53 65 74 43 6c 6f 63 6b 2c |IndTextSetClock,| 000005b0 49 6e 64 54 65 78 74 53 65 74 43 6c 6f 63 6b 2b |IndTextSetClock+| 000005c0 32 30 34 38 2c 2d 31 2c 22 53 65 74 20 63 6c 6f |2048,-1,"Set clo| 000005d0 63 6b 22 0d 01 86 30 c8 99 20 22 57 69 6d 70 5f |ck"...0.. "Wimp_| 000005e0 43 72 65 61 74 65 57 69 6e 64 6f 77 22 2c 2c 53 |CreateWindow",,S| 000005f0 65 74 43 6c 6f 63 6b 57 20 b8 20 53 65 74 43 6c |etClockW . SetCl| 00000600 6f 63 6b 0d 01 90 1b c8 99 20 22 57 69 6d 70 5f |ock...... "Wimp_| 00000610 43 6c 6f 73 65 54 65 6d 70 6c 61 74 65 22 0d 01 |CloseTemplate"..| 00000620 9a 04 0d 01 a4 2a f4 20 46 69 6e 64 20 44 65 66 |.....*. Find Def| 00000630 61 75 6c 74 20 73 69 64 65 20 6f 66 20 49 63 6f |ault side of Ico| 00000640 6e 20 62 61 72 20 74 6f 20 75 73 65 0d 01 ae 04 |n bar to use....| 00000650 0d 01 b8 15 53 69 64 65 3d 2d 32 3a f2 72 65 61 |....Side=-2:.rea| 00000660 64 73 69 64 65 0d 01 c2 04 0d 01 cc 26 f4 20 49 |dside.......&. I| 00000670 64 65 6e 74 69 66 79 20 77 68 69 63 68 20 63 6c |dentify which cl| 00000680 6f 63 6b 20 66 61 63 65 20 74 6f 20 75 73 65 0d |ock face to use.| 00000690 01 d6 04 0d 01 e0 0c 43 68 61 6e 67 65 3d a3 0d |.......Change=..| 000006a0 01 ea 0f 49 6e 66 6f 49 63 6f 6e 3d 31 33 0d 01 |...InfoIcon=13..| 000006b0 f4 29 f2 72 65 61 64 6d 6f 64 65 76 61 72 69 61 |.).readmodevaria| 000006c0 62 6c 65 73 3a 4f 6c 64 59 45 69 67 3d 59 45 69 |bles:OldYEig=YEi| 000006d0 67 46 61 63 74 6f 72 0d 01 fe 39 e7 20 59 45 69 |gFactor...9. YEi| 000006e0 67 46 61 63 74 6f 72 3c 3d 31 20 8c 20 46 61 63 |gFactor<=1 . Fac| 000006f0 65 24 3d 22 63 6c 6b 69 63 6f 6e 22 3a 8b 20 46 |e$="clkicon":. F| 00000700 61 63 65 24 3d 22 31 32 63 6c 6b 69 63 6f 6e 22 |ace$="12clkicon"| 00000710 0d 02 08 4a f4 20 55 70 64 61 74 65 20 49 6e 66 |...J. Update Inf| 00000720 6f 20 62 6f 78 20 73 70 72 69 74 65 20 69 63 6f |o box sprite ico| 00000730 6e 20 74 6f 20 74 68 65 20 4d 6f 64 65 20 32 30 |n to the Mode 20| 00000740 20 76 65 72 73 69 6f 6e 20 69 66 20 6e 65 63 65 | version if nece| 00000750 73 73 61 72 79 20 bb bb bb bb 0d 02 12 14 e7 20 |ssary ......... | 00000760 59 45 69 67 46 61 63 74 6f 72 3d 32 20 8c 0d 02 |YEigFactor=2 ...| 00000770 1c 12 20 20 42 6c 6f 63 6b 21 30 3d 49 6e 66 6f |.. Block!0=Info| 00000780 0d 02 26 16 20 20 42 6c 6f 63 6b 21 34 3d 49 6e |..&. Block!4=In| 00000790 66 6f 49 63 6f 6e 0d 02 30 23 20 20 c8 99 20 22 |foIcon..0# .. "| 000007a0 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 61 74 |Wimp_GetIconStat| 000007b0 65 22 2c 2c 42 6c 6f 63 6b 0d 02 3a 21 20 20 c8 |e",,Block..:! .| 000007c0 99 20 22 57 69 6d 70 5f 44 65 6c 65 74 65 49 63 |. "Wimp_DeleteIc| 000007d0 6f 6e 22 2c 2c 42 6c 6f 63 6b 0d 02 44 51 20 20 |on",,Block..DQ | 000007e0 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 21 30 3d 49 |NewIconBlock!0=I| 000007f0 6e 66 6f 3a e3 20 62 79 74 65 73 3d 34 20 b8 20 |nfo:. bytes=4 . | 00000800 33 36 20 88 20 34 3a 4e 65 77 49 63 6f 6e 42 6c |36 . 4:NewIconBl| 00000810 6f 63 6b 21 62 79 74 65 73 3d 42 6c 6f 63 6b 21 |ock!bytes=Block!| 00000820 28 62 79 74 65 73 2b 34 29 3a ed 0d 02 4e 21 20 |(bytes+4):...N! | 00000830 20 24 28 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 2b | $(NewIconBlock+| 00000840 32 34 29 3d 46 61 63 65 24 2b bd 30 0d 02 58 33 |24)=Face$+.0..X3| 00000850 20 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 | .. "Wimp_Creat| 00000860 65 49 63 6f 6e 22 2c 2c 4e 65 77 49 63 6f 6e 42 |eIcon",,NewIconB| 00000870 6c 6f 63 6b 20 b8 20 49 6e 66 6f 49 63 6f 6e 0d |lock . InfoIcon.| 00000880 02 62 38 20 20 42 6c 6f 63 6b 21 30 3d 49 6e 66 |.b8 Block!0=Inf| 00000890 6f 3a 42 6c 6f 63 6b 21 34 3d 49 6e 66 6f 49 63 |o:Block!4=InfoIc| 000008a0 6f 6e 3a 42 6c 6f 63 6b 21 38 3d 30 3a 42 6c 6f |on:Block!8=0:Blo| 000008b0 63 6b 21 31 32 3d 30 0d 02 6c 23 20 20 c8 99 20 |ck!12=0..l# .. | 000008c0 22 57 69 6d 70 5f 53 65 74 49 63 6f 6e 53 74 61 |"Wimp_SetIconSta| 000008d0 74 65 22 2c 2c 42 6c 6f 63 6b 0d 02 76 05 cd 0d |te",,Block..v...| 000008e0 02 80 04 0d 02 8a 1d f4 20 50 75 74 20 49 63 6f |........ Put Ico| 000008f0 6e 20 6f 6e 20 74 68 65 20 69 63 6f 6e 62 61 72 |n on the iconbar| 00000900 0d 02 94 04 0d 02 9e 10 42 6c 6f 63 6b 21 30 3d |........Block!0=| 00000910 53 69 64 65 0d 02 a8 0d 42 6c 6f 63 6b 21 34 3d |Side....Block!4=| 00000920 30 0d 02 b2 0f 42 6c 6f 63 6b 21 38 3d 2d 31 36 |0....Block!8=-16| 00000930 0d 02 bc 10 42 6c 6f 63 6b 21 31 32 3d 31 31 34 |....Block!12=114| 00000940 0d 02 c6 10 42 6c 6f 63 6b 21 31 36 3d 31 30 30 |....Block!16=100| 00000950 0d 02 d0 16 42 6c 6f 63 6b 21 32 30 3d 26 31 37 |....Block!20=&17| 00000960 30 30 33 30 30 32 0d 02 da 15 24 28 42 6c 6f 63 |003002....$(Bloc| 00000970 6b 2b 32 34 29 3d 46 61 63 65 24 0d 02 e4 29 c8 |k+24)=Face$...).| 00000980 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 49 63 |. "Wimp_CreateIc| 00000990 6f 6e 22 2c 2c 42 6c 6f 63 6b 20 b8 20 49 63 6f |on",,Block . Ico| 000009a0 6e 42 61 72 0d 02 ee 04 0d 02 f8 11 f4 20 42 75 |nBar......... Bu| 000009b0 69 6c 64 20 6d 65 6e 75 73 0d 03 02 04 0d 03 0c |ild menus.......| 000009c0 0c 4d 25 3d 4d 65 6e 75 73 0d 03 16 1e f2 4d 65 |.M%=Menus.....Me| 000009d0 6e 75 5f 69 6e 69 74 28 22 54 69 6e 79 20 43 6c |nu_init("Tiny Cl| 000009e0 6f 63 6b 2b 32 22 29 0d 03 20 1d f2 4d 65 6e 75 |ock+2").. ..Menu| 000009f0 5f 69 74 65 6d 28 22 49 6e 66 6f 22 2c 30 2c 49 |_item("Info",0,I| 00000a00 6e 66 6f 29 0d 03 2a 23 f2 4d 65 6e 75 5f 69 74 |nfo)..*#.Menu_it| 00000a10 65 6d 28 22 43 68 61 6e 67 65 20 53 69 64 65 73 |em("Change Sides| 00000a20 22 2c 30 2c 2d 31 29 0d 03 34 1d f2 4d 65 6e 75 |",0,-1)..4..Menu| 00000a30 5f 69 74 65 6d 28 22 51 75 69 74 22 2c 26 38 30 |_item("Quit",&80| 00000a40 2c 2d 31 29 0d 03 3e 04 0d 03 48 17 f4 20 4d 61 |,-1)..>...H.. Ma| 00000a50 69 6e 20 70 72 6f 67 72 61 6d 20 6c 6f 6f 70 0d |in program loop.| 00000a60 03 52 04 0d 03 5c 0c 53 65 63 73 25 3d 39 39 0d |.R...\.Secs%=99.| 00000a70 03 66 0a 44 6f 6e 65 3d a3 0d 03 70 05 f5 0d 03 |.f.Done=...p....| 00000a80 7a 30 20 20 c8 99 20 22 57 69 6d 70 5f 50 6f 6c |z0 .. "Wimp_Pol| 00000a90 6c 22 2c 25 31 30 30 31 30 31 31 30 30 31 30 2c |l",%10010110010,| 00000aa0 42 6c 6f 63 6b 20 b8 20 52 65 61 73 6f 6e 0d 03 |Block . Reason..| 00000ab0 84 11 20 20 c8 8e 20 52 65 61 73 6f 6e 20 ca 0d |.. .. Reason ..| 00000ac0 03 8e 29 20 20 20 20 c9 20 32 20 3a 20 c8 99 20 |..) . 2 : .. | 00000ad0 22 57 69 6d 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 |"Wimp_OpenWindow| 00000ae0 22 2c 2c 42 6c 6f 63 6b 0d 03 98 2a 20 20 20 20 |",,Block...* | 00000af0 c9 20 33 20 3a 20 c8 99 20 22 57 69 6d 70 5f 43 |. 3 : .. "Wimp_C| 00000b00 6c 6f 73 65 57 69 6e 64 6f 77 22 2c 2c 42 6c 6f |loseWindow",,Blo| 00000b10 63 6b 0d 03 a2 1a 20 20 20 20 c9 20 36 20 3a 20 |ck.... . 6 : | 00000b20 f2 4d 6f 75 73 65 42 75 74 74 6f 6e 0d 03 ac 19 |.MouseButton....| 00000b30 20 20 20 20 c9 20 39 20 3a 20 f2 44 65 63 6f 64 | . 9 : .Decod| 00000b40 65 4d 65 6e 75 0d 03 b6 21 20 20 20 20 c9 20 31 |eMenu...! . 1| 00000b50 37 2c 31 38 20 3a 20 f2 52 65 63 69 65 76 65 4d |7,18 : .RecieveM| 00000b60 65 73 73 61 67 65 0d 03 c0 07 20 20 cb 0d 03 ca |essage.... ....| 00000b70 04 0d 03 d4 0c 54 69 6d 65 24 3d 91 24 0d 03 de |.....Time$=.$...| 00000b80 19 e7 20 bb c2 54 69 6d 65 24 2c 32 29 3c 3e 53 |.. ..Time$,2)<>S| 00000b90 65 63 73 25 20 8c 0d 03 e8 16 20 20 53 65 63 73 |ecs% ..... Secs| 00000ba0 25 3d bb c2 54 69 6d 65 24 2c 32 29 0d 03 f2 1c |%=..Time$,2)....| 00000bb0 20 20 54 69 6d 65 24 3d c0 54 69 6d 65 24 2c a9 | Time$=.Time$,.| 00000bc0 54 69 6d 65 24 2d 33 29 0d 03 fc 1e 20 20 4d 69 |Time$-3).... Mi| 00000bd0 6e 73 3d bb c2 54 69 6d 65 24 2c 32 29 2b 53 65 |ns=..Time$,2)+Se| 00000be0 63 73 25 2f 36 30 0d 04 06 1c 20 20 54 69 6d 65 |cs%/60.... Time| 00000bf0 24 3d c0 54 69 6d 65 24 2c a9 54 69 6d 65 24 2d |$=.Time$,.Time$-| 00000c00 33 29 0d 04 10 21 20 20 48 6f 75 72 73 3d bb c2 |3)...! Hours=..| 00000c10 54 69 6d 65 24 2c 32 29 83 31 32 2b 4d 69 6e 73 |Time$,2).12+Mins| 00000c20 2f 36 30 0d 04 1a 04 0d 04 24 4e 20 20 f2 72 65 |/60......$N .re| 00000c30 61 64 6d 6f 64 65 76 61 72 69 61 62 6c 65 73 3a |admodevariables:| 00000c40 e7 20 59 45 69 67 46 61 63 74 6f 72 3c 3d 31 20 |. YEigFactor<=1 | 00000c50 8c 20 46 61 63 65 24 3d 22 63 6c 6b 69 63 6f 6e |. Face$="clkicon| 00000c60 22 3a 8b 20 46 61 63 65 24 3d 22 31 32 63 6c 6b |":. Face$="12clk| 00000c70 69 63 6f 6e 22 0d 04 2e 26 20 20 e7 20 59 45 69 |icon"...& . YEi| 00000c80 67 46 61 63 74 6f 72 3c 3e 4f 6c 64 59 45 69 67 |gFactor<>OldYEig| 00000c90 20 8c 20 43 68 61 6e 67 65 3d b9 0d 04 38 2c 20 | . Change=...8, | 00000ca0 20 c8 99 20 22 57 69 6d 70 5f 42 61 73 65 4f 66 | .. "Wimp_BaseOf| 00000cb0 53 70 72 69 74 65 73 22 20 b8 20 2c 69 63 6f 6e |Sprites" . ,icon| 00000cc0 73 70 72 69 74 65 25 0d 04 42 3d 20 20 c8 99 20 |sprite%..B= .. | 00000cd0 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 26 31 |"OS_SpriteOp",&1| 00000ce0 33 43 2c 69 63 6f 6e 73 70 72 69 74 65 25 2c 46 |3C,iconsprite%,F| 00000cf0 61 63 65 24 2c 30 20 b8 20 72 30 2c 72 31 2c 72 |ace$,0 . r0,r1,r| 00000d00 32 2c 72 33 0d 04 4c 2f 20 20 c8 99 20 22 4f 53 |2,r3..L/ .. "OS| 00000d10 5f 53 70 72 69 74 65 4f 70 22 2c 26 31 32 32 2c |_SpriteOp",&122,| 00000d20 53 70 72 69 74 65 73 2c 46 61 63 65 24 2c 30 2c |Sprites,Face$,0,| 00000d30 30 2c 38 0d 04 56 04 0d 04 60 0b 20 20 e6 20 30 |0,8..V...`. . 0| 00000d40 2c 35 0d 04 6a 12 20 20 58 30 25 3d 28 35 37 2f |,5..j. X0%=(57/| 00000d50 32 29 2a 32 0d 04 74 32 20 20 e7 20 59 45 69 67 |2)*2..t2 . YEig| 00000d60 46 61 63 74 6f 72 3d 31 20 8c 20 59 30 25 3d 28 |Factor=1 . Y0%=(| 00000d70 35 37 2f 32 29 2a 32 3a 8b 20 59 30 25 3d 28 32 |57/2)*2:. Y0%=(2| 00000d80 39 2f 32 29 2a 34 0d 04 7e 04 0d 04 88 15 f4 20 |9/2)*4..~...... | 00000d90 44 72 61 77 20 68 6f 75 72 73 20 68 61 6e 64 0d |Draw hours hand.| 00000da0 04 92 04 0d 04 9c 0f 20 20 ec 20 58 30 25 2c 59 |....... . X0%,Y| 00000db0 30 25 0d 04 a6 3f 20 20 ec 20 58 30 25 2b 31 36 |0%...? . X0%+16| 00000dc0 2a b5 28 28 48 6f 75 72 73 2d 2e 37 29 2a 32 2a |*.((Hours-.7)*2*| 00000dd0 af 2f 31 32 29 2c 59 30 25 2b 31 36 2a 9b 28 28 |./12),Y0%+16*.((| 00000de0 48 6f 75 72 73 2d 2e 37 29 2a 32 2a af 2f 31 32 |Hours-.7)*2*./12| 00000df0 29 0d 04 b0 42 20 20 f0 20 38 35 2c 58 30 25 2b |)...B . 85,X0%+| 00000e00 31 36 2a b5 28 28 48 6f 75 72 73 2b 2e 37 29 2a |16*.((Hours+.7)*| 00000e10 32 2a af 2f 31 32 29 2c 59 30 25 2b 31 36 2a 9b |2*./12),Y0%+16*.| 00000e20 28 28 48 6f 75 72 73 2b 2e 37 29 2a 32 2a af 2f |((Hours+.7)*2*./| 00000e30 31 32 29 0d 04 ba 38 20 20 f0 20 38 35 2c 58 30 |12)...8 . 85,X0| 00000e40 25 2b 33 34 2a b5 28 48 6f 75 72 73 2a 32 2a af |%+34*.(Hours*2*.| 00000e50 2f 31 32 29 2c 59 30 25 2b 33 34 2a 9b 28 48 6f |/12),Y0%+34*.(Ho| 00000e60 75 72 73 2a 32 2a af 2f 31 32 29 0d 04 c4 04 0d |urs*2*./12).....| 00000e70 04 ce 17 f4 20 44 72 61 77 20 6d 69 6e 75 74 65 |.... Draw minute| 00000e80 73 20 68 61 6e 64 0d 04 d8 04 0d 04 e2 0f 20 20 |s hand........ | 00000e90 ec 20 58 30 25 2c 59 30 25 0d 04 ec 3d 20 20 ec |. X0%,Y0%...= .| 00000ea0 20 58 30 25 2b 31 36 2a b5 28 28 4d 69 6e 73 2d | X0%+16*.((Mins-| 00000eb0 2e 35 29 2a 32 2a af 2f 36 30 29 2c 59 30 25 2b |.5)*2*./60),Y0%+| 00000ec0 31 36 2a 9b 28 28 4d 69 6e 73 2d 2e 35 29 2a 32 |16*.((Mins-.5)*2| 00000ed0 2a af 2f 36 30 29 0d 04 f6 40 20 20 f0 20 38 35 |*./60)...@ . 85| 00000ee0 2c 58 30 25 2b 31 36 2a b5 28 28 4d 69 6e 73 2b |,X0%+16*.((Mins+| 00000ef0 2e 35 29 2a 32 2a af 2f 36 30 29 2c 59 30 25 2b |.5)*2*./60),Y0%+| 00000f00 31 36 2a 9b 28 28 4d 69 6e 73 2b 2e 35 29 2a 32 |16*.((Mins+.5)*2| 00000f10 2a af 2f 36 30 29 0d 05 00 36 20 20 f0 20 38 35 |*./60)...6 . 85| 00000f20 2c 58 30 25 2b 35 30 2a b5 28 4d 69 6e 73 2a 32 |,X0%+50*.(Mins*2| 00000f30 2a af 2f 36 30 29 2c 59 30 25 2b 35 30 2a 9b 28 |*./60),Y0%+50*.(| 00000f40 4d 69 6e 73 2a 32 2a af 2f 36 30 29 0d 05 0a 04 |Mins*2*./60)....| 00000f50 0d 05 14 17 f4 20 44 72 61 77 20 73 65 63 6f 6e |..... Draw secon| 00000f60 64 73 20 68 61 6e 64 0d 05 1e 04 0d 05 28 0c 20 |ds hand......(. | 00000f70 20 e6 20 30 2c 31 31 0d 05 32 0f 20 20 ec 20 58 | . 0,11..2. . X| 00000f80 30 25 2c 59 30 25 0d 05 3c 30 20 20 df 20 42 59 |0%,Y0%..<0 . BY| 00000f90 20 35 30 2a b5 28 53 65 63 73 25 2a 32 2a af 2f | 50*.(Secs%*2*./| 00000fa0 36 30 29 2c 35 30 2a 9b 28 53 65 63 73 25 2a 32 |60),50*.(Secs%*2| 00000fb0 2a af 2f 36 30 29 0d 05 46 15 20 20 c8 8f 20 c8 |*./60)..F. .. .| 00000fc0 90 20 58 30 25 2c 59 30 25 2c 34 0d 05 50 04 0d |. X0%,Y0%,4..P..| 00000fd0 05 5a 22 f4 20 52 65 73 74 6f 72 65 20 56 44 55 |.Z". Restore VDU| 00000fe0 20 6f 75 74 70 75 74 20 74 6f 20 73 63 72 65 65 | output to scree| 00000ff0 6e 0d 05 64 04 0d 05 6e 22 20 20 c8 99 20 22 4f |n..d...n" .. "O| 00001000 53 5f 53 70 72 69 74 65 4f 70 22 2c 72 30 2c 72 |S_SpriteOp",r0,r| 00001010 31 2c 72 32 2c 72 33 0d 05 78 04 0d 05 82 38 f4 |1,r2,r3..x....8.| 00001020 20 4d 61 6b 65 20 64 65 73 6b 74 6f 70 20 72 65 | Make desktop re| 00001030 70 6c 6f 74 20 63 6c 6f 63 6b 20 69 63 6f 6e 20 |plot clock icon | 00001040 28 61 6e 64 20 49 6e 66 6f 20 42 6f 78 20 2d 20 |(and Info Box - | 00001050 52 48 29 0d 05 8c 04 0d 05 96 10 20 20 e7 20 43 |RH)........ . C| 00001060 68 61 6e 67 65 20 8c 0d 05 a0 14 20 20 20 20 42 |hange ..... B| 00001070 6c 6f 63 6b 21 30 3d 53 69 64 65 0d 05 aa 17 20 |lock!0=Side.... | 00001080 20 20 20 42 6c 6f 63 6b 21 34 3d 49 63 6f 6e 42 | Block!4=IconB| 00001090 61 72 0d 05 b4 23 20 20 20 20 c8 99 20 22 57 69 |ar...# .. "Wi| 000010a0 6d 70 5f 44 65 6c 65 74 65 49 63 6f 6e 22 2c 2c |mp_DeleteIcon",,| 000010b0 42 6c 6f 63 6b 0d 05 be 14 20 20 20 20 42 6c 6f |Block.... Blo| 000010c0 63 6b 21 30 3d 53 69 64 65 0d 05 c8 11 20 20 20 |ck!0=Side.... | 000010d0 20 42 6c 6f 63 6b 21 34 3d 30 0d 05 d2 13 20 20 | Block!4=0.... | 000010e0 20 20 42 6c 6f 63 6b 21 38 3d 2d 31 36 0d 05 dc | Block!8=-16...| 000010f0 14 20 20 20 20 42 6c 6f 63 6b 21 31 32 3d 31 31 |. Block!12=11| 00001100 34 0d 05 e6 14 20 20 20 20 42 6c 6f 63 6b 21 31 |4.... Block!1| 00001110 36 3d 31 30 30 0d 05 f0 1a 20 20 20 20 42 6c 6f |6=100.... Blo| 00001120 63 6b 21 32 30 3d 26 31 37 30 30 33 30 30 32 0d |ck!20=&17003002.| 00001130 05 fa 19 20 20 20 20 24 28 42 6c 6f 63 6b 2b 32 |... $(Block+2| 00001140 34 29 3d 46 61 63 65 24 0d 06 04 2d 20 20 20 20 |4)=Face$...- | 00001150 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 49 |.. "Wimp_CreateI| 00001160 63 6f 6e 22 2c 2c 42 6c 6f 63 6b 20 b8 20 49 63 |con",,Block . Ic| 00001170 6f 6e 42 61 72 0d 06 0e 04 0d 06 18 14 20 20 20 |onBar........ | 00001180 20 42 6c 6f 63 6b 21 30 3d 49 6e 66 6f 0d 06 22 | Block!0=Info.."| 00001190 18 20 20 20 20 42 6c 6f 63 6b 21 34 3d 49 6e 66 |. Block!4=Inf| 000011a0 6f 49 63 6f 6e 0d 06 2c 25 20 20 20 20 c8 99 20 |oIcon..,% .. | 000011b0 22 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 61 |"Wimp_GetIconSta| 000011c0 74 65 22 2c 2c 42 6c 6f 63 6b 0d 06 36 23 20 20 |te",,Block..6# | 000011d0 20 20 c8 99 20 22 57 69 6d 70 5f 44 65 6c 65 74 | .. "Wimp_Delet| 000011e0 65 49 63 6f 6e 22 2c 2c 42 6c 6f 63 6b 0d 06 40 |eIcon",,Block..@| 000011f0 53 20 20 20 20 4e 65 77 49 63 6f 6e 42 6c 6f 63 |S NewIconBloc| 00001200 6b 21 30 3d 49 6e 66 6f 3a e3 20 62 79 74 65 73 |k!0=Info:. bytes| 00001210 3d 34 20 b8 20 33 32 20 88 20 34 3a 4e 65 77 49 |=4 . 32 . 4:NewI| 00001220 63 6f 6e 42 6c 6f 63 6b 21 62 79 74 65 73 3d 42 |conBlock!bytes=B| 00001230 6c 6f 63 6b 21 28 62 79 74 65 73 2b 34 29 3a ed |lock!(bytes+4):.| 00001240 0d 06 4a 23 20 20 20 20 24 28 4e 65 77 49 63 6f |..J# $(NewIco| 00001250 6e 42 6c 6f 63 6b 2b 32 34 29 3d 46 61 63 65 24 |nBlock+24)=Face$| 00001260 2b bd 30 0d 06 54 35 20 20 20 20 c8 99 20 22 57 |+.0..T5 .. "W| 00001270 69 6d 70 5f 43 72 65 61 74 65 49 63 6f 6e 22 2c |imp_CreateIcon",| 00001280 2c 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 20 b8 20 |,NewIconBlock . | 00001290 49 6e 66 6f 49 63 6f 6e 0d 06 5e 3a 20 20 20 20 |InfoIcon..^: | 000012a0 42 6c 6f 63 6b 21 30 3d 49 6e 66 6f 3a 42 6c 6f |Block!0=Info:Blo| 000012b0 63 6b 21 34 3d 49 6e 66 6f 49 63 6f 6e 3a 42 6c |ck!4=InfoIcon:Bl| 000012c0 6f 63 6b 21 38 3d 30 3a 42 6c 6f 63 6b 21 31 32 |ock!8=0:Block!12| 000012d0 3d 30 0d 06 68 25 20 20 20 20 c8 99 20 22 57 69 |=0..h% .. "Wi| 000012e0 6d 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 22 |mp_SetIconState"| 000012f0 2c 2c 42 6c 6f 63 6b 0d 06 72 04 0d 06 7c 10 20 |,,Block..r...|. | 00001300 20 20 20 43 68 61 6e 67 65 3d a3 0d 06 86 04 0d | Change=......| 00001310 06 90 07 20 20 cc 0d 06 9a 04 0d 06 a4 14 20 20 |... ......... | 00001320 20 20 42 6c 6f 63 6b 21 30 3d 53 69 64 65 0d 06 | Block!0=Side..| 00001330 ae 17 20 20 20 20 42 6c 6f 63 6b 21 34 3d 49 63 |.. Block!4=Ic| 00001340 6f 6e 42 61 72 0d 06 b8 11 20 20 20 20 42 6c 6f |onBar.... Blo| 00001350 63 6b 21 38 3d 30 0d 06 c2 12 20 20 20 20 42 6c |ck!8=0.... Bl| 00001360 6f 63 6b 21 31 32 3d 30 0d 06 cc 25 20 20 20 20 |ock!12=0...% | 00001370 c8 99 20 22 57 69 6d 70 5f 53 65 74 49 63 6f 6e |.. "Wimp_SetIcon| 00001380 53 74 61 74 65 22 2c 2c 42 6c 6f 63 6b 0d 06 d6 |State",,Block...| 00001390 04 0d 06 e0 14 20 20 20 20 42 6c 6f 63 6b 21 30 |..... Block!0| 000013a0 3d 49 6e 66 6f 0d 06 ea 4b 20 20 20 20 42 6c 6f |=Info...K Blo| 000013b0 63 6b 21 34 3d 49 6e 66 6f 49 63 6f 6e 20 20 20 |ck!4=InfoIcon | 000013c0 20 20 20 3a f4 20 49 63 6f 6e 20 6e 75 6d 62 65 | :. Icon numbe| 000013d0 72 20 6f 66 20 63 6c 6f 63 6b 20 66 61 63 65 20 |r of clock face | 000013e0 69 63 6f 6e 20 69 6e 20 49 6e 66 6f 20 42 6f 78 |icon in Info Box| 000013f0 0d 06 f4 11 20 20 20 20 42 6c 6f 63 6b 21 38 3d |.... Block!8=| 00001400 30 0d 06 fe 12 20 20 20 20 42 6c 6f 63 6b 21 31 |0.... Block!1| 00001410 32 3d 30 0d 07 08 25 20 20 20 20 c8 99 20 22 57 |2=0...% .. "W| 00001420 69 6d 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 |imp_SetIconState| 00001430 22 2c 2c 42 6c 6f 63 6b 0d 07 12 07 20 20 cd 0d |",,Block.... ..| 00001440 07 1c 18 20 20 4f 6c 64 59 45 69 67 3d 59 45 69 |... OldYEig=YEi| 00001450 67 46 61 63 74 6f 72 0d 07 26 05 cd 0d 07 30 04 |gFactor..&....0.| 00001460 0d 07 3a 0a fd 20 44 6f 6e 65 0d 07 44 26 c8 99 |..:.. Done..D&..| 00001470 20 22 57 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 6e | "Wimp_CloseDown| 00001480 22 2c 54 61 73 6b 2c 26 34 42 35 33 34 31 35 34 |",Task,&4B534154| 00001490 0d 07 4e 05 e0 0d 07 58 04 0d 07 62 13 f4 20 45 |..N....X...b.. E| 000014a0 72 72 6f 72 20 68 61 6e 64 6c 65 72 0d 07 6c 04 |rror handler..l.| 000014b0 0d 07 76 0c dd 20 f2 65 72 72 6f 72 0d 07 80 0c |..v.. .error....| 000014c0 20 20 ee 20 85 20 c8 98 0d 07 8a 0f 20 20 42 6c | . . ...... Bl| 000014d0 6f 63 6b 21 30 3d 9f 0d 07 94 25 20 20 24 28 42 |ock!0=....% $(B| 000014e0 6c 6f 63 6b 2b 34 29 3d f6 24 2b 22 20 61 74 20 |lock+4)=.$+" at | 000014f0 6c 69 6e 65 20 22 2b c3 9e 2b bd 30 0d 07 9e 36 |line "+..+.0...6| 00001500 20 20 c8 99 20 22 57 69 6d 70 5f 52 65 70 6f 72 | .. "Wimp_Repor| 00001510 74 45 72 72 6f 72 22 2c 42 6c 6f 63 6b 2c 25 30 |tError",Block,%0| 00001520 31 30 2c 22 54 69 6e 79 20 43 6c 6f 63 6b 20 2b |10,"Tiny Clock +| 00001530 32 22 0d 07 a8 28 20 20 c8 99 20 22 57 69 6d 70 |2"...( .. "Wimp| 00001540 5f 43 6c 6f 73 65 44 6f 77 6e 22 2c 54 61 73 6b |_CloseDown",Task| 00001550 2c 26 34 42 35 33 34 31 35 34 0d 07 b2 05 e0 0d |,&4B534154......| 00001560 07 bc 04 0d 07 c6 15 f4 20 4d 65 73 73 61 67 65 |........ Message| 00001570 20 68 61 6e 64 6c 65 72 0d 07 d0 04 0d 07 da 15 | handler........| 00001580 dd 20 f2 52 65 63 69 65 76 65 4d 65 73 73 61 67 |. .RecieveMessag| 00001590 65 0d 07 e4 13 20 20 c8 8e 20 42 6c 6f 63 6b 21 |e.... .. Block!| 000015a0 31 36 20 ca 0d 07 ee 14 20 20 20 20 c9 20 30 20 |16 ..... . 0 | 000015b0 3a 20 44 6f 6e 65 3d b9 0d 07 f8 07 20 20 cb 0d |: Done=..... ..| 000015c0 08 02 05 e1 0d 08 0c 04 0d 08 16 1a f4 20 4d 6f |............. Mo| 000015d0 75 73 65 20 62 75 74 74 6f 6e 20 68 61 6e 64 6c |use button handl| 000015e0 65 72 0d 08 20 04 0d 08 2a 12 dd 20 f2 4d 6f 75 |er.. ...*.. .Mou| 000015f0 73 65 42 75 74 74 6f 6e 0d 08 34 30 e7 20 42 6c |seButton..40. Bl| 00001600 6f 63 6b 21 31 32 3d 53 65 74 43 6c 6f 63 6b 20 |ock!12=SetClock | 00001610 8c 20 f2 64 65 63 6f 64 65 53 65 74 43 6c 6f 63 |. .decodeSetCloc| 00001620 6b 50 72 65 73 73 65 73 0d 08 3e 28 20 20 e7 20 |kPresses..>( . | 00001630 42 6c 6f 63 6b 21 31 32 3d 2d 32 20 80 20 42 6c |Block!12=-2 . Bl| 00001640 6f 63 6b 21 31 36 3d 49 63 6f 6e 42 61 72 20 8c |ock!16=IconBar .| 00001650 0d 08 48 20 20 20 20 20 c8 8e 20 ac 42 6c 6f 63 |..H .. .Bloc| 00001660 6b 21 32 30 20 80 20 42 6c 6f 63 6b 21 38 20 ca |k!20 . Block!8 .| 00001670 0d 08 52 0d 20 20 20 20 20 20 c9 20 31 0d 08 5c |..R. . 1..\| 00001680 1d 20 20 20 20 20 20 20 20 f2 6f 70 65 6e 28 53 |. .open(S| 00001690 65 74 43 6c 6f 63 6b 2c b9 29 0d 08 66 0d 20 20 |etClock,.)..f. | 000016a0 20 20 20 20 c9 20 32 0d 08 70 16 20 20 20 20 20 | . 2..p. | 000016b0 20 20 20 f2 6d 61 6b 65 5f 6d 65 6e 75 0d 08 7a | .make_menu..z| 000016c0 09 20 20 20 20 cb 0d 08 84 2f 20 20 20 20 cc 20 |. ..../ . | 000016d0 e7 20 42 6c 6f 63 6b 21 31 32 3d 49 6e 66 6f 20 |. Block!12=Info | 000016e0 80 20 42 6c 6f 63 6b 21 31 36 3d 49 6e 66 6f 49 |. Block!16=InfoI| 000016f0 63 6f 6e 20 8c 0d 08 8e 22 20 20 20 20 20 20 c8 |con ...." .| 00001700 8e 20 ac 42 6c 6f 63 6b 21 32 30 20 80 20 42 6c |. .Block!20 . Bl| 00001710 6f 63 6b 21 38 20 ca 0d 08 98 21 20 20 20 20 20 |ock!8 ....! | 00001720 20 20 20 c9 20 31 3a f2 6f 70 65 6e 28 53 65 74 | . 1:.open(Set| 00001730 43 6c 6f 63 6b 2c b9 29 0d 08 a2 0b 20 20 20 20 |Clock,.).... | 00001740 20 20 cb 0d 08 ac 09 20 20 20 20 cd 0d 08 b6 07 | ..... .....| 00001750 20 20 cd 0d 08 c0 05 e1 0d 08 ca 04 0d 08 d4 10 | ..............| 00001760 dd 20 f2 6d 61 6b 65 5f 6d 65 6e 75 0d 08 de 18 |. .make_menu....| 00001770 20 20 42 6c 6f 63 6b 21 30 3d 42 6c 6f 63 6b 21 | Block!0=Block!| 00001780 30 2d 34 38 0d 08 e8 1d 20 20 e7 20 42 6c 6f 63 |0-48.... . Bloc| 00001790 6b 21 30 3c 30 20 8c 20 42 6c 6f 63 6b 21 30 3d |k!0<0 . Block!0=| 000017a0 30 0d 08 f2 21 20 20 e7 20 42 6c 6f 63 6b 21 34 |0...! . Block!4| 000017b0 3c 32 35 34 20 8c 20 42 6c 6f 63 6b 21 34 3d 32 |<254 . Block!4=2| 000017c0 35 34 0d 08 fc 34 20 20 c8 99 20 22 57 69 6d 70 |54...4 .. "Wimp| 000017d0 5f 43 72 65 61 74 65 4d 65 6e 75 22 2c 2c 4d 65 |_CreateMenu",,Me| 000017e0 6e 75 73 2c 42 6c 6f 63 6b 21 30 2d 34 38 2c 42 |nus,Block!0-48,B| 000017f0 6c 6f 63 6b 21 34 0d 09 06 05 e1 0d 09 10 04 0d |lock!4..........| 00001800 09 1a 24 f4 20 41 20 6d 65 6e 75 20 65 6e 74 72 |..$. A menu entr| 00001810 79 20 68 61 73 20 62 65 65 6e 20 73 65 6c 65 63 |y has been selec| 00001820 74 65 64 0d 09 24 04 0d 09 2e 11 dd 20 f2 44 65 |ted..$...... .De| 00001830 63 6f 64 65 4d 65 6e 75 0d 09 38 12 20 20 c8 8e |codeMenu..8. ..| 00001840 20 42 6c 6f 63 6b 21 30 20 ca 0d 09 42 0b 20 20 | Block!0 ...B. | 00001850 20 20 c9 20 30 0d 09 4c 17 20 20 20 20 20 20 f2 | . 0..L. .| 00001860 6f 70 65 6e 28 49 6e 66 6f 2c b9 29 0d 09 56 0b |open(Info,.)..V.| 00001870 20 20 20 20 c9 20 31 0d 09 60 27 20 20 20 20 20 | . 1..`' | 00001880 20 e7 20 53 69 64 65 3d 2d 31 20 8c 20 53 69 64 | . Side=-1 . Sid| 00001890 65 3d 2d 32 20 8b 20 53 69 64 65 3d 2d 31 0d 09 |e=-2 . Side=-1..| 000018a0 6a 14 20 20 20 20 20 20 f2 77 72 69 74 65 73 69 |j. .writesi| 000018b0 64 65 0d 09 74 12 20 20 20 20 20 20 43 68 61 6e |de..t. Chan| 000018c0 67 65 3d b9 0d 09 7e 0b 20 20 20 20 c9 20 32 0d |ge=...~. . 2.| 000018d0 09 88 10 20 20 20 20 20 20 44 6f 6e 65 3d b9 0d |... Done=..| 000018e0 09 92 07 20 20 cb 0d 09 9c 25 20 20 c8 99 20 22 |... ....% .. "| 000018f0 57 69 6d 70 5f 47 65 74 50 6f 69 6e 74 65 72 49 |Wimp_GetPointerI| 00001900 6e 66 6f 22 2c 2c 42 6c 6f 63 6b 0d 09 a6 24 20 |nfo",,Block...$ | 00001910 20 e7 20 28 42 6c 6f 63 6b 21 38 20 80 20 31 29 | . (Block!8 . 1)| 00001920 3d 31 20 8c 20 f2 6d 61 6b 65 5f 6d 65 6e 75 0d |=1 . .make_menu.| 00001930 09 b0 05 e1 0d 09 ba 04 0d 09 c4 05 f4 0d 09 ce |................| 00001940 23 f4 20 49 6e 69 74 69 61 6c 69 73 65 20 61 20 |#. Initialise a | 00001950 73 65 74 20 6d 65 6e 75 20 6f 70 74 69 6f 6e 73 |set menu options| 00001960 0d 09 d8 05 f4 0d 09 e2 22 f4 20 54 69 74 6c 65 |........". Title| 00001970 20 3d 20 54 69 74 6c 65 20 61 74 20 74 6f 70 20 | = Title at top | 00001980 6f 66 20 6d 65 6e 75 0d 09 ec 05 f4 0d 09 f6 04 |of menu.........| 00001990 0d 0a 00 18 dd 20 f2 4d 65 6e 75 5f 69 6e 69 74 |..... .Menu_init| 000019a0 28 54 69 74 6c 65 24 29 0d 0a 0a 12 20 20 4c 25 |(Title$).... L%| 000019b0 3d a9 54 69 74 6c 65 24 2b 31 0d 0a 14 10 20 20 |=.Title$+1.... | 000019c0 24 4d 25 3d 54 69 74 6c 65 24 0d 0a 1e 0d 20 20 |$M%=Title$.... | 000019d0 4d 25 3f 31 32 3d 37 0d 0a 28 0d 20 20 4d 25 3f |M%?12=7..(. M%?| 000019e0 31 33 3d 32 0d 0a 32 0d 20 20 4d 25 3f 31 34 3d |13=2..2. M%?14=| 000019f0 36 0d 0a 3c 0d 20 20 4d 25 3f 31 35 3d 30 0d 0a |6..<. M%?15=0..| 00001a00 46 15 20 20 4d 25 21 31 36 3d 28 4c 25 2b 31 29 |F. M%!16=(L%+1)| 00001a10 2a 31 36 0d 0a 50 0e 20 20 4d 25 21 32 30 3d 34 |*16..P. M%!20=4| 00001a20 30 0d 0a 5a 0d 20 20 4d 25 21 32 34 3d 30 0d 0a |0..Z. M%!24=0..| 00001a30 64 0e 20 20 50 25 3d 4d 25 2b 32 38 0d 0a 6e 05 |d. P%=M%+28..n.| 00001a40 e1 0d 0a 78 04 0d 0a 82 05 f4 0d 0a 8c 3a f4 20 |...x.........:. | 00001a50 41 64 64 20 61 6e 20 65 6e 74 72 79 20 74 6f 20 |Add an entry to | 00001a60 74 68 65 20 6d 65 6e 75 20 6c 69 73 74 20 28 43 |the menu list (C| 00001a70 61 6c 6c 20 4d 65 6e 75 5f 69 6e 69 74 20 66 69 |all Menu_init fi| 00001a80 72 73 74 29 0d 0a 96 05 f4 0d 0a a0 20 f4 20 54 |rst)........ . T| 00001a90 65 78 74 20 20 3d 20 54 65 78 74 20 6f 66 20 6d |ext = Text of m| 00001aa0 65 6e 75 20 65 6e 74 72 79 0d 0a aa 05 f4 0d 0a |enu entry.......| 00001ab0 b4 30 f4 20 46 6c 61 67 73 20 3d 20 2b 31 20 20 |.0. Flags = +1 | 00001ac0 20 20 20 20 20 66 6f 72 20 27 74 68 69 73 20 69 | for 'this i| 00001ad0 74 65 6d 20 69 73 20 74 69 63 6b 65 64 27 0d 0a |tem is ticked'..| 00001ae0 be 39 f4 20 20 20 20 20 20 20 20 20 2b 32 20 20 |.9. +2 | 00001af0 20 20 20 20 20 66 6f 72 20 27 74 68 65 72 65 20 | for 'there | 00001b00 69 73 20 61 20 64 6f 74 74 65 64 20 6c 69 6e 65 |is a dotted line| 00001b10 20 61 66 74 65 72 27 0d 0a c8 32 f4 20 20 20 20 | after'...2. | 00001b20 20 20 20 20 20 2b 26 38 30 20 20 20 20 20 66 6f | +&80 fo| 00001b30 72 20 27 54 68 69 73 20 69 73 20 74 68 65 20 6c |r 'This is the l| 00001b40 61 73 74 20 69 74 65 6d 27 0d 0a d2 05 f4 0d 0a |ast item'.......| 00001b50 dc 46 f4 20 4c 69 6e 6b 20 20 3d 20 61 64 64 72 |.F. Link = addr| 00001b60 65 73 73 20 6f 66 20 66 6f 6c 6c 6f 77 69 6e 67 |ess of following| 00001b70 20 6d 65 6e 75 20 6f 72 20 68 61 6e 64 6c 65 20 | menu or handle | 00001b80 6f 66 20 77 69 6e 64 6f 77 20 74 6f 20 6c 69 6e |of window to lin| 00001b90 6b 20 74 6f 0d 0a e6 05 f4 0d 0a f0 04 0d 0a fa |k to............| 00001ba0 24 dd 20 f2 4d 65 6e 75 5f 69 74 65 6d 28 54 65 |$. .Menu_item(Te| 00001bb0 78 74 24 2c 46 6c 61 67 73 25 2c 4c 69 6e 6b 25 |xt$,Flags%,Link%| 00001bc0 29 0d 0b 04 15 20 20 50 25 21 30 3d 46 6c 61 67 |).... P%!0=Flag| 00001bd0 73 25 80 32 35 35 0d 0b 0e 10 20 20 50 25 21 34 |s%.255.... P%!4| 00001be0 3d 4c 69 6e 6b 25 0d 0b 18 14 20 20 50 25 21 38 |=Link%.... P%!8| 00001bf0 3d 26 30 37 30 30 33 30 32 31 0d 0b 22 14 20 20 |=&07003021..". | 00001c00 24 28 50 25 2b 31 32 29 3d 54 65 78 74 24 0d 0b |$(P%+12)=Text$..| 00001c10 2c 0c 20 20 50 25 2b 3d 32 34 0d 0b 36 2f 20 20 |,. P%+=24..6/ | 00001c20 e7 20 a9 54 65 78 74 24 3e 4c 25 20 8c 20 4c 25 |. .Text$>L% . L%| 00001c30 3d a9 54 65 78 74 24 20 3a 20 4d 25 21 31 36 3d |=.Text$ : M%!16=| 00001c40 28 4c 25 2b 31 29 2a 31 36 0d 0b 40 05 e1 0d 0b |(L%+1)*16..@....| 00001c50 4a 05 3a 0d 0b 54 18 dd 20 f2 72 65 61 64 6d 6f |J.:..T.. .readmo| 00001c60 64 65 76 61 72 69 61 62 6c 65 73 0d 0b 5e 2e c8 |devariables..^..| 00001c70 99 20 22 4f 53 5f 52 65 61 64 4d 6f 64 65 56 61 |. "OS_ReadModeVa| 00001c80 72 69 61 62 6c 65 22 2c 2d 31 2c 31 31 20 b8 20 |riable",-1,11 . | 00001c90 2c 2c 58 70 69 78 65 6c 73 0d 0b 68 2e c8 99 20 |,,Xpixels..h... | 00001ca0 22 4f 53 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 |"OS_ReadModeVari| 00001cb0 61 62 6c 65 22 2c 2d 31 2c 31 32 20 b8 20 2c 2c |able",-1,12 . ,,| 00001cc0 59 70 69 78 65 6c 73 0d 0b 72 30 c8 99 20 22 4f |Ypixels..r0.. "O| 00001cd0 53 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 |S_ReadModeVariab| 00001ce0 6c 65 22 2c 2d 31 2c 34 20 b8 20 2c 2c 58 45 69 |le",-1,4 . ,,XEi| 00001cf0 67 46 61 63 74 6f 72 0d 0b 7c 30 c8 99 20 22 4f |gFactor..|0.. "O| 00001d00 53 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 |S_ReadModeVariab| 00001d10 6c 65 22 2c 2d 31 2c 35 20 b8 20 2c 2c 59 45 69 |le",-1,5 . ,,YEi| 00001d20 67 46 61 63 74 6f 72 0d 0b 86 05 e1 0d 0b 90 05 |gFactor.........| 00001d30 3a 0d 0b 9a 23 dd 20 f2 64 65 63 69 64 65 77 69 |:...#. .decidewi| 00001d40 6e 64 6f 77 70 6f 73 69 74 69 6f 6e 28 57 69 6e |ndowposition(Win| 00001d50 64 6f 77 29 0d 0b a4 58 77 69 64 74 68 3d 28 57 |dow)...Xwidth=(W| 00001d60 69 6e 64 6f 77 21 31 32 2d 57 69 6e 64 6f 77 21 |indow!12-Window!| 00001d70 34 29 2f 28 32 5e 58 45 69 67 46 61 63 74 6f 72 |4)/(2^XEigFactor| 00001d80 29 3a 68 65 69 67 68 74 3d 28 57 69 6e 64 6f 77 |):height=(Window| 00001d90 21 31 36 2d 57 69 6e 64 6f 77 21 38 29 2f 28 32 |!16-Window!8)/(2| 00001da0 5e 59 45 69 67 46 61 63 74 6f 72 29 0d 0b ae 30 |^YEigFactor)...0| 00001db0 78 3d 28 58 70 69 78 65 6c 73 2b 31 2d 77 69 64 |x=(Xpixels+1-wid| 00001dc0 74 68 29 2f 32 3a 79 3d 28 59 70 69 78 65 6c 73 |th)/2:y=(Ypixels| 00001dd0 2b 31 2d 68 65 69 67 68 74 29 2f 32 0d 0b b8 3d |+1-height)/2...=| 00001de0 f4 20 41 62 6f 76 65 20 63 6f 6f 72 64 69 6e 61 |. Above coordina| 00001df0 74 65 73 20 63 65 6e 74 72 61 6c 69 73 65 20 77 |tes centralise w| 00001e00 69 6e 64 6f 77 20 28 69 6e 20 4f 53 20 75 6e 69 |indow (in OS uni| 00001e10 74 73 20 61 67 61 69 6e 29 0d 0b c2 28 f4 20 4e |ts again)...(. N| 00001e20 6f 77 20 63 6f 6e 76 65 72 74 20 74 6f 20 73 63 |ow convert to sc| 00001e30 72 65 65 6e 20 63 6f 6f 72 64 69 6e 61 74 65 73 |reen coordinates| 00001e40 3a 0d 0b cc 29 78 3d 78 2a 28 32 5e 58 45 69 67 |:...)x=x*(2^XEig| 00001e50 46 61 63 74 6f 72 29 3a 79 3d 79 2a 28 32 5e 59 |Factor):y=y*(2^Y| 00001e60 45 69 67 46 61 63 74 6f 72 29 0d 0b d6 3b 77 69 |EigFactor)...;wi| 00001e70 64 74 68 3d 77 69 64 74 68 2a 28 32 5e 58 45 69 |dth=width*(2^XEi| 00001e80 67 46 61 63 74 6f 72 29 3a 68 65 69 67 68 74 3d |gFactor):height=| 00001e90 68 65 69 67 68 74 2a 28 32 5e 59 45 69 67 46 61 |height*(2^YEigFa| 00001ea0 63 74 6f 72 29 0d 0b e0 20 57 69 6e 64 6f 77 21 |ctor)... Window!| 00001eb0 31 32 3d 78 2b 77 69 64 74 68 3a 57 69 6e 64 6f |12=x+width:Windo| 00001ec0 77 21 34 3d 78 0d 0b ea 21 57 69 6e 64 6f 77 21 |w!4=x...!Window!| 00001ed0 31 36 3d 79 2b 68 65 69 67 68 74 3a 57 69 6e 64 |16=y+height:Wind| 00001ee0 6f 77 21 38 3d 79 0d 0b f4 05 e1 0d 0b fe 05 3a |ow!8=y.........:| 00001ef0 0d 0c 08 24 dd 20 f2 6f 70 65 6e 28 57 69 6e 64 |...$. .open(Wind| 00001f00 6f 77 48 61 6e 64 6c 65 2c 54 6f 70 4f 66 53 74 |owHandle,TopOfSt| 00001f10 61 63 6b 29 0d 0c 12 16 f2 72 65 61 64 6d 6f 64 |ack).....readmod| 00001f20 65 76 61 72 69 61 62 6c 65 73 0d 0c 1c 19 57 69 |evariables....Wi| 00001f30 6e 64 6f 77 21 30 3d 57 69 6e 64 6f 77 48 61 6e |ndow!0=WindowHan| 00001f40 64 6c 65 0d 0c 26 24 c8 99 20 22 57 69 6d 70 5f |dle..&$.. "Wimp_| 00001f50 47 65 74 57 69 6e 64 6f 77 53 74 61 74 65 22 2c |GetWindowState",| 00001f60 2c 57 69 6e 64 6f 77 0d 0c 30 21 f2 64 65 63 69 |,Window..0!.deci| 00001f70 64 65 77 69 6e 64 6f 77 70 6f 73 69 74 69 6f 6e |dewindowposition| 00001f80 28 57 69 6e 64 6f 77 29 0d 0c 3a 1f e7 20 54 6f |(Window)..:.. To| 00001f90 70 4f 66 53 74 61 63 6b 20 8c 20 57 69 6e 64 6f |pOfStack . Windo| 00001fa0 77 21 32 38 3d 2d 31 0d 0c 44 20 c8 99 20 22 57 |w!28=-1..D .. "W| 00001fb0 69 6d 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 22 2c |imp_OpenWindow",| 00001fc0 2c 57 69 6e 64 6f 77 0d 0c 4e 3b e7 20 57 69 6e |,Window..N;. Win| 00001fd0 64 6f 77 48 61 6e 64 6c 65 3d 53 65 74 43 6c 6f |dowHandle=SetClo| 00001fe0 63 6b 20 8c 20 f2 72 65 61 64 43 6c 6f 63 6b 49 |ck . .readClockI| 00001ff0 6e 66 6f 3a f2 73 65 74 43 6c 6f 63 6b 49 63 6f |nfo:.setClockIco| 00002000 6e 73 0d 0c 58 05 e1 0d 0c 62 05 3a 0d 0c 6c 1a |ns..X....b.:..l.| 00002010 dd 20 f2 63 6c 6f 73 65 28 57 69 6e 64 6f 77 48 |. .close(WindowH| 00002020 61 6e 64 6c 65 29 0d 0c 76 19 57 69 6e 64 6f 77 |andle)..v.Window| 00002030 21 30 3d 57 69 6e 64 6f 77 48 61 6e 64 6c 65 0d |!0=WindowHandle.| 00002040 0c 80 24 c8 99 20 22 57 69 6d 70 5f 47 65 74 57 |..$.. "Wimp_GetW| 00002050 69 6e 64 6f 77 53 74 61 74 65 22 2c 2c 57 69 6e |indowState",,Win| 00002060 64 6f 77 0d 0c 8a 21 c8 99 20 22 57 69 6d 70 5f |dow...!.. "Wimp_| 00002070 43 6c 6f 73 65 57 69 6e 64 6f 77 22 2c 2c 57 69 |CloseWindow",,Wi| 00002080 6e 64 6f 77 0d 0c 94 26 e7 20 57 69 6e 64 6f 77 |ndow...&. Window| 00002090 48 61 6e 64 6c 65 3d 4d 61 69 6e 57 69 6e 64 6f |Handle=MainWindo| 000020a0 77 20 8c 20 44 6f 6e 65 3d b9 0d 0c 9e 05 e1 0d |w . Done=.......| 000020b0 0c a8 05 3a 0d 0c b2 1e dd 20 f2 55 70 64 61 74 |...:..... .Updat| 000020c0 65 49 63 6f 6e 73 28 49 63 6f 6e 2c 49 63 6f 6e |eIcons(Icon,Icon| 000020d0 24 29 0d 0c bc 29 49 63 6f 6e 42 6c 6f 63 6b 21 |$)...)IconBlock!| 000020e0 30 3d 53 65 74 43 6c 6f 63 6b 3a 49 63 6f 6e 42 |0=SetClock:IconB| 000020f0 6c 6f 63 6b 21 34 3d 49 63 6f 6e 0d 0c c6 25 c8 |lock!4=Icon...%.| 00002100 99 20 22 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 |. "Wimp_GetIconS| 00002110 74 61 74 65 22 2c 2c 49 63 6f 6e 42 6c 6f 63 6b |tate",,IconBlock| 00002120 0d 0c d0 23 c8 99 20 22 57 69 6d 70 5f 44 65 6c |...#.. "Wimp_Del| 00002130 65 74 65 49 63 6f 6e 22 2c 2c 49 63 6f 6e 42 6c |eteIcon",,IconBl| 00002140 6f 63 6b 0d 0c da 57 4e 65 77 49 63 6f 6e 42 6c |ock...WNewIconBl| 00002150 6f 63 6b 21 30 3d 53 65 74 43 6c 6f 63 6b 3a e3 |ock!0=SetClock:.| 00002160 20 62 79 74 65 73 3d 34 20 b8 20 33 32 20 88 20 | bytes=4 . 32 . | 00002170 34 3a 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 21 62 |4:NewIconBlock!b| 00002180 79 74 65 73 3d 49 63 6f 6e 42 6c 6f 63 6b 21 28 |ytes=IconBlock!(| 00002190 62 79 74 65 73 2b 34 29 3a ed 0d 0c e4 1f 24 28 |bytes+4):.....$(| 000021a0 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 2b 32 34 29 |NewIconBlock+24)| 000021b0 3d 49 63 6f 6e 24 2b bd 30 0d 0c ee 26 c8 99 20 |=Icon$+.0...&.. | 000021c0 22 57 69 6d 70 5f 43 72 65 61 74 65 49 63 6f 6e |"Wimp_CreateIcon| 000021d0 22 2c 2c 4e 65 77 49 63 6f 6e 42 6c 6f 63 6b 0d |",,NewIconBlock.| 000021e0 0c f8 46 49 63 6f 6e 42 6c 6f 63 6b 21 30 3d 53 |..FIconBlock!0=S| 000021f0 65 74 43 6c 6f 63 6b 3a 49 63 6f 6e 42 6c 6f 63 |etClock:IconBloc| 00002200 6b 21 34 3d 49 63 6f 6e 3a 49 63 6f 6e 42 6c 6f |k!4=Icon:IconBlo| 00002210 63 6b 21 38 3d 30 3a 49 63 6f 6e 42 6c 6f 63 6b |ck!8=0:IconBlock| 00002220 21 31 32 3d 30 0d 0d 02 25 c8 99 20 22 57 69 6d |!12=0...%.. "Wim| 00002230 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 22 2c |p_SetIconState",| 00002240 2c 49 63 6f 6e 42 6c 6f 63 6b 0d 0d 0c 05 e1 0d |,IconBlock......| 00002250 0d 16 05 3a 0d 0d 20 1c dd 20 f2 64 65 63 6f 64 |...:.. .. .decod| 00002260 65 53 65 74 43 6c 6f 63 6b 50 72 65 73 73 65 73 |eSetClockPresses| 00002270 0d 0d 2a 28 f4 20 57 68 69 63 68 20 61 72 72 6f |..*(. Which arro| 00002280 77 20 69 63 6f 6e 20 69 73 20 62 65 69 6e 67 20 |w icon is being | 00002290 70 72 65 73 73 65 64 3f 0d 0d 34 11 c8 8e 20 42 |pressed?..4... B| 000022a0 6c 6f 63 6b 21 31 36 20 ca 0d 0d 3e 37 20 20 c9 |lock!16 ...>7 .| 000022b0 20 30 3a 20 20 20 20 20 20 20 20 20 20 20 20 20 | 0: | 000022c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000022d0 f4 20 48 6f 75 72 73 20 49 6e 63 72 65 61 73 65 |. Hours Increase| 000022e0 0d 0d 48 1d 20 20 20 20 68 68 3d a4 69 6e 63 72 |..H. hh=.incr| 000022f0 65 61 73 65 28 68 68 2c 30 2c 32 33 29 0d 0d 52 |ease(hh,0,23)..R| 00002300 3e 20 20 20 20 e7 20 68 68 3e 31 32 20 8c 20 68 |> . hh>12 . h| 00002310 6f 75 72 73 3d 68 68 2d 31 32 3a 61 6d 70 6d 24 |ours=hh-12:ampm$| 00002320 3d 22 70 6d 22 3a 8b 20 68 6f 75 72 73 3d 68 68 |="pm":. hours=hh| 00002330 3a 61 6d 70 6d 24 3d 22 61 6d 22 0d 0d 5c 1c 20 |:ampm$="am"..\. | 00002340 20 20 20 e7 20 68 68 3d 31 32 20 8c 20 61 6d 70 | . hh=12 . amp| 00002350 6d 24 3d 22 70 6d 22 0d 0d 66 24 20 20 20 20 e7 |m$="pm"..f$ .| 00002360 20 68 68 3d 30 20 8c 20 68 6f 75 72 73 3d 31 32 | hh=0 . hours=12| 00002370 3a 61 6d 70 6d 24 3d 22 61 6d 22 0d 0d 70 35 20 |:ampm$="am"..p5 | 00002380 20 20 20 e7 20 6d 6d 3c 31 30 20 8c 20 6d 69 6e | . mm<10 . min| 00002390 75 74 65 73 24 3d 22 30 22 2b c3 28 6d 6d 29 3a |utes$="0"+.(mm):| 000023a0 8b 20 6d 69 6e 75 74 65 73 24 3d c3 28 6d 6d 29 |. minutes$=.(mm)| 000023b0 0d 0d 7a 32 20 20 20 20 f2 75 70 64 61 74 65 28 |..z2 .update(| 000023c0 32 2c c3 28 68 6f 75 72 73 29 2b 22 3a 22 2b 6d |2,.(hours)+":"+m| 000023d0 69 6e 75 74 65 73 24 2b 22 20 22 2b 61 6d 70 6d |inutes$+" "+ampm| 000023e0 24 29 0d 0d 84 37 20 20 c9 20 31 3a 20 20 20 20 |$)...7 . 1: | 000023f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002400 20 20 20 20 20 20 20 20 20 f4 20 48 6f 75 72 73 | . Hours| 00002410 20 44 65 63 72 65 61 73 65 0d 0d 8e 1d 20 20 20 | Decrease.... | 00002420 20 68 68 3d a4 64 65 63 72 65 61 73 65 28 68 68 | hh=.decrease(hh| 00002430 2c 30 2c 32 33 29 0d 0d 98 3e 20 20 20 20 e7 20 |,0,23)...> . | 00002440 68 68 3e 31 32 20 8c 20 68 6f 75 72 73 3d 68 68 |hh>12 . hours=hh| 00002450 2d 31 32 3a 61 6d 70 6d 24 3d 22 70 6d 22 3a 8b |-12:ampm$="pm":.| 00002460 20 68 6f 75 72 73 3d 68 68 3a 61 6d 70 6d 24 3d | hours=hh:ampm$=| 00002470 22 61 6d 22 0d 0d a2 1c 20 20 20 20 e7 20 68 68 |"am".... . hh| 00002480 3d 31 32 20 8c 20 61 6d 70 6d 24 3d 22 70 6d 22 |=12 . ampm$="pm"| 00002490 0d 0d ac 24 20 20 20 20 e7 20 68 68 3d 30 20 8c |...$ . hh=0 .| 000024a0 20 68 6f 75 72 73 3d 31 32 3a 61 6d 70 6d 24 3d | hours=12:ampm$=| 000024b0 22 61 6d 22 0d 0d b6 35 20 20 20 20 e7 20 6d 6d |"am"...5 . mm| 000024c0 3c 31 30 20 8c 20 6d 69 6e 75 74 65 73 24 3d 22 |<10 . minutes$="| 000024d0 30 22 2b c3 28 6d 6d 29 3a 8b 20 6d 69 6e 75 74 |0"+.(mm):. minut| 000024e0 65 73 24 3d c3 28 6d 6d 29 0d 0d c0 32 20 20 20 |es$=.(mm)...2 | 000024f0 20 f2 75 70 64 61 74 65 28 32 2c c3 28 68 6f 75 | .update(2,.(hou| 00002500 72 73 29 2b 22 3a 22 2b 6d 69 6e 75 74 65 73 24 |rs)+":"+minutes$| 00002510 2b 22 20 22 2b 61 6d 70 6d 24 29 0d 0d ca 39 20 |+" "+ampm$)...9 | 00002520 20 c9 20 33 3a 20 20 20 20 20 20 20 20 20 20 20 | . 3: | 00002530 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002540 20 20 f4 20 4d 69 6e 75 74 65 73 20 49 6e 63 72 | . Minutes Incr| 00002550 65 61 73 65 0d 0d d4 1d 20 20 20 20 6d 6d 3d a4 |ease.... mm=.| 00002560 69 6e 63 72 65 61 73 65 28 6d 6d 2c 30 2c 35 39 |increase(mm,0,59| 00002570 29 0d 0d de 3e 20 20 20 20 e7 20 68 68 3e 31 32 |)...> . hh>12| 00002580 20 8c 20 68 6f 75 72 73 3d 68 68 2d 31 32 3a 61 | . hours=hh-12:a| 00002590 6d 70 6d 24 3d 22 70 6d 22 3a 8b 20 68 6f 75 72 |mpm$="pm":. hour| 000025a0 73 3d 68 68 3a 61 6d 70 6d 24 3d 22 61 6d 22 0d |s=hh:ampm$="am".| 000025b0 0d e8 1c 20 20 20 20 e7 20 68 68 3d 31 32 20 8c |... . hh=12 .| 000025c0 20 61 6d 70 6d 24 3d 22 70 6d 22 0d 0d f2 24 20 | ampm$="pm"...$ | 000025d0 20 20 20 e7 20 68 68 3d 30 20 8c 20 68 6f 75 72 | . hh=0 . hour| 000025e0 73 3d 31 32 3a 61 6d 70 6d 24 3d 22 61 6d 22 0d |s=12:ampm$="am".| 000025f0 0d fc 35 20 20 20 20 e7 20 6d 6d 3c 31 30 20 8c |..5 . mm<10 .| 00002600 20 6d 69 6e 75 74 65 73 24 3d 22 30 22 2b c3 28 | minutes$="0"+.(| 00002610 6d 6d 29 3a 8b 20 6d 69 6e 75 74 65 73 24 3d c3 |mm):. minutes$=.| 00002620 28 6d 6d 29 0d 0e 06 32 20 20 20 20 f2 75 70 64 |(mm)...2 .upd| 00002630 61 74 65 28 32 2c c3 28 68 6f 75 72 73 29 2b 22 |ate(2,.(hours)+"| 00002640 3a 22 2b 6d 69 6e 75 74 65 73 24 2b 22 20 22 2b |:"+minutes$+" "+| 00002650 61 6d 70 6d 24 29 0d 0e 10 39 20 20 c9 20 34 3a |ampm$)...9 . 4:| 00002660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002670 20 20 20 20 20 20 20 20 20 20 20 20 20 f4 20 4d | . M| 00002680 69 6e 75 74 65 73 20 44 65 63 72 65 61 73 65 0d |inutes Decrease.| 00002690 0e 1a 1d 20 20 20 20 6d 6d 3d a4 64 65 63 72 65 |... mm=.decre| 000026a0 61 73 65 28 6d 6d 2c 30 2c 35 39 29 0d 0e 24 3e |ase(mm,0,59)..$>| 000026b0 20 20 20 20 e7 20 68 68 3e 31 32 20 8c 20 68 6f | . hh>12 . ho| 000026c0 75 72 73 3d 68 68 2d 31 32 3a 61 6d 70 6d 24 3d |urs=hh-12:ampm$=| 000026d0 22 70 6d 22 3a 8b 20 68 6f 75 72 73 3d 68 68 3a |"pm":. hours=hh:| 000026e0 61 6d 70 6d 24 3d 22 61 6d 22 0d 0e 2e 1c 20 20 |ampm$="am".... | 000026f0 20 20 e7 20 68 68 3d 31 32 20 8c 20 61 6d 70 6d | . hh=12 . ampm| 00002700 24 3d 22 70 6d 22 0d 0e 38 24 20 20 20 20 e7 20 |$="pm"..8$ . | 00002710 68 68 3d 30 20 8c 20 68 6f 75 72 73 3d 31 32 3a |hh=0 . hours=12:| 00002720 61 6d 70 6d 24 3d 22 61 6d 22 0d 0e 42 35 20 20 |ampm$="am"..B5 | 00002730 20 20 e7 20 6d 6d 3c 31 30 20 8c 20 6d 69 6e 75 | . mm<10 . minu| 00002740 74 65 73 24 3d 22 30 22 2b c3 28 6d 6d 29 3a 8b |tes$="0"+.(mm):.| 00002750 20 6d 69 6e 75 74 65 73 24 3d c3 28 6d 6d 29 0d | minutes$=.(mm).| 00002760 0e 4c 32 20 20 20 20 f2 75 70 64 61 74 65 28 32 |.L2 .update(2| 00002770 2c c3 28 68 6f 75 72 73 29 2b 22 3a 22 2b 6d 69 |,.(hours)+":"+mi| 00002780 6e 75 74 65 73 24 2b 22 20 22 2b 61 6d 70 6d 24 |nutes$+" "+ampm$| 00002790 29 0d 0e 56 41 20 20 c9 20 35 3a 20 20 20 20 20 |)..VA . 5: | 000027a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000027b0 20 20 20 20 20 20 20 20 f4 20 2a 2a 2a 20 53 45 | . *** SE| 000027c0 54 20 43 4c 4f 43 4b 20 4e 4f 57 21 21 21 20 2a |T CLOCK NOW!!! *| 000027d0 2a 2a 0d 0e 60 21 20 20 20 20 c8 99 20 22 4f 53 |**..`! .. "OS| 000027e0 5f 57 6f 72 64 22 2c 31 35 2c 43 6c 6f 63 6b 49 |_Word",15,ClockI| 000027f0 6e 66 6f 0d 0e 6a 3b 20 20 c9 20 36 3a 20 20 20 |nfo..j; . 6: | 00002800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002810 20 20 20 20 20 20 20 20 20 20 f4 20 44 65 63 72 | . Decr| 00002820 65 61 73 65 20 44 61 79 2c 20 44 61 74 65 0d 0e |ease Day, Date..| 00002830 74 25 20 20 20 20 6e 6e 3d a4 64 65 63 72 65 61 |t% nn=.decrea| 00002840 73 65 28 6e 6e 2c 31 2c 64 61 79 73 28 6d 6e 74 |se(nn,1,days(mnt| 00002850 68 29 29 0d 0e 7e 2a 20 20 20 20 64 61 79 3d a4 |h))..~* day=.| 00002860 64 61 79 6f 66 77 65 65 6b 28 6e 6e 2c 6d 6e 74 |dayofweek(nn,mnt| 00002870 68 2b 31 2c bb 28 79 79 79 79 24 29 29 0d 0e 88 |h+1,.(yyyy$))...| 00002880 20 20 20 20 20 64 61 79 24 3d 44 61 79 24 28 64 | day$=Day$(d| 00002890 61 79 29 3a 64 64 64 24 3d 64 61 79 24 0d 0e 92 |ay):ddd$=day$...| 000028a0 21 20 20 20 20 63 6f 6e 74 65 6e 74 73 24 3d 64 |! contents$=d| 000028b0 61 79 24 2b 22 2c 20 22 2b c3 28 6e 6e 29 0d 0e |ay$+", "+.(nn)..| 000028c0 9c 11 20 20 20 20 f2 73 74 6e 64 72 64 74 68 0d |.. .stndrdth.| 000028d0 0e a6 1c 20 20 20 20 f2 75 70 64 61 74 65 28 37 |... .update(7| 000028e0 2c 63 6f 6e 74 65 6e 74 73 24 29 0d 0e b0 3b 20 |,contents$)...; | 000028f0 20 c9 20 38 3a 20 20 20 20 20 20 20 20 20 20 20 | . 8: | 00002900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002910 20 20 f4 20 49 6e 63 72 65 61 73 65 20 44 61 79 | . Increase Day| 00002920 2c 20 44 61 74 65 0d 0e ba 25 20 20 20 20 6e 6e |, Date...% nn| 00002930 3d a4 69 6e 63 72 65 61 73 65 28 6e 6e 2c 31 2c |=.increase(nn,1,| 00002940 64 61 79 73 28 6d 6e 74 68 29 29 0d 0e c4 2a 20 |days(mnth))...* | 00002950 20 20 20 64 61 79 3d a4 64 61 79 6f 66 77 65 65 | day=.dayofwee| 00002960 6b 28 6e 6e 2c 6d 6e 74 68 2b 31 2c bb 28 79 79 |k(nn,mnth+1,.(yy| 00002970 79 79 24 29 29 0d 0e ce 20 20 20 20 20 64 61 79 |yy$))... day| 00002980 24 3d 44 61 79 24 28 64 61 79 29 3a 64 64 64 24 |$=Day$(day):ddd$| 00002990 3d 64 61 79 24 0d 0e d8 21 20 20 20 20 63 6f 6e |=day$...! con| 000029a0 74 65 6e 74 73 24 3d 64 61 79 24 2b 22 2c 20 22 |tents$=day$+", "| 000029b0 2b c3 28 6e 6e 29 0d 0e e2 11 20 20 20 20 f2 73 |+.(nn).... .s| 000029c0 74 6e 64 72 64 74 68 0d 0e ec 1c 20 20 20 20 f2 |tndrdth.... .| 000029d0 75 70 64 61 74 65 28 37 2c 63 6f 6e 74 65 6e 74 |update(7,content| 000029e0 73 24 29 0d 0e f6 37 20 20 c9 20 39 3a 20 20 20 |s$)...7 . 9: | 000029f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002a00 20 20 20 20 20 20 20 20 20 20 f4 20 44 65 63 72 | . Decr| 00002a10 65 61 73 65 20 4d 6f 6e 74 68 0d 0f 00 21 20 20 |ease Month...! | 00002a20 20 20 6d 6e 74 68 3d a4 64 65 63 72 65 61 73 65 | mnth=.decrease| 00002a30 28 6d 6e 74 68 2c 30 2c 31 31 29 0d 0f 0a 1f 20 |(mnth,0,11).... | 00002a40 20 20 20 6d 6d 6d 24 3d c1 4d 6f 6e 74 68 24 28 | mmm$=.Month$(| 00002a50 6d 6e 74 68 29 2c 31 2c 33 29 0d 0f 14 2a 20 20 |mnth),1,3)...* | 00002a60 20 20 64 61 79 3d a4 64 61 79 6f 66 77 65 65 6b | day=.dayofweek| 00002a70 28 6e 6e 2c 6d 6e 74 68 2b 31 2c bb 28 79 79 79 |(nn,mnth+1,.(yyy| 00002a80 79 24 29 29 0d 0f 1e 20 20 20 20 20 64 61 79 24 |y$))... day$| 00002a90 3d 44 61 79 24 28 64 61 79 29 3a 64 64 64 24 3d |=Day$(day):ddd$=| 00002aa0 64 61 79 24 0d 0f 28 21 20 20 20 20 63 6f 6e 74 |day$..(! cont| 00002ab0 65 6e 74 73 24 3d 64 61 79 24 2b 22 2c 20 22 2b |ents$=day$+", "+| 00002ac0 c3 28 6e 6e 29 0d 0f 32 11 20 20 20 20 f2 73 74 |.(nn)..2. .st| 00002ad0 6e 64 72 64 74 68 0d 0f 3c 1c 20 20 20 20 f2 75 |ndrdth..<. .u| 00002ae0 70 64 61 74 65 28 37 2c 63 6f 6e 74 65 6e 74 73 |pdate(7,contents| 00002af0 24 29 0d 0f 46 20 20 20 20 20 f2 75 70 64 61 74 |$)..F .updat| 00002b00 65 28 31 31 2c 4d 6f 6e 74 68 24 28 6d 6e 74 68 |e(11,Month$(mnth| 00002b10 29 29 0d 0f 50 37 20 20 c9 20 31 30 3a 20 20 20 |))..P7 . 10: | 00002b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002b30 20 20 20 20 20 20 20 20 20 f4 20 49 6e 63 72 65 | . Incre| 00002b40 61 73 65 20 4d 6f 6e 74 68 0d 0f 5a 21 20 20 20 |ase Month..Z! | 00002b50 20 6d 6e 74 68 3d a4 69 6e 63 72 65 61 73 65 28 | mnth=.increase(| 00002b60 6d 6e 74 68 2c 30 2c 31 31 29 0d 0f 64 1f 20 20 |mnth,0,11)..d. | 00002b70 20 20 6d 6d 6d 24 3d c1 4d 6f 6e 74 68 24 28 6d | mmm$=.Month$(m| 00002b80 6e 74 68 29 2c 31 2c 33 29 0d 0f 6e 2a 20 20 20 |nth),1,3)..n* | 00002b90 20 64 61 79 3d a4 64 61 79 6f 66 77 65 65 6b 28 | day=.dayofweek(| 00002ba0 6e 6e 2c 6d 6e 74 68 2b 31 2c bb 28 79 79 79 79 |nn,mnth+1,.(yyyy| 00002bb0 24 29 29 0d 0f 78 20 20 20 20 20 64 61 79 24 3d |$))..x day$=| 00002bc0 44 61 79 24 28 64 61 79 29 3a 64 64 64 24 3d 64 |Day$(day):ddd$=d| 00002bd0 61 79 24 0d 0f 82 21 20 20 20 20 63 6f 6e 74 65 |ay$...! conte| 00002be0 6e 74 73 24 3d 64 61 79 24 2b 22 2c 20 22 2b c3 |nts$=day$+", "+.| 00002bf0 28 6e 6e 29 0d 0f 8c 11 20 20 20 20 f2 73 74 6e |(nn).... .stn| 00002c00 64 72 64 74 68 0d 0f 96 1c 20 20 20 20 f2 75 70 |drdth.... .up| 00002c10 64 61 74 65 28 37 2c 63 6f 6e 74 65 6e 74 73 24 |date(7,contents$| 00002c20 29 0d 0f a0 20 20 20 20 20 f2 75 70 64 61 74 65 |)... .update| 00002c30 28 31 31 2c 4d 6f 6e 74 68 24 28 6d 6e 74 68 29 |(11,Month$(mnth)| 00002c40 29 0d 0f aa 36 20 20 c9 20 31 32 3a 20 20 20 20 |)...6 . 12: | 00002c50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002c60 20 20 20 20 20 20 20 20 f4 20 44 65 63 72 65 61 | . Decrea| 00002c70 73 65 20 59 65 61 72 0d 0f b4 2a 20 20 20 20 79 |se Year...* y| 00002c80 79 79 79 3d a4 64 65 63 72 65 61 73 65 28 bb 28 |yyy=.decrease(.(| 00002c90 79 79 79 79 24 29 2c 31 37 35 33 2c 39 39 39 39 |yyyy$),1753,9999| 00002ca0 29 0d 0f be 15 20 20 20 20 79 79 79 79 24 3d c3 |).... yyyy$=.| 00002cb0 28 79 79 79 79 29 0d 0f c8 2f 20 20 20 20 e7 20 |(yyyy).../ . | 00002cc0 a4 6c 65 61 70 28 79 79 79 79 29 20 8c 20 64 61 |.leap(yyyy) . da| 00002cd0 79 73 28 31 29 3d 32 39 3a 8b 20 64 61 79 73 28 |ys(1)=29:. days(| 00002ce0 31 29 3d 32 38 0d 0f d2 2a 20 20 20 20 64 61 79 |1)=28...* day| 00002cf0 3d a4 64 61 79 6f 66 77 65 65 6b 28 6e 6e 2c 6d |=.dayofweek(nn,m| 00002d00 6e 74 68 2b 31 2c bb 28 79 79 79 79 24 29 29 0d |nth+1,.(yyyy$)).| 00002d10 0f dc 20 20 20 20 20 64 61 79 24 3d 44 61 79 24 |.. day$=Day$| 00002d20 28 64 61 79 29 3a 64 64 64 24 3d 64 61 79 24 0d |(day):ddd$=day$.| 00002d30 0f e6 21 20 20 20 20 63 6f 6e 74 65 6e 74 73 24 |..! contents$| 00002d40 3d 64 61 79 24 2b 22 2c 20 22 2b c3 28 6e 6e 29 |=day$+", "+.(nn)| 00002d50 0d 0f f0 11 20 20 20 20 f2 73 74 6e 64 72 64 74 |.... .stndrdt| 00002d60 68 0d 0f fa 1c 20 20 20 20 f2 75 70 64 61 74 65 |h.... .update| 00002d70 28 37 2c 63 6f 6e 74 65 6e 74 73 24 29 0d 10 04 |(7,contents$)...| 00002d80 19 20 20 20 20 f2 75 70 64 61 74 65 28 31 34 2c |. .update(14,| 00002d90 79 79 79 79 24 29 0d 10 0e 36 20 20 c9 20 31 33 |yyyy$)...6 . 13| 00002da0 3a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |: | 00002db0 20 20 20 20 20 20 20 20 20 20 20 20 20 f4 20 49 | . I| 00002dc0 6e 63 72 65 61 73 65 20 59 65 61 72 0d 10 18 2a |ncrease Year...*| 00002dd0 20 20 20 20 79 79 79 79 3d a4 69 6e 63 72 65 61 | yyyy=.increa| 00002de0 73 65 28 bb 28 79 79 79 79 24 29 2c 31 37 35 33 |se(.(yyyy$),1753| 00002df0 2c 39 39 39 39 29 0d 10 22 15 20 20 20 20 79 79 |,9999)..". yy| 00002e00 79 79 24 3d c3 28 79 79 79 79 29 0d 10 2c 2f 20 |yy$=.(yyyy)..,/ | 00002e10 20 20 20 e7 20 a4 6c 65 61 70 28 79 79 79 79 29 | . .leap(yyyy)| 00002e20 20 8c 20 64 61 79 73 28 31 29 3d 32 39 3a 8b 20 | . days(1)=29:. | 00002e30 64 61 79 73 28 31 29 3d 32 38 0d 10 36 2a 20 20 |days(1)=28..6* | 00002e40 20 20 64 61 79 3d a4 64 61 79 6f 66 77 65 65 6b | day=.dayofweek| 00002e50 28 6e 6e 2c 6d 6e 74 68 2b 31 2c bb 28 79 79 79 |(nn,mnth+1,.(yyy| 00002e60 79 24 29 29 0d 10 40 20 20 20 20 20 64 61 79 24 |y$))..@ day$| 00002e70 3d 44 61 79 24 28 64 61 79 29 3a 64 64 64 24 3d |=Day$(day):ddd$=| 00002e80 64 61 79 24 0d 10 4a 21 20 20 20 20 63 6f 6e 74 |day$..J! cont| 00002e90 65 6e 74 73 24 3d 64 61 79 24 2b 22 2c 20 22 2b |ents$=day$+", "+| 00002ea0 c3 28 6e 6e 29 0d 10 54 11 20 20 20 20 f2 73 74 |.(nn)..T. .st| 00002eb0 6e 64 72 64 74 68 0d 10 5e 1c 20 20 20 20 f2 75 |ndrdth..^. .u| 00002ec0 70 64 61 74 65 28 37 2c 63 6f 6e 74 65 6e 74 73 |pdate(7,contents| 00002ed0 24 29 0d 10 68 19 20 20 20 20 f2 75 70 64 61 74 |$)..h. .updat| 00002ee0 65 28 31 34 2c 79 79 79 79 24 29 0d 10 72 39 20 |e(14,yyyy$)..r9 | 00002ef0 20 c9 20 31 35 3a 20 20 20 20 20 20 20 20 20 20 | . 15: | 00002f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002f10 20 20 f4 20 44 65 63 72 65 61 73 65 20 53 65 63 | . Decrease Sec| 00002f20 6f 6e 64 73 0d 10 7c 1d 20 20 20 20 73 73 3d a4 |onds..|. ss=.| 00002f30 64 65 63 72 65 61 73 65 28 73 73 2c 30 2c 35 39 |decrease(ss,0,59| 00002f40 29 0d 10 86 35 20 20 20 20 e7 20 73 73 3c 31 30 |)...5 . ss<10| 00002f50 20 8c 20 73 65 63 6f 6e 64 73 24 3d 22 30 22 2b | . seconds$="0"+| 00002f60 c3 28 73 73 29 3a 8b 20 73 65 63 6f 6e 64 73 24 |.(ss):. seconds$| 00002f70 3d c3 28 73 73 29 0d 10 90 24 20 20 20 20 f2 75 |=.(ss)...$ .u| 00002f80 70 64 61 74 65 28 31 36 2c 73 65 63 6f 6e 64 73 |pdate(16,seconds| 00002f90 24 2b 22 20 73 65 63 73 22 29 0d 10 9a 3c 20 20 |$+" secs")...< | 00002fa0 c9 20 31 36 3a 20 20 20 20 20 20 20 20 20 20 20 |. 16: | 00002fb0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002fc0 20 f4 20 52 65 73 65 74 20 53 65 63 6f 6e 64 73 | . Reset Seconds| 00002fd0 20 74 6f 20 30 30 0d 10 a4 0c 20 20 20 20 73 73 | to 00.... ss| 00002fe0 3d 30 0d 10 ae 15 20 20 20 20 73 65 63 6f 6e 64 |=0.... second| 00002ff0 73 24 3d 22 30 30 22 0d 10 b8 24 20 20 20 20 f2 |s$="00"...$ .| 00003000 75 70 64 61 74 65 28 31 36 2c 73 65 63 6f 6e 64 |update(16,second| 00003010 73 24 2b 22 20 73 65 63 73 22 29 0d 10 c2 39 20 |s$+" secs")...9 | 00003020 20 c9 20 31 37 3a 20 20 20 20 20 20 20 20 20 20 | . 17: | 00003030 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003040 20 20 f4 20 49 6e 63 72 65 61 73 65 20 53 65 63 | . Increase Sec| 00003050 6f 6e 64 73 0d 10 cc 1d 20 20 20 20 73 73 3d a4 |onds.... ss=.| 00003060 69 6e 63 72 65 61 73 65 28 73 73 2c 30 2c 35 39 |increase(ss,0,59| 00003070 29 0d 10 d6 35 20 20 20 20 e7 20 73 73 3c 31 30 |)...5 . ss<10| 00003080 20 8c 20 73 65 63 6f 6e 64 73 24 3d 22 30 22 2b | . seconds$="0"+| 00003090 c3 28 73 73 29 3a 8b 20 73 65 63 6f 6e 64 73 24 |.(ss):. seconds$| 000030a0 3d c3 28 73 73 29 0d 10 e0 24 20 20 20 20 f2 75 |=.(ss)...$ .u| 000030b0 70 64 61 74 65 28 31 36 2c 73 65 63 6f 6e 64 73 |pdate(16,seconds| 000030c0 24 2b 22 20 73 65 63 73 22 29 0d 10 ea 05 cb 0d |$+" secs")......| 000030d0 10 f4 05 e1 0d 10 fe 05 3a 0d 11 08 14 dd 20 f2 |........:..... .| 000030e0 72 65 61 64 43 6c 6f 63 6b 49 6e 66 6f 0d 11 12 |readClockInfo...| 000030f0 0d 43 6c 6f 63 6b 24 3d 91 24 0d 11 1c 15 64 64 |.Clock$=.$....dd| 00003100 64 24 3d c1 43 6c 6f 63 6b 24 2c 31 2c 33 29 0d |d$=.Clock$,1,3).| 00003110 11 26 16 6e 6e 3d bb 28 c1 43 6c 6f 63 6b 24 2c |.&.nn=.(.Clock$,| 00003120 35 2c 32 29 29 0d 11 30 15 6d 6d 6d 24 3d c1 43 |5,2))..0.mmm$=.C| 00003130 6c 6f 63 6b 24 2c 38 2c 33 29 0d 11 3a 17 79 79 |lock$,8,3)..:.yy| 00003140 79 79 24 3d c1 43 6c 6f 63 6b 24 2c 31 32 2c 34 |yy$=.Clock$,12,4| 00003150 29 0d 11 44 17 68 68 3d bb 28 c1 43 6c 6f 63 6b |)..D.hh=.(.Clock| 00003160 24 2c 31 37 2c 32 29 29 0d 11 4e 17 6d 6d 3d bb |$,17,2))..N.mm=.| 00003170 28 c1 43 6c 6f 63 6b 24 2c 32 30 2c 32 29 29 0d |(.Clock$,20,2)).| 00003180 11 58 17 73 73 3d bb 28 c1 43 6c 6f 63 6b 24 2c |.X.ss=.(.Clock$,| 00003190 32 33 2c 32 29 29 0d 11 62 0e e3 20 4e 3d 30 20 |23,2))..b.. N=0 | 000031a0 b8 20 31 31 0d 11 6c 23 e7 20 6d 6d 6d 24 3d c1 |. 11..l#. mmm$=.| 000031b0 4d 6f 6e 74 68 24 28 4e 29 2c 31 2c 33 29 20 8c |Month$(N),1,3) .| 000031c0 20 6d 6e 74 68 3d 4e 0d 11 76 05 ed 0d 11 80 05 | mnth=N..v......| 000031d0 e1 0d 11 8a 05 3a 0d 11 94 2a dd 20 a4 69 6e 63 |.....:...*. .inc| 000031e0 72 65 61 73 65 28 76 61 72 2c 6c 6f 77 65 72 6c |rease(var,lowerl| 000031f0 69 6d 69 74 2c 75 70 70 65 72 6c 69 6d 69 74 29 |imit,upperlimit)| 00003200 0d 11 9e 2c 76 61 72 2b 3d 31 3a e7 20 76 61 72 |...,var+=1:. var| 00003210 3e 75 70 70 65 72 6c 69 6d 69 74 20 8c 20 76 61 |>upperlimit . va| 00003220 72 3d 6c 6f 77 65 72 6c 69 6d 69 74 0d 11 a8 08 |r=lowerlimit....| 00003230 3d 76 61 72 0d 11 b2 05 3a 0d 11 bc 2a dd 20 a4 |=var....:...*. .| 00003240 64 65 63 72 65 61 73 65 28 76 61 72 2c 6c 6f 77 |decrease(var,low| 00003250 65 72 6c 69 6d 69 74 2c 75 70 70 65 72 6c 69 6d |erlimit,upperlim| 00003260 69 74 29 0d 11 c6 2c 76 61 72 2d 3d 31 3a e7 20 |it)...,var-=1:. | 00003270 76 61 72 3c 6c 6f 77 65 72 6c 69 6d 69 74 20 8c |var<lowerlimit .| 00003280 20 76 61 72 3d 75 70 70 65 72 6c 69 6d 69 74 0d | var=upperlimit.| 00003290 11 d0 08 3d 76 61 72 0d 11 da 05 3a 0d 11 e4 19 |...=var....:....| 000032a0 dd 20 f2 75 70 64 61 74 65 28 49 63 6f 6e 2c 49 |. .update(Icon,I| 000032b0 63 6f 6e 24 29 0d 11 ee 27 e7 20 6e 6e 3c 31 30 |con$)...'. nn<10| 000032c0 20 8c 20 6e 6e 24 3d 22 30 22 2b c3 28 6e 6e 29 | . nn$="0"+.(nn)| 000032d0 3a 8b 20 6e 6e 24 3d c3 28 6e 6e 29 0d 11 f8 27 |:. nn$=.(nn)...'| 000032e0 e7 20 68 68 3c 31 30 20 8c 20 68 68 24 3d 22 30 |. hh<10 . hh$="0| 000032f0 22 2b c3 28 68 68 29 3a 8b 20 68 68 24 3d c3 28 |"+.(hh):. hh$=.(| 00003300 68 68 29 0d 12 02 27 e7 20 6d 6d 3c 31 30 20 8c |hh)...'. mm<10 .| 00003310 20 6d 6d 24 3d 22 30 22 2b c3 28 6d 6d 29 3a 8b | mm$="0"+.(mm):.| 00003320 20 6d 6d 24 3d c3 28 6d 6d 29 0d 12 0c 27 e7 20 | mm$=.(mm)...'. | 00003330 73 73 3c 31 30 20 8c 20 73 73 24 3d 22 30 22 2b |ss<10 . ss$="0"+| 00003340 c3 28 73 73 29 3a 8b 20 73 73 24 3d c3 28 73 73 |.(ss):. ss$=.(ss| 00003350 29 0d 12 16 42 43 6c 6f 63 6b 24 3d 64 64 64 24 |)...BClock$=ddd$| 00003360 2b 22 2c 22 2b 6e 6e 24 2b 22 20 22 2b 6d 6d 6d |+","+nn$+" "+mmm| 00003370 24 2b 22 20 22 2b 79 79 79 79 24 2b 22 2e 22 2b |$+" "+yyyy$+"."+| 00003380 68 68 24 2b 22 3a 22 2b 6d 6d 24 2b 22 3a 22 2b |hh$+":"+mm$+":"+| 00003390 73 73 24 0d 12 20 28 43 6c 6f 63 6b 49 6e 66 6f |ss$.. (ClockInfo| 000033a0 3f 30 3d 32 34 3a 24 28 43 6c 6f 63 6b 49 6e 66 |?0=24:$(ClockInf| 000033b0 6f 2b 31 29 3d 43 6c 6f 63 6b 24 0d 12 2a 1c f2 |o+1)=Clock$..*..| 000033c0 55 70 64 61 74 65 49 63 6f 6e 73 28 49 63 6f 6e |UpdateIcons(Icon| 000033d0 2c 49 63 6f 6e 24 29 0d 12 34 05 e1 0d 12 3e 05 |,Icon$)..4....>.| 000033e0 3a 0d 12 48 14 dd 20 f2 73 65 74 43 6c 6f 63 6b |:..H.. .setClock| 000033f0 49 63 6f 6e 73 0d 12 52 0d 3a f4 20 48 6f 75 72 |Icons..R.:. Hour| 00003400 73 3a 0d 12 5c 3a e7 20 68 68 3e 31 32 20 8c 20 |s:..\:. hh>12 . | 00003410 68 6f 75 72 73 3d 68 68 2d 31 32 3a 61 6d 70 6d |hours=hh-12:ampm| 00003420 24 3d 22 70 6d 22 3a 8b 20 68 6f 75 72 73 3d 68 |$="pm":. hours=h| 00003430 68 3a 61 6d 70 6d 24 3d 22 61 6d 22 0d 12 66 18 |h:ampm$="am"..f.| 00003440 e7 20 68 68 3d 31 32 20 8c 20 61 6d 70 6d 24 3d |. hh=12 . ampm$=| 00003450 22 70 6d 22 0d 12 70 20 e7 20 68 68 3d 30 20 8c |"pm"..p . hh=0 .| 00003460 20 68 6f 75 72 73 3d 31 32 3a 61 6d 70 6d 24 3d | hours=12:ampm$=| 00003470 22 61 6d 22 0d 12 7a 31 e7 20 6d 6d 3c 31 30 20 |"am"..z1. mm<10 | 00003480 8c 20 6d 69 6e 75 74 65 73 24 3d 22 30 22 2b c3 |. minutes$="0"+.| 00003490 28 6d 6d 29 3a 8b 20 6d 69 6e 75 74 65 73 24 3d |(mm):. minutes$=| 000034a0 c3 28 6d 6d 29 0d 12 84 33 f2 55 70 64 61 74 65 |.(mm)...3.Update| 000034b0 49 63 6f 6e 73 28 32 2c c3 28 68 6f 75 72 73 29 |Icons(2,.(hours)| 000034c0 2b 22 3a 22 2b 6d 69 6e 75 74 65 73 24 2b 22 20 |+":"+minutes$+" | 000034d0 22 2b 61 6d 70 6d 24 29 0d 12 8e 0f 3a f4 20 4d |"+ampm$)....:. M| 000034e0 69 6e 75 74 65 73 3a 0d 12 98 3a e7 20 68 68 3e |inutes:...:. hh>| 000034f0 31 32 20 8c 20 68 6f 75 72 73 3d 68 68 2d 31 32 |12 . hours=hh-12| 00003500 3a 61 6d 70 6d 24 3d 22 70 6d 22 3a 8b 20 68 6f |:ampm$="pm":. ho| 00003510 75 72 73 3d 68 68 3a 61 6d 70 6d 24 3d 22 61 6d |urs=hh:ampm$="am| 00003520 22 0d 12 a2 18 e7 20 68 68 3d 31 32 20 8c 20 61 |"..... hh=12 . a| 00003530 6d 70 6d 24 3d 22 70 6d 22 0d 12 ac 20 e7 20 68 |mpm$="pm"... . h| 00003540 68 3d 30 20 8c 20 68 6f 75 72 73 3d 31 32 3a 61 |h=0 . hours=12:a| 00003550 6d 70 6d 24 3d 22 61 6d 22 0d 12 b6 31 e7 20 6d |mpm$="am"...1. m| 00003560 6d 3c 31 30 20 8c 20 6d 69 6e 75 74 65 73 24 3d |m<10 . minutes$=| 00003570 22 30 22 2b c3 28 6d 6d 29 3a 8b 20 6d 69 6e 75 |"0"+.(mm):. minu| 00003580 74 65 73 24 3d c3 28 6d 6d 29 0d 12 c0 33 f2 55 |tes$=.(mm)...3.U| 00003590 70 64 61 74 65 49 63 6f 6e 73 28 32 2c c3 28 68 |pdateIcons(2,.(h| 000035a0 6f 75 72 73 29 2b 22 3a 22 2b 6d 69 6e 75 74 65 |ours)+":"+minute| 000035b0 73 24 2b 22 20 22 2b 61 6d 70 6d 24 29 0d 12 ca |s$+" "+ampm$)...| 000035c0 0f 3a f4 20 53 65 63 6f 6e 64 73 3a 0d 12 d4 31 |.:. Seconds:...1| 000035d0 e7 20 73 73 3c 31 30 20 8c 20 73 65 63 6f 6e 64 |. ss<10 . second| 000035e0 73 24 3d 22 30 22 2b c3 28 73 73 29 3a 8b 20 73 |s$="0"+.(ss):. s| 000035f0 65 63 6f 6e 64 73 24 3d c3 28 73 73 29 0d 12 de |econds$=.(ss)...| 00003600 25 f2 55 70 64 61 74 65 49 63 6f 6e 73 28 31 36 |%.UpdateIcons(16| 00003610 2c 73 65 63 6f 6e 64 73 24 2b 22 20 73 65 63 73 |,seconds$+" secs| 00003620 22 29 0d 12 e8 0c 3a f4 20 59 65 61 72 3a 0d 12 |")....:. Year:..| 00003630 f2 1a f2 55 70 64 61 74 65 49 63 6f 6e 73 28 31 |...UpdateIcons(1| 00003640 34 2c 79 79 79 79 24 29 0d 12 fc 0d 3a f4 20 4d |4,yyyy$)....:. M| 00003650 6f 6e 74 68 3a 0d 13 06 21 f2 55 70 64 61 74 65 |onth:...!.Update| 00003660 49 63 6f 6e 73 28 31 31 2c 4d 6f 6e 74 68 24 28 |Icons(11,Month$(| 00003670 6d 6e 74 68 29 29 0d 13 10 11 3a f4 20 44 61 79 |mnth))....:. Day| 00003680 2c 20 44 61 74 65 3a 0d 13 1a 1d 63 6f 6e 74 65 |, Date:....conte| 00003690 6e 74 73 24 3d 64 64 64 24 2b 22 2c 20 22 2b c3 |nts$=ddd$+", "+.| 000036a0 28 6e 6e 29 0d 13 24 0d f2 73 74 6e 64 72 64 74 |(nn)..$..stndrdt| 000036b0 68 0d 13 2e 1d f2 55 70 64 61 74 65 49 63 6f 6e |h.....UpdateIcon| 000036c0 73 28 37 2c 63 6f 6e 74 65 6e 74 73 24 29 0d 13 |s(7,contents$)..| 000036d0 38 05 e1 0d 13 42 05 3a 0d 13 4c 20 dd 20 a4 64 |8....B.:..L . .d| 000036e0 61 79 6f 66 77 65 65 6b 28 44 61 79 2c 4d 6f 6e |ayofweek(Day,Mon| 000036f0 74 68 2c 59 65 61 72 29 0d 13 56 75 3d 28 a8 28 |th,Year)..Vu=(.(| 00003700 33 30 2e 35 37 2a 4d 6f 6e 74 68 29 2b a8 28 33 |30.57*Month)+.(3| 00003710 36 35 2e 32 35 2a 59 65 61 72 2d 33 39 35 2e 32 |65.25*Year-395.2| 00003720 35 29 2b 28 59 65 61 72 2d 31 29 20 81 20 34 30 |5)+(Year-1) . 40| 00003730 30 2d 28 59 65 61 72 2d 31 29 20 81 20 31 30 30 |0-(Year-1) . 100| 00003740 2b 44 61 79 2b 28 4d 6f 6e 74 68 3e 32 29 2b 28 |+Day+(Month>2)+(| 00003750 4d 6f 6e 74 68 3e 32 20 80 20 ac 20 a4 6c 65 61 |Month>2 . . .lea| 00003760 70 28 59 65 61 72 29 29 29 20 83 20 37 0d 13 60 |p(Year))) . 7..`| 00003770 05 3a 0d 13 6a 11 dd 20 a4 6c 65 61 70 28 59 65 |.:..j.. .leap(Ye| 00003780 61 72 29 0d 13 74 3a 3d 28 28 59 65 61 72 20 83 |ar)..t:=((Year .| 00003790 20 34 30 30 29 3d 30 29 20 84 20 28 28 59 65 61 | 400)=0) . ((Yea| 000037a0 72 20 83 20 31 30 30 29 3c 3e 30 29 20 80 20 28 |r . 100)<>0) . (| 000037b0 28 59 65 61 72 20 83 20 34 29 3d 30 29 0d 13 7e |(Year . 4)=0)..~| 000037c0 05 3a 0d 13 88 0f dd 20 f2 73 74 6e 64 72 64 74 |.:..... .stndrdt| 000037d0 68 0d 13 92 0b c8 8e 20 6e 6e 20 ca 0d 13 9c 21 |h...... nn ....!| 000037e0 20 20 c9 20 31 2c 32 31 2c 33 31 20 3a 20 63 6f | . 1,21,31 : co| 000037f0 6e 74 65 6e 74 73 24 2b 3d 22 73 74 22 0d 13 a6 |ntents$+="st"...| 00003800 1e 20 20 c9 20 32 2c 32 32 20 3a 20 63 6f 6e 74 |. . 2,22 : cont| 00003810 65 6e 74 73 24 2b 3d 22 6e 64 22 0d 13 b0 1e 20 |ents$+="nd".... | 00003820 20 c9 20 33 2c 32 33 20 3a 20 63 6f 6e 74 65 6e | . 3,23 : conten| 00003830 74 73 24 2b 3d 22 72 64 22 0d 13 ba 19 20 20 7f |ts$+="rd".... .| 00003840 20 3a 20 63 6f 6e 74 65 6e 74 73 24 2b 3d 22 74 | : contents$+="t| 00003850 68 22 0d 13 c4 07 20 20 cb 0d 13 ce 05 e1 0d 13 |h".... ........| 00003860 d8 05 3a 0d 13 e2 0f dd 20 f2 72 65 61 64 73 69 |..:..... .readsi| 00003870 64 65 0d 13 ec 13 ee 20 85 20 ea 20 53 69 64 65 |de..... . . Side| 00003880 3d 2d 32 3a e1 0d 13 f6 26 44 65 66 61 75 6c 74 |=-2:....&Default| 00003890 3d 8e 20 22 3c 54 69 6e 79 43 6c 6f 63 6b 2b 32 |=. "<TinyClock+2| 000038a0 24 44 69 72 3e 2e 53 69 64 65 22 0d 14 00 1f 53 |$Dir>.Side"....S| 000038b0 69 64 65 3d 9a 23 28 44 65 66 61 75 6c 74 29 3a |ide=.#(Default):| 000038c0 53 69 64 65 3d 2d 53 69 64 65 0d 14 0a 0d d9 23 |Side=-Side.....#| 000038d0 44 65 66 61 75 6c 74 0d 14 14 23 e7 20 53 69 64 |Default...#. Sid| 000038e0 65 3c 3e 2d 32 20 80 20 53 69 64 65 3c 3e 2d 31 |e<>-2 . Side<>-1| 000038f0 20 8c 20 53 69 64 65 3d 2d 32 0d 14 1e 05 e1 0d | . Side=-2......| 00003900 14 28 05 3a 0d 14 32 10 dd 20 f2 77 72 69 74 65 |.(.:..2.. .write| 00003910 73 69 64 65 0d 14 3c 1e ee 20 85 20 ea 20 f2 6c |side..<.. . . .l| 00003920 6f 63 61 6c 65 72 72 6f 72 77 72 69 74 69 6e 67 |ocalerrorwriting| 00003930 3a e1 0d 14 46 26 44 65 66 61 75 6c 74 3d ae 20 |:...F&Default=. | 00003940 22 3c 54 69 6e 79 43 6c 6f 63 6b 2b 32 24 44 69 |"<TinyClock+2$Di| 00003950 72 3e 2e 53 69 64 65 22 0d 14 50 13 d5 23 44 65 |r>.Side"..P..#De| 00003960 66 61 75 6c 74 2c 2d 53 69 64 65 0d 14 5a 0d d9 |fault,-Side..Z..| 00003970 23 44 65 66 61 75 6c 74 0d 14 64 05 e1 0d 14 6e |#Default..d....n| 00003980 05 3a 0d 14 78 18 dd 20 f2 6c 6f 63 61 6c 65 72 |.:..x.. .localer| 00003990 72 6f 72 77 72 69 74 69 6e 67 0d 14 8c 0d 42 6c |rorwriting....Bl| 000039a0 6f 63 6b 21 30 3d 9f 0d 14 96 63 24 28 42 6c 6f |ock!0=....c$(Blo| 000039b0 63 6b 2b 34 29 3d 22 54 69 6e 79 20 43 6c 6f 63 |ck+4)="Tiny Cloc| 000039c0 6b 20 77 61 73 20 75 6e 61 62 6c 65 20 74 6f 20 |k was unable to | 000039d0 72 65 63 6f 72 64 20 74 68 65 20 64 65 66 61 75 |record the defau| 000039e0 6c 74 20 6c 6f 61 64 69 6e 67 20 70 6f 73 69 74 |lt loading posit| 000039f0 69 6f 6e 20 6f 66 20 74 68 65 20 63 6c 6f 63 6b |ion of the clock| 00003a00 20 66 61 63 65 2e 22 2b bd 30 0d 14 a0 34 c8 99 | face."+.0...4..| 00003a10 20 22 57 69 6d 70 5f 52 65 70 6f 72 74 45 72 72 | "Wimp_ReportErr| 00003a20 6f 72 22 2c 42 6c 6f 63 6b 2c 25 30 30 31 2c 22 |or",Block,%001,"| 00003a30 54 69 6e 79 20 43 6c 6f 63 6b 20 2b 32 22 0d 14 |Tiny Clock +2"..| 00003a40 aa 05 e1 0d ff |.....| 00003a45