Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199204.adf » April92 » !AWApr92/Goodies/Convert/!Convert/!RunImage
!AWApr92/Goodies/Convert/!Convert/!RunImage
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199204.adf » April92 |
Filename: | !AWApr92/Goodies/Convert/!Convert/!RunImage |
Read OK: | ✔ |
File size: | 1B78 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >!RunImage 20REM Program Convert 30REM Version A1.00 40REM Author Maverick 50REM June 1991 60REM Program (c) Archimedes World April 1992 70: 80DIM blk% 1024:DIM menu% 500 90DIM temp% 64,submenu% 1024 100DIM iblk% 800,infbk% 100,buff% 30,on(7),conv(7) 110: 120PROCInitialise 130PROCiconbar 140PROCpoll 150END 160: 170DEF PROCpoll 180 mask%=0 190 REPEAT 200 SYS "Wimp_Poll",,blk% TO eventCode% 210 CASE eventCode% OF 220 WHEN 2:SYS "Wimp_OpenWindow",0,blk% 230 WHEN 3:SYS "Wimp_CloseWindow",0,blk% 240 WHEN 6:PROCbuttons(blk%!12,blk%!8,blk%!4) 250 WHEN 8:key%=blk%!24:PROCkey 260 WHEN 9:PROCMenu_Selection 270 WHEN 17,18:PROCreceive 280 ENDCASE 290 UNTIL finished% 300 SYS "Wimp_CloseDown" 310ENDPROC 320: 330DEF PROCMenu_Selection 340 LOCAL buttons% 350 SYS "Wimp_GetPointerInfo",,temp% 360 buttons%=temp%!8 370 CASE menuopen% OF 380 WHEN 1:IF blk%!0=1 THEN finished%=TRUE 390 WHEN 2:IF blk%!0<>6 THEN opt%=blk%!0:PROCnewopt(opt%) 400 ENDCASE 410 IF buttons%=1 THEN 420 IF menuopen%=1 THEN PROCopenmenu1 ELSE PROCopenmenu2 430 ENDIF 440ENDPROC 450: 460DEF PROCopenmenu1 470 menuopen%=1 480 LOCAL title$,item% 490 title$="Convert":$menu%=title$ 500 menu%?12=7:menu%?13=2 510 menu%?14=7:menu%?15=0 520 menu%!16=120:menu%!20=44 530 menu%!24=0 540 item%=menu%+28 550 !item%=0:item%!4=info% 560 item%!8=&7009011:$(item%+12)="Info" 570 item%!24=&80:item%!28=-1 580 item%!32=&7009011:$(item%+36)="Quit" 590 SYS "Wimp_CreateMenu",0,menu%,(blk%!0)-150/2,206 600ENDPROC 610: 620DEF PROCopenmenu2 630 menuopen%=2 640 LOCAL title$,item% 650 title$="Measures":$menu%=title$ 660 menu%?12=7:menu%?13=2 670 menu%?14=7:menu%?15=0 680 menu%!16=190:menu%!20=44 690 menu%!24=0 700 item%=menu%+28 710 PROCmenitem("Length",0,item%,FALSE) 720 PROCmenitem("Area",1,item%+24,FALSE) 730 PROCmenitem("Volume",2,item%+48,FALSE) 740 PROCmenitem("Weight",3,item%+72,FALSE) 750 PROCmenitem("Pressure",4,item%+96,FALSE) 760 PROCmenitem("Temperature",5,item%+120,FALSE) 770 !(item%+120)+=2:item%+=144 780 !item%=&80:item%!4=submenu% 790 item%!8=&7009011:$(item%+12)="Accuracy" 800 $submenu%="Decimal" 810 submenu%?12=7:submenu%?13=2 820 submenu%?14=7:submenu%?15=0 830 submenu%!16=150:submenu%!20=44 840 submenu%!24=0:item%=submenu%+28 850 !item%=&84:item%!4=-1:item%!8=&7009111 860 $(buff%+2)="A0-9" 870 item%!12=buff%:item%!16=buff%+2:item%!20=2 880 SYS "Wimp_CreateMenu",0,menu%,(blk%!0)-150/2,blk%!4 890ENDPROC 900: 910DEFPROCmenitem(lab$,to%,ptr%,end%) 920 !ptr%=0:ptr%!4=-1:ptr%!8=&7009011:$(ptr%+12)=lab$ 930 IF end%=TRUE THEN !ptr%=&80 940 IF opt%=to% THEN !ptr%+=1 950ENDPROC 960: 970DEF PROCReport_Error(num%,text$) 980 blk%!0=num% 990 $(blk%+4)=text$+CHR$(0) 1000 SYS "Wimp_ReportError",blk%,1,"Convert" 1010ENDPROC 1020: 1030DEF PROCInitialise 1040 LOCAL Wimp_version%,task%,exist%,next% 1050 Wimp_version%=2 1060 task%=&4B534154 1070 SYS "Wimp_Initialise",Wimp_version%*100,task%,"Convert" TO Wimp_version% 1080 IF Wimp_version%<200 PROCReport_Error(0, "Convert application requires a more recent version of the Window Manager") 1090 ON ERROR PROCError 1100 finished%=FALSE:opt%=0:dec=2:$buff%="2" 1110 PROCtemplate 1120 PROCnewopt(opt%) 1130ENDPROC 1140: 1150DEF PROCError 1160 IF ((ERR AND 255)<0) OR ((ERR AND 255)>127) THEN 1170 PROCReport_Error(0,"Convert Fatal error - "+REPORT$+" (internal code "+STR$ERL+","+STR$ERR+")") 1180 SYS "Wimp_CloseDown":END 1190 ELSE 1200 PROCReport_Error(0,"Convert error - "+REPORT$+" (internal code "+STR$ERL+","+STR$ERR+")"):PROCpoll:END 1210 ENDIF 1220ENDPROC 1230: 1240DEFPROCreceive 1250 CASE blk%!16 OF 1260 WHEN 0:finished%=2 1270 ENDCASE 1280ENDPROC 1290: 1300DEFPROCgetw(win%):!blk%=win%:SYS "Wimp_GetWindowState",,blk%:ENDPROC 1310: 1320DEFPROCopenw(win%):PROCgetw(win%):blk%!28=-1:SYS "Wimp_OpenWindow",,blk%:ENDPROC 1330: 1340DEFPROCbuttons(window%,button%,icon%) 1350 CASE window% OF 1360 WHEN -2 1370 CASE button% OF 1380 WHEN 2:PROCopenmenu1 1390 OTHERWISE:PROCopenw(main%) 1400 ENDCASE 1410 WHEN main% 1420 CASE button% OF 1430 WHEN 2:PROCopenmenu2 1440 ENDCASE 1450 ENDCASE 1460ENDPROC 1470: 1480DEFPROCforce(ic%) 1490 blk%!0=main%:blk%!4=ic%:SYS "Wimp_GetIconState",,blk%:SYS "Wimp_ForceRedraw",main%,blk%!8,blk%!12,blk%!16,blk%!20 1500ENDPROC 1510: 1520DEFPROCtemplate 1530 SYS "Wimp_OpenTemplate",,"<Convert$Dir>.Templates" 1540 SYS "Wimp_LoadTemplate",,blk%,iblk%,iblk%+400,-1,"MAIN" 1550 SYS "Wimp_CreateWindow",,blk% TO main% 1560 SYS "Wimp_LoadTemplate",,blk%,infbk%,infbk%+100,-1,"INFO" 1570 SYS "Wimp_CreateWindow",,blk% TO info% 1580 SYS "Wimp_CloseTemplate" 1590ENDPROC 1600: 1610DEFPROCiconbar 1620 !blk%=-1:blk%!4=0:blk%!8=0:blk%!12=70:blk%!16=70:blk%!20=&303A:$(blk%+24)="!convert" 1630 SYS "Wimp_CreateIcon",,blk% 1640ENDPROC 1650: 1660DEFPROCkey 1670 IF key%=13 THEN PROCcalculate(blk%!4):ENDPROC 1680 IF key%=398 OR key%=399 THEN PROCcaret(blk%!4):ENDPROC 1690 SYS "Wimp_ProcessKey",key% 1700ENDPROC 1710: 1720DEFPROCcaret(ic%) 1730 IF key%=398 THEN step=1 ELSE step=-1 1740 REPEAT 1750 ic%+=step 1760 IF ic%=8 THEN ic%=0 1770 IF ic%=-1 THEN ic%=7 1780 UNTIL on(ic%)=1 1790 length%=LEN($(iblk%+(ic%*20))) 1800 SYS "Wimp_SetCaretPosition",main%,ic%,,,-1,length% 1810ENDPROC 1820: 1830DEFPROCnewopt(opt%) 1840 RESTORE:FOR sp=0 TO opt%:READ $(iblk%+160),on(0),conv(0),$(iblk%+190),on(1),conv(1),$(iblk%+220),on(2),conv(2),$(iblk%+250),on(3),conv(3),$(iblk%+280),on(4),conv(4) 1850 READ $(iblk%+310),on(5),conv(5),$(iblk%+340),on(6),conv(6),$(iblk%+370),on(7),conv(7):NEXT sp 1860 $iblk%="0":PROCcalculate(0) 1870 PROCforce(8):PROCforce(9):PROCforce(10):PROCforce(11):PROCforce(12):PROCforce(13):PROCforce(14):PROCforce(15) 1880ENDPROC 1890: 1900DEFPROCcalculate(which%) 1910 dec=VAL($buff%) 1920 IF opt%=5 THEN IF which%=0 OR which%=4 THEN PROCtemp(which%) 1930 IF opt%=5 THEN ENDPROC 1940 IF on(which%)=0 THEN ENDPROC 1950 units=VAL($(iblk%+(which%*20)))*conv(which%) 1960 FOR sp=0 TO 7 1970 IF units<>0 AND conv(sp)<>0 THEN thisval=units/conv(sp) ELSE thisval=0 1980 th$=STR$(thisval):IF dec=0 THEN thisval=FNinteger(thisval) ELSE thisval=FNroundit(th$) 1990 IF INSTR(STR$(thisval),"E")=0 AND INSTR(STR$(thisval),".")<>0 THEN 2000 $(iblk%+(sp*20))=LEFT$(STR$(thisval),INSTR(STR$(thisval),".")+dec) 2010 ELSE 2020 $(iblk%+(sp*20))=STR$(thisval) 2030 ENDIF 2040 PROCforce(sp) 2050 NEXT sp 2060ENDPROC 2070: 2080DEFFNroundit(th$) 2090 IF LEFT$(th$,1)="-" THEN minus%=1:th$=RIGHT$(th$,LEN(th$)-1) ELSE minus%=0 2100 IF INSTR(th$,"E")=0 THEN 2110 IF INSTR(th$,".")<>0 THEN 2120 IF INSTR(th$,".")+dec<LEN(th$) THEN 2130 round=VAL(MID$(th$,INSTR(th$,".")+dec+1,1)) 2140 th$=LEFT$(th$,INSTR(th$,".")+dec) 2150 IF round>4 THEN 2160 adder=1/(10^dec) 2170 th$=STR$(VAL(th$)+adder) 2180 ENDIF 2190 th$=LEFT$(th$,INSTR(th$,".")+dec) 2200 ENDIF 2210 ENDIF 2220 ENDIF 2230IF minus%=1 THEN =-VAL(th$) ELSE =VAL(th$) 2240: 2250DEFFNinteger(thisval) 2260=INT(thisval+0.5) 2270: 2280DEFPROCtemp(which%) 2290 IF which%=4 THEN other%=0 ELSE other%=4 2300 units=VAL($(iblk%+(which%*20))) 2310 IF which%=0 THEN thisval=(units-32)*5/9 2320 IF which%=4 THEN thisval=32+units*9/5 2330 IF dec=0 THEN thisval=FNinterger(thisval) ELSE thisval=FNroundit(STR$(thisval)) 2340 IF INSTR(STR$(thisval),"E")=0 AND INSTR(STR$(thisval),".")<>0 THEN 2350 $(iblk%+(other%*20))=LEFT$(STR$(thisval),INSTR(STR$(thisval),".")+dec) 2360 ELSE 2370 $(iblk%+(other%*20))=STR$(thisval) 2380 ENDIF 2390 PROCforce(other%) 2400ENDPROC 2410: 2420DATA Inches,1,1,Feet,1,12,Yards,1,36,Miles,1,63360,Millimetres,1,0.03937,Centimetres,1,0.3937,Metres,1,39.37,Kilometres,1,39370 2430DATA Square Inches,1,1,Square Feet,1,144,Acres,1,6272640,Square Miles,1,4.0145E9,Square Centimetres,1,0.155,Square Metres,1,1550,Hectares,1,1.55E7," ",0,0 2440DATA Cubic Inches,1,1,Cubic Feet,1,1728,Pints,1,34.67,Gallons,1,277.36,Cubic Centimetres,1,0.06102,Litres,1,61.024,Cubic Metres,1,61024," ",0,0 2450DATA Ounces,1,1,Pounds,1,16,Tons,1,35840," ",0,0,Grams,1,0.03527,Kilograms,1,35.27,Tonnes,1,35270," ",0,0 2460DATA PSI,1,1,mmHG,1,51.73," ",0,0," ",0,0,N/Square Metre,1,6895,Atmospheres,1,0.0681,Millibars,1,68.95," ",0,0 2470DATA Farenheit,1,0," ",0,0," ",0,0," ",0,0,"Celcius",1,0," ",0,0," ",0,0," ",0,0
� >!RunImage � Program Convert � Version A1.00 (� Author Maverick 2� June 1991 </� Program (c) Archimedes World April 1992 F: P� blk% 1024:� menu% 500 Z� temp% 64,submenu% 1024 d1� iblk% 800,infbk% 100,buff% 30,on(7),conv(7) n: x�Initialise ��iconbar � �poll �� �: �� �poll � mask%=0 � � �' ș "Wimp_Poll",,blk% � eventCode% � Ȏ eventCode% � �& � 2:ș "Wimp_OpenWindow",0,blk% �' � 3:ș "Wimp_CloseWindow",0,blk% �* � 6:�buttons(blk%!12,blk%!8,blk%!4) � � 8:key%=blk%!24:�key � 9:�Menu_Selection � 17,18:�receive � " � finished% , ș "Wimp_CloseDown" 6� @: J� �Menu_Selection T � buttons% ^$ ș "Wimp_GetPointerInfo",,temp% h buttons%=temp%!8 r Ȏ menuopen% � |" � 1:� blk%!0=1 � finished%=� �1 � 2:� blk%!0<>6 � opt%=blk%!0:�newopt(opt%) � � � � buttons%=1 � �- � menuopen%=1 � �openmenu1 � �openmenu2 � � �� �: �� �openmenu1 � menuopen%=1 � � title$,item% �# title$="Convert":$menu%=title$ � menu%?12=7:menu%?13=2 � menu%?14=7:menu%?15=0 menu%!16=120:menu%!20=44 menu%!24=0 item%=menu%+28 & !item%=0:item%!4=info% 0( item%!8=&7009011:$(item%+12)="Info" : item%!24=&80:item%!28=-1 D) item%!32=&7009011:$(item%+36)="Quit" N4 ș "Wimp_CreateMenu",0,menu%,(blk%!0)-150/2,206 X� b: l� �openmenu2 v menuopen%=2 � � title$,item% �$ title$="Measures":$menu%=title$ � menu%?12=7:menu%?13=2 � menu%?14=7:menu%?15=0 � menu%!16=190:menu%!20=44 � menu%!24=0 � item%=menu%+28 �! �menitem("Length",0,item%,�) �" �menitem("Area",1,item%+24,�) �$ �menitem("Volume",2,item%+48,�) �$ �menitem("Weight",3,item%+72,�) �& �menitem("Pressure",4,item%+96,�) �* �menitem("Temperature",5,item%+120,�) !(item%+120)+=2:item%+=144 !item%=&80:item%!4=submenu% , item%!8=&7009011:$(item%+12)="Accuracy" $submenu%="Decimal" * submenu%?12=7:submenu%?13=2 4 submenu%?14=7:submenu%?15=0 ># submenu%!16=150:submenu%!20=44 H$ submenu%!24=0:item%=submenu%+28 R+ !item%=&84:item%!4=-1:item%!8=&7009111 \ $(buff%+2)="A0-9" f/ item%!12=buff%:item%!16=buff%+2:item%!20=2 p7 ș "Wimp_CreateMenu",0,menu%,(blk%!0)-150/2,blk%!4 z� �: �!��menitem(lab$,to%,ptr%,end%) �6 !ptr%=0:ptr%!4=-1:ptr%!8=&7009011:$(ptr%+12)=lab$ � � end%=� � !ptr%=&80 � � opt%=to% � !ptr%+=1 �� �: �� �Report_Error(num%,text$) � blk%!0=num% � $(blk%+4)=text$+�(0) �+ ș "Wimp_ReportError",blk%,1,"Convert" �� �: � �Initialise ' � Wimp_version%,task%,exist%,next% Wimp_version%=2 $ task%=&4B534154 .K ș "Wimp_Initialise",Wimp_version%*100,task%,"Convert" � Wimp_version% 8u � Wimp_version%<200 �Report_Error(0, "Convert application requires a more recent version of the Window Manager") B � � �Error L( finished%=�:opt%=0:dec=2:$buff%="2" V �template ` �newopt(opt%) j� t: ~� �Error �( � ((� � 255)<0) � ((� � 255)>127) � �S �Report_Error(0,"Convert Fatal error - "+�$+" (internal code "+Þ+","+ß+")") � ș "Wimp_CloseDown":� � � �U �Report_Error(0,"Convert error - "+�$+" (internal code "+Þ+","+ß+")"):�poll:� � � �� �: � ��receive � Ȏ blk%!16 � � � 0:finished%=2 � � � : <��getw(win%):!blk%=win%:ș "Wimp_GetWindowState",,blk%:� : (E��openw(win%):�getw(win%):blk%!28=-1:ș "Wimp_OpenWindow",,blk%:� 2: <$��buttons(window%,button%,icon%) F Ȏ window% � P � -2 Z Ȏ button% � d � 2:�openmenu1 n :�openw(main%) x � � � main% � Ȏ button% � � � 2:�openmenu2 � � � � �� �: ���force(ic%) �t blk%!0=main%:blk%!4=ic%:ș "Wimp_GetIconState",,blk%:ș "Wimp_ForceRedraw",main%,blk%!8,blk%!12,blk%!16,blk%!20 �� �: ���template �6 ș "Wimp_OpenTemplate",,"<Convert$Dir>.Templates" ; ș "Wimp_LoadTemplate",,blk%,iblk%,iblk%+400,-1,"MAIN" ) ș "Wimp_CreateWindow",,blk% � main% = ș "Wimp_LoadTemplate",,blk%,infbk%,infbk%+100,-1,"INFO" ") ș "Wimp_CreateWindow",,blk% � info% , ș "Wimp_CloseTemplate" 6� @: J ��iconbar TY !blk%=-1:blk%!4=0:blk%!8=0:blk%!12=70:blk%!16=70:blk%!20=&303A:$(blk%+24)="!convert" ^ ș "Wimp_CreateIcon",,blk% h� r: | ��key �% � key%=13 � �calculate(blk%!4):� �- � key%=398 � key%=399 � �caret(blk%!4):� � ș "Wimp_ProcessKey",key% �� �: ���caret(ic%) �" � key%=398 � step=1 � step=-1 � � � ic%+=step � � ic%=8 � ic%=0 � � ic%=-1 � ic%=7 � � on(ic%)=1 �! length%=�($(iblk%+(ic%*20))) 6 ș "Wimp_SetCaretPosition",main%,ic%,,,-1,length% � : &��newopt(opt%) 0� �:� sp=0 � opt%:� $(iblk%+160),on(0),conv(0),$(iblk%+190),on(1),conv(1),$(iblk%+220),on(2),conv(2),$(iblk%+250),on(3),conv(3),$(iblk%+280),on(4),conv(4) :\ � $(iblk%+310),on(5),conv(5),$(iblk%+340),on(6),conv(6),$(iblk%+370),on(7),conv(7):� sp D $iblk%="0":�calculate(0) NZ �force(8):�force(9):�force(10):�force(11):�force(12):�force(13):�force(14):�force(15) X� b: l��calculate(which%) v dec=�($buff%) �5 � opt%=5 � � which%=0 � which%=4 � �temp(which%) � � opt%=5 � � � � on(which%)=0 � � �/ units=�($(iblk%+(which%*20)))*conv(which%) � � sp=0 � 7 �C � units<>0 � conv(sp)<>0 � thisval=units/conv(sp) � thisval=0 �P th$=�(thisval):� dec=0 � thisval=�integer(thisval) � thisval=�roundit(th$) �2 � ��(thisval),"E")=0 � ��(thisval),".")<>0 � �9 $(iblk%+(sp*20))=��(thisval),��(thisval),".")+dec) � � �" $(iblk%+(sp*20))=�(thisval) � � � �force(sp) � sp � : ݤroundit(th$) *; � �th$,1)="-" � minus%=1:th$=�th$,�(th$)-1) � minus%=0 4 � �th$,"E")=0 � > � �th$,".")<>0 � H � �th$,".")+dec<�(th$) � R( round=�(�th$,�th$,".")+dec+1,1)) \ th$=�th$,�th$,".")+dec) f � round>4 � p adder=1/(10^dec) z th$=�(�(th$)+adder) � � � th$=�th$,�th$,".")+dec) � � � � � � �#� minus%=1 � =-�(th$) � =�(th$) �: �ݤinteger(thisval) �=�(thisval+0.5) �: ���temp(which%) �% � which%=4 � other%=0 � other%=4 �" units=�($(iblk%+(which%*20))) ( � which%=0 � thisval=(units-32)*5/9 & � which%=4 � thisval=32+units*9/5 H � dec=0 � thisval=�interger(thisval) � thisval=�roundit(�(thisval)) $1 � ��(thisval),"E")=0 � ��(thisval),".")<>0 � .< $(iblk%+(other%*20))=��(thisval),��(thisval),".")+dec) 8 � B% $(iblk%+(other%*20))=�(thisval) L � V �force(other%) `� j: t�� Inches,1,1,Feet,1,12,Yards,1,36,Miles,1,63360,Millimetres,1,0.03937,Centimetres,1,0.3937,Metres,1,39.37,Kilometres,1,39370 ~�� Square Inches,1,1,Square Feet,1,144,Acres,1,6272640,Square Miles,1,4.0145E9,Square Centimetres,1,0.155,Square Metres,1,1550,Hectares,1,1.55E7," ",0,0 ��� Cubic Inches,1,1,Cubic Feet,1,1728,Pints,1,34.67,Gallons,1,277.36,Cubic Centimetres,1,0.06102,Litres,1,61.024,Cubic Metres,1,61024," ",0,0 �j� Ounces,1,1,Pounds,1,16,Tons,1,35840," ",0,0,Grams,1,0.03527,Kilograms,1,35.27,Tonnes,1,35270," ",0,0 �o� PSI,1,1,mmHG,1,51.73," ",0,0," ",0,0,N/Square Metre,1,6895,Atmospheres,1,0.0681,Millibars,1,68.95," ",0,0 �Q� Farenheit,1,0," ",0,0," ",0,0," ",0,0,"Celcius",1,0," ",0,0," ",0,0," ",0,0 �
00000000 0d 00 0a 1a f4 20 20 20 20 20 20 20 20 20 20 20 |..... | 00000010 3e 21 52 75 6e 49 6d 61 67 65 0d 00 14 17 f4 20 |>!RunImage..... | 00000020 50 72 6f 67 72 61 6d 20 20 20 43 6f 6e 76 65 72 |Program Conver| 00000030 74 0d 00 1e 15 f4 20 56 65 72 73 69 6f 6e 20 20 |t..... Version | 00000040 20 41 31 2e 30 30 0d 00 28 18 f4 20 41 75 74 68 | A1.00..(.. Auth| 00000050 6f 72 20 20 20 20 4d 61 76 65 72 69 63 6b 0d 00 |or Maverick..| 00000060 32 19 f4 20 20 20 20 20 20 20 20 20 20 20 4a 75 |2.. Ju| 00000070 6e 65 20 31 39 39 31 0d 00 3c 2f f4 20 50 72 6f |ne 1991..</. Pro| 00000080 67 72 61 6d 20 20 20 28 63 29 20 41 72 63 68 69 |gram (c) Archi| 00000090 6d 65 64 65 73 20 57 6f 72 6c 64 20 41 70 72 69 |medes World Apri| 000000a0 6c 20 31 39 39 32 0d 00 46 05 3a 0d 00 50 1b de |l 1992..F.:..P..| 000000b0 20 62 6c 6b 25 20 31 30 32 34 3a de 20 6d 65 6e | blk% 1024:. men| 000000c0 75 25 20 35 30 30 0d 00 5a 1c de 20 74 65 6d 70 |u% 500..Z.. temp| 000000d0 25 20 36 34 2c 73 75 62 6d 65 6e 75 25 20 31 30 |% 64,submenu% 10| 000000e0 32 34 0d 00 64 31 de 20 69 62 6c 6b 25 20 38 30 |24..d1. iblk% 80| 000000f0 30 2c 69 6e 66 62 6b 25 20 31 30 30 2c 62 75 66 |0,infbk% 100,buf| 00000100 66 25 20 33 30 2c 6f 6e 28 37 29 2c 63 6f 6e 76 |f% 30,on(7),conv| 00000110 28 37 29 0d 00 6e 05 3a 0d 00 78 0f f2 49 6e 69 |(7)..n.:..x..Ini| 00000120 74 69 61 6c 69 73 65 0d 00 82 0c f2 69 63 6f 6e |tialise.....icon| 00000130 62 61 72 0d 00 8c 09 f2 70 6f 6c 6c 0d 00 96 05 |bar.....poll....| 00000140 e0 0d 00 a0 05 3a 0d 00 aa 0b dd 20 f2 70 6f 6c |.....:..... .pol| 00000150 6c 0d 00 b4 0c 20 6d 61 73 6b 25 3d 30 0d 00 be |l.... mask%=0...| 00000160 06 20 f5 0d 00 c8 27 20 20 c8 99 20 22 57 69 6d |. ....' .. "Wim| 00000170 70 5f 50 6f 6c 6c 22 2c 2c 62 6c 6b 25 20 b8 20 |p_Poll",,blk% . | 00000180 65 76 65 6e 74 43 6f 64 65 25 0d 00 d2 15 20 20 |eventCode%.... | 00000190 c8 8e 20 65 76 65 6e 74 43 6f 64 65 25 20 ca 0d |.. eventCode% ..| 000001a0 00 dc 26 20 20 20 c9 20 32 3a c8 99 20 22 57 69 |..& . 2:.. "Wi| 000001b0 6d 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 22 2c 30 |mp_OpenWindow",0| 000001c0 2c 62 6c 6b 25 0d 00 e6 27 20 20 20 c9 20 33 3a |,blk%...' . 3:| 000001d0 c8 99 20 22 57 69 6d 70 5f 43 6c 6f 73 65 57 69 |.. "Wimp_CloseWi| 000001e0 6e 64 6f 77 22 2c 30 2c 62 6c 6b 25 0d 00 f0 2a |ndow",0,blk%...*| 000001f0 20 20 20 c9 20 36 3a f2 62 75 74 74 6f 6e 73 28 | . 6:.buttons(| 00000200 62 6c 6b 25 21 31 32 2c 62 6c 6b 25 21 38 2c 62 |blk%!12,blk%!8,b| 00000210 6c 6b 25 21 34 29 0d 00 fa 1c 20 20 20 c9 20 38 |lk%!4).... . 8| 00000220 3a 6b 65 79 25 3d 62 6c 6b 25 21 32 34 3a f2 6b |:key%=blk%!24:.k| 00000230 65 79 0d 01 04 1a 20 20 20 c9 20 39 3a f2 4d 65 |ey.... . 9:.Me| 00000240 6e 75 5f 53 65 6c 65 63 74 69 6f 6e 0d 01 0e 17 |nu_Selection....| 00000250 20 20 20 c9 20 31 37 2c 31 38 3a f2 72 65 63 65 | . 17,18:.rece| 00000260 69 76 65 0d 01 18 07 20 20 cb 0d 01 22 10 20 fd |ive.... ...". .| 00000270 20 66 69 6e 69 73 68 65 64 25 0d 01 2c 18 20 c8 | finished%..,. .| 00000280 99 20 22 57 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 |. "Wimp_CloseDow| 00000290 6e 22 0d 01 36 05 e1 0d 01 40 05 3a 0d 01 4a 15 |n"..6....@.:..J.| 000002a0 dd 20 f2 4d 65 6e 75 5f 53 65 6c 65 63 74 69 6f |. .Menu_Selectio| 000002b0 6e 0d 01 54 0f 20 ea 20 62 75 74 74 6f 6e 73 25 |n..T. . buttons%| 000002c0 0d 01 5e 24 20 c8 99 20 22 57 69 6d 70 5f 47 65 |..^$ .. "Wimp_Ge| 000002d0 74 50 6f 69 6e 74 65 72 49 6e 66 6f 22 2c 2c 74 |tPointerInfo",,t| 000002e0 65 6d 70 25 0d 01 68 15 20 62 75 74 74 6f 6e 73 |emp%..h. buttons| 000002f0 25 3d 74 65 6d 70 25 21 38 0d 01 72 13 20 c8 8e |%=temp%!8..r. ..| 00000300 20 6d 65 6e 75 6f 70 65 6e 25 20 ca 0d 01 7c 22 | menuopen% ...|"| 00000310 20 20 c9 20 31 3a e7 20 62 6c 6b 25 21 30 3d 31 | . 1:. blk%!0=1| 00000320 20 8c 20 66 69 6e 69 73 68 65 64 25 3d b9 0d 01 | . finished%=...| 00000330 86 31 20 20 c9 20 32 3a e7 20 62 6c 6b 25 21 30 |.1 . 2:. blk%!0| 00000340 3c 3e 36 20 8c 20 6f 70 74 25 3d 62 6c 6b 25 21 |<>6 . opt%=blk%!| 00000350 30 3a f2 6e 65 77 6f 70 74 28 6f 70 74 25 29 0d |0:.newopt(opt%).| 00000360 01 90 06 20 cb 0d 01 9a 13 20 e7 20 62 75 74 74 |... ..... . butt| 00000370 6f 6e 73 25 3d 31 20 8c 0d 01 a4 2d 20 20 e7 20 |ons%=1 ....- . | 00000380 6d 65 6e 75 6f 70 65 6e 25 3d 31 20 8c 20 f2 6f |menuopen%=1 . .o| 00000390 70 65 6e 6d 65 6e 75 31 20 8b 20 f2 6f 70 65 6e |penmenu1 . .open| 000003a0 6d 65 6e 75 32 0d 01 ae 06 20 cd 0d 01 b8 05 e1 |menu2.... ......| 000003b0 0d 01 c2 05 3a 0d 01 cc 10 dd 20 f2 6f 70 65 6e |....:..... .open| 000003c0 6d 65 6e 75 31 0d 01 d6 10 20 6d 65 6e 75 6f 70 |menu1.... menuop| 000003d0 65 6e 25 3d 31 0d 01 e0 13 20 ea 20 74 69 74 6c |en%=1.... . titl| 000003e0 65 24 2c 69 74 65 6d 25 0d 01 ea 23 20 74 69 74 |e$,item%...# tit| 000003f0 6c 65 24 3d 22 43 6f 6e 76 65 72 74 22 3a 24 6d |le$="Convert":$m| 00000400 65 6e 75 25 3d 74 69 74 6c 65 24 0d 01 f4 1a 20 |enu%=title$.... | 00000410 6d 65 6e 75 25 3f 31 32 3d 37 3a 6d 65 6e 75 25 |menu%?12=7:menu%| 00000420 3f 31 33 3d 32 0d 01 fe 1a 20 6d 65 6e 75 25 3f |?13=2.... menu%?| 00000430 31 34 3d 37 3a 6d 65 6e 75 25 3f 31 35 3d 30 0d |14=7:menu%?15=0.| 00000440 02 08 1d 20 6d 65 6e 75 25 21 31 36 3d 31 32 30 |... menu%!16=120| 00000450 3a 6d 65 6e 75 25 21 32 30 3d 34 34 0d 02 12 0f |:menu%!20=44....| 00000460 20 6d 65 6e 75 25 21 32 34 3d 30 0d 02 1c 13 20 | menu%!24=0.... | 00000470 69 74 65 6d 25 3d 6d 65 6e 75 25 2b 32 38 0d 02 |item%=menu%+28..| 00000480 26 1b 20 21 69 74 65 6d 25 3d 30 3a 69 74 65 6d |&. !item%=0:item| 00000490 25 21 34 3d 69 6e 66 6f 25 0d 02 30 28 20 69 74 |%!4=info%..0( it| 000004a0 65 6d 25 21 38 3d 26 37 30 30 39 30 31 31 3a 24 |em%!8=&7009011:$| 000004b0 28 69 74 65 6d 25 2b 31 32 29 3d 22 49 6e 66 6f |(item%+12)="Info| 000004c0 22 0d 02 3a 1d 20 69 74 65 6d 25 21 32 34 3d 26 |"..:. item%!24=&| 000004d0 38 30 3a 69 74 65 6d 25 21 32 38 3d 2d 31 0d 02 |80:item%!28=-1..| 000004e0 44 29 20 69 74 65 6d 25 21 33 32 3d 26 37 30 30 |D) item%!32=&700| 000004f0 39 30 31 31 3a 24 28 69 74 65 6d 25 2b 33 36 29 |9011:$(item%+36)| 00000500 3d 22 51 75 69 74 22 0d 02 4e 34 20 c8 99 20 22 |="Quit"..N4 .. "| 00000510 57 69 6d 70 5f 43 72 65 61 74 65 4d 65 6e 75 22 |Wimp_CreateMenu"| 00000520 2c 30 2c 6d 65 6e 75 25 2c 28 62 6c 6b 25 21 30 |,0,menu%,(blk%!0| 00000530 29 2d 31 35 30 2f 32 2c 32 30 36 0d 02 58 05 e1 |)-150/2,206..X..| 00000540 0d 02 62 05 3a 0d 02 6c 10 dd 20 f2 6f 70 65 6e |..b.:..l.. .open| 00000550 6d 65 6e 75 32 0d 02 76 10 20 6d 65 6e 75 6f 70 |menu2..v. menuop| 00000560 65 6e 25 3d 32 0d 02 80 13 20 ea 20 74 69 74 6c |en%=2.... . titl| 00000570 65 24 2c 69 74 65 6d 25 0d 02 8a 24 20 74 69 74 |e$,item%...$ tit| 00000580 6c 65 24 3d 22 4d 65 61 73 75 72 65 73 22 3a 24 |le$="Measures":$| 00000590 6d 65 6e 75 25 3d 74 69 74 6c 65 24 0d 02 94 1a |menu%=title$....| 000005a0 20 6d 65 6e 75 25 3f 31 32 3d 37 3a 6d 65 6e 75 | menu%?12=7:menu| 000005b0 25 3f 31 33 3d 32 0d 02 9e 1a 20 6d 65 6e 75 25 |%?13=2.... menu%| 000005c0 3f 31 34 3d 37 3a 6d 65 6e 75 25 3f 31 35 3d 30 |?14=7:menu%?15=0| 000005d0 0d 02 a8 1d 20 6d 65 6e 75 25 21 31 36 3d 31 39 |.... menu%!16=19| 000005e0 30 3a 6d 65 6e 75 25 21 32 30 3d 34 34 0d 02 b2 |0:menu%!20=44...| 000005f0 0f 20 6d 65 6e 75 25 21 32 34 3d 30 0d 02 bc 13 |. menu%!24=0....| 00000600 20 69 74 65 6d 25 3d 6d 65 6e 75 25 2b 32 38 0d | item%=menu%+28.| 00000610 02 c6 21 20 f2 6d 65 6e 69 74 65 6d 28 22 4c 65 |..! .menitem("Le| 00000620 6e 67 74 68 22 2c 30 2c 69 74 65 6d 25 2c a3 29 |ngth",0,item%,.)| 00000630 0d 02 d0 22 20 f2 6d 65 6e 69 74 65 6d 28 22 41 |..." .menitem("A| 00000640 72 65 61 22 2c 31 2c 69 74 65 6d 25 2b 32 34 2c |rea",1,item%+24,| 00000650 a3 29 0d 02 da 24 20 f2 6d 65 6e 69 74 65 6d 28 |.)...$ .menitem(| 00000660 22 56 6f 6c 75 6d 65 22 2c 32 2c 69 74 65 6d 25 |"Volume",2,item%| 00000670 2b 34 38 2c a3 29 0d 02 e4 24 20 f2 6d 65 6e 69 |+48,.)...$ .meni| 00000680 74 65 6d 28 22 57 65 69 67 68 74 22 2c 33 2c 69 |tem("Weight",3,i| 00000690 74 65 6d 25 2b 37 32 2c a3 29 0d 02 ee 26 20 f2 |tem%+72,.)...& .| 000006a0 6d 65 6e 69 74 65 6d 28 22 50 72 65 73 73 75 72 |menitem("Pressur| 000006b0 65 22 2c 34 2c 69 74 65 6d 25 2b 39 36 2c a3 29 |e",4,item%+96,.)| 000006c0 0d 02 f8 2a 20 f2 6d 65 6e 69 74 65 6d 28 22 54 |...* .menitem("T| 000006d0 65 6d 70 65 72 61 74 75 72 65 22 2c 35 2c 69 74 |emperature",5,it| 000006e0 65 6d 25 2b 31 32 30 2c a3 29 0d 03 02 1f 20 21 |em%+120,.).... !| 000006f0 28 69 74 65 6d 25 2b 31 32 30 29 2b 3d 32 3a 69 |(item%+120)+=2:i| 00000700 74 65 6d 25 2b 3d 31 34 34 0d 03 0c 20 20 21 69 |tem%+=144... !i| 00000710 74 65 6d 25 3d 26 38 30 3a 69 74 65 6d 25 21 34 |tem%=&80:item%!4| 00000720 3d 73 75 62 6d 65 6e 75 25 0d 03 16 2c 20 69 74 |=submenu%..., it| 00000730 65 6d 25 21 38 3d 26 37 30 30 39 30 31 31 3a 24 |em%!8=&7009011:$| 00000740 28 69 74 65 6d 25 2b 31 32 29 3d 22 41 63 63 75 |(item%+12)="Accu| 00000750 72 61 63 79 22 0d 03 20 18 20 24 73 75 62 6d 65 |racy".. . $subme| 00000760 6e 75 25 3d 22 44 65 63 69 6d 61 6c 22 0d 03 2a |nu%="Decimal"..*| 00000770 20 20 73 75 62 6d 65 6e 75 25 3f 31 32 3d 37 3a | submenu%?12=7:| 00000780 73 75 62 6d 65 6e 75 25 3f 31 33 3d 32 0d 03 34 |submenu%?13=2..4| 00000790 20 20 73 75 62 6d 65 6e 75 25 3f 31 34 3d 37 3a | submenu%?14=7:| 000007a0 73 75 62 6d 65 6e 75 25 3f 31 35 3d 30 0d 03 3e |submenu%?15=0..>| 000007b0 23 20 73 75 62 6d 65 6e 75 25 21 31 36 3d 31 35 |# submenu%!16=15| 000007c0 30 3a 73 75 62 6d 65 6e 75 25 21 32 30 3d 34 34 |0:submenu%!20=44| 000007d0 0d 03 48 24 20 73 75 62 6d 65 6e 75 25 21 32 34 |..H$ submenu%!24| 000007e0 3d 30 3a 69 74 65 6d 25 3d 73 75 62 6d 65 6e 75 |=0:item%=submenu| 000007f0 25 2b 32 38 0d 03 52 2b 20 21 69 74 65 6d 25 3d |%+28..R+ !item%=| 00000800 26 38 34 3a 69 74 65 6d 25 21 34 3d 2d 31 3a 69 |&84:item%!4=-1:i| 00000810 74 65 6d 25 21 38 3d 26 37 30 30 39 31 31 31 0d |tem%!8=&7009111.| 00000820 03 5c 16 20 24 28 62 75 66 66 25 2b 32 29 3d 22 |.\. $(buff%+2)="| 00000830 41 30 2d 39 22 0d 03 66 2f 20 69 74 65 6d 25 21 |A0-9"..f/ item%!| 00000840 31 32 3d 62 75 66 66 25 3a 69 74 65 6d 25 21 31 |12=buff%:item%!1| 00000850 36 3d 62 75 66 66 25 2b 32 3a 69 74 65 6d 25 21 |6=buff%+2:item%!| 00000860 32 30 3d 32 0d 03 70 37 20 c8 99 20 22 57 69 6d |20=2..p7 .. "Wim| 00000870 70 5f 43 72 65 61 74 65 4d 65 6e 75 22 2c 30 2c |p_CreateMenu",0,| 00000880 6d 65 6e 75 25 2c 28 62 6c 6b 25 21 30 29 2d 31 |menu%,(blk%!0)-1| 00000890 35 30 2f 32 2c 62 6c 6b 25 21 34 0d 03 7a 05 e1 |50/2,blk%!4..z..| 000008a0 0d 03 84 05 3a 0d 03 8e 21 dd f2 6d 65 6e 69 74 |....:...!..menit| 000008b0 65 6d 28 6c 61 62 24 2c 74 6f 25 2c 70 74 72 25 |em(lab$,to%,ptr%| 000008c0 2c 65 6e 64 25 29 0d 03 98 36 20 21 70 74 72 25 |,end%)...6 !ptr%| 000008d0 3d 30 3a 70 74 72 25 21 34 3d 2d 31 3a 70 74 72 |=0:ptr%!4=-1:ptr| 000008e0 25 21 38 3d 26 37 30 30 39 30 31 31 3a 24 28 70 |%!8=&7009011:$(p| 000008f0 74 72 25 2b 31 32 29 3d 6c 61 62 24 0d 03 a2 19 |tr%+12)=lab$....| 00000900 20 e7 20 65 6e 64 25 3d b9 20 8c 20 21 70 74 72 | . end%=. . !ptr| 00000910 25 3d 26 38 30 0d 03 ac 1a 20 e7 20 6f 70 74 25 |%=&80.... . opt%| 00000920 3d 74 6f 25 20 8c 20 21 70 74 72 25 2b 3d 31 0d |=to% . !ptr%+=1.| 00000930 03 b6 05 e1 0d 03 c0 05 3a 0d 03 ca 1f dd 20 f2 |........:..... .| 00000940 52 65 70 6f 72 74 5f 45 72 72 6f 72 28 6e 75 6d |Report_Error(num| 00000950 25 2c 74 65 78 74 24 29 0d 03 d4 10 20 62 6c 6b |%,text$).... blk| 00000960 25 21 30 3d 6e 75 6d 25 0d 03 de 19 20 24 28 62 |%!0=num%.... $(b| 00000970 6c 6b 25 2b 34 29 3d 74 65 78 74 24 2b bd 28 30 |lk%+4)=text$+.(0| 00000980 29 0d 03 e8 2b 20 c8 99 20 22 57 69 6d 70 5f 52 |)...+ .. "Wimp_R| 00000990 65 70 6f 72 74 45 72 72 6f 72 22 2c 62 6c 6b 25 |eportError",blk%| 000009a0 2c 31 2c 22 43 6f 6e 76 65 72 74 22 0d 03 f2 05 |,1,"Convert"....| 000009b0 e1 0d 03 fc 05 3a 0d 04 06 11 dd 20 f2 49 6e 69 |.....:..... .Ini| 000009c0 74 69 61 6c 69 73 65 0d 04 10 27 20 ea 20 57 69 |tialise...' . Wi| 000009d0 6d 70 5f 76 65 72 73 69 6f 6e 25 2c 74 61 73 6b |mp_version%,task| 000009e0 25 2c 65 78 69 73 74 25 2c 6e 65 78 74 25 0d 04 |%,exist%,next%..| 000009f0 1a 14 20 57 69 6d 70 5f 76 65 72 73 69 6f 6e 25 |.. Wimp_version%| 00000a00 3d 32 0d 04 24 14 20 74 61 73 6b 25 3d 26 34 42 |=2..$. task%=&4B| 00000a10 35 33 34 31 35 34 0d 04 2e 4b 20 c8 99 20 22 57 |534154...K .. "W| 00000a20 69 6d 70 5f 49 6e 69 74 69 61 6c 69 73 65 22 2c |imp_Initialise",| 00000a30 57 69 6d 70 5f 76 65 72 73 69 6f 6e 25 2a 31 30 |Wimp_version%*10| 00000a40 30 2c 74 61 73 6b 25 2c 22 43 6f 6e 76 65 72 74 |0,task%,"Convert| 00000a50 22 20 b8 20 57 69 6d 70 5f 76 65 72 73 69 6f 6e |" . Wimp_version| 00000a60 25 0d 04 38 75 20 e7 20 57 69 6d 70 5f 76 65 72 |%..8u . Wimp_ver| 00000a70 73 69 6f 6e 25 3c 32 30 30 20 f2 52 65 70 6f 72 |sion%<200 .Repor| 00000a80 74 5f 45 72 72 6f 72 28 30 2c 20 22 43 6f 6e 76 |t_Error(0, "Conv| 00000a90 65 72 74 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 |ert application | 00000aa0 72 65 71 75 69 72 65 73 20 61 20 6d 6f 72 65 20 |requires a more | 00000ab0 72 65 63 65 6e 74 20 76 65 72 73 69 6f 6e 20 6f |recent version o| 00000ac0 66 20 74 68 65 20 57 69 6e 64 6f 77 20 4d 61 6e |f the Window Man| 00000ad0 61 67 65 72 22 29 0d 04 42 0f 20 ee 20 85 20 f2 |ager")..B. . . .| 00000ae0 45 72 72 6f 72 0d 04 4c 28 20 66 69 6e 69 73 68 |Error..L( finish| 00000af0 65 64 25 3d a3 3a 6f 70 74 25 3d 30 3a 64 65 63 |ed%=.:opt%=0:dec| 00000b00 3d 32 3a 24 62 75 66 66 25 3d 22 32 22 0d 04 56 |=2:$buff%="2"..V| 00000b10 0e 20 f2 74 65 6d 70 6c 61 74 65 0d 04 60 12 20 |. .template..`. | 00000b20 f2 6e 65 77 6f 70 74 28 6f 70 74 25 29 0d 04 6a |.newopt(opt%)..j| 00000b30 05 e1 0d 04 74 05 3a 0d 04 7e 0c dd 20 f2 45 72 |....t.:..~.. .Er| 00000b40 72 6f 72 0d 04 88 28 20 e7 20 28 28 9f 20 80 20 |ror...( . ((. . | 00000b50 32 35 35 29 3c 30 29 20 84 20 28 28 9f 20 80 20 |255)<0) . ((. . | 00000b60 32 35 35 29 3e 31 32 37 29 20 8c 0d 04 92 53 20 |255)>127) ....S | 00000b70 20 f2 52 65 70 6f 72 74 5f 45 72 72 6f 72 28 30 | .Report_Error(0| 00000b80 2c 22 43 6f 6e 76 65 72 74 20 46 61 74 61 6c 20 |,"Convert Fatal | 00000b90 65 72 72 6f 72 20 2d 20 22 2b f6 24 2b 22 20 28 |error - "+.$+" (| 00000ba0 69 6e 74 65 72 6e 61 6c 20 63 6f 64 65 20 22 2b |internal code "+| 00000bb0 c3 9e 2b 22 2c 22 2b c3 9f 2b 22 29 22 29 0d 04 |..+","+..+")")..| 00000bc0 9c 1b 20 20 c8 99 20 22 57 69 6d 70 5f 43 6c 6f |.. .. "Wimp_Clo| 00000bd0 73 65 44 6f 77 6e 22 3a e0 0d 04 a6 06 20 cc 0d |seDown":..... ..| 00000be0 04 b0 55 20 20 f2 52 65 70 6f 72 74 5f 45 72 72 |..U .Report_Err| 00000bf0 6f 72 28 30 2c 22 43 6f 6e 76 65 72 74 20 65 72 |or(0,"Convert er| 00000c00 72 6f 72 20 2d 20 22 2b f6 24 2b 22 20 28 69 6e |ror - "+.$+" (in| 00000c10 74 65 72 6e 61 6c 20 63 6f 64 65 20 22 2b c3 9e |ternal code "+..| 00000c20 2b 22 2c 22 2b c3 9f 2b 22 29 22 29 3a f2 70 6f |+","+..+")"):.po| 00000c30 6c 6c 3a e0 0d 04 ba 06 20 cd 0d 04 c4 05 e1 0d |ll:..... .......| 00000c40 04 ce 05 3a 0d 04 d8 0d dd f2 72 65 63 65 69 76 |...:......receiv| 00000c50 65 0d 04 e2 11 20 c8 8e 20 62 6c 6b 25 21 31 36 |e.... .. blk%!16| 00000c60 20 ca 0d 04 ec 15 20 20 c9 20 30 3a 66 69 6e 69 | ..... . 0:fini| 00000c70 73 68 65 64 25 3d 32 0d 04 f6 06 20 cb 0d 05 00 |shed%=2.... ....| 00000c80 05 e1 0d 05 0a 05 3a 0d 05 14 3c dd f2 67 65 74 |......:...<..get| 00000c90 77 28 77 69 6e 25 29 3a 21 62 6c 6b 25 3d 77 69 |w(win%):!blk%=wi| 00000ca0 6e 25 3a c8 99 20 22 57 69 6d 70 5f 47 65 74 57 |n%:.. "Wimp_GetW| 00000cb0 69 6e 64 6f 77 53 74 61 74 65 22 2c 2c 62 6c 6b |indowState",,blk| 00000cc0 25 3a e1 0d 05 1e 05 3a 0d 05 28 45 dd f2 6f 70 |%:.....:..(E..op| 00000cd0 65 6e 77 28 77 69 6e 25 29 3a f2 67 65 74 77 28 |enw(win%):.getw(| 00000ce0 77 69 6e 25 29 3a 62 6c 6b 25 21 32 38 3d 2d 31 |win%):blk%!28=-1| 00000cf0 3a c8 99 20 22 57 69 6d 70 5f 4f 70 65 6e 57 69 |:.. "Wimp_OpenWi| 00000d00 6e 64 6f 77 22 2c 2c 62 6c 6b 25 3a e1 0d 05 32 |ndow",,blk%:...2| 00000d10 05 3a 0d 05 3c 24 dd f2 62 75 74 74 6f 6e 73 28 |.:..<$..buttons(| 00000d20 77 69 6e 64 6f 77 25 2c 62 75 74 74 6f 6e 25 2c |window%,button%,| 00000d30 69 63 6f 6e 25 29 0d 05 46 11 20 c8 8e 20 77 69 |icon%)..F. .. wi| 00000d40 6e 64 6f 77 25 20 ca 0d 05 50 0a 20 20 c9 20 2d |ndow% ...P. . -| 00000d50 32 0d 05 5a 13 20 20 20 c8 8e 20 62 75 74 74 6f |2..Z. .. butto| 00000d60 6e 25 20 ca 0d 05 64 16 20 20 20 20 c9 20 32 3a |n% ...d. . 2:| 00000d70 f2 6f 70 65 6e 6d 65 6e 75 31 0d 05 6e 17 20 20 |.openmenu1..n. | 00000d80 20 20 7f 3a f2 6f 70 65 6e 77 28 6d 61 69 6e 25 | .:.openw(main%| 00000d90 29 0d 05 78 08 20 20 20 cb 0d 05 82 0d 20 20 c9 |)..x. ..... .| 00000da0 20 6d 61 69 6e 25 0d 05 8c 13 20 20 20 c8 8e 20 | main%.... .. | 00000db0 62 75 74 74 6f 6e 25 20 ca 0d 05 96 16 20 20 20 |button% ..... | 00000dc0 20 c9 20 32 3a f2 6f 70 65 6e 6d 65 6e 75 32 0d | . 2:.openmenu2.| 00000dd0 05 a0 08 20 20 20 cb 0d 05 aa 06 20 cb 0d 05 b4 |... ..... ....| 00000de0 05 e1 0d 05 be 05 3a 0d 05 c8 10 dd f2 66 6f 72 |......:......for| 00000df0 63 65 28 69 63 25 29 0d 05 d2 74 20 62 6c 6b 25 |ce(ic%)...t blk%| 00000e00 21 30 3d 6d 61 69 6e 25 3a 62 6c 6b 25 21 34 3d |!0=main%:blk%!4=| 00000e10 69 63 25 3a c8 99 20 22 57 69 6d 70 5f 47 65 74 |ic%:.. "Wimp_Get| 00000e20 49 63 6f 6e 53 74 61 74 65 22 2c 2c 62 6c 6b 25 |IconState",,blk%| 00000e30 3a c8 99 20 22 57 69 6d 70 5f 46 6f 72 63 65 52 |:.. "Wimp_ForceR| 00000e40 65 64 72 61 77 22 2c 6d 61 69 6e 25 2c 62 6c 6b |edraw",main%,blk| 00000e50 25 21 38 2c 62 6c 6b 25 21 31 32 2c 62 6c 6b 25 |%!8,blk%!12,blk%| 00000e60 21 31 36 2c 62 6c 6b 25 21 32 30 0d 05 dc 05 e1 |!16,blk%!20.....| 00000e70 0d 05 e6 05 3a 0d 05 f0 0e dd f2 74 65 6d 70 6c |....:......templ| 00000e80 61 74 65 0d 05 fa 36 20 c8 99 20 22 57 69 6d 70 |ate...6 .. "Wimp| 00000e90 5f 4f 70 65 6e 54 65 6d 70 6c 61 74 65 22 2c 2c |_OpenTemplate",,| 00000ea0 22 3c 43 6f 6e 76 65 72 74 24 44 69 72 3e 2e 54 |"<Convert$Dir>.T| 00000eb0 65 6d 70 6c 61 74 65 73 22 0d 06 04 3b 20 c8 99 |emplates"...; ..| 00000ec0 20 22 57 69 6d 70 5f 4c 6f 61 64 54 65 6d 70 6c | "Wimp_LoadTempl| 00000ed0 61 74 65 22 2c 2c 62 6c 6b 25 2c 69 62 6c 6b 25 |ate",,blk%,iblk%| 00000ee0 2c 69 62 6c 6b 25 2b 34 30 30 2c 2d 31 2c 22 4d |,iblk%+400,-1,"M| 00000ef0 41 49 4e 22 0d 06 0e 29 20 c8 99 20 22 57 69 6d |AIN"...) .. "Wim| 00000f00 70 5f 43 72 65 61 74 65 57 69 6e 64 6f 77 22 2c |p_CreateWindow",| 00000f10 2c 62 6c 6b 25 20 b8 20 6d 61 69 6e 25 0d 06 18 |,blk% . main%...| 00000f20 3d 20 c8 99 20 22 57 69 6d 70 5f 4c 6f 61 64 54 |= .. "Wimp_LoadT| 00000f30 65 6d 70 6c 61 74 65 22 2c 2c 62 6c 6b 25 2c 69 |emplate",,blk%,i| 00000f40 6e 66 62 6b 25 2c 69 6e 66 62 6b 25 2b 31 30 30 |nfbk%,infbk%+100| 00000f50 2c 2d 31 2c 22 49 4e 46 4f 22 0d 06 22 29 20 c8 |,-1,"INFO"..") .| 00000f60 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 57 69 |. "Wimp_CreateWi| 00000f70 6e 64 6f 77 22 2c 2c 62 6c 6b 25 20 b8 20 69 6e |ndow",,blk% . in| 00000f80 66 6f 25 0d 06 2c 1c 20 c8 99 20 22 57 69 6d 70 |fo%..,. .. "Wimp| 00000f90 5f 43 6c 6f 73 65 54 65 6d 70 6c 61 74 65 22 0d |_CloseTemplate".| 00000fa0 06 36 05 e1 0d 06 40 05 3a 0d 06 4a 0d dd f2 69 |.6....@.:..J...i| 00000fb0 63 6f 6e 62 61 72 0d 06 54 59 20 21 62 6c 6b 25 |conbar..TY !blk%| 00000fc0 3d 2d 31 3a 62 6c 6b 25 21 34 3d 30 3a 62 6c 6b |=-1:blk%!4=0:blk| 00000fd0 25 21 38 3d 30 3a 62 6c 6b 25 21 31 32 3d 37 30 |%!8=0:blk%!12=70| 00000fe0 3a 62 6c 6b 25 21 31 36 3d 37 30 3a 62 6c 6b 25 |:blk%!16=70:blk%| 00000ff0 21 32 30 3d 26 33 30 33 41 3a 24 28 62 6c 6b 25 |!20=&303A:$(blk%| 00001000 2b 32 34 29 3d 22 21 63 6f 6e 76 65 72 74 22 0d |+24)="!convert".| 00001010 06 5e 1f 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 |.^. .. "Wimp_Cre| 00001020 61 74 65 49 63 6f 6e 22 2c 2c 62 6c 6b 25 0d 06 |ateIcon",,blk%..| 00001030 68 05 e1 0d 06 72 05 3a 0d 06 7c 09 dd f2 6b 65 |h....r.:..|...ke| 00001040 79 0d 06 86 25 20 e7 20 6b 65 79 25 3d 31 33 20 |y...% . key%=13 | 00001050 8c 20 f2 63 61 6c 63 75 6c 61 74 65 28 62 6c 6b |. .calculate(blk| 00001060 25 21 34 29 3a e1 0d 06 90 2d 20 e7 20 6b 65 79 |%!4):....- . key| 00001070 25 3d 33 39 38 20 84 20 6b 65 79 25 3d 33 39 39 |%=398 . key%=399| 00001080 20 8c 20 f2 63 61 72 65 74 28 62 6c 6b 25 21 34 | . .caret(blk%!4| 00001090 29 3a e1 0d 06 9a 1e 20 c8 99 20 22 57 69 6d 70 |):..... .. "Wimp| 000010a0 5f 50 72 6f 63 65 73 73 4b 65 79 22 2c 6b 65 79 |_ProcessKey",key| 000010b0 25 0d 06 a4 05 e1 0d 06 ae 05 3a 0d 06 b8 10 dd |%.........:.....| 000010c0 f2 63 61 72 65 74 28 69 63 25 29 0d 06 c2 22 20 |.caret(ic%)..." | 000010d0 e7 20 6b 65 79 25 3d 33 39 38 20 8c 20 73 74 65 |. key%=398 . ste| 000010e0 70 3d 31 20 8b 20 73 74 65 70 3d 2d 31 0d 06 cc |p=1 . step=-1...| 000010f0 06 20 f5 0d 06 d6 0f 20 20 69 63 25 2b 3d 73 74 |. ..... ic%+=st| 00001100 65 70 0d 06 e0 15 20 20 e7 20 69 63 25 3d 38 20 |ep.... . ic%=8 | 00001110 8c 20 69 63 25 3d 30 0d 06 ea 16 20 20 e7 20 69 |. ic%=0.... . i| 00001120 63 25 3d 2d 31 20 8c 20 69 63 25 3d 37 0d 06 f4 |c%=-1 . ic%=7...| 00001130 10 20 fd 20 6f 6e 28 69 63 25 29 3d 31 0d 06 fe |. . on(ic%)=1...| 00001140 21 20 6c 65 6e 67 74 68 25 3d a9 28 24 28 69 62 |! length%=.($(ib| 00001150 6c 6b 25 2b 28 69 63 25 2a 32 30 29 29 29 0d 07 |lk%+(ic%*20)))..| 00001160 08 36 20 c8 99 20 22 57 69 6d 70 5f 53 65 74 43 |.6 .. "Wimp_SetC| 00001170 61 72 65 74 50 6f 73 69 74 69 6f 6e 22 2c 6d 61 |aretPosition",ma| 00001180 69 6e 25 2c 69 63 25 2c 2c 2c 2d 31 2c 6c 65 6e |in%,ic%,,,-1,len| 00001190 67 74 68 25 0d 07 12 05 e1 0d 07 1c 05 3a 0d 07 |gth%.........:..| 000011a0 26 12 dd f2 6e 65 77 6f 70 74 28 6f 70 74 25 29 |&...newopt(opt%)| 000011b0 0d 07 30 9d 20 f7 3a e3 20 73 70 3d 30 20 b8 20 |..0. .:. sp=0 . | 000011c0 6f 70 74 25 3a f3 20 24 28 69 62 6c 6b 25 2b 31 |opt%:. $(iblk%+1| 000011d0 36 30 29 2c 6f 6e 28 30 29 2c 63 6f 6e 76 28 30 |60),on(0),conv(0| 000011e0 29 2c 24 28 69 62 6c 6b 25 2b 31 39 30 29 2c 6f |),$(iblk%+190),o| 000011f0 6e 28 31 29 2c 63 6f 6e 76 28 31 29 2c 24 28 69 |n(1),conv(1),$(i| 00001200 62 6c 6b 25 2b 32 32 30 29 2c 6f 6e 28 32 29 2c |blk%+220),on(2),| 00001210 63 6f 6e 76 28 32 29 2c 24 28 69 62 6c 6b 25 2b |conv(2),$(iblk%+| 00001220 32 35 30 29 2c 6f 6e 28 33 29 2c 63 6f 6e 76 28 |250),on(3),conv(| 00001230 33 29 2c 24 28 69 62 6c 6b 25 2b 32 38 30 29 2c |3),$(iblk%+280),| 00001240 6f 6e 28 34 29 2c 63 6f 6e 76 28 34 29 0d 07 3a |on(4),conv(4)..:| 00001250 5c 20 f3 20 24 28 69 62 6c 6b 25 2b 33 31 30 29 |\ . $(iblk%+310)| 00001260 2c 6f 6e 28 35 29 2c 63 6f 6e 76 28 35 29 2c 24 |,on(5),conv(5),$| 00001270 28 69 62 6c 6b 25 2b 33 34 30 29 2c 6f 6e 28 36 |(iblk%+340),on(6| 00001280 29 2c 63 6f 6e 76 28 36 29 2c 24 28 69 62 6c 6b |),conv(6),$(iblk| 00001290 25 2b 33 37 30 29 2c 6f 6e 28 37 29 2c 63 6f 6e |%+370),on(7),con| 000012a0 76 28 37 29 3a ed 20 73 70 0d 07 44 1d 20 24 69 |v(7):. sp..D. $i| 000012b0 62 6c 6b 25 3d 22 30 22 3a f2 63 61 6c 63 75 6c |blk%="0":.calcul| 000012c0 61 74 65 28 30 29 0d 07 4e 5a 20 f2 66 6f 72 63 |ate(0)..NZ .forc| 000012d0 65 28 38 29 3a f2 66 6f 72 63 65 28 39 29 3a f2 |e(8):.force(9):.| 000012e0 66 6f 72 63 65 28 31 30 29 3a f2 66 6f 72 63 65 |force(10):.force| 000012f0 28 31 31 29 3a f2 66 6f 72 63 65 28 31 32 29 3a |(11):.force(12):| 00001300 f2 66 6f 72 63 65 28 31 33 29 3a f2 66 6f 72 63 |.force(13):.forc| 00001310 65 28 31 34 29 3a f2 66 6f 72 63 65 28 31 35 29 |e(14):.force(15)| 00001320 0d 07 58 05 e1 0d 07 62 05 3a 0d 07 6c 17 dd f2 |..X....b.:..l...| 00001330 63 61 6c 63 75 6c 61 74 65 28 77 68 69 63 68 25 |calculate(which%| 00001340 29 0d 07 76 12 20 64 65 63 3d bb 28 24 62 75 66 |)..v. dec=.($buf| 00001350 66 25 29 0d 07 80 35 20 e7 20 6f 70 74 25 3d 35 |f%)...5 . opt%=5| 00001360 20 8c 20 e7 20 77 68 69 63 68 25 3d 30 20 84 20 | . . which%=0 . | 00001370 77 68 69 63 68 25 3d 34 20 8c 20 f2 74 65 6d 70 |which%=4 . .temp| 00001380 28 77 68 69 63 68 25 29 0d 07 8a 11 20 e7 20 6f |(which%).... . o| 00001390 70 74 25 3d 35 20 8c 20 e1 0d 07 94 17 20 e7 20 |pt%=5 . ..... . | 000013a0 6f 6e 28 77 68 69 63 68 25 29 3d 30 20 8c 20 e1 |on(which%)=0 . .| 000013b0 0d 07 9e 2f 20 75 6e 69 74 73 3d bb 28 24 28 69 |.../ units=.($(i| 000013c0 62 6c 6b 25 2b 28 77 68 69 63 68 25 2a 32 30 29 |blk%+(which%*20)| 000013d0 29 29 2a 63 6f 6e 76 28 77 68 69 63 68 25 29 0d |))*conv(which%).| 000013e0 07 a8 0f 20 e3 20 73 70 3d 30 20 b8 20 37 0d 07 |... . sp=0 . 7..| 000013f0 b2 43 20 20 e7 20 75 6e 69 74 73 3c 3e 30 20 80 |.C . units<>0 .| 00001400 20 63 6f 6e 76 28 73 70 29 3c 3e 30 20 8c 20 74 | conv(sp)<>0 . t| 00001410 68 69 73 76 61 6c 3d 75 6e 69 74 73 2f 63 6f 6e |hisval=units/con| 00001420 76 28 73 70 29 20 8b 20 74 68 69 73 76 61 6c 3d |v(sp) . thisval=| 00001430 30 0d 07 bc 50 20 20 74 68 24 3d c3 28 74 68 69 |0...P th$=.(thi| 00001440 73 76 61 6c 29 3a e7 20 64 65 63 3d 30 20 8c 20 |sval):. dec=0 . | 00001450 74 68 69 73 76 61 6c 3d a4 69 6e 74 65 67 65 72 |thisval=.integer| 00001460 28 74 68 69 73 76 61 6c 29 20 8b 20 74 68 69 73 |(thisval) . this| 00001470 76 61 6c 3d a4 72 6f 75 6e 64 69 74 28 74 68 24 |val=.roundit(th$| 00001480 29 0d 07 c6 32 20 20 e7 20 a7 c3 28 74 68 69 73 |)...2 . ..(this| 00001490 76 61 6c 29 2c 22 45 22 29 3d 30 20 80 20 a7 c3 |val),"E")=0 . ..| 000014a0 28 74 68 69 73 76 61 6c 29 2c 22 2e 22 29 3c 3e |(thisval),".")<>| 000014b0 30 20 8c 0d 07 d0 39 20 20 20 24 28 69 62 6c 6b |0 ....9 $(iblk| 000014c0 25 2b 28 73 70 2a 32 30 29 29 3d c0 c3 28 74 68 |%+(sp*20))=..(th| 000014d0 69 73 76 61 6c 29 2c a7 c3 28 74 68 69 73 76 61 |isval),..(thisva| 000014e0 6c 29 2c 22 2e 22 29 2b 64 65 63 29 0d 07 da 07 |l),".")+dec)....| 000014f0 20 20 cc 0d 07 e4 22 20 20 20 24 28 69 62 6c 6b | ...." $(iblk| 00001500 25 2b 28 73 70 2a 32 30 29 29 3d c3 28 74 68 69 |%+(sp*20))=.(thi| 00001510 73 76 61 6c 29 0d 07 ee 07 20 20 cd 0d 07 f8 10 |sval).... .....| 00001520 20 20 f2 66 6f 72 63 65 28 73 70 29 0d 08 02 09 | .force(sp)....| 00001530 20 ed 20 73 70 0d 08 0c 05 e1 0d 08 16 05 3a 0d | . sp.........:.| 00001540 08 20 12 dd a4 72 6f 75 6e 64 69 74 28 74 68 24 |. ...roundit(th$| 00001550 29 0d 08 2a 3b 20 e7 20 c0 74 68 24 2c 31 29 3d |)..*; . .th$,1)=| 00001560 22 2d 22 20 8c 20 6d 69 6e 75 73 25 3d 31 3a 74 |"-" . minus%=1:t| 00001570 68 24 3d c2 74 68 24 2c a9 28 74 68 24 29 2d 31 |h$=.th$,.(th$)-1| 00001580 29 20 8b 20 6d 69 6e 75 73 25 3d 30 0d 08 34 14 |) . minus%=0..4.| 00001590 20 e7 20 a7 74 68 24 2c 22 45 22 29 3d 30 20 8c | . .th$,"E")=0 .| 000015a0 0d 08 3e 16 20 20 e7 20 a7 74 68 24 2c 22 2e 22 |..>. . .th$,"."| 000015b0 29 3c 3e 30 20 8c 0d 08 48 1f 20 20 20 e7 20 a7 |)<>0 ...H. . .| 000015c0 74 68 24 2c 22 2e 22 29 2b 64 65 63 3c a9 28 74 |th$,".")+dec<.(t| 000015d0 68 24 29 20 8c 0d 08 52 28 20 20 20 20 72 6f 75 |h$) ...R( rou| 000015e0 6e 64 3d bb 28 c1 74 68 24 2c a7 74 68 24 2c 22 |nd=.(.th$,.th$,"| 000015f0 2e 22 29 2b 64 65 63 2b 31 2c 31 29 29 0d 08 5c |.")+dec+1,1))..\| 00001600 1f 20 20 20 20 74 68 24 3d c0 74 68 24 2c a7 74 |. th$=.th$,.t| 00001610 68 24 2c 22 2e 22 29 2b 64 65 63 29 0d 08 66 13 |h$,".")+dec)..f.| 00001620 20 20 20 20 e7 20 72 6f 75 6e 64 3e 34 20 8c 0d | . round>4 ..| 00001630 08 70 19 20 20 20 20 20 61 64 64 65 72 3d 31 2f |.p. adder=1/| 00001640 28 31 30 5e 64 65 63 29 0d 08 7a 1c 20 20 20 20 |(10^dec)..z. | 00001650 20 74 68 24 3d c3 28 bb 28 74 68 24 29 2b 61 64 | th$=.(.(th$)+ad| 00001660 64 65 72 29 0d 08 84 09 20 20 20 20 cd 0d 08 8e |der).... ....| 00001670 1f 20 20 20 20 74 68 24 3d c0 74 68 24 2c a7 74 |. th$=.th$,.t| 00001680 68 24 2c 22 2e 22 29 2b 64 65 63 29 0d 08 98 08 |h$,".")+dec)....| 00001690 20 20 20 cd 0d 08 a2 07 20 20 cd 0d 08 ac 06 20 | ..... ..... | 000016a0 cd 0d 08 b6 23 e7 20 6d 69 6e 75 73 25 3d 31 20 |....#. minus%=1 | 000016b0 8c 20 3d 2d bb 28 74 68 24 29 20 8b 20 3d bb 28 |. =-.(th$) . =.(| 000016c0 74 68 24 29 0d 08 c0 05 3a 0d 08 ca 16 dd a4 69 |th$)....:......i| 000016d0 6e 74 65 67 65 72 28 74 68 69 73 76 61 6c 29 0d |nteger(thisval).| 000016e0 08 d4 13 3d a8 28 74 68 69 73 76 61 6c 2b 30 2e |...=.(thisval+0.| 000016f0 35 29 0d 08 de 05 3a 0d 08 e8 12 dd f2 74 65 6d |5)....:......tem| 00001700 70 28 77 68 69 63 68 25 29 0d 08 f2 25 20 e7 20 |p(which%)...% . | 00001710 77 68 69 63 68 25 3d 34 20 8c 20 6f 74 68 65 72 |which%=4 . other| 00001720 25 3d 30 20 8b 20 6f 74 68 65 72 25 3d 34 0d 08 |%=0 . other%=4..| 00001730 fc 22 20 75 6e 69 74 73 3d bb 28 24 28 69 62 6c |." units=.($(ibl| 00001740 6b 25 2b 28 77 68 69 63 68 25 2a 32 30 29 29 29 |k%+(which%*20)))| 00001750 0d 09 06 28 20 e7 20 77 68 69 63 68 25 3d 30 20 |...( . which%=0 | 00001760 8c 20 74 68 69 73 76 61 6c 3d 28 75 6e 69 74 73 |. thisval=(units| 00001770 2d 33 32 29 2a 35 2f 39 0d 09 10 26 20 e7 20 77 |-32)*5/9...& . w| 00001780 68 69 63 68 25 3d 34 20 8c 20 74 68 69 73 76 61 |hich%=4 . thisva| 00001790 6c 3d 33 32 2b 75 6e 69 74 73 2a 39 2f 35 0d 09 |l=32+units*9/5..| 000017a0 1a 48 20 e7 20 64 65 63 3d 30 20 8c 20 74 68 69 |.H . dec=0 . thi| 000017b0 73 76 61 6c 3d a4 69 6e 74 65 72 67 65 72 28 74 |sval=.interger(t| 000017c0 68 69 73 76 61 6c 29 20 8b 20 74 68 69 73 76 61 |hisval) . thisva| 000017d0 6c 3d a4 72 6f 75 6e 64 69 74 28 c3 28 74 68 69 |l=.roundit(.(thi| 000017e0 73 76 61 6c 29 29 0d 09 24 31 20 e7 20 a7 c3 28 |sval))..$1 . ..(| 000017f0 74 68 69 73 76 61 6c 29 2c 22 45 22 29 3d 30 20 |thisval),"E")=0 | 00001800 80 20 a7 c3 28 74 68 69 73 76 61 6c 29 2c 22 2e |. ..(thisval),".| 00001810 22 29 3c 3e 30 20 8c 0d 09 2e 3c 20 20 24 28 69 |")<>0 ....< $(i| 00001820 62 6c 6b 25 2b 28 6f 74 68 65 72 25 2a 32 30 29 |blk%+(other%*20)| 00001830 29 3d c0 c3 28 74 68 69 73 76 61 6c 29 2c a7 c3 |)=..(thisval),..| 00001840 28 74 68 69 73 76 61 6c 29 2c 22 2e 22 29 2b 64 |(thisval),".")+d| 00001850 65 63 29 0d 09 38 06 20 cc 0d 09 42 25 20 20 24 |ec)..8. ...B% $| 00001860 28 69 62 6c 6b 25 2b 28 6f 74 68 65 72 25 2a 32 |(iblk%+(other%*2| 00001870 30 29 29 3d c3 28 74 68 69 73 76 61 6c 29 0d 09 |0))=.(thisval)..| 00001880 4c 06 20 cd 0d 09 56 13 20 f2 66 6f 72 63 65 28 |L. ...V. .force(| 00001890 6f 74 68 65 72 25 29 0d 09 60 05 e1 0d 09 6a 05 |other%)..`....j.| 000018a0 3a 0d 09 74 80 dc 20 49 6e 63 68 65 73 2c 31 2c |:..t.. Inches,1,| 000018b0 31 2c 46 65 65 74 2c 31 2c 31 32 2c 59 61 72 64 |1,Feet,1,12,Yard| 000018c0 73 2c 31 2c 33 36 2c 4d 69 6c 65 73 2c 31 2c 36 |s,1,36,Miles,1,6| 000018d0 33 33 36 30 2c 4d 69 6c 6c 69 6d 65 74 72 65 73 |3360,Millimetres| 000018e0 2c 31 2c 30 2e 30 33 39 33 37 2c 43 65 6e 74 69 |,1,0.03937,Centi| 000018f0 6d 65 74 72 65 73 2c 31 2c 30 2e 33 39 33 37 2c |metres,1,0.3937,| 00001900 4d 65 74 72 65 73 2c 31 2c 33 39 2e 33 37 2c 4b |Metres,1,39.37,K| 00001910 69 6c 6f 6d 65 74 72 65 73 2c 31 2c 33 39 33 37 |ilometres,1,3937| 00001920 30 0d 09 7e 9b dc 20 53 71 75 61 72 65 20 49 6e |0..~.. Square In| 00001930 63 68 65 73 2c 31 2c 31 2c 53 71 75 61 72 65 20 |ches,1,1,Square | 00001940 46 65 65 74 2c 31 2c 31 34 34 2c 41 63 72 65 73 |Feet,1,144,Acres| 00001950 2c 31 2c 36 32 37 32 36 34 30 2c 53 71 75 61 72 |,1,6272640,Squar| 00001960 65 20 4d 69 6c 65 73 2c 31 2c 34 2e 30 31 34 35 |e Miles,1,4.0145| 00001970 45 39 2c 53 71 75 61 72 65 20 43 65 6e 74 69 6d |E9,Square Centim| 00001980 65 74 72 65 73 2c 31 2c 30 2e 31 35 35 2c 53 71 |etres,1,0.155,Sq| 00001990 75 61 72 65 20 4d 65 74 72 65 73 2c 31 2c 31 35 |uare Metres,1,15| 000019a0 35 30 2c 48 65 63 74 61 72 65 73 2c 31 2c 31 2e |50,Hectares,1,1.| 000019b0 35 35 45 37 2c 22 20 22 2c 30 2c 30 0d 09 88 90 |55E7," ",0,0....| 000019c0 dc 20 43 75 62 69 63 20 49 6e 63 68 65 73 2c 31 |. Cubic Inches,1| 000019d0 2c 31 2c 43 75 62 69 63 20 46 65 65 74 2c 31 2c |,1,Cubic Feet,1,| 000019e0 31 37 32 38 2c 50 69 6e 74 73 2c 31 2c 33 34 2e |1728,Pints,1,34.| 000019f0 36 37 2c 47 61 6c 6c 6f 6e 73 2c 31 2c 32 37 37 |67,Gallons,1,277| 00001a00 2e 33 36 2c 43 75 62 69 63 20 43 65 6e 74 69 6d |.36,Cubic Centim| 00001a10 65 74 72 65 73 2c 31 2c 30 2e 30 36 31 30 32 2c |etres,1,0.06102,| 00001a20 4c 69 74 72 65 73 2c 31 2c 36 31 2e 30 32 34 2c |Litres,1,61.024,| 00001a30 43 75 62 69 63 20 4d 65 74 72 65 73 2c 31 2c 36 |Cubic Metres,1,6| 00001a40 31 30 32 34 2c 22 20 22 2c 30 2c 30 0d 09 92 6a |1024," ",0,0...j| 00001a50 dc 20 4f 75 6e 63 65 73 2c 31 2c 31 2c 50 6f 75 |. Ounces,1,1,Pou| 00001a60 6e 64 73 2c 31 2c 31 36 2c 54 6f 6e 73 2c 31 2c |nds,1,16,Tons,1,| 00001a70 33 35 38 34 30 2c 22 20 22 2c 30 2c 30 2c 47 72 |35840," ",0,0,Gr| 00001a80 61 6d 73 2c 31 2c 30 2e 30 33 35 32 37 2c 4b 69 |ams,1,0.03527,Ki| 00001a90 6c 6f 67 72 61 6d 73 2c 31 2c 33 35 2e 32 37 2c |lograms,1,35.27,| 00001aa0 54 6f 6e 6e 65 73 2c 31 2c 33 35 32 37 30 2c 22 |Tonnes,1,35270,"| 00001ab0 20 22 2c 30 2c 30 0d 09 9c 6f dc 20 50 53 49 2c | ",0,0...o. PSI,| 00001ac0 31 2c 31 2c 6d 6d 48 47 2c 31 2c 35 31 2e 37 33 |1,1,mmHG,1,51.73| 00001ad0 2c 22 20 22 2c 30 2c 30 2c 22 20 22 2c 30 2c 30 |," ",0,0," ",0,0| 00001ae0 2c 4e 2f 53 71 75 61 72 65 20 4d 65 74 72 65 2c |,N/Square Metre,| 00001af0 31 2c 36 38 39 35 2c 41 74 6d 6f 73 70 68 65 72 |1,6895,Atmospher| 00001b00 65 73 2c 31 2c 30 2e 30 36 38 31 2c 4d 69 6c 6c |es,1,0.0681,Mill| 00001b10 69 62 61 72 73 2c 31 2c 36 38 2e 39 35 2c 22 20 |ibars,1,68.95," | 00001b20 22 2c 30 2c 30 0d 09 a6 51 dc 20 46 61 72 65 6e |",0,0...Q. Faren| 00001b30 68 65 69 74 2c 31 2c 30 2c 22 20 22 2c 30 2c 30 |heit,1,0," ",0,0| 00001b40 2c 22 20 22 2c 30 2c 30 2c 22 20 22 2c 30 2c 30 |," ",0,0," ",0,0| 00001b50 2c 22 43 65 6c 63 69 75 73 22 2c 31 2c 30 2c 22 |,"Celcius",1,0,"| 00001b60 20 22 2c 30 2c 30 2c 22 20 22 2c 30 2c 30 2c 22 | ",0,0," ",0,0,"| 00001b70 20 22 2c 30 2c 30 0d ff | ",0,0..| 00001b78