Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Regulars » StarInfo/Hammond/!ResSave/Register
StarInfo/Hammond/!ResSave/Register
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Regulars |
Filename: | StarInfo/Hammond/!ResSave/Register |
Read OK: | ✔ |
File size: | 0F11 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1REM >Register 2REM by Dave Lawrence 3REM for 32 bit Machines 4REM (c) BAU November 1992 5REM Modiffications by Mark Hammond, December 1994 6 7ON ERROR REPORT:PRINT " at line ";ERL:END 8: 9SYS "Hourglass_On" 10: 11DIM block 64 12PROCget_env 13PROCcheck_name 14help$=Name$+CHR$9+"1.00 ("+LEFT$(RIGHT$(TIME$,20),11)+")" 15: 16PROCcode 17IF path$<>"" THEN 18 file$="" 19 i=LEN path$ 20 REPEAT 21 file$=RIGHT$(path$,1)+file$ 22 path$=LEFT$(path$) 23 UNTIL RIGHT$(path$,1)="." OR path$= "" 24 IF path$="" path$="@" ELSE path$=LEFT$(path$) 25 PROCregester(file$,path$,dest$,dfile$) 26ENDIF 27SYS "OS_Module",11,code,O%-code 28flags%=0 29IF savemod% SYS "XOS_File",10,sfile$,&FFA,,code,O% TO err%;flags% 30IF (flags% AND 1)<>0 SYS "OS_GenerateError",err% 31SYS "Hourglass_Smash" 32END 33: 34DEF PROCregester(file$,path$,dest$,dfile$) 35 SYS "OS_File",5,path$+"."+file$ TO type 36 IF type=0 THEN 37 PROCerror("File not found, have you deleted it?") 38 ELSE 39 IF type=1 THEN 40 PROCstore(path$+"."+file$,dest$+"."+dfile$) 41 ELSE 42 PROCdirectory(path$+"."+file$,dest$+"."+dfile$) 43 ENDIF 44 ENDIF 45ENDPROC 46: 47DEF PROCdirectory(a$,b$) 48 LOCAL ptr 49 ptr=0 50 REPEAT 51 SYS "OS_GBPB",9,a$,block,1,ptr,64 TO ,,,read,ptr 52 IF read=1 THEN 53 f$="" 54 i=0 55 REPEAT 56 f$+=CHR$(block?i) 57 i+=1 58 UNTIL block?i=0 59 PROCregester(f$,a$,b$,f$) 60 ENDIF 61 UNTIL ptr=-1 62ENDPROC 63: 64DEF PROCcode 65 space=HIMEM-END-32*1024 66 DIM code space 67 wp=12:sp=13:link=14:pc=15 68 FOR pass=4 TO 6 STEP 2:P%=0:O%=code 69[OPT pass 70 EQUD 0 71 EQUD Init_Code 72 EQUD Final_Code 73 EQUD 0 74 EQUD Title_String 75 EQUD Help_String 76 EQUD 0 77 EQUD 0 78 EQUD 0 79 EQUD 0 80 EQUD 0 81.Title_String 82 EQUS Name$ 83 EQUB 0 84.Help_String 85 EQUS help$ 86 EQUB 0 87 ALIGN 88.Init_Code 89 STMFD (sp)!,{R0,link} 90 ADR R0,Files 91 SWI "XResourceFS_RegisterFiles" 92 LDMFD (sp)!,{R0,pc} 93.Final_Code 94 STMFD (sp)!,{R0,link} 95 ADR R0,Files 96 SWI "XResourceFS_DeregisterFiles" 97 LDMFD (sp)!,{R0,pc} 98.Files EQUD 0 99]NEXT 100ENDPROC 101: 102DEF PROCstore(source$,as$) 103 SYS "OS_File",5,source$ TO ,,load,exec,size,attr 104[OPT 4 105.offset 106 EQUD load 107 EQUD exec 108 EQUD size 109 EQUD attr 110 EQUS MID$(as$,13) 111 EQUB 0 112 ALIGN 113 EQUD size+4 114FNload(source$) 115 ALIGN 116.next EQUD 0 117] 118 !(code+offset-4)=next-offset+4 119ENDPROC 120: 121DEF FNload(f$) 122SYS "OS_File",&FF,f$,O% TO ,,,,len 123P%+=len:O%+=len 124="" 125: 126DEF PROCerror(rep$) 127 SYS "Hourglass_Smash" 128 ERROR 1,rep$ 129 END 130ENDPROC 131: 132DEF PROCcheck_name 133 IF LEN dfile$=0 PROCerror("You need to give the object a name!") 134 IF INSTR(dfile$,"$") PROCerror(FNsyn("$")) 135 IF INSTR(dfile$,"#") PROCerror(FNsyn("#")) 136 IF INSTR(dfile$,"*") PROCerror(FNsyn("*")) 137 IF INSTR(dfile$,"&") PROCerror(FNsyn("&")) 138 IF INSTR(dfile$,"%") PROCerror(FNsyn("%")) 139 IF INSTR(dfile$,"@") PROCerror(FNsyn("@")) 140 IF INSTR(dfile$,"\") PROCerror(FNsyn("\")) 141 IF INSTR(dfile$,"^") PROCerror(FNsyn("^")) 142 IF INSTR(dfile$,":") PROCerror(FNsyn(":")) 143 IF INSTR(dfile$,".") PROCerror(FNsyn(".")) 144 IF INSTR(dfile$,"|") PROCerror(FNsyn("|")) 145 IF INSTR(dfile$,"""") PROCerror(FNsyn(CHR$34)) 146ENDPROC 147: 148DEF FNsyn(mistake$) 149="You can't have a '"+mistake$+"' in the file name!" 150: 151DEF PROCget_env 152 SYS "OS_GetEnv" TO env$ 153 a% = INSTR(env$," -") 154 i% = INSTR(env$," -",a%+1) 155 env$ = MID$(env$,i%) 156 i% = INSTR(env$," -",2) 157 Name$ = MID$(LEFT$(env$,i%-1),3) 158 env$ = MID$(env$,i%+1) 159 i% = INSTR(env$," -",2) 160 path$ = MID$(LEFT$(env$,i%-1),2) 161 env$ = MID$(env$,i%+1) 162 i% = INSTR(env$," -",2) 163 dest1$= MID$(LEFT$(env$,i%-1),2) 164 sfile$= MID$(env$,i%+2) 165 i% = LEN dest1$ 166 i%+=1 167 REPEAT 168 i%-=1 169 UNTIL MID$(dest1$,i%,1)="." 170 dest$ = LEFT$(dest1$,i%-1) 171 dfile$= MID$(dest1$,i%+1) 172 savemod%=TRUE 173 IF INSTR(sfile$,"#not#") savemod%=FALSE 174ENDPROC
� >Register � by Dave Lawrence � for 32 bit Machines � (c) BAU November 1992 3� Modiffications by Mark Hammond, December 1994 � � �:� " at line ";�:� : ș "Hourglass_On" : � block 64 �get_env �check_name ,help$=Name$+�9+"1.00 ("+�$,20),11)+")" : �code � path$<>"" � file$="" i=� path$ � file$=�path$,1)+file$ path$=�path$) ! � �path$,1)="." � path$= "" * � path$="" path$="@" � path$=�path$) ) �regester(file$,path$,dest$,dfile$) � "ș "OS_Module",11,code,O%-code flags%=0 B� savemod% ș "XOS_File",10,sfile$,&FFA,,code,O% � err%;flags% 0� (flags% � 1)<>0 ș "OS_GenerateError",err% ș "Hourglass_Smash" � !: ")� �regester(file$,path$,dest$,dfile$) #* ș "OS_File",5,path$+"."+file$ � type $ � type=0 � %5 �error("File not found, have you deleted it?") & � ' � type=1 � (1 �store(path$+"."+file$,dest$+"."+dfile$) ) � *5 �directory(path$+"."+file$,dest$+"."+dfile$) + � , � -� .: /� �directory(a$,b$) 0 � ptr 1 ptr=0 2 � 35 ș "OS_GBPB",9,a$,block,1,ptr,64 � ,,,read,ptr 4 � read=1 � 5 f$="" 6 i=0 7 � 8 f$+=�(block?i) 9 i+=1 : � block?i=0 ; �regester(f$,a$,b$,f$) < � = � ptr=-1 >� ?: @� �code A space=�-�-32*1024 B � code space C wp=12:sp=13:link=14:pc=15 D" � pass=4 � 6 � 2:P%=0:O%=code E [OPT pass F EQUD 0 G EQUD Init_Code H EQUD Final_Code I EQUD 0 J EQUD Title_String K EQUD Help_String L EQUD 0 M EQUD 0 N EQUD 0 O EQUD 0 P EQUD 0 Q.Title_String R EQUS Name$ S EQUB 0 T.Help_String U EQUS help$ V EQUB 0 W ALIGN X.Init_Code Y" STMFD (sp)!,{R0,link} Z ADR R0,Files [. SWI "XResourceFS_RegisterFiles" \ LDMFD (sp)!,{R0,pc} ].Final_Code ^" STMFD (sp)!,{R0,link} _ ADR R0,Files `0 SWI "XResourceFS_DeregisterFiles" a LDMFD (sp)!,{R0,pc} b.Files EQUD 0 c]� d� e: f� �store(source$,as$) g3 ș "OS_File",5,source$ � ,,load,exec,size,attr h [OPT 4 i.offset j EQUD load k EQUD exec l EQUD size m EQUD attr n EQUS �as$,13) o EQUB 0 p ALIGN q EQUD size+4 r�load(source$) s ALIGN t.next EQUD 0 u] v# !(code+offset-4)=next-offset+4 w� x: y� �load(f$) z$ș "OS_File",&FF,f$,O% � ,,,,len {P%+=len:O%+=len |="" }: ~� �error(rep$) ș "Hourglass_Smash" � � 1,rep$ � � �� �: �� �check_name �? � � dfile$=0 �error("You need to give the object a name!") �% � �dfile$,"$") �error(�syn("$")) �% � �dfile$,"#") �error(�syn("#")) �% � �dfile$,"*") �error(�syn("*")) �% � �dfile$,"&") �error(�syn("&")) �% � �dfile$,"%") �error(�syn("%")) �% � �dfile$,"@") �error(�syn("@")) �% � �dfile$,"\") �error(�syn("\")) �% � �dfile$,"^") �error(�syn("^")) �% � �dfile$,":") �error(�syn(":")) �% � �dfile$,".") �error(�syn(".")) �% � �dfile$,"|") �error(�syn("|")) �& � �dfile$,"""") �error(�syn(�34)) �� �: �� �syn(mistake$) �8="You can't have a '"+mistake$+"' in the file name!" �: �� �get_env � ș "OS_GetEnv" � env$ � a% = �env$," -") � i% = �env$," -",a%+1) � env$ = �env$,i%) � i% = �env$," -",2) � Name$ = ��env$,i%-1),3) � env$ = �env$,i%+1) � i% = �env$," -",2) � path$ = ��env$,i%-1),2) � env$ = �env$,i%+1) � i% = �env$," -",2) � dest1$= ��env$,i%-1),2) � sfile$= �env$,i%+2) � i% = � dest1$ � i%+=1 � � � i%-=1 � � �dest1$,i%,1)="." � dest$ = �dest1$,i%-1) � dfile$= �dest1$,i%+1) � savemod%=� �" � �sfile$,"#not#") savemod%=� �� �
00000000 0d 00 01 12 f4 20 20 20 20 3e 52 65 67 69 73 74 |..... >Regist| 00000010 65 72 0d 00 02 16 f4 20 62 79 20 44 61 76 65 20 |er..... by Dave | 00000020 4c 61 77 72 65 6e 63 65 0d 00 03 19 f4 20 66 6f |Lawrence..... fo| 00000030 72 20 33 32 20 62 69 74 20 4d 61 63 68 69 6e 65 |r 32 bit Machine| 00000040 73 0d 00 04 1b f4 20 28 63 29 20 42 41 55 20 4e |s..... (c) BAU N| 00000050 6f 76 65 6d 62 65 72 20 31 39 39 32 0d 00 05 33 |ovember 1992...3| 00000060 f4 20 4d 6f 64 69 66 66 69 63 61 74 69 6f 6e 73 |. Modiffications| 00000070 20 62 79 20 4d 61 72 6b 20 48 61 6d 6d 6f 6e 64 | by Mark Hammond| 00000080 2c 20 44 65 63 65 6d 62 65 72 20 31 39 39 34 0d |, December 1994.| 00000090 00 06 04 0d 00 07 1b ee 20 85 20 f6 3a f1 20 22 |........ . .:. "| 000000a0 20 61 74 20 6c 69 6e 65 20 22 3b 9e 3a e0 0d 00 | at line ";.:...| 000000b0 08 05 3a 0d 00 09 15 c8 99 20 22 48 6f 75 72 67 |..:...... "Hourg| 000000c0 6c 61 73 73 5f 4f 6e 22 0d 00 0a 05 3a 0d 00 0b |lass_On"....:...| 000000d0 0e de 20 62 6c 6f 63 6b 20 36 34 0d 00 0c 0c f2 |.. block 64.....| 000000e0 67 65 74 5f 65 6e 76 0d 00 0d 0f f2 63 68 65 63 |get_env.....chec| 000000f0 6b 5f 6e 61 6d 65 0d 00 0e 2c 68 65 6c 70 24 3d |k_name...,help$=| 00000100 4e 61 6d 65 24 2b bd 39 2b 22 31 2e 30 30 20 28 |Name$+.9+"1.00 (| 00000110 22 2b c0 c2 91 24 2c 32 30 29 2c 31 31 29 2b 22 |"+...$,20),11)+"| 00000120 29 22 0d 00 0f 05 3a 0d 00 10 09 f2 63 6f 64 65 |)"....:.....code| 00000130 0d 00 11 11 e7 20 70 61 74 68 24 3c 3e 22 22 20 |..... path$<>"" | 00000140 8c 0d 00 12 0e 20 20 66 69 6c 65 24 3d 22 22 0d |..... file$="".| 00000150 00 13 0f 20 20 69 3d a9 20 70 61 74 68 24 0d 00 |... i=. path$..| 00000160 14 07 20 20 f5 0d 00 15 1d 20 20 20 20 66 69 6c |.. ..... fil| 00000170 65 24 3d c2 70 61 74 68 24 2c 31 29 2b 66 69 6c |e$=.path$,1)+fil| 00000180 65 24 0d 00 16 15 20 20 20 20 70 61 74 68 24 3d |e$.... path$=| 00000190 c0 70 61 74 68 24 29 0d 00 17 21 20 20 fd 20 c2 |.path$)...! . .| 000001a0 70 61 74 68 24 2c 31 29 3d 22 2e 22 20 84 20 70 |path$,1)="." . p| 000001b0 61 74 68 24 3d 20 22 22 0d 00 18 2a 20 20 e7 20 |ath$= ""...* . | 000001c0 70 61 74 68 24 3d 22 22 20 70 61 74 68 24 3d 22 |path$="" path$="| 000001d0 40 22 20 8b 20 70 61 74 68 24 3d c0 70 61 74 68 |@" . path$=.path| 000001e0 24 29 0d 00 19 29 20 20 f2 72 65 67 65 73 74 65 |$)...) .regeste| 000001f0 72 28 66 69 6c 65 24 2c 70 61 74 68 24 2c 64 65 |r(file$,path$,de| 00000200 73 74 24 2c 64 66 69 6c 65 24 29 0d 00 1a 05 cd |st$,dfile$).....| 00000210 0d 00 1b 22 c8 99 20 22 4f 53 5f 4d 6f 64 75 6c |...".. "OS_Modul| 00000220 65 22 2c 31 31 2c 63 6f 64 65 2c 4f 25 2d 63 6f |e",11,code,O%-co| 00000230 64 65 0d 00 1c 0c 66 6c 61 67 73 25 3d 30 0d 00 |de....flags%=0..| 00000240 1d 42 e7 20 73 61 76 65 6d 6f 64 25 20 c8 99 20 |.B. savemod% .. | 00000250 22 58 4f 53 5f 46 69 6c 65 22 2c 31 30 2c 73 66 |"XOS_File",10,sf| 00000260 69 6c 65 24 2c 26 46 46 41 2c 2c 63 6f 64 65 2c |ile$,&FFA,,code,| 00000270 4f 25 20 b8 20 65 72 72 25 3b 66 6c 61 67 73 25 |O% . err%;flags%| 00000280 0d 00 1e 30 e7 20 28 66 6c 61 67 73 25 20 80 20 |...0. (flags% . | 00000290 31 29 3c 3e 30 20 c8 99 20 22 4f 53 5f 47 65 6e |1)<>0 .. "OS_Gen| 000002a0 65 72 61 74 65 45 72 72 6f 72 22 2c 65 72 72 25 |erateError",err%| 000002b0 0d 00 1f 18 c8 99 20 22 48 6f 75 72 67 6c 61 73 |...... "Hourglas| 000002c0 73 5f 53 6d 61 73 68 22 0d 00 20 05 e0 0d 00 21 |s_Smash".. ....!| 000002d0 05 3a 0d 00 22 29 dd 20 f2 72 65 67 65 73 74 65 |.:.."). .regeste| 000002e0 72 28 66 69 6c 65 24 2c 70 61 74 68 24 2c 64 65 |r(file$,path$,de| 000002f0 73 74 24 2c 64 66 69 6c 65 24 29 0d 00 23 2a 20 |st$,dfile$)..#* | 00000300 c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c 35 2c 70 |.. "OS_File",5,p| 00000310 61 74 68 24 2b 22 2e 22 2b 66 69 6c 65 24 20 b8 |ath$+"."+file$ .| 00000320 20 74 79 70 65 0d 00 24 0f 20 e7 20 74 79 70 65 | type..$. . type| 00000330 3d 30 20 8c 0d 00 25 35 20 20 20 f2 65 72 72 6f |=0 ...%5 .erro| 00000340 72 28 22 46 69 6c 65 20 6e 6f 74 20 66 6f 75 6e |r("File not foun| 00000350 64 2c 20 68 61 76 65 20 79 6f 75 20 64 65 6c 65 |d, have you dele| 00000360 74 65 64 20 69 74 3f 22 29 0d 00 26 07 20 20 cc |ted it?")..&. .| 00000370 0d 00 27 11 20 20 20 e7 20 74 79 70 65 3d 31 20 |..'. . type=1 | 00000380 8c 0d 00 28 31 20 20 20 20 20 f2 73 74 6f 72 65 |...(1 .store| 00000390 28 70 61 74 68 24 2b 22 2e 22 2b 66 69 6c 65 24 |(path$+"."+file$| 000003a0 2c 64 65 73 74 24 2b 22 2e 22 2b 64 66 69 6c 65 |,dest$+"."+dfile| 000003b0 24 29 0d 00 29 09 20 20 20 20 cc 0d 00 2a 35 20 |$)..). ...*5 | 000003c0 20 20 20 20 f2 64 69 72 65 63 74 6f 72 79 28 70 | .directory(p| 000003d0 61 74 68 24 2b 22 2e 22 2b 66 69 6c 65 24 2c 64 |ath$+"."+file$,d| 000003e0 65 73 74 24 2b 22 2e 22 2b 64 66 69 6c 65 24 29 |est$+"."+dfile$)| 000003f0 0d 00 2b 08 20 20 20 cd 0d 00 2c 06 20 cd 0d 00 |..+. ...,. ...| 00000400 2d 05 e1 0d 00 2e 05 3a 0d 00 2f 17 dd 20 f2 64 |-......:../.. .d| 00000410 69 72 65 63 74 6f 72 79 28 61 24 2c 62 24 29 0d |irectory(a$,b$).| 00000420 00 30 0a 20 ea 20 70 74 72 0d 00 31 0a 20 70 74 |.0. . ptr..1. pt| 00000430 72 3d 30 0d 00 32 06 20 f5 0d 00 33 35 20 20 20 |r=0..2. ...35 | 00000440 c8 99 20 22 4f 53 5f 47 42 50 42 22 2c 39 2c 61 |.. "OS_GBPB",9,a| 00000450 24 2c 62 6c 6f 63 6b 2c 31 2c 70 74 72 2c 36 34 |$,block,1,ptr,64| 00000460 20 b8 20 2c 2c 2c 72 65 61 64 2c 70 74 72 0d 00 | . ,,,read,ptr..| 00000470 34 11 20 20 20 e7 20 72 65 61 64 3d 31 20 8c 0d |4. . read=1 ..| 00000480 00 35 0e 20 20 20 20 20 66 24 3d 22 22 0d 00 36 |.5. f$=""..6| 00000490 0c 20 20 20 20 20 69 3d 30 0d 00 37 0a 20 20 20 |. i=0..7. | 000004a0 20 20 f5 0d 00 38 19 20 20 20 20 20 20 20 66 24 | ...8. f$| 000004b0 2b 3d bd 28 62 6c 6f 63 6b 3f 69 29 0d 00 39 0f |+=.(block?i)..9.| 000004c0 20 20 20 20 20 20 20 69 2b 3d 31 0d 00 3a 14 20 | i+=1..:. | 000004d0 20 20 20 20 fd 20 62 6c 6f 63 6b 3f 69 3d 30 0d | . block?i=0.| 000004e0 00 3b 1f 20 20 20 20 20 f2 72 65 67 65 73 74 65 |.;. .regeste| 000004f0 72 28 66 24 2c 61 24 2c 62 24 2c 66 24 29 0d 00 |r(f$,a$,b$,f$)..| 00000500 3c 08 20 20 20 cd 0d 00 3d 0d 20 fd 20 70 74 72 |<. ...=. . ptr| 00000510 3d 2d 31 0d 00 3e 05 e1 0d 00 3f 05 3a 0d 00 40 |=-1..>....?.:..@| 00000520 0b dd 20 f2 63 6f 64 65 0d 00 41 16 20 73 70 61 |.. .code..A. spa| 00000530 63 65 3d 93 2d e0 2d 33 32 2a 31 30 32 34 0d 00 |ce=.-.-32*1024..| 00000540 42 11 20 de 20 63 6f 64 65 20 73 70 61 63 65 0d |B. . code space.| 00000550 00 43 1e 20 77 70 3d 31 32 3a 73 70 3d 31 33 3a |.C. wp=12:sp=13:| 00000560 6c 69 6e 6b 3d 31 34 3a 70 63 3d 31 35 0d 00 44 |link=14:pc=15..D| 00000570 22 20 e3 20 70 61 73 73 3d 34 20 b8 20 36 20 88 |" . pass=4 . 6 .| 00000580 20 32 3a 50 25 3d 30 3a 4f 25 3d 63 6f 64 65 0d | 2:P%=0:O%=code.| 00000590 00 45 0d 5b 4f 50 54 20 70 61 73 73 0d 00 46 14 |.E.[OPT pass..F.| 000005a0 20 20 20 20 20 20 20 45 51 55 44 20 20 20 20 30 | EQUD 0| 000005b0 0d 00 47 1c 20 20 20 20 20 20 20 45 51 55 44 20 |..G. EQUD | 000005c0 20 20 20 49 6e 69 74 5f 43 6f 64 65 0d 00 48 1d | Init_Code..H.| 000005d0 20 20 20 20 20 20 20 45 51 55 44 20 20 20 20 46 | EQUD F| 000005e0 69 6e 61 6c 5f 43 6f 64 65 0d 00 49 14 20 20 20 |inal_Code..I. | 000005f0 20 20 20 20 45 51 55 44 20 20 20 20 30 0d 00 4a | EQUD 0..J| 00000600 1f 20 20 20 20 20 20 20 45 51 55 44 20 20 20 20 |. EQUD | 00000610 54 69 74 6c 65 5f 53 74 72 69 6e 67 0d 00 4b 1e |Title_String..K.| 00000620 20 20 20 20 20 20 20 45 51 55 44 20 20 20 20 48 | EQUD H| 00000630 65 6c 70 5f 53 74 72 69 6e 67 0d 00 4c 14 20 20 |elp_String..L. | 00000640 20 20 20 20 20 45 51 55 44 20 20 20 20 30 0d 00 | EQUD 0..| 00000650 4d 14 20 20 20 20 20 20 20 45 51 55 44 20 20 20 |M. EQUD | 00000660 20 30 0d 00 4e 14 20 20 20 20 20 20 20 45 51 55 | 0..N. EQU| 00000670 44 20 20 20 20 30 0d 00 4f 14 20 20 20 20 20 20 |D 0..O. | 00000680 20 45 51 55 44 20 20 20 20 30 0d 00 50 14 20 20 | EQUD 0..P. | 00000690 20 20 20 20 20 45 51 55 44 20 20 20 20 30 0d 00 | EQUD 0..| 000006a0 51 11 2e 54 69 74 6c 65 5f 53 74 72 69 6e 67 0d |Q..Title_String.| 000006b0 00 52 18 20 20 20 20 20 20 20 45 51 55 53 20 20 |.R. EQUS | 000006c0 20 20 4e 61 6d 65 24 0d 00 53 14 20 20 20 20 20 | Name$..S. | 000006d0 20 20 45 51 55 42 20 20 20 20 30 0d 00 54 10 2e | EQUB 0..T..| 000006e0 48 65 6c 70 5f 53 74 72 69 6e 67 0d 00 55 18 20 |Help_String..U. | 000006f0 20 20 20 20 20 20 45 51 55 53 20 20 20 20 68 65 | EQUS he| 00000700 6c 70 24 0d 00 56 14 20 20 20 20 20 20 20 45 51 |lp$..V. EQ| 00000710 55 42 20 20 20 20 30 0d 00 57 10 20 20 20 20 20 |UB 0..W. | 00000720 20 20 41 4c 49 47 4e 0d 00 58 0e 2e 49 6e 69 74 | ALIGN..X..Init| 00000730 5f 43 6f 64 65 0d 00 59 22 20 20 20 20 20 20 20 |_Code..Y" | 00000740 53 54 4d 46 44 20 20 20 28 73 70 29 21 2c 7b 52 |STMFD (sp)!,{R| 00000750 30 2c 6c 69 6e 6b 7d 0d 00 5a 1b 20 20 20 20 20 |0,link}..Z. | 00000760 20 20 41 44 52 20 20 20 20 20 52 30 2c 46 69 6c | ADR R0,Fil| 00000770 65 73 0d 00 5b 2e 20 20 20 20 20 20 20 53 57 49 |es..[. SWI| 00000780 20 20 20 20 20 22 58 52 65 73 6f 75 72 63 65 46 | "XResourceF| 00000790 53 5f 52 65 67 69 73 74 65 72 46 69 6c 65 73 22 |S_RegisterFiles"| 000007a0 0d 00 5c 20 20 20 20 20 20 20 20 4c 44 4d 46 44 |..\ LDMFD| 000007b0 20 20 20 28 73 70 29 21 2c 7b 52 30 2c 70 63 7d | (sp)!,{R0,pc}| 000007c0 0d 00 5d 0f 2e 46 69 6e 61 6c 5f 43 6f 64 65 0d |..]..Final_Code.| 000007d0 00 5e 22 20 20 20 20 20 20 20 53 54 4d 46 44 20 |.^" STMFD | 000007e0 20 20 28 73 70 29 21 2c 7b 52 30 2c 6c 69 6e 6b | (sp)!,{R0,link| 000007f0 7d 0d 00 5f 1b 20 20 20 20 20 20 20 41 44 52 20 |}.._. ADR | 00000800 20 20 20 20 52 30 2c 46 69 6c 65 73 0d 00 60 30 | R0,Files..`0| 00000810 20 20 20 20 20 20 20 53 57 49 20 20 20 20 20 22 | SWI "| 00000820 58 52 65 73 6f 75 72 63 65 46 53 5f 44 65 72 65 |XResourceFS_Dere| 00000830 67 69 73 74 65 72 46 69 6c 65 73 22 0d 00 61 20 |gisterFiles"..a | 00000840 20 20 20 20 20 20 20 4c 44 4d 46 44 20 20 20 28 | LDMFD (| 00000850 73 70 29 21 2c 7b 52 30 2c 70 63 7d 0d 00 62 14 |sp)!,{R0,pc}..b.| 00000860 2e 46 69 6c 65 73 20 45 51 55 44 20 20 20 20 30 |.Files EQUD 0| 00000870 0d 00 63 06 5d ed 0d 00 64 05 e1 0d 00 65 05 3a |..c.]...d....e.:| 00000880 0d 00 66 19 dd 20 f2 73 74 6f 72 65 28 73 6f 75 |..f.. .store(sou| 00000890 72 63 65 24 2c 61 73 24 29 0d 00 67 33 20 c8 99 |rce$,as$)..g3 ..| 000008a0 20 22 4f 53 5f 46 69 6c 65 22 2c 35 2c 73 6f 75 | "OS_File",5,sou| 000008b0 72 63 65 24 20 b8 20 2c 2c 6c 6f 61 64 2c 65 78 |rce$ . ,,load,ex| 000008c0 65 63 2c 73 69 7a 65 2c 61 74 74 72 0d 00 68 0a |ec,size,attr..h.| 000008d0 5b 4f 50 54 20 34 0d 00 69 0b 2e 6f 66 66 73 65 |[OPT 4..i..offse| 000008e0 74 0d 00 6a 17 20 20 20 20 20 20 20 45 51 55 44 |t..j. EQUD| 000008f0 20 20 20 20 6c 6f 61 64 0d 00 6b 17 20 20 20 20 | load..k. | 00000900 20 20 20 45 51 55 44 20 20 20 20 65 78 65 63 0d | EQUD exec.| 00000910 00 6c 17 20 20 20 20 20 20 20 45 51 55 44 20 20 |.l. EQUD | 00000920 20 20 73 69 7a 65 0d 00 6d 17 20 20 20 20 20 20 | size..m. | 00000930 20 45 51 55 44 20 20 20 20 61 74 74 72 0d 00 6e | EQUD attr..n| 00000940 1b 20 20 20 20 20 20 20 45 51 55 53 20 20 20 20 |. EQUS | 00000950 c1 61 73 24 2c 31 33 29 0d 00 6f 14 20 20 20 20 |.as$,13)..o. | 00000960 20 20 20 45 51 55 42 20 20 20 20 30 0d 00 70 10 | EQUB 0..p.| 00000970 20 20 20 20 20 20 20 41 4c 49 47 4e 0d 00 71 19 | ALIGN..q.| 00000980 20 20 20 20 20 20 20 45 51 55 44 20 20 20 20 73 | EQUD s| 00000990 69 7a 65 2b 34 0d 00 72 12 a4 6c 6f 61 64 28 73 |ize+4..r..load(s| 000009a0 6f 75 72 63 65 24 29 0d 00 73 10 20 20 20 20 20 |ource$)..s. | 000009b0 20 20 41 4c 49 47 4e 0d 00 74 14 2e 6e 65 78 74 | ALIGN..t..next| 000009c0 20 20 45 51 55 44 20 20 20 20 30 0d 00 75 05 5d | EQUD 0..u.]| 000009d0 0d 00 76 23 20 21 28 63 6f 64 65 2b 6f 66 66 73 |..v# !(code+offs| 000009e0 65 74 2d 34 29 3d 6e 65 78 74 2d 6f 66 66 73 65 |et-4)=next-offse| 000009f0 74 2b 34 0d 00 77 05 e1 0d 00 78 05 3a 0d 00 79 |t+4..w....x.:..y| 00000a00 0f dd 20 a4 6c 6f 61 64 28 66 24 29 0d 00 7a 24 |.. .load(f$)..z$| 00000a10 c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c 26 46 46 |.. "OS_File",&FF| 00000a20 2c 66 24 2c 4f 25 20 b8 20 2c 2c 2c 2c 6c 65 6e |,f$,O% . ,,,,len| 00000a30 0d 00 7b 13 50 25 2b 3d 6c 65 6e 3a 4f 25 2b 3d |..{.P%+=len:O%+=| 00000a40 6c 65 6e 0d 00 7c 07 3d 22 22 0d 00 7d 05 3a 0d |len..|.=""..}.:.| 00000a50 00 7e 12 dd 20 f2 65 72 72 6f 72 28 72 65 70 24 |.~.. .error(rep$| 00000a60 29 0d 00 7f 19 20 c8 99 20 22 48 6f 75 72 67 6c |).... .. "Hourgl| 00000a70 61 73 73 5f 53 6d 61 73 68 22 0d 00 80 0d 20 85 |ass_Smash".... .| 00000a80 20 31 2c 72 65 70 24 0d 00 81 06 20 e0 0d 00 82 | 1,rep$.... ....| 00000a90 05 e1 0d 00 83 05 3a 0d 00 84 11 dd 20 f2 63 68 |......:..... .ch| 00000aa0 65 63 6b 5f 6e 61 6d 65 0d 00 85 3f 20 e7 20 a9 |eck_name...? . .| 00000ab0 20 64 66 69 6c 65 24 3d 30 20 f2 65 72 72 6f 72 | dfile$=0 .error| 00000ac0 28 22 59 6f 75 20 6e 65 65 64 20 74 6f 20 67 69 |("You need to gi| 00000ad0 76 65 20 74 68 65 20 6f 62 6a 65 63 74 20 61 20 |ve the object a | 00000ae0 6e 61 6d 65 21 22 29 0d 00 86 25 20 e7 20 a7 64 |name!")...% . .d| 00000af0 66 69 6c 65 24 2c 22 24 22 29 20 f2 65 72 72 6f |file$,"$") .erro| 00000b00 72 28 a4 73 79 6e 28 22 24 22 29 29 0d 00 87 25 |r(.syn("$"))...%| 00000b10 20 e7 20 a7 64 66 69 6c 65 24 2c 22 23 22 29 20 | . .dfile$,"#") | 00000b20 f2 65 72 72 6f 72 28 a4 73 79 6e 28 22 23 22 29 |.error(.syn("#")| 00000b30 29 0d 00 88 25 20 e7 20 a7 64 66 69 6c 65 24 2c |)...% . .dfile$,| 00000b40 22 2a 22 29 20 f2 65 72 72 6f 72 28 a4 73 79 6e |"*") .error(.syn| 00000b50 28 22 2a 22 29 29 0d 00 89 25 20 e7 20 a7 64 66 |("*"))...% . .df| 00000b60 69 6c 65 24 2c 22 26 22 29 20 f2 65 72 72 6f 72 |ile$,"&") .error| 00000b70 28 a4 73 79 6e 28 22 26 22 29 29 0d 00 8a 25 20 |(.syn("&"))...% | 00000b80 e7 20 a7 64 66 69 6c 65 24 2c 22 25 22 29 20 f2 |. .dfile$,"%") .| 00000b90 65 72 72 6f 72 28 a4 73 79 6e 28 22 25 22 29 29 |error(.syn("%"))| 00000ba0 0d 00 8b 25 20 e7 20 a7 64 66 69 6c 65 24 2c 22 |...% . .dfile$,"| 00000bb0 40 22 29 20 f2 65 72 72 6f 72 28 a4 73 79 6e 28 |@") .error(.syn(| 00000bc0 22 40 22 29 29 0d 00 8c 25 20 e7 20 a7 64 66 69 |"@"))...% . .dfi| 00000bd0 6c 65 24 2c 22 5c 22 29 20 f2 65 72 72 6f 72 28 |le$,"\") .error(| 00000be0 a4 73 79 6e 28 22 5c 22 29 29 0d 00 8d 25 20 e7 |.syn("\"))...% .| 00000bf0 20 a7 64 66 69 6c 65 24 2c 22 5e 22 29 20 f2 65 | .dfile$,"^") .e| 00000c00 72 72 6f 72 28 a4 73 79 6e 28 22 5e 22 29 29 0d |rror(.syn("^")).| 00000c10 00 8e 25 20 e7 20 a7 64 66 69 6c 65 24 2c 22 3a |..% . .dfile$,":| 00000c20 22 29 20 f2 65 72 72 6f 72 28 a4 73 79 6e 28 22 |") .error(.syn("| 00000c30 3a 22 29 29 0d 00 8f 25 20 e7 20 a7 64 66 69 6c |:"))...% . .dfil| 00000c40 65 24 2c 22 2e 22 29 20 f2 65 72 72 6f 72 28 a4 |e$,".") .error(.| 00000c50 73 79 6e 28 22 2e 22 29 29 0d 00 90 25 20 e7 20 |syn("."))...% . | 00000c60 a7 64 66 69 6c 65 24 2c 22 7c 22 29 20 f2 65 72 |.dfile$,"|") .er| 00000c70 72 6f 72 28 a4 73 79 6e 28 22 7c 22 29 29 0d 00 |ror(.syn("|"))..| 00000c80 91 26 20 e7 20 a7 64 66 69 6c 65 24 2c 22 22 22 |.& . .dfile$,"""| 00000c90 22 29 20 f2 65 72 72 6f 72 28 a4 73 79 6e 28 bd |") .error(.syn(.| 00000ca0 33 34 29 29 0d 00 92 05 e1 0d 00 93 05 3a 0d 00 |34)).........:..| 00000cb0 94 14 dd 20 a4 73 79 6e 28 6d 69 73 74 61 6b 65 |... .syn(mistake| 00000cc0 24 29 0d 00 95 38 3d 22 59 6f 75 20 63 61 6e 27 |$)...8="You can'| 00000cd0 74 20 68 61 76 65 20 61 20 27 22 2b 6d 69 73 74 |t have a '"+mist| 00000ce0 61 6b 65 24 2b 22 27 20 69 6e 20 74 68 65 20 66 |ake$+"' in the f| 00000cf0 69 6c 65 20 6e 61 6d 65 21 22 0d 00 96 05 3a 0d |ile name!"....:.| 00000d00 00 97 0e dd 20 f2 67 65 74 5f 65 6e 76 0d 00 98 |.... .get_env...| 00000d10 1a 20 c8 99 20 22 4f 53 5f 47 65 74 45 6e 76 22 |. .. "OS_GetEnv"| 00000d20 20 b8 20 65 6e 76 24 0d 00 99 18 20 61 25 20 20 | . env$.... a% | 00000d30 20 20 3d 20 a7 65 6e 76 24 2c 22 20 2d 22 29 0d | = .env$," -").| 00000d40 00 9a 1d 20 69 25 20 20 20 20 3d 20 a7 65 6e 76 |... i% = .env| 00000d50 24 2c 22 20 2d 22 2c 61 25 2b 31 29 0d 00 9b 16 |$," -",a%+1)....| 00000d60 20 65 6e 76 24 20 20 3d 20 c1 65 6e 76 24 2c 69 | env$ = .env$,i| 00000d70 25 29 0d 00 9c 1a 20 69 25 20 20 20 20 3d 20 a7 |%).... i% = .| 00000d80 65 6e 76 24 2c 22 20 2d 22 2c 32 29 0d 00 9d 1c |env$," -",2)....| 00000d90 20 4e 61 6d 65 24 20 3d 20 c1 c0 65 6e 76 24 2c | Name$ = ..env$,| 00000da0 69 25 2d 31 29 2c 33 29 0d 00 9e 18 20 65 6e 76 |i%-1),3).... env| 00000db0 24 20 20 3d 20 c1 65 6e 76 24 2c 69 25 2b 31 29 |$ = .env$,i%+1)| 00000dc0 0d 00 9f 1a 20 69 25 20 20 20 20 3d 20 a7 65 6e |.... i% = .en| 00000dd0 76 24 2c 22 20 2d 22 2c 32 29 0d 00 a0 1c 20 70 |v$," -",2).... p| 00000de0 61 74 68 24 20 3d 20 c1 c0 65 6e 76 24 2c 69 25 |ath$ = ..env$,i%| 00000df0 2d 31 29 2c 32 29 0d 00 a1 18 20 65 6e 76 24 20 |-1),2).... env$ | 00000e00 20 3d 20 c1 65 6e 76 24 2c 69 25 2b 31 29 0d 00 | = .env$,i%+1)..| 00000e10 a2 1a 20 69 25 20 20 20 20 3d 20 a7 65 6e 76 24 |.. i% = .env$| 00000e20 2c 22 20 2d 22 2c 32 29 0d 00 a3 1c 20 64 65 73 |," -",2).... des| 00000e30 74 31 24 3d 20 c1 c0 65 6e 76 24 2c 69 25 2d 31 |t1$= ..env$,i%-1| 00000e40 29 2c 32 29 0d 00 a4 18 20 73 66 69 6c 65 24 3d |),2).... sfile$=| 00000e50 20 c1 65 6e 76 24 2c 69 25 2b 32 29 0d 00 a5 15 | .env$,i%+2)....| 00000e60 20 69 25 20 20 20 20 3d 20 a9 20 64 65 73 74 31 | i% = . dest1| 00000e70 24 0d 00 a6 0a 20 69 25 2b 3d 31 0d 00 a7 06 20 |$.... i%+=1.... | 00000e80 f5 0d 00 a8 0c 20 20 20 69 25 2d 3d 31 0d 00 a9 |..... i%-=1...| 00000e90 18 20 fd 20 c1 64 65 73 74 31 24 2c 69 25 2c 31 |. . .dest1$,i%,1| 00000ea0 29 3d 22 2e 22 0d 00 aa 1a 20 64 65 73 74 24 20 |)=".".... dest$ | 00000eb0 3d 20 c0 64 65 73 74 31 24 2c 69 25 2d 31 29 0d |= .dest1$,i%-1).| 00000ec0 00 ab 1a 20 64 66 69 6c 65 24 3d 20 c1 64 65 73 |... dfile$= .des| 00000ed0 74 31 24 2c 69 25 2b 31 29 0d 00 ac 0f 20 73 61 |t1$,i%+1).... sa| 00000ee0 76 65 6d 6f 64 25 3d b9 0d 00 ad 22 20 e7 20 a7 |vemod%=...." . .| 00000ef0 73 66 69 6c 65 24 2c 22 23 6e 6f 74 23 22 29 20 |sfile$,"#not#") | 00000f00 73 61 76 65 6d 6f 64 25 3d a3 0d 00 ae 05 e1 0d |savemod%=.......| 00000f10 ff |.| 00000f11