Home » Archimedes archive » Archimedes World » AW-1996-01-Disc2.adf » !CD_Type_CD_Type » !CD_Type/CDtype
!CD_Type/CDtype
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Archimedes World » AW-1996-01-Disc2.adf » !CD_Type_CD_Type |
Filename: | !CD_Type/CDtype |
Read OK: | ✔ |
File size: | 35EC bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Archimedes archive » Archimedes World » AW-1996-01-Disc2.adf » !CD_Type_CD_Type » !CD_Type/CDtype
- Archimedes archive » Archimedes World » AW-1996-06-Disc 2.adf » !MovieFS_MovieFS » FileTypes/!CD_Type/CDtype
File contents
10REM >CDType 20REM 30REM Original by: Martin Sperl 40REM Nattergasse 12/32 50REM A-1170 Vienna 60REM Austria 70REM 80REM Contact: Fido : 2:313/16.6 90REM E-Mail : Sperl@Astro1.auniw.ac.at 100REM 110REM Significantly changed by:- 120REM Mike Martin ( Softcorn ) 130REM Now allows lots of filetypes to be defined. 140REM It achieves this by re-writing the whole of 150REM Acorn's function for "CDFS_GiveFileType". 160REM 170REM Insignificantly changed by Robin Watts (03/07/95) - (18/9/95) 180REM to cope with more CDFS versions, and to work OK if the CDFS 190REM module is resident in ROM. Now supports: 2.20, 2.21, 200REM 2.21Y, 2.23, 2.28, 2.30d, 2.30e. If you have a version that 210REM doesn't work, then please get in touch! 220REM 230REM This Program may be copied freely as long as the above lines 240REM _are_ included. 250 260REM setup presets for different CDFS versions 270REM i.e. offsets/values in virgin CDFS 280REM if yours is not in the list below you probably only have to 290REM add the correct values for your version. 300 310ON ERROR PRINTREPORT$;" at line ";ERL:END 320 330numb_vers%=7 340DIM version$(numb_vers%) 350DIM codeoff%(numb_vers%) 360DIM endlstoff%(numb_vers%) 370DIM workspcoff%(numb_vers%) 380DIM first_opcode%(numb_vers%) 390DIM numbtrans%(numb_vers%) 400DIM nameoff%(numb_vers%) 410 420REM setup for CDFS2.20 430version$(0) = "CDFS2.20 (23 Sep 1993)" 440codeoff%(0) = &2DF0 : REM offset of start of CDFS_GiveFileType code. 450endlstoff%(0) = &3088 : REM end of translation list (after RiscOS hex). 460workspcoff%(0) = &3204 : REM offset of Word holding - workspace offset used. 470first_opcode%(0) = &E92D000F : REM value of first opcode in CDFS_GiveFileType. 480 REM these are changed if module is, or has been, changed. 490numbtrans%(0) = 8 : REM number of entries in modules translate table 500nameoff%(0) = &3064 : REM offset of start of DOS name part of table 510 520REM setup for CDFS2.21 (actually, identical to 2.20) 530version$(1) = "CDFS2.21 (02 Feb 1994)" 540codeoff%(1) = &2DF0 550endlstoff%(1) = &3088 560workspcoff%(1) = &3204 570first_opcode%(1) = &E92D000F 580numbtrans%(1) = 8 590nameoff%(1) = &3064 600 610REM CDFS 2.23 620version$(2) = "CDFS2.23 (10 Aug 1994)" 630codeoff%(2) = &2FB4 640endlstoff%(2) = &3254 650workspcoff%(2) = &33D8 660first_opcode%(2) = &E92D000F 670numbtrans%(2) = 9 680nameoff%(2) = &3228 690 700REM CDFS 2.30d 710version$(3) = "CDFS2.30d (07 Sep 1994)" 720codeoff%(3) = &307C 730endlstoff%(3) = &3318 740workspcoff%(3) = &3498 750first_opcode%(3) = &E92D000F 760numbtrans%(3) = 9 770nameoff%(3) = &32F0 780 790REM CDFS 2.30e 800version$(4) = "CDFS2.30e (19 Sep 1994)" 810codeoff%(4) = &3088 820endlstoff%(4) = &3328 830workspcoff%(4) = &34AC 840first_opcode%(4) = &E92D000F 850numbtrans%(4) = 10 860nameoff%(4) = &32FC 870 880REM setup for CDFS2.28 890version$(5) = "CDFS2.28 (28 Feb 1995)" 900codeoff%(5) = &2DA8 910endlstoff%(5) = &3040 920workspcoff%(5) = &31B8 930first_opcode%(5) = &E92D000F 940numbtrans%(5) = 8 950nameoff%(5) = &301C 960 970REM setup for CDFS2.21Y 980version$(6) = "CDFS2.21Y (23 Feb 1994)" 990codeoff%(6) = &2DFC 1000endlstoff%(6) = &3094 1010workspcoff%(6) = &3210 1020first_opcode%(6) = &E92D000F 1030numbtrans%(6) = 8 1040nameoff%(6) = &3070 1050 1060Base% = FNgetbaseCDFS : REM absolute address of start of module. 1070 1080REM Check for CDFS in ROM... (move into RAM) 1090IF Base%>&3000000 THEN 1100 OSCLI("RMFaster CDFS") 1110 Base% = FNgetbaseCDFS 1120ENDIF 1130 1140REM find CDFS version & set up default parameters accordingly 1150VERSION$ = "" 1160vers% = 0 1170REPEAT 1180 IF FNcheckVersCDFS( Base%+Base%!20, version$(vers%) ) THEN 1190 VERSION$ = version$(vers%) 1200 CODEOFF = codeoff%(vers%) 1210 ENDLSTOFF = endlstoff%(vers%) 1220 WORKSPCOFF = workspcoff%(vers%) 1230 FIRST_OPCODE = first_opcode%(vers%) 1240 numbTRANS = numbtrans%(vers%) 1250 nameOFF = nameoff%(vers%) 1260 typOFF = nameOFF+(numbTRANS+1)*4 :REM Offset of start of RiscOS filetypes(hex) 1270 ELSE 1280 vers% += 1 1290 ENDIF 1300UNTIL (VERSION$ <> "") OR (vers% = numb_vers%) 1310IF (VERSION$ = "") THEN ERROR EXT 27, "CDFS-Version not supported":END 1320 1330REM now we have setup correct presets we can start program proper 1340DIM Data 256 1350DIM Com$(3) 1360 1370REM set translation list values 1380IF NOT FNvirginCDFS THEN 1390 REM my code in CDFS so get list's length & pointers that I saved on generation 1400 numbTRANS = !(Base%+CODEOFF+4) 1410 nameOFF = !(Base%+CODEOFF+8) 1420 typOFF = !(Base%+CODEOFF+12) 1430ENDIF 1440 1450REM get any command string & put in 1460REM com$(0) = command 1470REM com$(1) = option1 [optional] 1480REM com$(2) = option2 [optional] 1490PROCgetCommand 1500 1510CASE LEFT$(Com$(0),2) OF 1520 WHEN "-S":PROCstandard 1530 WHEN "-U":PROCUser(Com$(1)) 1540 WHEN "-A":PROCAdd(Com$(1),Com$(2)) 1550 WHEN "-R":PROCRemove(Com$(1)) 1560 WHEN "-C":PROCClear 1570 WHEN "-L":PROCList 1580 OTHERWISE 1590 PRINT "Wrong Option ..." 1600 PROCUsage 1610ENDCASE 1620 1630END 1640 1650 1660DEFFNvirginCDFS 1670= (Base%!CODEOFF = FIRST_OPCODE) 1680 1690 1700REM set file translations to default 1710REM assemble my new code first 1720DEFPROCstandard 1730LOCAL I%, Count, DosTyp$, ArchiTyp$ 1740 PROCmakecode 1750 READ Count 1760 IF Count>numbTRANS THEN Count=numbTRANS 1770 FOR I%=0 TO Count-1 1780 READ DosTyp$,ArchiTyp$ 1790 PROCSetTrans(I%,DosTyp$,ArchiTyp$) 1800 NEXT I% 1810 PROCSetTrans(Count,"","000") 1820 DATA 9 1830 DATA "DOC","FFF" 1840 DATA "TXT","FFF" 1850 DATA "BAT","FDA" 1860 DATA "EXE","FD9" 1870 DATA "BIN","FFD" 1880 DATA "TIF","FF0" 1890 DATA "COM","FD8" 1900 DATA "PCD","BE8" 1910 DATA "LBM","693" 1920ENDPROC 1930 1940DEFPROCSetTrans(I%,A$,B$) 1950 $Data=LEFT$(A$+CHR$(0)+CHR$(0)+CHR$(0),3)+CHR$(0) 1960 SYS "OS_FSControl",31,B$ TO,,Type% 1970 1980 !(Base%+nameOFF+I%*4)=!Data 1990 !(Base%+typOFF+I%*4)=Type% 2000ENDPROC 2010 2020DEFFNGetTransDos(I%) 2030LOCAL A$,J% 2040J%=Base%+nameOFF+I%*4 2050A$="" 2060WHILE (?J%>31) 2070 A$+=CHR$(?J%) 2080 J%+=1 2090ENDWHILE 2100=A$ 2110 2120DEFFNGetTransArchi(I%) 2130=!(Base%+typOFF+I%*4) 2140 2150DEFFNTranslate(I%) 2160 LOCAL t1%,t2%,J% 2170 J%=FNGetTransArchi(I%) 2180 SYS "OS_FSControl",18,,J%TO ,,t1%,t2% 2190 Data!0=t1% 2200 Data!4=t2% 2210 Data?8=13 2220=$Data 2230 2240 2250REM add a new filetype translation 2260REM if CDFS is virgin, setup my code first 2270DEFPROCAdd(A$,B$) 2280IF A$="" OR B$="" THEN PRINT "Wrong number of arguments - 2 needed !!!":ENDPROC 2290LOCAL I% 2300 IF FNvirginCDFS THEN PROCstandard 2310 I%=0 2320 WHILE (FNGetTransDos(I%)<>"") 2330 I%+=1 2340 ENDWHILE 2350 IF I%<numbTRANS THEN 2360 PROCSetTrans(I%,A$,B$) 2370 PROCSetTrans(I%+1,"","&000") 2380 ELSE 2390 PRINT "Sorry only "+STR$(numbTRANS)+" Translations possible !!!" 2400 ENDIF 2410ENDPROC 2420 2430DEFPROCClear 2440 IF FNvirginCDFS THEN PROCstandard 2450 PROCSetTrans(0,"","&000") 2460ENDPROC 2470 2480DEFPROCRemove(A$) 2490IF A$="" THEN PRINT "Wrong number of arguments - 1 needed !!!":ENDPROC 2500LOCAL I%,B$,C%,D$ 2510 IF FNvirginCDFS THEN PROCstandard 2520 I%=0 2530 B$=FNGetTransDos(I%) 2540 WHILE (B$<>"" AND B$<>A$) 2550 I%+=1 2560 B$=FNGetTransDos(I%) 2570 ENDWHILE 2580 IF B$="" THEN 2590 PRINT "Dostype "+A$+" not found in translation-table" 2600 ELSE 2610 REPEAT 2620 C$=FNGetTransDos(I%+1) 2630 D$=FNTranslate(I%+1) 2640 PROCSetTrans(I%,C$,D$) 2650 I%+=1 2660 UNTIL C$="" 2670 ENDIF 2680ENDPROC 2690 2700DEFPROCUser(File$) 2710IF File$="" THEN PRINT "Wrong number of arguments - 1 needed !!!":ENDPROC 2720A%=OPENIN(File$) 2730IF A%=0 THEN PRINT "File "+File$+" does not exist !!!":ENDPROC 2740IF FNvirginCDFS THEN PROCstandard 2750 2760J%=0 2770REPEAT 2780 A$=GET$#A% 2790 WHILE LEFT$(A$,1) = " " 2800 A$=MID$(A$,2) 2810 ENDWHILE 2820 B$="" 2830 I%=1 2840 REPEAT 2850 B$+=MID$(A$,I%,1) 2860 I%+=1 2870 UNTIL MID$(A$+" ",I%,1)=" " 2880 B$=LEFT$(B$+" ",3) 2890 C$="" 2900 REPEAT 2910 I%+=1 2920 UNTIL MID$(A$+"*",I%,1)>" " 2930 REPEAT 2940 C$+=MID$(A$,I%,1) 2950 I%+=1 2960 UNTIL MID$(A$+" ",I%)=" " 2970 IF J%<numbTRANS+1 THEN 2980 PROCSetTrans(J%,B$,C$) 2990 J%+=1 3000 ELSE 3010 PRINT "Sorry only "+STR$numbTRANS+" Translations possible !!!":PTR#A%=EXT#A%+1 3020 ENDIF 3030UNTIL EOF#A% 3040PROCSetTrans(J%,"","&000") 3050CLOSE#A% 3060ENDPROC 3070 3080DEFPROCList 3090LOCAL K% 3100 K%=0 3110 PRINT 3120 PRINT " CDFS" 3130 PRINT "type translation:-" 3140 PRINT "Dos/CD -> RiscOS" 3150REM PRINT "----------------" 3160 WHILE (FNGetTransDos(K%)<>"") 3170 PRINT LEFT$(" "+FNGetTransDos(K%)+STRING$(11," "), 11)+FNTranslate(K%) 3180 K%+=1 3190 ENDWHILE 3200 IF K%=0 THEN PRINT "No translations!!!" 3210ENDPROC 3220 3230DEFPROCmakecode 3240LOCAL pass%, code%, endlists% 3250 code% = Base% + CODEOFF 3260 endlists% = Base% + ENDLSTOFF 3270 3280 FOR pass% = 0 TO 2 STEP 2 3290 P% = code% 3300 [ opt pass% 3310 3320 ; on entry 3330 ; R0 = pointer to filename with terminating 0 3340 ; R12 = private word 3350 3360 MOV PC, R14 ; Only included initially in case call 3370 ; is made in the middle of me generating code 3380 ; after all code is generated it is changed to 3390 ; B newstart 3400 3410 EQUD numbTRANS ; items in the translation list 3420 EQUD nameOFF ; relative address of start of extent list 3430 EQUD typOFF ; relative address of start of filetype list 3440 3450 .newstart 3460 STMDB R13!,{R0-R1} 3470 LDR R1,(Base%+WORKSPCOFF) 3480 ADD R1,R1,R12 3490 MOV R11,R1 ;R11 = private workspace 3500 LDMIA R13!,{R0-R1} 3510 3520 ; get filename extent 3530 MOV R3,R0 3540 3550 .loop1 3560 LDRB R1,[R3],#1 3570 TEQ R1,#0 3580 LDMEQIA R13!,{R0-R9,R14} 3590 MOVEQ R1,#0 3600 BICEQS PC,R14,#&10000000 ; exit if null filename or no extension 3610 TEQ R1,#&2E ; ="." 3620 BNE loop1 3630 MOV R7,R3 3640 3650 .loop2 3660 LDRB R1,[R7],#1 3670 TEQ R1,#0 3680 BNE loop2 3690 ADD R6,R3,#3 3700 CMP R7,R6 3710 LDMLEIA R13!,{R0-R9,R14} 3720 MOVLE R1,#0 3730 BICLES PC,R14,#&10000000 ; exit if extent is not 3 characters 3740 3750 ;got, R3 points to extent 3760 3770 ;now see if it can be found in extent list 3780 3790 ADR R4,extents ;start of extent list 3800 MOV R6,#0 ;R6 = index into list 3810 SUB R7,R7,#1 3820 3830 .nxt_ext1 3840 LDRB R1,[R4],#0 3850 TEQ R1,#0 3860 LDMEQIA R13!,{R0-R9,R14} 3870 MOVEQ R1,#0 3880 BICEQS PC,R14,#&10000000 ;exit if not found in list 3890 MOV R5,R3 3900 3910 ;R5 = pointer to filename's extent 3920 3930 .nxt_ext2 3940 LDRB R2,[R5],#1 3950 CMP R2,#&61 ; ="a" 3960 RSBGES R14,R2,#&7A ; ="z" 3970 SUBGE R2,R2,#&20 ; =" " 3980 LDRB R1,[R4],#1 3990 4000 ;R2=filename's extent 4010 ;R1=extent from 4020 4030 TEQ R1,#0 4040 TEQEQ R2,#0 4050 BEQ found 4060 4070 TEQ R2,R1 4080 BNE notthisone 4090 TEQ R5,R7 4100 BNE nxt_ext2 4110 4120 .found 4130 FNadr(0,filetypes) ;start of filetype list 4140 LDR R1,[R0,R6,LSL #2] 4150 MOV R10,R1 4160 LDMIA R13!,{R0-R9,R14} 4170 MOV R1,R10 4180 BICS PC,R14,#&10000000 4190 4200 ;set R1= start of next file extent 4210 ; & increment index (R6) 4220 4230 .notthisone 4240 TEQ R1,#0 4250 LDRNEB R1,[R4],#1 4260 BNE notthisone 4270 ADD R6,R6,#1 4280 B nxt_ext1 4290 4300 EQUD 0 4310 .extents ;start of list of extents, terminated by word=0 4320 4330 ] 4340 4350 REM start of filetypes list 4360 numbTRANS = (endlists%-extents)/8 4370 filetypes = extents + 4*(numbTRANS + 1) 4380 nameOFF = extents-Base% 4390 typOFF = filetypes-Base% 4400 NEXT pass% 4410 4420 REM now all code is generated allow it to be entered 4430 FOR pass% = 0 TO 2 STEP 2 4440 P% = code% 4450 [ opt pass% 4460 B newstart 4470 ] 4480 NEXT pass% 4490ENDPROC 4500 4510 4520DEFFNgetbaseCDFS 4530LOCAL Base% 4540 SYS "XOS_Module",18,"CDFS"TO,,,Base%;flag% 4550 IF flag%AND1 THEN END 4560= Base% 4570 4580DEFFNcheckVersCDFS( VersPtr%, VersNeeded$ ) 4590LOCAL CurrVers$ 4600 CurrVers$="" 4610 REPEAT 4620 IF (?VersPtr%)>31 THEN 4630 CurrVers$+=CHR$(?VersPtr%) 4640 ENDIF 4650 VersPtr%+=1 4660 UNTIL ?VersPtr%=0 4670= (CurrVers$ = VersNeeded$) 4680 4690 4700REM get any command string & put in 4710REM com$(0) = command 4720REM com$(1) = option1 [optionlal] 4730REM com$(2) = option2 [optional] 4740DEFPROCgetCommand 4750LOCAL I%, J%, found%, Env$ 4760 SYS "OS_GetEnv"TO I% 4770 found%=0 4780 REPEAT 4790 IF ?I%=34 THEN found%+=1 4800 I%+=1 4810 UNTIL (found%=2)OR(?I%=0) 4820 I%+=1 4830 IF ?I%=0 THEN PROCUsage:END 4840 Env$="" 4850 REPEAT 4860 IF (?I%<123 AND ?I%>96) THEN ?I%=?I% AND %11011111 4870 Env$+=CHR$(?I%) 4880 I%+=1 4890 UNTIL ?I%=0 4900 I%=0 4910 REPEAT 4920 J%=INSTR(Env$," ") 4930 IF J%<>0 THEN 4940 Com$(I%)=LEFT$(Env$,J%) 4950 Env$=MID$(Env$,J%+1) 4960 I%+=1 4970 ELSE 4980 Com$(I%)=Env$ 4990 I%=-1 5000 ENDIF 5010 UNTIL I%=-1 OR I%>3 5020ENDPROC 5030 5040 5050 5060DEFPROCUsage 5070PRINT "CDType <command> [options]" 5080PRINT "Where <Command> may be:" 5090PRINT "-Standard - reset CDFS-translation-table" 5100PRINT "-User [<file>] - set CDFS-user-translation-table" 5110PRINT " to table in <file>" 5120PRINT "-Add <Dos> <RiscOS> - add a translation:- " 5130PRINT " <DosType> to <RiscOSType>" 5140PRINT "-Remove <DosType> - remove <DosType> from" 5150PRINT " translation-table" 5160PRINT "-Clear - clear the translation-table" 5170PRINT "-List - List translation-table" 5180PRINT 5190ENDPROC 5200 5210DEF FNadr(s%,x%) 5220REM The instruction sequence must be of FIXED length 5230a%=x%-P%-8 5240IF (pass% AND 2) THEN 5250 IF a%>=0 THEN 5260 [OPT pass% 5270 ADD s%,PC,#(a% AND &000003FC) 5280 ADD s%,s%,#(a% AND &FFFFFC00) 5290 ] 5300 ELSE 5310 a%=-a% 5320 [OPT pass% 5330 SUB s%,PC,#(a% AND &000003FC) 5340 SUB s%,s%,#(a% AND &FFFFFC00) 5350 ] 5360 ENDIF 5370ELSE 5380 P%+=8:O%+=8 5390ENDIF 5400="" 5410ENDPROC
� >CDType � � Original by: Martin Sperl ($� Nattergasse 12/32 2 � A-1170 Vienna <� Austria F� P&� Contact: Fido : 2:313/16.6 Z4� E-Mail : Sperl@Astro1.auniw.ac.at d� n � Significantly changed by:- x+� Mike Martin ( Softcorn ) �C� Now allows lots of filetypes to be defined. �C� It achieves this by re-writing the whole of �A� Acorn's function for "CDFS_GiveFileType". �� �C� Insignificantly changed by Robin Watts (03/07/95) - (18/9/95) �A� to cope with more CDFS versions, and to work OK if the CDFS �:� module is resident in ROM. Now supports: 2.20, 2.21, �A� 2.21Y, 2.23, 2.28, 2.30d, 2.30e. If you have a version that �-� doesn't work, then please get in touch! �� �B� This Program may be copied freely as long as the above lines �� _are_ included. � /� setup presets for different CDFS versions (� i.e. offsets/values in virgin CDFS A� if yours is not in the list below you probably only have to ".� add the correct values for your version. , 6� � �$;" at line ";�:� @ Jnumb_vers%=7 T� version$(numb_vers%) ^� codeoff%(numb_vers%) h� endlstoff%(numb_vers%) r� workspcoff%(numb_vers%) |� first_opcode%(numb_vers%) �� numbtrans%(numb_vers%) �� nameoff%(numb_vers%) � �� setup for CDFS2.20 �/version$(0) = "CDFS2.20 (23 Sep 1993)" �Ocodeoff%(0) = &2DF0 : � offset of start of CDFS_GiveFileType code. �Pendlstoff%(0) = &3088 : � end of translation list (after RiscOS hex). �Tworkspcoff%(0) = &3204 : � offset of Word holding - workspace offset used. �Pfirst_opcode%(0) = &E92D000F : � value of first opcode in CDFS_GiveFileType. �= � these are changed if module is, or has been, changed. �Qnumbtrans%(0) = 8 : � number of entries in modules translate table �Nnameoff%(0) = &3064 : � offset of start of DOS name part of table � 7� setup for CDFS2.21 (actually, identical to 2.20) /version$(1) = "CDFS2.21 (02 Feb 1994)" codeoff%(1) = &2DF0 &endlstoff%(1) = &3088 0workspcoff%(1) = &3204 : first_opcode%(1) = &E92D000F Dnumbtrans%(1) = 8 Nnameoff%(1) = &3064 X b� CDFS 2.23 l/version$(2) = "CDFS2.23 (10 Aug 1994)" vcodeoff%(2) = &2FB4 �endlstoff%(2) = &3254 �workspcoff%(2) = &33D8 � first_opcode%(2) = &E92D000F �numbtrans%(2) = 9 �nameoff%(2) = &3228 � �� CDFS 2.30d �0version$(3) = "CDFS2.30d (07 Sep 1994)" �codeoff%(3) = &307C �endlstoff%(3) = &3318 �workspcoff%(3) = &3498 � first_opcode%(3) = &E92D000F �numbtrans%(3) = 9 nameoff%(3) = &32F0 � CDFS 2.30e 0version$(4) = "CDFS2.30e (19 Sep 1994)" *codeoff%(4) = &3088 4endlstoff%(4) = &3328 >workspcoff%(4) = &34AC H first_opcode%(4) = &E92D000F Rnumbtrans%(4) = 10 \nameoff%(4) = &32FC f p� setup for CDFS2.28 z/version$(5) = "CDFS2.28 (28 Feb 1995)" �codeoff%(5) = &2DA8 �endlstoff%(5) = &3040 �workspcoff%(5) = &31B8 � first_opcode%(5) = &E92D000F �numbtrans%(5) = 8 �nameoff%(5) = &301C � �� setup for CDFS2.21Y �0version$(6) = "CDFS2.21Y (23 Feb 1994)" �codeoff%(6) = &2DFC �endlstoff%(6) = &3094 �workspcoff%(6) = &3210 � first_opcode%(6) = &E92D000F numbtrans%(6) = 8 nameoff%(6) = &3070 $DBase% = �getbaseCDFS : � absolute address of start of module. . 8.� Check for CDFS in ROM... (move into RAM) B� Base%>&3000000 � L �("RMFaster CDFS") V Base% = �getbaseCDFS `� j t?� find CDFS version & set up default parameters accordingly ~VERSION$ = "" � vers% = 0 �� �; � �checkVersCDFS( Base%+Base%!20, version$(vers%) ) � �& VERSION$ = version$(vers%) �& CODEOFF = codeoff%(vers%) �( ENDLSTOFF = endlstoff%(vers%) �) WORKSPCOFF = workspcoff%(vers%) �+ FIRST_OPCODE = first_opcode%(vers%) �( numbTRANS = numbtrans%(vers%) �& nameOFF = nameoff%(vers%) �W typOFF = nameOFF+(numbTRANS+1)*4 :� Offset of start of RiscOS filetypes(hex) � � vers% += 1 � -� (VERSION$ <> "") � (vers% = numb_vers%) >� (VERSION$ = "") � � � 27, "CDFS-Version not supported":� ( 2C� now we have setup correct presets we can start program proper <� Data 256 F � Com$(3) P Z!� set translation list values d� � �virginCDFS � nS � my code in CDFS so get list's length & pointers that I saved on generation x$ numbTRANS = !(Base%+CODEOFF+4) �$ nameOFF = !(Base%+CODEOFF+8) �% typOFF = !(Base%+CODEOFF+12) �� � �%� get any command string & put in �� com$(0) = command �"� com$(1) = option1 [optional] �"� com$(2) = option2 [optional] ��getCommand � �Ȏ �Com$(0),2) � � � "-S":�standard � � "-U":�User(Com$(1)) " � "-A":�Add(Com$(1),Com$(2)) � "-R":�Remove(Com$(1)) � "-C":�Clear " � "-L":�List , 6 � "Wrong Option ..." @ �Usage J� T ^� h r |ݤvirginCDFS �$= (Base%!CODEOFF = FIRST_OPCODE) � � �&� set file translations to default �!� assemble my new code first ���standard �#� I%, Count, DosTyp$, ArchiTyp$ � �makecode � � Count �) � Count>numbTRANS � Count=numbTRANS � � I%=0 � Count-1 � � DosTyp$,ArchiTyp$ �' �SetTrans(I%,DosTyp$,ArchiTyp$) � I% �SetTrans(Count,"","000") � 9 & � "DOC","FFF" 0 � "TXT","FFF" : � "BAT","FDA" D � "EXE","FD9" N � "BIN","FFD" X � "TIF","FF0" b � "COM","FD8" l � "PCD","BE8" v � "LBM","693" �� � ���SetTrans(I%,A$,B$) �( $Data=�A$+�(0)+�(0)+�(0),3)+�(0) �( ș "OS_FSControl",31,B$ �,,Type% � �# !(Base%+nameOFF+I%*4)=!Data �" !(Base%+typOFF+I%*4)=Type% �� � �ݤGetTransDos(I%) �� A$,J% �J%=Base%+nameOFF+I%*4 A$="" ȕ (?J%>31) A$+=�(?J%) J%+=1 *� 4=A$ > HݤGetTransArchi(I%) R=!(Base%+typOFF+I%*4) \ fݤTranslate(I%) p � t1%,t2%,J% z J%=�GetTransArchi(I%) �+ ș "OS_FSControl",18,,J%� ,,t1%,t2% � Data!0=t1% � Data!4=t2% � Data?8=13 � =$Data � � �$� add a new filetype translation �,� if CDFS is virgin, setup my code first ���Add(A$,B$) �D� A$="" � B$="" � � "Wrong number of arguments - 2 needed !!!":� �� I% �! � �virginCDFS � �standard I%=0 ! ȕ (�GetTransDos(I%)<>"") I%+=1 $ � . � I%<numbTRANS � 8 �SetTrans(I%,A$,B$) B# �SetTrans(I%+1,"","&000") L � VC � "Sorry only "+�(numbTRANS)+" Translations possible !!!" ` � j� t ~��Clear �! � �virginCDFS � �standard � �SetTrans(0,"","&000") �� � ���Remove(A$) �<� A$="" � � "Wrong number of arguments - 1 needed !!!":� �� I%,B$,C%,D$ �! � �virginCDFS � �standard � I%=0 � B$=�GetTransDos(I%) � ȕ (B$<>"" � B$<>A$) � I%+=1 B$=�GetTransDos(I%) � � B$="" � ; � "Dostype "+A$+" not found in translation-table" ( � 2 � <! C$=�GetTransDos(I%+1) F D$=�Translate(I%+1) P �SetTrans(I%,C$,D$) Z I%+=1 d � C$="" n � x� � ���User(File$) �?� File$="" � � "Wrong number of arguments - 1 needed !!!":� �A%=�(File$) �4� A%=0 � � "File "+File$+" does not exist !!!":� �� �virginCDFS � �standard � �J%=0 �� � A$=�#A% � ȕ �A$,1) = " " � A$=�A$,2) � � B$="" I%=1 � " B$+=�A$,I%,1) , I%+=1 6 � �A$+" ",I%,1)=" " @ B$=�B$+" ",3) J C$="" T � ^ I%+=1 h � �A$+"*",I%,1)>" " r � | C$+=�A$,I%,1) � I%+=1 � � �A$+" ",I%)=" " � � J%<numbTRANS+1 � � �SetTrans(J%,B$,C$) � J%+=1 � � �K � "Sorry only "+�numbTRANS+" Translations possible !!!":�#A%=�#A%+1 � � � � �#A% ��SetTrans(J%,"","&000") ��#A% �� � ��List � K% K%=0 & � 0 � " CDFS" : � "type translation:-" D � "Dos/CD -> RiscOS" N� PRINT "----------------" X ȕ (�GetTransDos(K%)<>"") b= � �" "+�GetTransDos(K%)+�11," "), 11)+�Translate(K%) l K%+=1 v � �% � K%=0 � � "No translations!!!" �� � ���makecode �� pass%, code%, endlists% �! code% = Base% + CODEOFF �# endlists% = Base% + ENDLSTOFF � � � pass% = 0 � 2 � 2 � P% = code% � [ opt pass% � � ; on entry : ; R0 = pointer to filename with terminating 0 ! ; R12 = private word C MOV PC, R14 ; Only included initially in case call *J ; is made in the middle of me generating code 4K ; after all code is generated it is changed to >+ ; B newstart H R< EQUD numbTRANS ; items in the translation list \G EQUD nameOFF ; relative address of start of extent list fI EQUD typOFF ; relative address of start of filetype list p z .newstart �! STMDB R13!,{R0-R1} �* LDR R1,(Base%+WORKSPCOFF) � ADD R1,R1,R12 �@ MOV R11,R1 ;R11 = private workspace �! LDMIA R13!,{R0-R1} � �" ; get filename extent � MOV R3,R0 � � .loop1 � LDRB R1,[R3],#1 � TEQ R1,#0 �% LDMEQIA R13!,{R0-R9,R14} �Q R1,#0 O BICEQS PC,R14,#&10000000 ; exit if null filename or no extension . TEQ R1,#&2E ; ="." $ BNE loop1 . MOV R7,R3 8 B .loop2 L LDRB R1,[R7],#1 V TEQ R1,#0 ` BNE loop2 j ADD R6,R3,#3 t CMP R7,R6 ~% LDMLEIA R13!,{R0-R9,R14} � MOVLE R1,#0 �L BICLES PC,R14,#&10000000 ; exit if extent is not 3 characters � �& ;got, R3 points to extent � �7 ;now see if it can be found in extent list � �= ADR R4,extents ;start of extent list �= MOV R6,#0 ;R6 = index into list � SUB R7,R7,#1 � � .nxt_ext1 LDRB R1,[R4],#0 TEQ R1,#0 % LDMEQIA R13!,{R0-R9,R14} �Q R1,#0 (B BICEQS PC,R14,#&10000000 ;exit if not found in list 2 MOV R5,R3 < F/ ;R5 = pointer to filename's extent P Z .nxt_ext2 d LDRB R2,[R5],#1 n. CMP R2,#&61 ; ="a" x. RSBGES R14,R2,#&7A ; ="z" �. SUBGE R2,R2,#&20 ; =" " � LDRB R1,[R4],#1 � �" ;R2=filename's extent � ;R1=extent from � � TEQ R1,#0 � TEQEQ R2,#0 � BEQ found � � TEQ R2,R1 � BNE notthisone � TEQ R5,R7 BNE nxt_ext2 .found "= �adr(0,filetypes) ;start of filetype list ,& LDR R1,[R0,R6,LSL #2] 6 MOV R10,R1 @% LDMIA R13!,{R0-R9,R14} J MOV R1,R10 T& BICS PC,R14,#&10000000 ^ h/ ;set R1= start of next file extent r% ; & increment index (R6) | � .notthisone � TEQ R1,#0 � LDRNEB R1,[R4],#1 � BNE notthisone � ADD R6,R6,#1 � B nxt_ext1 � � EQUD 0 �F .extents ;start of list of extents, terminated by word=0 � � ] � �! � start of filetypes list ) numbTRANS = (endlists%-extents)/8 / filetypes = extents + 4*(numbTRANS + 1) ! nameOFF = extents-Base% &# typOFF = filetypes-Base% 0 � pass% : D8 � now all code is generated allow it to be entered N � pass% = 0 � 2 � 2 X P% = code% b [ opt pass% l B newstart v ] � � pass% �� � � �ݤgetbaseCDFS �� Base% �. ș "XOS_Module",18,"CDFS"�,,,Base%;flag% � � flag%�1 � � �= Base% � �,ݤcheckVersCDFS( VersPtr%, VersNeeded$ ) �� CurrVers$ � CurrVers$="" � � (?VersPtr%)>31 � ! CurrVers$+=�(?VersPtr%) � * VersPtr%+=1 4 � ?VersPtr%=0 >= (CurrVers$ = VersNeeded$) H R \%� get any command string & put in f� com$(0) = command p#� com$(1) = option1 [optionlal] z"� com$(2) = option2 [optional] ���getCommand �� I%, J%, found%, Env$ � ș "OS_GetEnv"� I% � found%=0 � � � � ?I%=34 � found%+=1 � I%+=1 � � (found%=2)�(?I%=0) � I%+=1 � � ?I%=0 � �Usage:� � Env$="" � � �2 � (?I%<123 � ?I%>96) � ?I%=?I% � %11011111 Env$+=�(?I%) I%+=1 � ?I%=0 $ I%=0 . � 8 J%=�Env$," ") B � J%<>0 � L Com$(I%)=�Env$,J%) V Env$=�Env$,J%+1) ` I%+=1 j � t Com$(I%)=Env$ ~ I%=-1 � � � � I%=-1 � I%>3 �� � � � ���Usage �"� "CDType <command> [options]" �� "Where <Command> may be:" �;� "-Standard - reset CDFS-translation-table" �>� "-User [<file>] - set CDFS-user-translation-table" �2� " to table in <file>" 3� "-Add <Dos> <RiscOS> - add a translation:- " 9� " <DosType> to <RiscOSType>" 4� "-Remove <DosType> - remove <DosType> from" 1� " translation-table" (:� "-Clear - clear the translation-table" 25� "-List - List translation-table" <� F� P Z� �adr(s%,x%) d6� The instruction sequence must be of FIXED length na%=x%-P%-8 x� (pass% � 2) � � � a%>=0 � � [OPT pass% �" ADD s%,PC,#(a% � &000003FC) �" ADD s%,s%,#(a% � &FFFFFC00) � ] � � � a%=-a% � [OPT pass% �" SUB s%,PC,#(a% � &000003FC) �" SUB s%,s%,#(a% � &FFFFFC00) � ] � � �� P%+=8:O%+=8 � ="" "� �
00000000 0d 00 0a 0d f4 20 3e 43 44 54 79 70 65 0d 00 14 |..... >CDType...| 00000010 05 f4 0d 00 1e 1f f4 20 4f 72 69 67 69 6e 61 6c |....... Original| 00000020 20 62 79 3a 20 4d 61 72 74 69 6e 20 53 70 65 72 | by: Martin Sper| 00000030 6c 0d 00 28 24 f4 20 20 20 20 20 20 20 20 20 20 |l..($. | 00000040 20 20 20 20 4e 61 74 74 65 72 67 61 73 73 65 20 | Nattergasse | 00000050 31 32 2f 33 32 0d 00 32 20 f4 20 20 20 20 20 20 |12/32..2 . | 00000060 20 20 20 20 20 20 20 20 41 2d 31 31 37 30 20 56 | A-1170 V| 00000070 69 65 6e 6e 61 0d 00 3c 1a f4 20 20 20 20 20 20 |ienna..<.. | 00000080 20 20 20 20 20 20 20 20 41 75 73 74 72 69 61 0d | Austria.| 00000090 00 46 05 f4 0d 00 50 26 f4 20 43 6f 6e 74 61 63 |.F....P&. Contac| 000000a0 74 3a 20 20 20 20 20 46 69 64 6f 20 20 20 3a 20 |t: Fido : | 000000b0 32 3a 33 31 33 2f 31 36 2e 36 0d 00 5a 34 f4 20 |2:313/16.6..Z4. | 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 45 2d 4d | E-M| 000000d0 61 69 6c 20 3a 20 53 70 65 72 6c 40 41 73 74 72 |ail : Sperl@Astr| 000000e0 6f 31 2e 61 75 6e 69 77 2e 61 63 2e 61 74 0d 00 |o1.auniw.ac.at..| 000000f0 64 05 f4 0d 00 6e 20 f4 20 53 69 67 6e 69 66 69 |d....n . Signifi| 00000100 63 61 6e 74 6c 79 20 63 68 61 6e 67 65 64 20 62 |cantly changed b| 00000110 79 3a 2d 0d 00 78 2b f4 20 20 20 20 20 20 20 20 |y:-..x+. | 00000120 20 20 20 20 20 20 4d 69 6b 65 20 4d 61 72 74 69 | Mike Marti| 00000130 6e 20 28 20 53 6f 66 74 63 6f 72 6e 20 29 0d 00 |n ( Softcorn )..| 00000140 82 43 f4 20 20 20 20 20 20 20 20 20 20 20 20 20 |.C. | 00000150 20 20 20 20 20 20 4e 6f 77 20 61 6c 6c 6f 77 73 | Now allows| 00000160 20 6c 6f 74 73 20 6f 66 20 66 69 6c 65 74 79 70 | lots of filetyp| 00000170 65 73 20 74 6f 20 62 65 20 64 65 66 69 6e 65 64 |es to be defined| 00000180 2e 0d 00 8c 43 f4 20 20 20 20 20 20 20 20 20 20 |....C. | 00000190 20 20 20 20 20 20 20 20 20 49 74 20 61 63 68 69 | It achi| 000001a0 65 76 65 73 20 74 68 69 73 20 62 79 20 72 65 2d |eves this by re-| 000001b0 77 72 69 74 69 6e 67 20 74 68 65 20 77 68 6f 6c |writing the whol| 000001c0 65 20 6f 66 0d 00 96 41 f4 20 20 20 20 20 20 20 |e of...A. | 000001d0 20 20 20 20 20 20 20 20 20 20 20 20 41 63 6f 72 | Acor| 000001e0 6e 27 73 20 66 75 6e 63 74 69 6f 6e 20 66 6f 72 |n's function for| 000001f0 20 22 43 44 46 53 5f 47 69 76 65 46 69 6c 65 54 | "CDFS_GiveFileT| 00000200 79 70 65 22 2e 0d 00 a0 05 f4 0d 00 aa 43 f4 20 |ype".........C. | 00000210 49 6e 73 69 67 6e 69 66 69 63 61 6e 74 6c 79 20 |Insignificantly | 00000220 63 68 61 6e 67 65 64 20 62 79 20 52 6f 62 69 6e |changed by Robin| 00000230 20 57 61 74 74 73 20 28 30 33 2f 30 37 2f 39 35 | Watts (03/07/95| 00000240 29 20 2d 20 28 31 38 2f 39 2f 39 35 29 0d 00 b4 |) - (18/9/95)...| 00000250 41 f4 20 74 6f 20 63 6f 70 65 20 77 69 74 68 20 |A. to cope with | 00000260 6d 6f 72 65 20 43 44 46 53 20 76 65 72 73 69 6f |more CDFS versio| 00000270 6e 73 2c 20 61 6e 64 20 74 6f 20 77 6f 72 6b 20 |ns, and to work | 00000280 4f 4b 20 69 66 20 74 68 65 20 43 44 46 53 0d 00 |OK if the CDFS..| 00000290 be 3a f4 20 6d 6f 64 75 6c 65 20 69 73 20 72 65 |.:. module is re| 000002a0 73 69 64 65 6e 74 20 69 6e 20 52 4f 4d 2e 20 4e |sident in ROM. N| 000002b0 6f 77 20 73 75 70 70 6f 72 74 73 3a 20 32 2e 32 |ow supports: 2.2| 000002c0 30 2c 20 32 2e 32 31 2c 0d 00 c8 41 f4 20 32 2e |0, 2.21,...A. 2.| 000002d0 32 31 59 2c 20 32 2e 32 33 2c 20 32 2e 32 38 2c |21Y, 2.23, 2.28,| 000002e0 20 32 2e 33 30 64 2c 20 32 2e 33 30 65 2e 20 49 | 2.30d, 2.30e. I| 000002f0 66 20 79 6f 75 20 68 61 76 65 20 61 20 76 65 72 |f you have a ver| 00000300 73 69 6f 6e 20 74 68 61 74 0d 00 d2 2d f4 20 64 |sion that...-. d| 00000310 6f 65 73 6e 27 74 20 77 6f 72 6b 2c 20 74 68 65 |oesn't work, the| 00000320 6e 20 70 6c 65 61 73 65 20 67 65 74 20 69 6e 20 |n please get in | 00000330 74 6f 75 63 68 21 0d 00 dc 05 f4 0d 00 e6 42 f4 |touch!........B.| 00000340 20 54 68 69 73 20 50 72 6f 67 72 61 6d 20 6d 61 | This Program ma| 00000350 79 20 62 65 20 63 6f 70 69 65 64 20 66 72 65 65 |y be copied free| 00000360 6c 79 20 61 73 20 6c 6f 6e 67 20 61 73 20 74 68 |ly as long as th| 00000370 65 20 61 62 6f 76 65 20 6c 69 6e 65 73 0d 00 f0 |e above lines...| 00000380 15 f4 20 5f 61 72 65 5f 20 69 6e 63 6c 75 64 65 |.. _are_ include| 00000390 64 2e 0d 00 fa 04 0d 01 04 2f f4 20 73 65 74 75 |d......../. setu| 000003a0 70 20 70 72 65 73 65 74 73 20 66 6f 72 20 64 69 |p presets for di| 000003b0 66 66 65 72 65 6e 74 20 43 44 46 53 20 76 65 72 |fferent CDFS ver| 000003c0 73 69 6f 6e 73 0d 01 0e 28 f4 20 69 2e 65 2e 20 |sions...(. i.e. | 000003d0 6f 66 66 73 65 74 73 2f 76 61 6c 75 65 73 20 69 |offsets/values i| 000003e0 6e 20 76 69 72 67 69 6e 20 43 44 46 53 0d 01 18 |n virgin CDFS...| 000003f0 41 f4 20 69 66 20 79 6f 75 72 73 20 69 73 20 6e |A. if yours is n| 00000400 6f 74 20 69 6e 20 74 68 65 20 6c 69 73 74 20 62 |ot in the list b| 00000410 65 6c 6f 77 20 79 6f 75 20 70 72 6f 62 61 62 6c |elow you probabl| 00000420 79 20 6f 6e 6c 79 20 68 61 76 65 20 74 6f 0d 01 |y only have to..| 00000430 22 2e f4 20 61 64 64 20 74 68 65 20 63 6f 72 72 |".. add the corr| 00000440 65 63 74 20 76 61 6c 75 65 73 20 66 6f 72 20 79 |ect values for y| 00000450 6f 75 72 20 76 65 72 73 69 6f 6e 2e 0d 01 2c 04 |our version...,.| 00000460 0d 01 36 1b ee 20 85 20 f1 f6 24 3b 22 20 61 74 |..6.. . ..$;" at| 00000470 20 6c 69 6e 65 20 22 3b 9e 3a e0 0d 01 40 04 0d | line ";.:...@..| 00000480 01 4a 10 6e 75 6d 62 5f 76 65 72 73 25 3d 37 0d |.J.numb_vers%=7.| 00000490 01 54 1a de 20 76 65 72 73 69 6f 6e 24 28 6e 75 |.T.. version$(nu| 000004a0 6d 62 5f 76 65 72 73 25 29 0d 01 5e 1a de 20 63 |mb_vers%)..^.. c| 000004b0 6f 64 65 6f 66 66 25 28 6e 75 6d 62 5f 76 65 72 |odeoff%(numb_ver| 000004c0 73 25 29 0d 01 68 1c de 20 65 6e 64 6c 73 74 6f |s%)..h.. endlsto| 000004d0 66 66 25 28 6e 75 6d 62 5f 76 65 72 73 25 29 0d |ff%(numb_vers%).| 000004e0 01 72 1d de 20 77 6f 72 6b 73 70 63 6f 66 66 25 |.r.. workspcoff%| 000004f0 28 6e 75 6d 62 5f 76 65 72 73 25 29 0d 01 7c 1f |(numb_vers%)..|.| 00000500 de 20 66 69 72 73 74 5f 6f 70 63 6f 64 65 25 28 |. first_opcode%(| 00000510 6e 75 6d 62 5f 76 65 72 73 25 29 0d 01 86 1c de |numb_vers%).....| 00000520 20 6e 75 6d 62 74 72 61 6e 73 25 28 6e 75 6d 62 | numbtrans%(numb| 00000530 5f 76 65 72 73 25 29 0d 01 90 1a de 20 6e 61 6d |_vers%)..... nam| 00000540 65 6f 66 66 25 28 6e 75 6d 62 5f 76 65 72 73 25 |eoff%(numb_vers%| 00000550 29 0d 01 9a 04 0d 01 a4 18 f4 20 73 65 74 75 70 |)......... setup| 00000560 20 66 6f 72 20 43 44 46 53 32 2e 32 30 0d 01 ae | for CDFS2.20...| 00000570 2f 76 65 72 73 69 6f 6e 24 28 30 29 20 20 20 20 |/version$(0) | 00000580 20 20 3d 20 22 43 44 46 53 32 2e 32 30 20 28 32 | = "CDFS2.20 (2| 00000590 33 20 53 65 70 20 31 39 39 33 29 22 0d 01 b8 4f |3 Sep 1993)"...O| 000005a0 63 6f 64 65 6f 66 66 25 28 30 29 20 20 20 20 20 |codeoff%(0) | 000005b0 20 3d 20 26 32 44 46 30 20 20 20 20 20 3a 20 f4 | = &2DF0 : .| 000005c0 20 6f 66 66 73 65 74 20 6f 66 20 73 74 61 72 74 | offset of start| 000005d0 20 6f 66 20 43 44 46 53 5f 47 69 76 65 46 69 6c | of CDFS_GiveFil| 000005e0 65 54 79 70 65 20 63 6f 64 65 2e 0d 01 c2 50 65 |eType code....Pe| 000005f0 6e 64 6c 73 74 6f 66 66 25 28 30 29 20 20 20 20 |ndlstoff%(0) | 00000600 3d 20 26 33 30 38 38 20 20 20 20 20 3a 20 f4 20 |= &3088 : . | 00000610 65 6e 64 20 6f 66 20 74 72 61 6e 73 6c 61 74 69 |end of translati| 00000620 6f 6e 20 6c 69 73 74 20 28 61 66 74 65 72 20 52 |on list (after R| 00000630 69 73 63 4f 53 20 68 65 78 29 2e 0d 01 cc 54 77 |iscOS hex)....Tw| 00000640 6f 72 6b 73 70 63 6f 66 66 25 28 30 29 20 20 20 |orkspcoff%(0) | 00000650 3d 20 26 33 32 30 34 20 20 20 20 20 3a 20 f4 20 |= &3204 : . | 00000660 6f 66 66 73 65 74 20 6f 66 20 57 6f 72 64 20 68 |offset of Word h| 00000670 6f 6c 64 69 6e 67 20 2d 20 77 6f 72 6b 73 70 61 |olding - workspa| 00000680 63 65 20 6f 66 66 73 65 74 20 75 73 65 64 2e 0d |ce offset used..| 00000690 01 d6 50 66 69 72 73 74 5f 6f 70 63 6f 64 65 25 |..Pfirst_opcode%| 000006a0 28 30 29 20 3d 20 26 45 39 32 44 30 30 30 46 20 |(0) = &E92D000F | 000006b0 3a 20 f4 20 76 61 6c 75 65 20 6f 66 20 66 69 72 |: . value of fir| 000006c0 73 74 20 6f 70 63 6f 64 65 20 69 6e 20 43 44 46 |st opcode in CDF| 000006d0 53 5f 47 69 76 65 46 69 6c 65 54 79 70 65 2e 0d |S_GiveFileType..| 000006e0 01 e0 3d 20 20 f4 20 74 68 65 73 65 20 61 72 65 |..= . these are| 000006f0 20 63 68 61 6e 67 65 64 20 69 66 20 6d 6f 64 75 | changed if modu| 00000700 6c 65 20 69 73 2c 20 6f 72 20 68 61 73 20 62 65 |le is, or has be| 00000710 65 6e 2c 20 63 68 61 6e 67 65 64 2e 0d 01 ea 51 |en, changed....Q| 00000720 6e 75 6d 62 74 72 61 6e 73 25 28 30 29 20 20 20 |numbtrans%(0) | 00000730 20 3d 20 38 20 20 20 20 20 20 20 20 20 3a 20 f4 | = 8 : .| 00000740 20 6e 75 6d 62 65 72 20 6f 66 20 65 6e 74 72 69 | number of entri| 00000750 65 73 20 69 6e 20 6d 6f 64 75 6c 65 73 20 74 72 |es in modules tr| 00000760 61 6e 73 6c 61 74 65 20 74 61 62 6c 65 0d 01 f4 |anslate table...| 00000770 4e 6e 61 6d 65 6f 66 66 25 28 30 29 20 20 20 20 |Nnameoff%(0) | 00000780 20 20 3d 20 26 33 30 36 34 20 20 20 20 20 3a 20 | = &3064 : | 00000790 f4 20 6f 66 66 73 65 74 20 6f 66 20 73 74 61 72 |. offset of star| 000007a0 74 20 6f 66 20 44 4f 53 20 6e 61 6d 65 20 70 61 |t of DOS name pa| 000007b0 72 74 20 6f 66 20 74 61 62 6c 65 0d 01 fe 04 0d |rt of table.....| 000007c0 02 08 37 f4 20 73 65 74 75 70 20 66 6f 72 20 43 |..7. setup for C| 000007d0 44 46 53 32 2e 32 31 20 20 28 61 63 74 75 61 6c |DFS2.21 (actual| 000007e0 6c 79 2c 20 69 64 65 6e 74 69 63 61 6c 20 74 6f |ly, identical to| 000007f0 20 32 2e 32 30 29 0d 02 12 2f 76 65 72 73 69 6f | 2.20).../versio| 00000800 6e 24 28 31 29 20 20 20 20 20 20 3d 20 22 43 44 |n$(1) = "CD| 00000810 46 53 32 2e 32 31 20 28 30 32 20 46 65 62 20 31 |FS2.21 (02 Feb 1| 00000820 39 39 34 29 22 0d 02 1c 1c 63 6f 64 65 6f 66 66 |994)"....codeoff| 00000830 25 28 31 29 20 20 20 20 20 20 3d 20 26 32 44 46 |%(1) = &2DF| 00000840 30 0d 02 26 1c 65 6e 64 6c 73 74 6f 66 66 25 28 |0..&.endlstoff%(| 00000850 31 29 20 20 20 20 3d 20 26 33 30 38 38 0d 02 30 |1) = &3088..0| 00000860 1c 77 6f 72 6b 73 70 63 6f 66 66 25 28 31 29 20 |.workspcoff%(1) | 00000870 20 20 3d 20 26 33 32 30 34 0d 02 3a 20 66 69 72 | = &3204..: fir| 00000880 73 74 5f 6f 70 63 6f 64 65 25 28 31 29 20 3d 20 |st_opcode%(1) = | 00000890 26 45 39 32 44 30 30 30 46 0d 02 44 18 6e 75 6d |&E92D000F..D.num| 000008a0 62 74 72 61 6e 73 25 28 31 29 20 20 20 20 3d 20 |btrans%(1) = | 000008b0 38 0d 02 4e 1c 6e 61 6d 65 6f 66 66 25 28 31 29 |8..N.nameoff%(1)| 000008c0 20 20 20 20 20 20 3d 20 26 33 30 36 34 0d 02 58 | = &3064..X| 000008d0 04 0d 02 62 0f f4 20 43 44 46 53 20 32 2e 32 33 |...b.. CDFS 2.23| 000008e0 0d 02 6c 2f 76 65 72 73 69 6f 6e 24 28 32 29 20 |..l/version$(2) | 000008f0 20 20 20 20 20 3d 20 22 43 44 46 53 32 2e 32 33 | = "CDFS2.23| 00000900 20 28 31 30 20 41 75 67 20 31 39 39 34 29 22 0d | (10 Aug 1994)".| 00000910 02 76 1c 63 6f 64 65 6f 66 66 25 28 32 29 20 20 |.v.codeoff%(2) | 00000920 20 20 20 20 3d 20 26 32 46 42 34 0d 02 80 1c 65 | = &2FB4....e| 00000930 6e 64 6c 73 74 6f 66 66 25 28 32 29 20 20 20 20 |ndlstoff%(2) | 00000940 3d 20 26 33 32 35 34 0d 02 8a 1c 77 6f 72 6b 73 |= &3254....works| 00000950 70 63 6f 66 66 25 28 32 29 20 20 20 3d 20 26 33 |pcoff%(2) = &3| 00000960 33 44 38 0d 02 94 20 66 69 72 73 74 5f 6f 70 63 |3D8... first_opc| 00000970 6f 64 65 25 28 32 29 20 3d 20 26 45 39 32 44 30 |ode%(2) = &E92D0| 00000980 30 30 46 0d 02 9e 18 6e 75 6d 62 74 72 61 6e 73 |00F....numbtrans| 00000990 25 28 32 29 20 20 20 20 3d 20 39 0d 02 a8 1c 6e |%(2) = 9....n| 000009a0 61 6d 65 6f 66 66 25 28 32 29 20 20 20 20 20 20 |ameoff%(2) | 000009b0 3d 20 26 33 32 32 38 0d 02 b2 04 0d 02 bc 10 f4 |= &3228.........| 000009c0 20 43 44 46 53 20 32 2e 33 30 64 0d 02 c6 30 76 | CDFS 2.30d...0v| 000009d0 65 72 73 69 6f 6e 24 28 33 29 20 20 20 20 20 20 |ersion$(3) | 000009e0 3d 20 22 43 44 46 53 32 2e 33 30 64 20 28 30 37 |= "CDFS2.30d (07| 000009f0 20 53 65 70 20 31 39 39 34 29 22 0d 02 d0 1c 63 | Sep 1994)"....c| 00000a00 6f 64 65 6f 66 66 25 28 33 29 20 20 20 20 20 20 |odeoff%(3) | 00000a10 3d 20 26 33 30 37 43 0d 02 da 1c 65 6e 64 6c 73 |= &307C....endls| 00000a20 74 6f 66 66 25 28 33 29 20 20 20 20 3d 20 26 33 |toff%(3) = &3| 00000a30 33 31 38 0d 02 e4 1c 77 6f 72 6b 73 70 63 6f 66 |318....workspcof| 00000a40 66 25 28 33 29 20 20 20 3d 20 26 33 34 39 38 0d |f%(3) = &3498.| 00000a50 02 ee 20 66 69 72 73 74 5f 6f 70 63 6f 64 65 25 |.. first_opcode%| 00000a60 28 33 29 20 3d 20 26 45 39 32 44 30 30 30 46 0d |(3) = &E92D000F.| 00000a70 02 f8 18 6e 75 6d 62 74 72 61 6e 73 25 28 33 29 |...numbtrans%(3)| 00000a80 20 20 20 20 3d 20 39 0d 03 02 1c 6e 61 6d 65 6f | = 9....nameo| 00000a90 66 66 25 28 33 29 20 20 20 20 20 20 3d 20 26 33 |ff%(3) = &3| 00000aa0 32 46 30 0d 03 0c 04 0d 03 16 10 f4 20 43 44 46 |2F0......... CDF| 00000ab0 53 20 32 2e 33 30 65 0d 03 20 30 76 65 72 73 69 |S 2.30e.. 0versi| 00000ac0 6f 6e 24 28 34 29 20 20 20 20 20 20 3d 20 22 43 |on$(4) = "C| 00000ad0 44 46 53 32 2e 33 30 65 20 28 31 39 20 53 65 70 |DFS2.30e (19 Sep| 00000ae0 20 31 39 39 34 29 22 0d 03 2a 1c 63 6f 64 65 6f | 1994)"..*.codeo| 00000af0 66 66 25 28 34 29 20 20 20 20 20 20 3d 20 26 33 |ff%(4) = &3| 00000b00 30 38 38 0d 03 34 1c 65 6e 64 6c 73 74 6f 66 66 |088..4.endlstoff| 00000b10 25 28 34 29 20 20 20 20 3d 20 26 33 33 32 38 0d |%(4) = &3328.| 00000b20 03 3e 1c 77 6f 72 6b 73 70 63 6f 66 66 25 28 34 |.>.workspcoff%(4| 00000b30 29 20 20 20 3d 20 26 33 34 41 43 0d 03 48 20 66 |) = &34AC..H f| 00000b40 69 72 73 74 5f 6f 70 63 6f 64 65 25 28 34 29 20 |irst_opcode%(4) | 00000b50 3d 20 26 45 39 32 44 30 30 30 46 0d 03 52 19 6e |= &E92D000F..R.n| 00000b60 75 6d 62 74 72 61 6e 73 25 28 34 29 20 20 20 20 |umbtrans%(4) | 00000b70 3d 20 31 30 0d 03 5c 1c 6e 61 6d 65 6f 66 66 25 |= 10..\.nameoff%| 00000b80 28 34 29 20 20 20 20 20 20 3d 20 26 33 32 46 43 |(4) = &32FC| 00000b90 0d 03 66 04 0d 03 70 18 f4 20 73 65 74 75 70 20 |..f...p.. setup | 00000ba0 66 6f 72 20 43 44 46 53 32 2e 32 38 0d 03 7a 2f |for CDFS2.28..z/| 00000bb0 76 65 72 73 69 6f 6e 24 28 35 29 20 20 20 20 20 |version$(5) | 00000bc0 20 3d 20 22 43 44 46 53 32 2e 32 38 20 28 32 38 | = "CDFS2.28 (28| 00000bd0 20 46 65 62 20 31 39 39 35 29 22 0d 03 84 1c 63 | Feb 1995)"....c| 00000be0 6f 64 65 6f 66 66 25 28 35 29 20 20 20 20 20 20 |odeoff%(5) | 00000bf0 3d 20 26 32 44 41 38 0d 03 8e 1c 65 6e 64 6c 73 |= &2DA8....endls| 00000c00 74 6f 66 66 25 28 35 29 20 20 20 20 3d 20 26 33 |toff%(5) = &3| 00000c10 30 34 30 0d 03 98 1c 77 6f 72 6b 73 70 63 6f 66 |040....workspcof| 00000c20 66 25 28 35 29 20 20 20 3d 20 26 33 31 42 38 0d |f%(5) = &31B8.| 00000c30 03 a2 20 66 69 72 73 74 5f 6f 70 63 6f 64 65 25 |.. first_opcode%| 00000c40 28 35 29 20 3d 20 26 45 39 32 44 30 30 30 46 0d |(5) = &E92D000F.| 00000c50 03 ac 18 6e 75 6d 62 74 72 61 6e 73 25 28 35 29 |...numbtrans%(5)| 00000c60 20 20 20 20 3d 20 38 0d 03 b6 1c 6e 61 6d 65 6f | = 8....nameo| 00000c70 66 66 25 28 35 29 20 20 20 20 20 20 3d 20 26 33 |ff%(5) = &3| 00000c80 30 31 43 0d 03 c0 04 0d 03 ca 19 f4 20 73 65 74 |01C......... set| 00000c90 75 70 20 66 6f 72 20 43 44 46 53 32 2e 32 31 59 |up for CDFS2.21Y| 00000ca0 0d 03 d4 30 76 65 72 73 69 6f 6e 24 28 36 29 20 |...0version$(6) | 00000cb0 20 20 20 20 20 3d 20 22 43 44 46 53 32 2e 32 31 | = "CDFS2.21| 00000cc0 59 20 28 32 33 20 46 65 62 20 31 39 39 34 29 22 |Y (23 Feb 1994)"| 00000cd0 0d 03 de 1c 63 6f 64 65 6f 66 66 25 28 36 29 20 |....codeoff%(6) | 00000ce0 20 20 20 20 20 3d 20 26 32 44 46 43 0d 03 e8 1c | = &2DFC....| 00000cf0 65 6e 64 6c 73 74 6f 66 66 25 28 36 29 20 20 20 |endlstoff%(6) | 00000d00 20 3d 20 26 33 30 39 34 0d 03 f2 1c 77 6f 72 6b | = &3094....work| 00000d10 73 70 63 6f 66 66 25 28 36 29 20 20 20 3d 20 26 |spcoff%(6) = &| 00000d20 33 32 31 30 0d 03 fc 20 66 69 72 73 74 5f 6f 70 |3210... first_op| 00000d30 63 6f 64 65 25 28 36 29 20 3d 20 26 45 39 32 44 |code%(6) = &E92D| 00000d40 30 30 30 46 0d 04 06 18 6e 75 6d 62 74 72 61 6e |000F....numbtran| 00000d50 73 25 28 36 29 20 20 20 20 3d 20 38 0d 04 10 1c |s%(6) = 8....| 00000d60 6e 61 6d 65 6f 66 66 25 28 36 29 20 20 20 20 20 |nameoff%(6) | 00000d70 20 3d 20 26 33 30 37 30 0d 04 1a 04 0d 04 24 44 | = &3070......$D| 00000d80 42 61 73 65 25 20 3d 20 a4 67 65 74 62 61 73 65 |Base% = .getbase| 00000d90 43 44 46 53 20 20 20 20 3a 20 f4 20 61 62 73 6f |CDFS : . abso| 00000da0 6c 75 74 65 20 61 64 64 72 65 73 73 20 6f 66 20 |lute address of | 00000db0 73 74 61 72 74 20 6f 66 20 6d 6f 64 75 6c 65 2e |start of module.| 00000dc0 0d 04 2e 04 0d 04 38 2e f4 20 43 68 65 63 6b 20 |......8.. Check | 00000dd0 66 6f 72 20 43 44 46 53 20 69 6e 20 52 4f 4d 2e |for CDFS in ROM.| 00000de0 2e 2e 20 28 6d 6f 76 65 20 69 6e 74 6f 20 52 41 |.. (move into RA| 00000df0 4d 29 0d 04 42 16 e7 20 42 61 73 65 25 3e 26 33 |M)..B.. Base%>&3| 00000e00 30 30 30 30 30 30 20 8c 0d 04 4c 17 20 ff 28 22 |000000 ...L. .("| 00000e10 52 4d 46 61 73 74 65 72 20 43 44 46 53 22 29 0d |RMFaster CDFS").| 00000e20 04 56 19 20 42 61 73 65 25 20 3d 20 a4 67 65 74 |.V. Base% = .get| 00000e30 62 61 73 65 43 44 46 53 0d 04 60 05 cd 0d 04 6a |baseCDFS..`....j| 00000e40 04 0d 04 74 3f f4 20 66 69 6e 64 20 43 44 46 53 |...t?. find CDFS| 00000e50 20 76 65 72 73 69 6f 6e 20 26 20 73 65 74 20 75 | version & set u| 00000e60 70 20 64 65 66 61 75 6c 74 20 70 61 72 61 6d 65 |p default parame| 00000e70 74 65 72 73 20 61 63 63 6f 72 64 69 6e 67 6c 79 |ters accordingly| 00000e80 0d 04 7e 11 56 45 52 53 49 4f 4e 24 20 3d 20 22 |..~.VERSION$ = "| 00000e90 22 0d 04 88 0d 76 65 72 73 25 20 3d 20 30 0d 04 |"....vers% = 0..| 00000ea0 92 05 f5 0d 04 9c 3b 20 20 e7 20 a4 63 68 65 63 |......; . .chec| 00000eb0 6b 56 65 72 73 43 44 46 53 28 20 42 61 73 65 25 |kVersCDFS( Base%| 00000ec0 2b 42 61 73 65 25 21 32 30 2c 20 76 65 72 73 69 |+Base%!20, versi| 00000ed0 6f 6e 24 28 76 65 72 73 25 29 20 29 20 8c 0d 04 |on$(vers%) ) ...| 00000ee0 a6 26 20 20 20 20 56 45 52 53 49 4f 4e 24 20 20 |.& VERSION$ | 00000ef0 20 20 20 3d 20 76 65 72 73 69 6f 6e 24 28 76 65 | = version$(ve| 00000f00 72 73 25 29 0d 04 b0 26 20 20 20 20 43 4f 44 45 |rs%)...& CODE| 00000f10 4f 46 46 20 20 20 20 20 20 3d 20 63 6f 64 65 6f |OFF = codeo| 00000f20 66 66 25 28 76 65 72 73 25 29 0d 04 ba 28 20 20 |ff%(vers%)...( | 00000f30 20 20 45 4e 44 4c 53 54 4f 46 46 20 20 20 20 3d | ENDLSTOFF =| 00000f40 20 65 6e 64 6c 73 74 6f 66 66 25 28 76 65 72 73 | endlstoff%(vers| 00000f50 25 29 0d 04 c4 29 20 20 20 20 57 4f 52 4b 53 50 |%)...) WORKSP| 00000f60 43 4f 46 46 20 20 20 3d 20 77 6f 72 6b 73 70 63 |COFF = workspc| 00000f70 6f 66 66 25 28 76 65 72 73 25 29 0d 04 ce 2b 20 |off%(vers%)...+ | 00000f80 20 20 20 46 49 52 53 54 5f 4f 50 43 4f 44 45 20 | FIRST_OPCODE | 00000f90 3d 20 66 69 72 73 74 5f 6f 70 63 6f 64 65 25 28 |= first_opcode%(| 00000fa0 76 65 72 73 25 29 0d 04 d8 28 20 20 20 20 6e 75 |vers%)...( nu| 00000fb0 6d 62 54 52 41 4e 53 20 20 20 20 3d 20 6e 75 6d |mbTRANS = num| 00000fc0 62 74 72 61 6e 73 25 28 76 65 72 73 25 29 0d 04 |btrans%(vers%)..| 00000fd0 e2 26 20 20 20 20 6e 61 6d 65 4f 46 46 20 20 20 |.& nameOFF | 00000fe0 20 20 20 3d 20 6e 61 6d 65 6f 66 66 25 28 76 65 | = nameoff%(ve| 00000ff0 72 73 25 29 0d 04 ec 57 20 20 20 20 74 79 70 4f |rs%)...W typO| 00001000 46 46 20 20 20 20 3d 20 6e 61 6d 65 4f 46 46 2b |FF = nameOFF+| 00001010 28 6e 75 6d 62 54 52 41 4e 53 2b 31 29 2a 34 20 |(numbTRANS+1)*4 | 00001020 3a f4 20 4f 66 66 73 65 74 20 6f 66 20 73 74 61 |:. Offset of sta| 00001030 72 74 20 6f 66 20 52 69 73 63 4f 53 20 66 69 6c |rt of RiscOS fil| 00001040 65 74 79 70 65 73 28 68 65 78 29 0d 04 f6 07 20 |etypes(hex).... | 00001050 20 cc 0d 05 00 12 20 20 20 20 76 65 72 73 25 20 | ..... vers% | 00001060 2b 3d 20 31 0d 05 0a 07 20 20 cd 0d 05 14 2d fd |+= 1.... ....-.| 00001070 20 28 56 45 52 53 49 4f 4e 24 20 3c 3e 20 22 22 | (VERSION$ <> ""| 00001080 29 20 84 20 28 76 65 72 73 25 20 3d 20 6e 75 6d |) . (vers% = num| 00001090 62 5f 76 65 72 73 25 29 0d 05 1e 3e e7 20 28 56 |b_vers%)...>. (V| 000010a0 45 52 53 49 4f 4e 24 20 3d 20 22 22 29 20 8c 20 |ERSION$ = "") . | 000010b0 85 20 a2 20 32 37 2c 20 22 43 44 46 53 2d 56 65 |. . 27, "CDFS-Ve| 000010c0 72 73 69 6f 6e 20 6e 6f 74 20 73 75 70 70 6f 72 |rsion not suppor| 000010d0 74 65 64 22 3a e0 0d 05 28 04 0d 05 32 43 f4 20 |ted":...(...2C. | 000010e0 6e 6f 77 20 77 65 20 68 61 76 65 20 73 65 74 75 |now we have setu| 000010f0 70 20 63 6f 72 72 65 63 74 20 70 72 65 73 65 74 |p correct preset| 00001100 73 20 77 65 20 63 61 6e 20 73 74 61 72 74 20 70 |s we can start p| 00001110 72 6f 67 72 61 6d 20 70 72 6f 70 65 72 0d 05 3c |rogram proper..<| 00001120 0e de 20 44 61 74 61 20 32 35 36 0d 05 46 0d de |.. Data 256..F..| 00001130 20 43 6f 6d 24 28 33 29 0d 05 50 04 0d 05 5a 21 | Com$(3)..P...Z!| 00001140 f4 20 73 65 74 20 74 72 61 6e 73 6c 61 74 69 6f |. set translatio| 00001150 6e 20 6c 69 73 74 20 76 61 6c 75 65 73 0d 05 64 |n list values..d| 00001160 15 e7 20 ac 20 a4 76 69 72 67 69 6e 43 44 46 53 |.. . .virginCDFS| 00001170 20 8c 0d 05 6e 53 20 20 20 f4 20 6d 79 20 63 6f | ...nS . my co| 00001180 64 65 20 69 6e 20 43 44 46 53 20 73 6f 20 67 65 |de in CDFS so ge| 00001190 74 20 6c 69 73 74 27 73 20 6c 65 6e 67 74 68 20 |t list's length | 000011a0 26 20 70 6f 69 6e 74 65 72 73 20 74 68 61 74 20 |& pointers that | 000011b0 49 20 73 61 76 65 64 20 6f 6e 20 67 65 6e 65 72 |I saved on gener| 000011c0 61 74 69 6f 6e 0d 05 78 24 20 20 6e 75 6d 62 54 |ation..x$ numbT| 000011d0 52 41 4e 53 20 3d 20 21 28 42 61 73 65 25 2b 43 |RANS = !(Base%+C| 000011e0 4f 44 45 4f 46 46 2b 34 29 0d 05 82 24 20 20 6e |ODEOFF+4)...$ n| 000011f0 61 6d 65 4f 46 46 20 20 20 3d 20 21 28 42 61 73 |ameOFF = !(Bas| 00001200 65 25 2b 43 4f 44 45 4f 46 46 2b 38 29 0d 05 8c |e%+CODEOFF+8)...| 00001210 25 20 20 74 79 70 4f 46 46 20 20 20 20 3d 20 21 |% typOFF = !| 00001220 28 42 61 73 65 25 2b 43 4f 44 45 4f 46 46 2b 31 |(Base%+CODEOFF+1| 00001230 32 29 0d 05 96 05 cd 0d 05 a0 04 0d 05 aa 25 f4 |2)............%.| 00001240 20 67 65 74 20 61 6e 79 20 63 6f 6d 6d 61 6e 64 | get any command| 00001250 20 73 74 72 69 6e 67 20 26 20 70 75 74 20 69 6e | string & put in| 00001260 0d 05 b4 17 f4 20 63 6f 6d 24 28 30 29 20 3d 20 |..... com$(0) = | 00001270 63 6f 6d 6d 61 6e 64 0d 05 be 22 f4 20 63 6f 6d |command...". com| 00001280 24 28 31 29 20 3d 20 6f 70 74 69 6f 6e 31 20 5b |$(1) = option1 [| 00001290 6f 70 74 69 6f 6e 61 6c 5d 0d 05 c8 22 f4 20 63 |optional]...". c| 000012a0 6f 6d 24 28 32 29 20 3d 20 6f 70 74 69 6f 6e 32 |om$(2) = option2| 000012b0 20 5b 6f 70 74 69 6f 6e 61 6c 5d 0d 05 d2 0f f2 | [optional].....| 000012c0 67 65 74 43 6f 6d 6d 61 6e 64 0d 05 dc 04 0d 05 |getCommand......| 000012d0 e6 14 c8 8e 20 c0 43 6f 6d 24 28 30 29 2c 32 29 |.... .Com$(0),2)| 000012e0 20 ca 0d 05 f0 16 20 20 c9 20 22 2d 53 22 3a f2 | ..... . "-S":.| 000012f0 73 74 61 6e 64 61 72 64 0d 05 fa 1b 20 20 c9 20 |standard.... . | 00001300 22 2d 55 22 3a f2 55 73 65 72 28 43 6f 6d 24 28 |"-U":.User(Com$(| 00001310 31 29 29 0d 06 04 22 20 20 c9 20 22 2d 41 22 3a |1))..." . "-A":| 00001320 f2 41 64 64 28 43 6f 6d 24 28 31 29 2c 43 6f 6d |.Add(Com$(1),Com| 00001330 24 28 32 29 29 0d 06 0e 1d 20 20 c9 20 22 2d 52 |$(2)).... . "-R| 00001340 22 3a f2 52 65 6d 6f 76 65 28 43 6f 6d 24 28 31 |":.Remove(Com$(1| 00001350 29 29 0d 06 18 13 20 20 c9 20 22 2d 43 22 3a f2 |)).... . "-C":.| 00001360 43 6c 65 61 72 0d 06 22 12 20 20 c9 20 22 2d 4c |Clear..". . "-L| 00001370 22 3a f2 4c 69 73 74 0d 06 2c 07 20 20 7f 0d 06 |":.List..,. ...| 00001380 36 1d 20 20 20 20 20 f1 20 22 57 72 6f 6e 67 20 |6. . "Wrong | 00001390 4f 70 74 69 6f 6e 20 2e 2e 2e 22 0d 06 40 0f 20 |Option ..."..@. | 000013a0 20 20 20 20 f2 55 73 61 67 65 0d 06 4a 05 cb 0d | .Usage..J...| 000013b0 06 54 04 0d 06 5e 05 e0 0d 06 68 04 0d 06 72 04 |.T...^....h...r.| 000013c0 0d 06 7c 10 dd a4 76 69 72 67 69 6e 43 44 46 53 |..|...virginCDFS| 000013d0 0d 06 86 24 3d 20 28 42 61 73 65 25 21 43 4f 44 |...$= (Base%!COD| 000013e0 45 4f 46 46 20 3d 20 46 49 52 53 54 5f 4f 50 43 |EOFF = FIRST_OPC| 000013f0 4f 44 45 29 0d 06 90 04 0d 06 9a 04 0d 06 a4 26 |ODE)...........&| 00001400 f4 20 73 65 74 20 66 69 6c 65 20 74 72 61 6e 73 |. set file trans| 00001410 6c 61 74 69 6f 6e 73 20 74 6f 20 64 65 66 61 75 |lations to defau| 00001420 6c 74 0d 06 ae 21 f4 20 20 61 73 73 65 6d 62 6c |lt...!. assembl| 00001430 65 20 6d 79 20 6e 65 77 20 63 6f 64 65 20 66 69 |e my new code fi| 00001440 72 73 74 0d 06 b8 0e dd f2 73 74 61 6e 64 61 72 |rst......standar| 00001450 64 0d 06 c2 23 ea 20 49 25 2c 20 43 6f 75 6e 74 |d...#. I%, Count| 00001460 2c 20 44 6f 73 54 79 70 24 2c 20 41 72 63 68 69 |, DosTyp$, Archi| 00001470 54 79 70 24 0d 06 cc 0f 20 20 f2 6d 61 6b 65 63 |Typ$.... .makec| 00001480 6f 64 65 0d 06 d6 0d 20 20 f3 20 43 6f 75 6e 74 |ode.... . Count| 00001490 0d 06 e0 29 20 20 e7 20 43 6f 75 6e 74 3e 6e 75 |...) . Count>nu| 000014a0 6d 62 54 52 41 4e 53 20 8c 20 43 6f 75 6e 74 3d |mbTRANS . Count=| 000014b0 6e 75 6d 62 54 52 41 4e 53 0d 06 ea 16 20 20 e3 |numbTRANS.... .| 000014c0 20 49 25 3d 30 20 b8 20 43 6f 75 6e 74 2d 31 0d | I%=0 . Count-1.| 000014d0 06 f4 1b 20 20 20 20 f3 20 44 6f 73 54 79 70 24 |... . DosTyp$| 000014e0 2c 41 72 63 68 69 54 79 70 24 0d 06 fe 27 20 20 |,ArchiTyp$...' | 000014f0 20 20 f2 53 65 74 54 72 61 6e 73 28 49 25 2c 44 | .SetTrans(I%,D| 00001500 6f 73 54 79 70 24 2c 41 72 63 68 69 54 79 70 24 |osTyp$,ArchiTyp$| 00001510 29 0d 07 08 0a 20 20 ed 20 49 25 0d 07 12 1f 20 |).... . I%.... | 00001520 20 f2 53 65 74 54 72 61 6e 73 28 43 6f 75 6e 74 | .SetTrans(Count| 00001530 2c 22 22 2c 22 30 30 30 22 29 0d 07 1c 09 20 20 |,"","000").... | 00001540 dc 20 39 0d 07 26 13 20 20 dc 20 22 44 4f 43 22 |. 9..&. . "DOC"| 00001550 2c 22 46 46 46 22 0d 07 30 13 20 20 dc 20 22 54 |,"FFF"..0. . "T| 00001560 58 54 22 2c 22 46 46 46 22 0d 07 3a 13 20 20 dc |XT","FFF"..:. .| 00001570 20 22 42 41 54 22 2c 22 46 44 41 22 0d 07 44 13 | "BAT","FDA"..D.| 00001580 20 20 dc 20 22 45 58 45 22 2c 22 46 44 39 22 0d | . "EXE","FD9".| 00001590 07 4e 13 20 20 dc 20 22 42 49 4e 22 2c 22 46 46 |.N. . "BIN","FF| 000015a0 44 22 0d 07 58 13 20 20 dc 20 22 54 49 46 22 2c |D"..X. . "TIF",| 000015b0 22 46 46 30 22 0d 07 62 13 20 20 dc 20 22 43 4f |"FF0"..b. . "CO| 000015c0 4d 22 2c 22 46 44 38 22 0d 07 6c 13 20 20 dc 20 |M","FD8"..l. . | 000015d0 22 50 43 44 22 2c 22 42 45 38 22 0d 07 76 13 20 |"PCD","BE8"..v. | 000015e0 20 dc 20 22 4c 42 4d 22 2c 22 36 39 33 22 0d 07 | . "LBM","693"..| 000015f0 80 05 e1 0d 07 8a 04 0d 07 94 18 dd f2 53 65 74 |.............Set| 00001600 54 72 61 6e 73 28 49 25 2c 41 24 2c 42 24 29 0d |Trans(I%,A$,B$).| 00001610 07 9e 28 20 20 20 20 24 44 61 74 61 3d c0 41 24 |..( $Data=.A$| 00001620 2b bd 28 30 29 2b bd 28 30 29 2b bd 28 30 29 2c |+.(0)+.(0)+.(0),| 00001630 33 29 2b bd 28 30 29 0d 07 a8 28 20 20 20 20 c8 |3)+.(0)...( .| 00001640 99 20 22 4f 53 5f 46 53 43 6f 6e 74 72 6f 6c 22 |. "OS_FSControl"| 00001650 2c 33 31 2c 42 24 20 b8 2c 2c 54 79 70 65 25 0d |,31,B$ .,,Type%.| 00001660 07 b2 04 0d 07 bc 23 20 20 20 20 21 28 42 61 73 |......# !(Bas| 00001670 65 25 2b 6e 61 6d 65 4f 46 46 2b 49 25 2a 34 29 |e%+nameOFF+I%*4)| 00001680 3d 21 44 61 74 61 0d 07 c6 22 20 20 20 20 21 28 |=!Data..." !(| 00001690 42 61 73 65 25 2b 74 79 70 4f 46 46 2b 49 25 2a |Base%+typOFF+I%*| 000016a0 34 29 3d 54 79 70 65 25 0d 07 d0 05 e1 0d 07 da |4)=Type%........| 000016b0 04 0d 07 e4 15 dd a4 47 65 74 54 72 61 6e 73 44 |.......GetTransD| 000016c0 6f 73 28 49 25 29 0d 07 ee 0b ea 20 41 24 2c 4a |os(I%)..... A$,J| 000016d0 25 0d 07 f8 19 4a 25 3d 42 61 73 65 25 2b 6e 61 |%....J%=Base%+na| 000016e0 6d 65 4f 46 46 2b 49 25 2a 34 0d 08 02 09 41 24 |meOFF+I%*4....A$| 000016f0 3d 22 22 0d 08 0c 0f c8 95 20 28 3f 4a 25 3e 33 |=""...... (?J%>3| 00001700 31 29 0d 08 16 10 20 20 41 24 2b 3d bd 28 3f 4a |1).... A$+=.(?J| 00001710 25 29 0d 08 20 0b 20 20 4a 25 2b 3d 31 0d 08 2a |%).. . J%+=1..*| 00001720 05 ce 0d 08 34 07 3d 41 24 0d 08 3e 04 0d 08 48 |....4.=A$..>...H| 00001730 17 dd a4 47 65 74 54 72 61 6e 73 41 72 63 68 69 |...GetTransArchi| 00001740 28 49 25 29 0d 08 52 19 3d 21 28 42 61 73 65 25 |(I%)..R.=!(Base%| 00001750 2b 74 79 70 4f 46 46 2b 49 25 2a 34 29 0d 08 5c |+typOFF+I%*4)..\| 00001760 04 0d 08 66 13 dd a4 54 72 61 6e 73 6c 61 74 65 |...f...Translate| 00001770 28 49 25 29 0d 08 70 14 20 20 20 20 ea 20 74 31 |(I%)..p. . t1| 00001780 25 2c 74 32 25 2c 4a 25 0d 08 7a 1d 20 20 20 20 |%,t2%,J%..z. | 00001790 4a 25 3d a4 47 65 74 54 72 61 6e 73 41 72 63 68 |J%=.GetTransArch| 000017a0 69 28 49 25 29 0d 08 84 2b 20 20 20 20 c8 99 20 |i(I%)...+ .. | 000017b0 22 4f 53 5f 46 53 43 6f 6e 74 72 6f 6c 22 2c 31 |"OS_FSControl",1| 000017c0 38 2c 2c 4a 25 b8 20 2c 2c 74 31 25 2c 74 32 25 |8,,J%. ,,t1%,t2%| 000017d0 0d 08 8e 12 20 20 20 20 44 61 74 61 21 30 3d 74 |.... Data!0=t| 000017e0 31 25 0d 08 98 12 20 20 20 20 44 61 74 61 21 34 |1%.... Data!4| 000017f0 3d 74 32 25 0d 08 a2 11 20 20 20 20 44 61 74 61 |=t2%.... Data| 00001800 3f 38 3d 31 33 0d 08 ac 0a 3d 24 44 61 74 61 0d |?8=13....=$Data.| 00001810 08 b6 04 0d 08 c0 04 0d 08 ca 24 f4 20 61 64 64 |..........$. add| 00001820 20 61 20 6e 65 77 20 66 69 6c 65 74 79 70 65 20 | a new filetype | 00001830 74 72 61 6e 73 6c 61 74 69 6f 6e 0d 08 d4 2c f4 |translation...,.| 00001840 20 69 66 20 43 44 46 53 20 69 73 20 76 69 72 67 | if CDFS is virg| 00001850 69 6e 2c 20 73 65 74 75 70 20 6d 79 20 63 6f 64 |in, setup my cod| 00001860 65 20 66 69 72 73 74 0d 08 de 10 dd f2 41 64 64 |e first......Add| 00001870 28 41 24 2c 42 24 29 0d 08 e8 44 e7 20 41 24 3d |(A$,B$)...D. A$=| 00001880 22 22 20 84 20 42 24 3d 22 22 20 8c 20 f1 20 22 |"" . B$="" . . "| 00001890 57 72 6f 6e 67 20 6e 75 6d 62 65 72 20 6f 66 20 |Wrong number of | 000018a0 61 72 67 75 6d 65 6e 74 73 20 2d 20 32 20 6e 65 |arguments - 2 ne| 000018b0 65 64 65 64 20 21 21 21 22 3a e1 0d 08 f2 08 ea |eded !!!":......| 000018c0 20 49 25 0d 08 fc 21 20 20 20 20 e7 20 a4 76 69 | I%...! . .vi| 000018d0 72 67 69 6e 43 44 46 53 20 8c 20 f2 73 74 61 6e |rginCDFS . .stan| 000018e0 64 61 72 64 0d 09 06 0c 20 20 20 20 49 25 3d 30 |dard.... I%=0| 000018f0 0d 09 10 21 20 20 20 20 c8 95 20 28 a4 47 65 74 |...! .. (.Get| 00001900 54 72 61 6e 73 44 6f 73 28 49 25 29 3c 3e 22 22 |TransDos(I%)<>""| 00001910 29 0d 09 1a 0f 20 20 20 20 20 20 49 25 2b 3d 31 |).... I%+=1| 00001920 0d 09 24 09 20 20 20 20 ce 0d 09 2e 18 20 20 20 |..$. ..... | 00001930 20 e7 20 49 25 3c 6e 75 6d 62 54 52 41 4e 53 20 | . I%<numbTRANS | 00001940 8c 0d 09 38 1d 20 20 20 20 20 20 f2 53 65 74 54 |...8. .SetT| 00001950 72 61 6e 73 28 49 25 2c 41 24 2c 42 24 29 0d 09 |rans(I%,A$,B$)..| 00001960 42 23 20 20 20 20 20 20 f2 53 65 74 54 72 61 6e |B# .SetTran| 00001970 73 28 49 25 2b 31 2c 22 22 2c 22 26 30 30 30 22 |s(I%+1,"","&000"| 00001980 29 0d 09 4c 09 20 20 20 20 cc 0d 09 56 43 20 20 |)..L. ...VC | 00001990 20 20 20 20 f1 20 22 53 6f 72 72 79 20 6f 6e 6c | . "Sorry onl| 000019a0 79 20 22 2b c3 28 6e 75 6d 62 54 52 41 4e 53 29 |y "+.(numbTRANS)| 000019b0 2b 22 20 54 72 61 6e 73 6c 61 74 69 6f 6e 73 20 |+" Translations | 000019c0 70 6f 73 73 69 62 6c 65 20 21 21 21 22 0d 09 60 |possible !!!"..`| 000019d0 09 20 20 20 20 cd 0d 09 6a 05 e1 0d 09 74 04 0d |. ...j....t..| 000019e0 09 7e 0b dd f2 43 6c 65 61 72 0d 09 88 21 20 20 |.~...Clear...! | 000019f0 20 20 e7 20 a4 76 69 72 67 69 6e 43 44 46 53 20 | . .virginCDFS | 00001a00 8c 20 f2 73 74 61 6e 64 61 72 64 0d 09 92 1e 20 |. .standard.... | 00001a10 20 20 20 f2 53 65 74 54 72 61 6e 73 28 30 2c 22 | .SetTrans(0,"| 00001a20 22 2c 22 26 30 30 30 22 29 0d 09 9c 05 e1 0d 09 |","&000").......| 00001a30 a6 04 0d 09 b0 10 dd f2 52 65 6d 6f 76 65 28 41 |........Remove(A| 00001a40 24 29 0d 09 ba 3c e7 20 41 24 3d 22 22 20 8c 20 |$)...<. A$="" . | 00001a50 f1 20 22 57 72 6f 6e 67 20 6e 75 6d 62 65 72 20 |. "Wrong number | 00001a60 6f 66 20 61 72 67 75 6d 65 6e 74 73 20 2d 20 31 |of arguments - 1| 00001a70 20 6e 65 65 64 65 64 20 21 21 21 22 3a e1 0d 09 | needed !!!":...| 00001a80 c4 11 ea 20 49 25 2c 42 24 2c 43 25 2c 44 24 0d |... I%,B$,C%,D$.| 00001a90 09 ce 21 20 20 20 20 e7 20 a4 76 69 72 67 69 6e |..! . .virgin| 00001aa0 43 44 46 53 20 8c 20 f2 73 74 61 6e 64 61 72 64 |CDFS . .standard| 00001ab0 0d 09 d8 0c 20 20 20 20 49 25 3d 30 0d 09 e2 1b |.... I%=0....| 00001ac0 20 20 20 20 42 24 3d a4 47 65 74 54 72 61 6e 73 | B$=.GetTrans| 00001ad0 44 6f 73 28 49 25 29 0d 09 ec 1c 20 20 20 20 c8 |Dos(I%).... .| 00001ae0 95 20 28 42 24 3c 3e 22 22 20 80 20 42 24 3c 3e |. (B$<>"" . B$<>| 00001af0 41 24 29 0d 09 f6 0f 20 20 20 20 20 20 49 25 2b |A$).... I%+| 00001b00 3d 31 0d 0a 00 1d 20 20 20 20 20 20 42 24 3d a4 |=1.... B$=.| 00001b10 47 65 74 54 72 61 6e 73 44 6f 73 28 49 25 29 0d |GetTransDos(I%).| 00001b20 0a 0a 09 20 20 20 20 ce 0d 0a 14 11 20 20 20 20 |... ..... | 00001b30 e7 20 42 24 3d 22 22 20 8c 0d 0a 1e 3b 20 20 20 |. B$="" ....; | 00001b40 20 20 20 f1 20 22 44 6f 73 74 79 70 65 20 22 2b | . "Dostype "+| 00001b50 41 24 2b 22 20 6e 6f 74 20 66 6f 75 6e 64 20 69 |A$+" not found i| 00001b60 6e 20 74 72 61 6e 73 6c 61 74 69 6f 6e 2d 74 61 |n translation-ta| 00001b70 62 6c 65 22 0d 0a 28 09 20 20 20 20 cc 0d 0a 32 |ble"..(. ...2| 00001b80 0b 20 20 20 20 20 20 f5 0d 0a 3c 21 20 20 20 20 |. ...<! | 00001b90 20 20 20 20 43 24 3d a4 47 65 74 54 72 61 6e 73 | C$=.GetTrans| 00001ba0 44 6f 73 28 49 25 2b 31 29 0d 0a 46 1f 20 20 20 |Dos(I%+1)..F. | 00001bb0 20 20 20 20 20 44 24 3d a4 54 72 61 6e 73 6c 61 | D$=.Transla| 00001bc0 74 65 28 49 25 2b 31 29 0d 0a 50 1f 20 20 20 20 |te(I%+1)..P. | 00001bd0 20 20 20 20 f2 53 65 74 54 72 61 6e 73 28 49 25 | .SetTrans(I%| 00001be0 2c 43 24 2c 44 24 29 0d 0a 5a 11 20 20 20 20 20 |,C$,D$)..Z. | 00001bf0 20 20 20 49 25 2b 3d 31 0d 0a 64 11 20 20 20 20 | I%+=1..d. | 00001c00 20 20 fd 20 43 24 3d 22 22 0d 0a 6e 09 20 20 20 | . C$=""..n. | 00001c10 20 cd 0d 0a 78 05 e1 0d 0a 82 04 0d 0a 8c 11 dd | ...x...........| 00001c20 f2 55 73 65 72 28 46 69 6c 65 24 29 0d 0a 96 3f |.User(File$)...?| 00001c30 e7 20 46 69 6c 65 24 3d 22 22 20 8c 20 f1 20 22 |. File$="" . . "| 00001c40 57 72 6f 6e 67 20 6e 75 6d 62 65 72 20 6f 66 20 |Wrong number of | 00001c50 61 72 67 75 6d 65 6e 74 73 20 2d 20 31 20 6e 65 |arguments - 1 ne| 00001c60 65 64 65 64 20 21 21 21 22 3a e1 0d 0a a0 0f 41 |eded !!!":.....A| 00001c70 25 3d 8e 28 46 69 6c 65 24 29 0d 0a aa 34 e7 20 |%=.(File$)...4. | 00001c80 41 25 3d 30 20 8c 20 f1 20 22 46 69 6c 65 20 22 |A%=0 . . "File "| 00001c90 2b 46 69 6c 65 24 2b 22 20 64 6f 65 73 20 6e 6f |+File$+" does no| 00001ca0 74 20 65 78 69 73 74 20 21 21 21 22 3a e1 0d 0a |t exist !!!":...| 00001cb0 b4 1d e7 20 a4 76 69 72 67 69 6e 43 44 46 53 20 |... .virginCDFS | 00001cc0 8c 20 f2 73 74 61 6e 64 61 72 64 0d 0a be 04 0d |. .standard.....| 00001cd0 0a c8 08 4a 25 3d 30 0d 0a d2 05 f5 0d 0a dc 0d |...J%=0.........| 00001ce0 20 20 41 24 3d be 23 41 25 0d 0a e6 15 20 20 c8 | A$=.#A%.... .| 00001cf0 95 20 c0 41 24 2c 31 29 20 3d 20 22 20 22 0d 0a |. .A$,1) = " "..| 00001d00 f0 11 20 20 20 20 41 24 3d c1 41 24 2c 32 29 0d |.. A$=.A$,2).| 00001d10 0a fa 07 20 20 ce 0d 0b 04 0b 20 20 42 24 3d 22 |... ..... B$="| 00001d20 22 0d 0b 0e 0a 20 20 49 25 3d 31 0d 0b 18 07 20 |".... I%=1.... | 00001d30 20 f5 0d 0b 22 15 20 20 20 20 42 24 2b 3d c1 41 | ...". B$+=.A| 00001d40 24 2c 49 25 2c 31 29 0d 0b 2c 0d 20 20 20 20 49 |$,I%,1)..,. I| 00001d50 25 2b 3d 31 0d 0b 36 19 20 20 fd 20 c1 41 24 2b |%+=1..6. . .A$+| 00001d60 22 20 22 2c 49 25 2c 31 29 3d 22 20 22 0d 0b 40 |" ",I%,1)=" "..@| 00001d70 15 20 20 42 24 3d c0 42 24 2b 22 20 20 20 22 2c |. B$=.B$+" ",| 00001d80 33 29 0d 0b 4a 0b 20 20 43 24 3d 22 22 0d 0b 54 |3)..J. C$=""..T| 00001d90 07 20 20 f5 0d 0b 5e 0d 20 20 20 20 49 25 2b 3d |. ...^. I%+=| 00001da0 31 0d 0b 68 19 20 20 fd 20 c1 41 24 2b 22 2a 22 |1..h. . .A$+"*"| 00001db0 2c 49 25 2c 31 29 3e 22 20 22 0d 0b 72 07 20 20 |,I%,1)>" "..r. | 00001dc0 f5 0d 0b 7c 15 20 20 20 20 43 24 2b 3d c1 41 24 |...|. C$+=.A$| 00001dd0 2c 49 25 2c 31 29 0d 0b 86 0d 20 20 20 20 49 25 |,I%,1).... I%| 00001de0 2b 3d 31 0d 0b 90 17 20 20 fd 20 c1 41 24 2b 22 |+=1.... . .A$+"| 00001df0 20 22 2c 49 25 29 3d 22 20 22 0d 0b 9a 18 20 20 | ",I%)=" ".... | 00001e00 e7 20 4a 25 3c 6e 75 6d 62 54 52 41 4e 53 2b 31 |. J%<numbTRANS+1| 00001e10 20 8c 0d 0b a4 1b 20 20 20 20 f2 53 65 74 54 72 | ..... .SetTr| 00001e20 61 6e 73 28 4a 25 2c 42 24 2c 43 24 29 0d 0b ae |ans(J%,B$,C$)...| 00001e30 0d 20 20 20 20 4a 25 2b 3d 31 0d 0b b8 07 20 20 |. J%+=1.... | 00001e40 cc 0d 0b c2 4b 20 20 20 20 f1 20 22 53 6f 72 72 |....K . "Sorr| 00001e50 79 20 6f 6e 6c 79 20 22 2b c3 6e 75 6d 62 54 52 |y only "+.numbTR| 00001e60 41 4e 53 2b 22 20 54 72 61 6e 73 6c 61 74 69 6f |ANS+" Translatio| 00001e70 6e 73 20 70 6f 73 73 69 62 6c 65 20 21 21 21 22 |ns possible !!!"| 00001e80 3a cf 23 41 25 3d a2 23 41 25 2b 31 0d 0b cc 07 |:.#A%=.#A%+1....| 00001e90 20 20 cd 0d 0b d6 0a fd 20 c5 23 41 25 0d 0b e0 | ...... .#A%...| 00001ea0 1b f2 53 65 74 54 72 61 6e 73 28 4a 25 2c 22 22 |..SetTrans(J%,""| 00001eb0 2c 22 26 30 30 30 22 29 0d 0b ea 08 d9 23 41 25 |,"&000").....#A%| 00001ec0 0d 0b f4 05 e1 0d 0b fe 04 0d 0c 08 0a dd f2 4c |...............L| 00001ed0 69 73 74 0d 0c 12 08 ea 20 4b 25 0d 0c 1c 0a 20 |ist..... K%.... | 00001ee0 20 4b 25 3d 30 0d 0c 26 07 20 20 f1 0d 0c 30 13 | K%=0..&. ...0.| 00001ef0 20 20 f1 20 22 20 20 20 20 20 43 44 46 53 22 0d | . " CDFS".| 00001f00 0c 3a 1c 20 20 f1 20 22 74 79 70 65 20 74 72 61 |.:. . "type tra| 00001f10 6e 73 6c 61 74 69 6f 6e 3a 2d 22 0d 0c 44 1a 20 |nslation:-"..D. | 00001f20 20 f1 20 22 44 6f 73 2f 43 44 20 2d 3e 20 52 69 | . "Dos/CD -> Ri| 00001f30 73 63 4f 53 22 0d 0c 4e 1f f4 20 20 50 52 49 4e |scOS"..N.. PRIN| 00001f40 54 20 22 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |T "-------------| 00001f50 2d 2d 2d 22 0d 0c 58 1f 20 20 c8 95 20 28 a4 47 |---"..X. .. (.G| 00001f60 65 74 54 72 61 6e 73 44 6f 73 28 4b 25 29 3c 3e |etTransDos(K%)<>| 00001f70 22 22 29 0d 0c 62 3d 20 20 20 20 f1 20 c0 22 20 |"")..b= . ." | 00001f80 20 22 2b a4 47 65 74 54 72 61 6e 73 44 6f 73 28 | "+.GetTransDos(| 00001f90 4b 25 29 2b c4 31 31 2c 22 20 22 29 2c 20 31 31 |K%)+.11," "), 11| 00001fa0 29 2b a4 54 72 61 6e 73 6c 61 74 65 28 4b 25 29 |)+.Translate(K%)| 00001fb0 0d 0c 6c 0d 20 20 20 20 4b 25 2b 3d 31 0d 0c 76 |..l. K%+=1..v| 00001fc0 07 20 20 ce 0d 0c 80 25 20 20 e7 20 4b 25 3d 30 |. ....% . K%=0| 00001fd0 20 8c 20 f1 20 22 4e 6f 20 74 72 61 6e 73 6c 61 | . . "No transla| 00001fe0 74 69 6f 6e 73 21 21 21 22 0d 0c 8a 05 e1 0d 0c |tions!!!".......| 00001ff0 94 04 0d 0c 9e 0e dd f2 6d 61 6b 65 63 6f 64 65 |........makecode| 00002000 0d 0c a8 1d ea 20 70 61 73 73 25 2c 20 63 6f 64 |..... pass%, cod| 00002010 65 25 2c 20 65 6e 64 6c 69 73 74 73 25 0d 0c b2 |e%, endlists%...| 00002020 21 20 20 63 6f 64 65 25 20 20 20 20 20 3d 20 42 |! code% = B| 00002030 61 73 65 25 20 2b 20 43 4f 44 45 4f 46 46 0d 0c |ase% + CODEOFF..| 00002040 bc 23 20 20 65 6e 64 6c 69 73 74 73 25 20 3d 20 |.# endlists% = | 00002050 42 61 73 65 25 20 2b 20 45 4e 44 4c 53 54 4f 46 |Base% + ENDLSTOF| 00002060 46 0d 0c c6 04 0d 0c d0 19 20 20 e3 20 70 61 73 |F........ . pas| 00002070 73 25 20 3d 20 30 20 b8 20 32 20 88 20 32 0d 0c |s% = 0 . 2 . 2..| 00002080 da 12 20 20 20 20 50 25 20 3d 20 63 6f 64 65 25 |.. P% = code%| 00002090 0d 0c e4 13 20 20 20 20 5b 20 6f 70 74 20 70 61 |.... [ opt pa| 000020a0 73 73 25 0d 0c ee 04 0d 0c f8 17 20 20 20 20 20 |ss%........ | 000020b0 20 20 20 20 3b 20 6f 6e 20 65 6e 74 72 79 0d 0d | ; on entry..| 000020c0 02 3a 20 20 20 20 20 20 20 20 20 3b 20 52 30 20 |.: ; R0 | 000020d0 3d 20 70 6f 69 6e 74 65 72 20 74 6f 20 66 69 6c |= pointer to fil| 000020e0 65 6e 61 6d 65 20 77 69 74 68 20 74 65 72 6d 69 |ename with termi| 000020f0 6e 61 74 69 6e 67 20 30 0d 0d 0c 21 20 20 20 20 |nating 0...! | 00002100 20 20 20 20 20 3b 20 52 31 32 20 3d 20 70 72 69 | ; R12 = pri| 00002110 76 61 74 65 20 77 6f 72 64 0d 0d 16 04 0d 0d 20 |vate word...... | 00002120 43 20 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 |C MOV | 00002130 50 43 2c 20 52 31 34 20 20 20 3b 20 4f 6e 6c 79 |PC, R14 ; Only| 00002140 20 69 6e 63 6c 75 64 65 64 20 69 6e 69 74 69 61 | included initia| 00002150 6c 6c 79 20 69 6e 20 63 61 73 65 20 63 61 6c 6c |lly in case call| 00002160 0d 0d 2a 4a 20 20 20 20 20 20 20 20 20 20 20 20 |..*J | 00002170 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 69 | ; i| 00002180 73 20 6d 61 64 65 20 69 6e 20 74 68 65 20 6d 69 |s made in the mi| 00002190 64 64 6c 65 20 6f 66 20 6d 65 20 67 65 6e 65 72 |ddle of me gener| 000021a0 61 74 69 6e 67 20 63 6f 64 65 0d 0d 34 4b 20 20 |ating code..4K | 000021b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000021c0 20 20 20 20 20 20 20 3b 20 61 66 74 65 72 20 61 | ; after a| 000021d0 6c 6c 20 63 6f 64 65 20 69 73 20 67 65 6e 65 72 |ll code is gener| 000021e0 61 74 65 64 20 69 74 20 69 73 20 63 68 61 6e 67 |ated it is chang| 000021f0 65 64 20 74 6f 0d 0d 3e 2b 20 20 20 20 20 20 20 |ed to..>+ | 00002200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002210 20 20 3b 20 42 20 20 20 6e 65 77 73 74 61 72 74 | ; B newstart| 00002220 0d 0d 48 04 0d 0d 52 3c 20 20 20 20 20 20 45 51 |..H...R< EQ| 00002230 55 44 20 6e 75 6d 62 54 52 41 4e 53 20 20 20 20 |UD numbTRANS | 00002240 20 3b 20 69 74 65 6d 73 20 69 6e 20 74 68 65 20 | ; items in the | 00002250 74 72 61 6e 73 6c 61 74 69 6f 6e 20 6c 69 73 74 |translation list| 00002260 0d 0d 5c 47 20 20 20 20 20 20 45 51 55 44 20 6e |..\G EQUD n| 00002270 61 6d 65 4f 46 46 20 20 20 20 20 20 20 3b 20 72 |ameOFF ; r| 00002280 65 6c 61 74 69 76 65 20 61 64 64 72 65 73 73 20 |elative address | 00002290 6f 66 20 73 74 61 72 74 20 6f 66 20 65 78 74 65 |of start of exte| 000022a0 6e 74 20 6c 69 73 74 0d 0d 66 49 20 20 20 20 20 |nt list..fI | 000022b0 20 45 51 55 44 20 74 79 70 4f 46 46 20 20 20 20 | EQUD typOFF | 000022c0 20 20 20 20 3b 20 72 65 6c 61 74 69 76 65 20 61 | ; relative a| 000022d0 64 64 72 65 73 73 20 6f 66 20 73 74 61 72 74 20 |ddress of start | 000022e0 6f 66 20 66 69 6c 65 74 79 70 65 20 6c 69 73 74 |of filetype list| 000022f0 0d 0d 70 04 0d 0d 7a 13 20 20 20 20 20 20 2e 6e |..p...z. .n| 00002300 65 77 73 74 61 72 74 0d 0d 84 21 20 20 20 20 20 |ewstart...! | 00002310 20 20 20 20 53 54 4d 44 42 20 20 20 52 31 33 21 | STMDB R13!| 00002320 2c 7b 52 30 2d 52 31 7d 0d 0d 8e 2a 20 20 20 20 |,{R0-R1}...* | 00002330 20 20 20 20 20 4c 44 52 20 20 20 20 20 52 31 2c | LDR R1,| 00002340 28 42 61 73 65 25 2b 57 4f 52 4b 53 50 43 4f 46 |(Base%+WORKSPCOF| 00002350 46 29 0d 0d 98 1e 20 20 20 20 20 20 20 20 20 41 |F).... A| 00002360 44 44 20 20 20 20 20 52 31 2c 52 31 2c 52 31 32 |DD R1,R1,R12| 00002370 0d 0d a2 40 20 20 20 20 20 20 20 20 20 4d 4f 56 |...@ MOV| 00002380 20 20 20 20 20 52 31 31 2c 52 31 20 20 20 20 20 | R11,R1 | 00002390 20 20 20 20 20 20 20 20 3b 52 31 31 20 3d 20 70 | ;R11 = p| 000023a0 72 69 76 61 74 65 20 77 6f 72 6b 73 70 61 63 65 |rivate workspace| 000023b0 0d 0d ac 21 20 20 20 20 20 20 20 20 20 4c 44 4d |...! LDM| 000023c0 49 41 20 20 20 52 31 33 21 2c 7b 52 30 2d 52 31 |IA R13!,{R0-R1| 000023d0 7d 0d 0d b6 04 0d 0d c0 22 20 20 20 20 20 20 20 |}......." | 000023e0 20 20 3b 20 67 65 74 20 66 69 6c 65 6e 61 6d 65 | ; get filename| 000023f0 20 65 78 74 65 6e 74 0d 0d ca 1a 20 20 20 20 20 | extent.... | 00002400 20 20 20 20 4d 4f 56 20 20 20 20 20 52 33 2c 52 | MOV R3,R| 00002410 30 0d 0d d4 04 0d 0d de 10 20 20 20 20 20 20 2e |0........ .| 00002420 6c 6f 6f 70 31 0d 0d e8 1f 20 20 20 20 20 20 20 |loop1.... | 00002430 20 20 4c 44 52 42 20 20 20 20 52 31 2c 5b 52 33 | LDRB R1,[R3| 00002440 5d 2c 23 31 0d 0d f2 1a 20 20 20 20 20 20 20 20 |],#1.... | 00002450 20 54 45 51 20 20 20 20 20 52 31 2c 23 30 0d 0d | TEQ R1,#0..| 00002460 fc 25 20 20 20 20 20 20 20 20 20 4c 44 4d 45 51 |.% LDMEQ| 00002470 49 41 20 52 31 33 21 2c 7b 52 30 2d 52 39 2c 52 |IA R13!,{R0-R9,R| 00002480 31 34 7d 0d 0e 06 17 20 20 20 20 20 20 20 20 20 |14}.... | 00002490 ec 51 20 20 20 52 31 2c 23 30 0d 0e 10 4f 20 20 |.Q R1,#0...O | 000024a0 20 20 20 20 20 20 20 42 49 43 45 51 53 20 20 50 | BICEQS P| 000024b0 43 2c 52 31 34 2c 23 26 31 30 30 30 30 30 30 30 |C,R14,#&10000000| 000024c0 20 20 3b 20 65 78 69 74 20 69 66 20 6e 75 6c 6c | ; exit if null| 000024d0 20 66 69 6c 65 6e 61 6d 65 20 6f 72 20 6e 6f 20 | filename or no | 000024e0 65 78 74 65 6e 73 69 6f 6e 0d 0e 1a 2e 20 20 20 |extension.... | 000024f0 20 20 20 20 20 20 54 45 51 20 20 20 20 20 52 31 | TEQ R1| 00002500 2c 23 26 32 45 20 20 20 20 20 20 20 20 20 20 20 |,#&2E | 00002510 20 3b 20 3d 22 2e 22 0d 0e 24 1a 20 20 20 20 20 | ; ="."..$. | 00002520 20 20 20 20 42 4e 45 20 20 20 20 20 6c 6f 6f 70 | BNE loop| 00002530 31 0d 0e 2e 1a 20 20 20 20 20 20 20 20 20 4d 4f |1.... MO| 00002540 56 20 20 20 20 20 52 37 2c 52 33 0d 0e 38 04 0d |V R7,R3..8..| 00002550 0e 42 10 20 20 20 20 20 20 2e 6c 6f 6f 70 32 0d |.B. .loop2.| 00002560 0e 4c 1f 20 20 20 20 20 20 20 20 20 4c 44 52 42 |.L. LDRB| 00002570 20 20 20 20 52 31 2c 5b 52 37 5d 2c 23 31 0d 0e | R1,[R7],#1..| 00002580 56 1a 20 20 20 20 20 20 20 20 20 54 45 51 20 20 |V. TEQ | 00002590 20 20 20 52 31 2c 23 30 0d 0e 60 1a 20 20 20 20 | R1,#0..`. | 000025a0 20 20 20 20 20 42 4e 45 20 20 20 20 20 6c 6f 6f | BNE loo| 000025b0 70 32 0d 0e 6a 1d 20 20 20 20 20 20 20 20 20 41 |p2..j. A| 000025c0 44 44 20 20 20 20 20 52 36 2c 52 33 2c 23 33 0d |DD R6,R3,#3.| 000025d0 0e 74 1a 20 20 20 20 20 20 20 20 20 43 4d 50 20 |.t. CMP | 000025e0 20 20 20 20 52 37 2c 52 36 0d 0e 7e 25 20 20 20 | R7,R6..~% | 000025f0 20 20 20 20 20 20 4c 44 4d 4c 45 49 41 20 52 31 | LDMLEIA R1| 00002600 33 21 2c 7b 52 30 2d 52 39 2c 52 31 34 7d 0d 0e |3!,{R0-R9,R14}..| 00002610 88 1a 20 20 20 20 20 20 20 20 20 4d 4f 56 4c 45 |.. MOVLE| 00002620 20 20 20 52 31 2c 23 30 0d 0e 92 4c 20 20 20 20 | R1,#0...L | 00002630 20 20 20 20 20 42 49 43 4c 45 53 20 20 50 43 2c | BICLES PC,| 00002640 52 31 34 2c 23 26 31 30 30 30 30 30 30 30 20 20 |R14,#&10000000 | 00002650 3b 20 65 78 69 74 20 69 66 20 65 78 74 65 6e 74 |; exit if extent| 00002660 20 69 73 20 6e 6f 74 20 33 20 63 68 61 72 61 63 | is not 3 charac| 00002670 74 65 72 73 0d 0e 9c 04 0d 0e a6 26 20 20 20 20 |ters.......& | 00002680 20 20 20 20 20 3b 67 6f 74 2c 20 52 33 20 70 6f | ;got, R3 po| 00002690 69 6e 74 73 20 74 6f 20 65 78 74 65 6e 74 0d 0e |ints to extent..| 000026a0 b0 04 0d 0e ba 37 20 20 20 20 20 20 20 20 20 3b |.....7 ;| 000026b0 6e 6f 77 20 73 65 65 20 69 66 20 69 74 20 63 61 |now see if it ca| 000026c0 6e 20 62 65 20 66 6f 75 6e 64 20 69 6e 20 65 78 |n be found in ex| 000026d0 74 65 6e 74 20 6c 69 73 74 0d 0e c4 04 0d 0e ce |tent list.......| 000026e0 3d 20 20 20 20 20 20 20 20 20 41 44 52 20 20 20 |= ADR | 000026f0 20 20 52 34 2c 65 78 74 65 6e 74 73 20 20 20 20 | R4,extents | 00002700 20 20 20 20 20 3b 73 74 61 72 74 20 6f 66 20 65 | ;start of e| 00002710 78 74 65 6e 74 20 6c 69 73 74 0d 0e d8 3d 20 20 |xtent list...= | 00002720 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 52 | MOV R| 00002730 36 2c 23 30 20 20 20 20 20 20 20 20 20 20 20 20 |6,#0 | 00002740 20 20 3b 52 36 20 3d 20 69 6e 64 65 78 20 69 6e | ;R6 = index in| 00002750 74 6f 20 6c 69 73 74 0d 0e e2 1d 20 20 20 20 20 |to list.... | 00002760 20 20 20 20 53 55 42 20 20 20 20 20 52 37 2c 52 | SUB R7,R| 00002770 37 2c 23 31 0d 0e ec 04 0d 0e f6 13 20 20 20 20 |7,#1........ | 00002780 20 20 2e 6e 78 74 5f 65 78 74 31 0d 0f 00 1f 20 | .nxt_ext1.... | 00002790 20 20 20 20 20 20 20 20 4c 44 52 42 20 20 20 20 | LDRB | 000027a0 52 31 2c 5b 52 34 5d 2c 23 30 0d 0f 0a 1a 20 20 |R1,[R4],#0.... | 000027b0 20 20 20 20 20 20 20 54 45 51 20 20 20 20 20 52 | TEQ R| 000027c0 31 2c 23 30 0d 0f 14 25 20 20 20 20 20 20 20 20 |1,#0...% | 000027d0 20 4c 44 4d 45 51 49 41 20 52 31 33 21 2c 7b 52 | LDMEQIA R13!,{R| 000027e0 30 2d 52 39 2c 52 31 34 7d 0d 0f 1e 17 20 20 20 |0-R9,R14}.... | 000027f0 20 20 20 20 20 20 ec 51 20 20 20 52 31 2c 23 30 | .Q R1,#0| 00002800 0d 0f 28 42 20 20 20 20 20 20 20 20 20 42 49 43 |..(B BIC| 00002810 45 51 53 20 20 50 43 2c 52 31 34 2c 23 26 31 30 |EQS PC,R14,#&10| 00002820 30 30 30 30 30 30 20 20 3b 65 78 69 74 20 69 66 |000000 ;exit if| 00002830 20 6e 6f 74 20 66 6f 75 6e 64 20 69 6e 20 6c 69 | not found in li| 00002840 73 74 0d 0f 32 1a 20 20 20 20 20 20 20 20 20 4d |st..2. M| 00002850 4f 56 20 20 20 20 20 52 35 2c 52 33 0d 0f 3c 04 |OV R5,R3..<.| 00002860 0d 0f 46 2f 20 20 20 20 20 20 20 20 20 3b 52 35 |..F/ ;R5| 00002870 20 3d 20 70 6f 69 6e 74 65 72 20 74 6f 20 66 69 | = pointer to fi| 00002880 6c 65 6e 61 6d 65 27 73 20 65 78 74 65 6e 74 0d |lename's extent.| 00002890 0f 50 04 0d 0f 5a 13 20 20 20 20 20 20 2e 6e 78 |.P...Z. .nx| 000028a0 74 5f 65 78 74 32 0d 0f 64 1f 20 20 20 20 20 20 |t_ext2..d. | 000028b0 20 20 20 4c 44 52 42 20 20 20 20 52 32 2c 5b 52 | LDRB R2,[R| 000028c0 35 5d 2c 23 31 0d 0f 6e 2e 20 20 20 20 20 20 20 |5],#1..n. | 000028d0 20 20 43 4d 50 20 20 20 20 20 52 32 2c 23 26 36 | CMP R2,#&6| 000028e0 31 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 3d |1 ; =| 000028f0 22 61 22 0d 0f 78 2e 20 20 20 20 20 20 20 20 20 |"a"..x. | 00002900 52 53 42 47 45 53 20 20 52 31 34 2c 52 32 2c 23 |RSBGES R14,R2,#| 00002910 26 37 41 20 20 20 20 20 20 20 20 3b 20 3d 22 7a |&7A ; ="z| 00002920 22 0d 0f 82 2e 20 20 20 20 20 20 20 20 20 53 55 |".... SU| 00002930 42 47 45 20 20 20 52 32 2c 52 32 2c 23 26 32 30 |BGE R2,R2,#&20| 00002940 20 20 20 20 20 20 20 20 20 3b 20 3d 22 20 22 0d | ; =" ".| 00002950 0f 8c 1f 20 20 20 20 20 20 20 20 20 4c 44 52 42 |... LDRB| 00002960 20 20 20 20 52 31 2c 5b 52 34 5d 2c 23 31 0d 0f | R1,[R4],#1..| 00002970 96 04 0d 0f a0 22 20 20 20 20 20 20 20 20 20 3b |....." ;| 00002980 52 32 3d 66 69 6c 65 6e 61 6d 65 27 73 20 65 78 |R2=filename's ex| 00002990 74 65 6e 74 0d 0f aa 1c 20 20 20 20 20 20 20 20 |tent.... | 000029a0 20 3b 52 31 3d 65 78 74 65 6e 74 20 66 72 6f 6d | ;R1=extent from| 000029b0 0d 0f b4 04 0d 0f be 1a 20 20 20 20 20 20 20 20 |........ | 000029c0 20 54 45 51 20 20 20 20 20 52 31 2c 23 30 0d 0f | TEQ R1,#0..| 000029d0 c8 1a 20 20 20 20 20 20 20 20 20 54 45 51 45 51 |.. TEQEQ| 000029e0 20 20 20 52 32 2c 23 30 0d 0f d2 1a 20 20 20 20 | R2,#0.... | 000029f0 20 20 20 20 20 42 45 51 20 20 20 20 20 66 6f 75 | BEQ fou| 00002a00 6e 64 0d 0f dc 04 0d 0f e6 1a 20 20 20 20 20 20 |nd........ | 00002a10 20 20 20 54 45 51 20 20 20 20 20 52 32 2c 52 31 | TEQ R2,R1| 00002a20 0d 0f f0 1f 20 20 20 20 20 20 20 20 20 42 4e 45 |.... BNE| 00002a30 20 20 20 20 20 6e 6f 74 74 68 69 73 6f 6e 65 0d | notthisone.| 00002a40 0f fa 1a 20 20 20 20 20 20 20 20 20 54 45 51 20 |... TEQ | 00002a50 20 20 20 20 52 35 2c 52 37 0d 10 04 1d 20 20 20 | R5,R7.... | 00002a60 20 20 20 20 20 20 42 4e 45 20 20 20 20 20 6e 78 | BNE nx| 00002a70 74 5f 65 78 74 32 0d 10 0e 04 0d 10 18 10 20 20 |t_ext2........ | 00002a80 20 20 20 20 2e 66 6f 75 6e 64 0d 10 22 3d 20 20 | .found.."= | 00002a90 20 20 20 20 20 20 20 a4 61 64 72 28 30 2c 66 69 | .adr(0,fi| 00002aa0 6c 65 74 79 70 65 73 29 20 20 20 20 20 20 20 20 |letypes) | 00002ab0 3b 73 74 61 72 74 20 6f 66 20 66 69 6c 65 74 79 |;start of filety| 00002ac0 70 65 20 6c 69 73 74 0d 10 2c 26 20 20 20 20 20 |pe list..,& | 00002ad0 20 20 20 20 4c 44 52 20 20 20 20 20 52 31 2c 5b | LDR R1,[| 00002ae0 52 30 2c 52 36 2c 4c 53 4c 20 23 32 5d 0d 10 36 |R0,R6,LSL #2]..6| 00002af0 1b 20 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 |. MOV | 00002b00 20 20 52 31 30 2c 52 31 0d 10 40 25 20 20 20 20 | R10,R1..@% | 00002b10 20 20 20 20 20 4c 44 4d 49 41 20 20 20 52 31 33 | LDMIA R13| 00002b20 21 2c 7b 52 30 2d 52 39 2c 52 31 34 7d 0d 10 4a |!,{R0-R9,R14}..J| 00002b30 1b 20 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 |. MOV | 00002b40 20 20 52 31 2c 52 31 30 0d 10 54 26 20 20 20 20 | R1,R10..T& | 00002b50 20 20 20 20 20 42 49 43 53 20 20 20 20 50 43 2c | BICS PC,| 00002b60 52 31 34 2c 23 26 31 30 30 30 30 30 30 30 0d 10 |R14,#&10000000..| 00002b70 5e 04 0d 10 68 2f 20 20 20 20 20 20 20 20 20 3b |^...h/ ;| 00002b80 73 65 74 20 52 31 3d 20 73 74 61 72 74 20 6f 66 |set R1= start of| 00002b90 20 6e 65 78 74 20 66 69 6c 65 20 65 78 74 65 6e | next file exten| 00002ba0 74 0d 10 72 25 20 20 20 20 20 20 20 20 20 3b 20 |t..r% ; | 00002bb0 26 20 69 6e 63 72 65 6d 65 6e 74 20 69 6e 64 65 |& increment inde| 00002bc0 78 20 28 52 36 29 0d 10 7c 04 0d 10 86 15 20 20 |x (R6)..|..... | 00002bd0 20 20 20 20 2e 6e 6f 74 74 68 69 73 6f 6e 65 0d | .notthisone.| 00002be0 10 90 1a 20 20 20 20 20 20 20 20 20 54 45 51 20 |... TEQ | 00002bf0 20 20 20 20 52 31 2c 23 30 0d 10 9a 1f 20 20 20 | R1,#0.... | 00002c00 20 20 20 20 20 20 4c 44 52 4e 45 42 20 20 52 31 | LDRNEB R1| 00002c10 2c 5b 52 34 5d 2c 23 31 0d 10 a4 1f 20 20 20 20 |,[R4],#1.... | 00002c20 20 20 20 20 20 42 4e 45 20 20 20 20 20 6e 6f 74 | BNE not| 00002c30 74 68 69 73 6f 6e 65 0d 10 ae 1d 20 20 20 20 20 |thisone.... | 00002c40 20 20 20 20 41 44 44 20 20 20 20 20 52 36 2c 52 | ADD R6,R| 00002c50 36 2c 23 31 0d 10 b8 1d 20 20 20 20 20 20 20 20 |6,#1.... | 00002c60 20 42 20 20 20 20 20 20 20 6e 78 74 5f 65 78 74 | B nxt_ext| 00002c70 31 0d 10 c2 04 0d 10 cc 13 20 20 20 20 20 20 20 |1........ | 00002c80 20 20 45 51 55 44 20 30 0d 10 d6 46 20 20 20 20 | EQUD 0...F | 00002c90 20 20 2e 65 78 74 65 6e 74 73 20 20 20 20 20 3b | .extents ;| 00002ca0 73 74 61 72 74 20 6f 66 20 6c 69 73 74 20 6f 66 |start of list of| 00002cb0 20 65 78 74 65 6e 74 73 2c 20 74 65 72 6d 69 6e | extents, termin| 00002cc0 61 74 65 64 20 62 79 20 77 6f 72 64 3d 30 0d 10 |ated by word=0..| 00002cd0 e0 04 0d 10 ea 09 20 20 20 20 5d 0d 10 f4 04 0d |...... ].....| 00002ce0 10 fe 21 20 20 20 20 f4 20 73 74 61 72 74 20 6f |..! . start o| 00002cf0 66 20 66 69 6c 65 74 79 70 65 73 20 6c 69 73 74 |f filetypes list| 00002d00 0d 11 08 29 20 20 20 20 6e 75 6d 62 54 52 41 4e |...) numbTRAN| 00002d10 53 20 3d 20 28 65 6e 64 6c 69 73 74 73 25 2d 65 |S = (endlists%-e| 00002d20 78 74 65 6e 74 73 29 2f 38 0d 11 12 2f 20 20 20 |xtents)/8.../ | 00002d30 20 66 69 6c 65 74 79 70 65 73 20 3d 20 65 78 74 | filetypes = ext| 00002d40 65 6e 74 73 20 2b 20 34 2a 28 6e 75 6d 62 54 52 |ents + 4*(numbTR| 00002d50 41 4e 53 20 2b 20 31 29 0d 11 1c 21 20 20 20 20 |ANS + 1)...! | 00002d60 6e 61 6d 65 4f 46 46 20 20 20 3d 20 65 78 74 65 |nameOFF = exte| 00002d70 6e 74 73 2d 42 61 73 65 25 0d 11 26 23 20 20 20 |nts-Base%..&# | 00002d80 20 74 79 70 4f 46 46 20 20 20 20 3d 20 66 69 6c | typOFF = fil| 00002d90 65 74 79 70 65 73 2d 42 61 73 65 25 0d 11 30 0d |etypes-Base%..0.| 00002da0 20 20 ed 20 70 61 73 73 25 0d 11 3a 04 0d 11 44 | . pass%..:...D| 00002db0 38 20 20 f4 20 6e 6f 77 20 61 6c 6c 20 63 6f 64 |8 . now all cod| 00002dc0 65 20 69 73 20 67 65 6e 65 72 61 74 65 64 20 61 |e is generated a| 00002dd0 6c 6c 6f 77 20 69 74 20 74 6f 20 62 65 20 65 6e |llow it to be en| 00002de0 74 65 72 65 64 0d 11 4e 19 20 20 e3 20 70 61 73 |tered..N. . pas| 00002df0 73 25 20 3d 20 30 20 b8 20 32 20 88 20 32 0d 11 |s% = 0 . 2 . 2..| 00002e00 58 12 20 20 20 20 50 25 20 3d 20 63 6f 64 65 25 |X. P% = code%| 00002e10 0d 11 62 13 20 20 20 20 5b 20 6f 70 74 20 70 61 |..b. [ opt pa| 00002e20 73 73 25 0d 11 6c 19 20 20 20 20 20 20 20 20 20 |ss%..l. | 00002e30 42 20 20 20 6e 65 77 73 74 61 72 74 0d 11 76 09 |B newstart..v.| 00002e40 20 20 20 20 5d 0d 11 80 0d 20 20 ed 20 70 61 73 | ].... . pas| 00002e50 73 25 0d 11 8a 05 e1 0d 11 94 04 0d 11 9e 04 0d |s%..............| 00002e60 11 a8 11 dd a4 67 65 74 62 61 73 65 43 44 46 53 |.....getbaseCDFS| 00002e70 0d 11 b2 0b ea 20 42 61 73 65 25 0d 11 bc 2e 20 |..... Base%.... | 00002e80 20 c8 99 20 22 58 4f 53 5f 4d 6f 64 75 6c 65 22 | .. "XOS_Module"| 00002e90 2c 31 38 2c 22 43 44 46 53 22 b8 2c 2c 2c 42 61 |,18,"CDFS".,,,Ba| 00002ea0 73 65 25 3b 66 6c 61 67 25 0d 11 c6 13 20 20 e7 |se%;flag%.... .| 00002eb0 20 66 6c 61 67 25 80 31 20 8c 20 e0 0d 11 d0 0b | flag%.1 . .....| 00002ec0 3d 20 42 61 73 65 25 0d 11 da 04 0d 11 e4 2c dd |= Base%.......,.| 00002ed0 a4 63 68 65 63 6b 56 65 72 73 43 44 46 53 28 20 |.checkVersCDFS( | 00002ee0 56 65 72 73 50 74 72 25 2c 20 56 65 72 73 4e 65 |VersPtr%, VersNe| 00002ef0 65 64 65 64 24 20 29 0d 11 ee 0f ea 20 43 75 72 |eded$ )..... Cur| 00002f00 72 56 65 72 73 24 0d 11 f8 12 20 20 43 75 72 72 |rVers$.... Curr| 00002f10 56 65 72 73 24 3d 22 22 0d 12 02 07 20 20 f5 0d |Vers$="".... ..| 00002f20 12 0c 1a 20 20 20 20 e7 20 28 3f 56 65 72 73 50 |... . (?VersP| 00002f30 74 72 25 29 3e 33 31 20 8c 0d 12 16 21 20 20 20 |tr%)>31 ....! | 00002f40 20 20 20 43 75 72 72 56 65 72 73 24 2b 3d bd 28 | CurrVers$+=.(| 00002f50 3f 56 65 72 73 50 74 72 25 29 0d 12 20 09 20 20 |?VersPtr%).. . | 00002f60 20 20 cd 0d 12 2a 13 20 20 20 20 56 65 72 73 50 | ...*. VersP| 00002f70 74 72 25 2b 3d 31 0d 12 34 13 20 20 fd 20 3f 56 |tr%+=1..4. . ?V| 00002f80 65 72 73 50 74 72 25 3d 30 0d 12 3e 1f 3d 20 28 |ersPtr%=0..>.= (| 00002f90 43 75 72 72 56 65 72 73 24 20 3d 20 56 65 72 73 |CurrVers$ = Vers| 00002fa0 4e 65 65 64 65 64 24 29 0d 12 48 04 0d 12 52 04 |Needed$)..H...R.| 00002fb0 0d 12 5c 25 f4 20 67 65 74 20 61 6e 79 20 63 6f |..\%. get any co| 00002fc0 6d 6d 61 6e 64 20 73 74 72 69 6e 67 20 26 20 70 |mmand string & p| 00002fd0 75 74 20 69 6e 0d 12 66 17 f4 20 63 6f 6d 24 28 |ut in..f.. com$(| 00002fe0 30 29 20 3d 20 63 6f 6d 6d 61 6e 64 0d 12 70 23 |0) = command..p#| 00002ff0 f4 20 63 6f 6d 24 28 31 29 20 3d 20 6f 70 74 69 |. com$(1) = opti| 00003000 6f 6e 31 20 5b 6f 70 74 69 6f 6e 6c 61 6c 5d 0d |on1 [optionlal].| 00003010 12 7a 22 f4 20 63 6f 6d 24 28 32 29 20 3d 20 6f |.z". com$(2) = o| 00003020 70 74 69 6f 6e 32 20 5b 6f 70 74 69 6f 6e 61 6c |ption2 [optional| 00003030 5d 0d 12 84 10 dd f2 67 65 74 43 6f 6d 6d 61 6e |]......getComman| 00003040 64 0d 12 8e 1a ea 20 49 25 2c 20 4a 25 2c 20 66 |d..... I%, J%, f| 00003050 6f 75 6e 64 25 2c 20 45 6e 76 24 0d 12 98 18 20 |ound%, Env$.... | 00003060 20 c8 99 20 22 4f 53 5f 47 65 74 45 6e 76 22 b8 | .. "OS_GetEnv".| 00003070 20 49 25 0d 12 a2 0e 20 20 66 6f 75 6e 64 25 3d | I%.... found%=| 00003080 30 0d 12 ac 07 20 20 f5 0d 12 b6 1c 20 20 20 20 |0.... ..... | 00003090 e7 20 3f 49 25 3d 33 34 20 8c 20 66 6f 75 6e 64 |. ?I%=34 . found| 000030a0 25 2b 3d 31 0d 12 c0 0d 20 20 20 20 49 25 2b 3d |%+=1.... I%+=| 000030b0 31 0d 12 ca 1a 20 20 fd 20 28 66 6f 75 6e 64 25 |1.... . (found%| 000030c0 3d 32 29 84 28 3f 49 25 3d 30 29 0d 12 d4 0b 20 |=2).(?I%=0).... | 000030d0 20 49 25 2b 3d 31 0d 12 de 18 20 20 e7 20 3f 49 | I%+=1.... . ?I| 000030e0 25 3d 30 20 8c 20 f2 55 73 61 67 65 3a e0 0d 12 |%=0 . .Usage:...| 000030f0 e8 0d 20 20 45 6e 76 24 3d 22 22 0d 12 f2 07 20 |.. Env$="".... | 00003100 20 f5 0d 12 fc 32 20 20 20 20 e7 20 28 3f 49 25 | ....2 . (?I%| 00003110 3c 31 32 33 20 80 20 3f 49 25 3e 39 36 29 20 8c |<123 . ?I%>96) .| 00003120 20 3f 49 25 3d 3f 49 25 20 80 20 25 31 31 30 31 | ?I%=?I% . %1101| 00003130 31 31 31 31 0d 13 06 14 20 20 20 20 45 6e 76 24 |1111.... Env$| 00003140 2b 3d bd 28 3f 49 25 29 0d 13 10 0d 20 20 20 20 |+=.(?I%).... | 00003150 49 25 2b 3d 31 0d 13 1a 0d 20 20 fd 20 3f 49 25 |I%+=1.... . ?I%| 00003160 3d 30 0d 13 24 0a 20 20 49 25 3d 30 0d 13 2e 07 |=0..$. I%=0....| 00003170 20 20 f5 0d 13 38 15 20 20 20 20 4a 25 3d a7 45 | ...8. J%=.E| 00003180 6e 76 24 2c 22 20 22 29 0d 13 42 11 20 20 20 20 |nv$," ")..B. | 00003190 e7 20 4a 25 3c 3e 30 20 8c 0d 13 4c 1c 20 20 20 |. J%<>0 ...L. | 000031a0 20 20 20 43 6f 6d 24 28 49 25 29 3d c0 45 6e 76 | Com$(I%)=.Env| 000031b0 24 2c 4a 25 29 0d 13 56 1a 20 20 20 20 20 20 45 |$,J%)..V. E| 000031c0 6e 76 24 3d c1 45 6e 76 24 2c 4a 25 2b 31 29 0d |nv$=.Env$,J%+1).| 000031d0 13 60 0f 20 20 20 20 20 20 49 25 2b 3d 31 0d 13 |.`. I%+=1..| 000031e0 6a 09 20 20 20 20 cc 0d 13 74 17 20 20 20 20 20 |j. ...t. | 000031f0 20 43 6f 6d 24 28 49 25 29 3d 45 6e 76 24 0d 13 | Com$(I%)=Env$..| 00003200 7e 0f 20 20 20 20 20 20 49 25 3d 2d 31 0d 13 88 |~. I%=-1...| 00003210 09 20 20 20 20 cd 0d 13 92 14 20 20 fd 20 49 25 |. ..... . I%| 00003220 3d 2d 31 20 84 20 49 25 3e 33 0d 13 9c 05 e1 0d |=-1 . I%>3......| 00003230 13 a6 04 0d 13 b0 04 0d 13 ba 04 0d 13 c4 0b dd |................| 00003240 f2 55 73 61 67 65 0d 13 ce 22 f1 20 22 43 44 54 |.Usage...". "CDT| 00003250 79 70 65 20 3c 63 6f 6d 6d 61 6e 64 3e 20 5b 6f |ype <command> [o| 00003260 70 74 69 6f 6e 73 5d 22 0d 13 d8 1f f1 20 22 57 |ptions]"..... "W| 00003270 68 65 72 65 20 3c 43 6f 6d 6d 61 6e 64 3e 20 6d |here <Command> m| 00003280 61 79 20 62 65 3a 22 0d 13 e2 3b f1 20 22 2d 53 |ay be:"...;. "-S| 00003290 74 61 6e 64 61 72 64 20 20 20 20 20 20 20 20 20 |tandard | 000032a0 20 20 20 2d 20 72 65 73 65 74 20 43 44 46 53 2d | - reset CDFS-| 000032b0 74 72 61 6e 73 6c 61 74 69 6f 6e 2d 74 61 62 6c |translation-tabl| 000032c0 65 22 0d 13 ec 3e f1 20 22 2d 55 73 65 72 20 5b |e"...>. "-User [| 000032d0 3c 66 69 6c 65 3e 5d 20 20 20 20 20 20 20 2d 20 |<file>] - | 000032e0 73 65 74 20 43 44 46 53 2d 75 73 65 72 2d 74 72 |set CDFS-user-tr| 000032f0 61 6e 73 6c 61 74 69 6f 6e 2d 74 61 62 6c 65 22 |anslation-table"| 00003300 0d 13 f6 32 f1 20 22 20 20 20 20 20 20 20 20 20 |...2. " | 00003310 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 | t| 00003320 6f 20 74 61 62 6c 65 20 69 6e 20 3c 66 69 6c 65 |o table in <file| 00003330 3e 22 0d 14 00 33 f1 20 22 2d 41 64 64 20 3c 44 |>"...3. "-Add <D| 00003340 6f 73 3e 20 3c 52 69 73 63 4f 53 3e 20 20 2d 20 |os> <RiscOS> - | 00003350 61 64 64 20 61 20 74 72 61 6e 73 6c 61 74 69 6f |add a translatio| 00003360 6e 3a 2d 20 22 0d 14 0a 39 f1 20 22 20 20 20 20 |n:- "...9. " | 00003370 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003380 20 20 20 20 3c 44 6f 73 54 79 70 65 3e 20 74 6f | <DosType> to| 00003390 20 3c 52 69 73 63 4f 53 54 79 70 65 3e 22 0d 14 | <RiscOSType>"..| 000033a0 14 34 f1 20 22 2d 52 65 6d 6f 76 65 20 3c 44 6f |.4. "-Remove <Do| 000033b0 73 54 79 70 65 3e 20 20 20 20 2d 20 72 65 6d 6f |sType> - remo| 000033c0 76 65 20 3c 44 6f 73 54 79 70 65 3e 20 66 72 6f |ve <DosType> fro| 000033d0 6d 22 0d 14 1e 31 f1 20 22 20 20 20 20 20 20 20 |m"...1. " | 000033e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000033f0 20 74 72 61 6e 73 6c 61 74 69 6f 6e 2d 74 61 62 | translation-tab| 00003400 6c 65 22 0d 14 28 3a f1 20 22 2d 43 6c 65 61 72 |le"..(:. "-Clear| 00003410 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d | -| 00003420 20 63 6c 65 61 72 20 74 68 65 20 74 72 61 6e 73 | clear the trans| 00003430 6c 61 74 69 6f 6e 2d 74 61 62 6c 65 22 0d 14 32 |lation-table"..2| 00003440 35 f1 20 22 2d 4c 69 73 74 20 20 20 20 20 20 20 |5. "-List | 00003450 20 20 20 20 20 20 20 20 20 2d 20 4c 69 73 74 20 | - List | 00003460 74 72 61 6e 73 6c 61 74 69 6f 6e 2d 74 61 62 6c |translation-tabl| 00003470 65 22 0d 14 3c 05 f1 0d 14 46 05 e1 0d 14 50 04 |e"..<....F....P.| 00003480 0d 14 5a 11 dd 20 a4 61 64 72 28 73 25 2c 78 25 |..Z.. .adr(s%,x%| 00003490 29 0d 14 64 36 f4 20 54 68 65 20 69 6e 73 74 72 |)..d6. The instr| 000034a0 75 63 74 69 6f 6e 20 73 65 71 75 65 6e 63 65 20 |uction sequence | 000034b0 6d 75 73 74 20 62 65 20 6f 66 20 46 49 58 45 44 |must be of FIXED| 000034c0 20 6c 65 6e 67 74 68 0d 14 6e 0e 61 25 3d 78 25 | length..n.a%=x%| 000034d0 2d 50 25 2d 38 0d 14 78 13 e7 20 28 70 61 73 73 |-P%-8..x.. (pass| 000034e0 25 20 80 20 32 29 20 8c 0d 14 82 0e 20 e7 20 61 |% . 2) ..... . a| 000034f0 25 3e 3d 30 20 8c 0d 14 8c 10 20 20 5b 4f 50 54 |%>=0 ..... [OPT| 00003500 20 70 61 73 73 25 0d 14 96 22 20 20 20 41 44 44 | pass%..." ADD| 00003510 20 73 25 2c 50 43 2c 23 28 61 25 20 80 20 26 30 | s%,PC,#(a% . &0| 00003520 30 30 30 30 33 46 43 29 0d 14 a0 22 20 20 20 41 |00003FC)..." A| 00003530 44 44 20 73 25 2c 73 25 2c 23 28 61 25 20 80 20 |DD s%,s%,#(a% . | 00003540 26 46 46 46 46 46 43 30 30 29 0d 14 aa 07 20 20 |&FFFFFC00).... | 00003550 5d 0d 14 b4 06 20 cc 0d 14 be 0c 20 20 61 25 3d |].... ..... a%=| 00003560 2d 61 25 0d 14 c8 10 20 20 5b 4f 50 54 20 70 61 |-a%.... [OPT pa| 00003570 73 73 25 0d 14 d2 22 20 20 20 53 55 42 20 73 25 |ss%..." SUB s%| 00003580 2c 50 43 2c 23 28 61 25 20 80 20 26 30 30 30 30 |,PC,#(a% . &0000| 00003590 30 33 46 43 29 0d 14 dc 22 20 20 20 53 55 42 20 |03FC)..." SUB | 000035a0 73 25 2c 73 25 2c 23 28 61 25 20 80 20 26 46 46 |s%,s%,#(a% . &FF| 000035b0 46 46 46 43 30 30 29 0d 14 e6 07 20 20 5d 0d 14 |FFFC00).... ]..| 000035c0 f0 06 20 cd 0d 14 fa 05 cc 0d 15 04 10 20 50 25 |.. .......... P%| 000035d0 2b 3d 38 3a 4f 25 2b 3d 38 0d 15 0e 05 cd 0d 15 |+=8:O%+=8.......| 000035e0 18 07 3d 22 22 0d 15 22 05 e1 0d ff |..="".."....| 000035ec