Home » Archimedes archive » Acorn User » AU 1997-05 B.adf » Regulars » StarInfo/Seago/!Styx/KillOld
StarInfo/Seago/!Styx/KillOld
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 » Acorn User » AU 1997-05 B.adf » Regulars |
Filename: | StarInfo/Seago/!Styx/KillOld |
Read OK: | ✔ |
File size: | 055A bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10SYS&10TOenv$:env$=FNgln(env$," ") 20diff%=((EVAL(env$)-1)*100*60*60*24) DIV 256 30DIM time% 8,file% 96 40DIM file$(76) 50!time%=3 60SYS "OS_Word",14,time% 70no%=0:I%=0 80SYS "OS_GBPB",11,"<Hades$Dir>"+CHR$0,file%,1,no%,96,"*"+CHR$0 TO ,,,,no% 90WHILE no%<>-1 100 IF FNsub_times(time%,file%+24)>diff% THEN file$(I%)="<Hades$Dir>."+FNstring(file%+29):I%+=1 110 SYS "OS_GBPB",11,"<Hades$Dir>"+CHR$0,file%,1,no%,96,"*"+CHR$0 TO ,,,,no% 120ENDWHILE 130 140REM OSCLI("SaveLongFSCache") 150REM OSCLI("RemoveLongFS ADFS") 151 160IF I%>0 THEN 170 FOR J%=0 TO I%-1 180 error%=FALSE 190 LOCAL ERROR 200 ON ERROR LOCAL error%=TRUE 210 IF NOT error% THEN OSCLI("%Wipe "+file$(J%)+".* ~CFR~V") 220 RESTORE ERROR 230 error%=FALSE 240 LOCAL ERROR 250 ON ERROR LOCAL error%=TRUE 260 IF NOT error% THEN OSCLI("%Wipe "+file$(J%)+" ~CFR~V") 270 RESTORE ERROR 280 NEXT 290ENDIF 291 300REM OSCLI("AddLongFS ADFS") 301 310END 320 330DEF FNgln(a$,b$):WHILEINSTR(a$,b$):a$=MID$(a$,INSTR(a$,b$)+1):ENDWHILE:=a$ 340 350DEF FNstring(ptr%) 360LOCAL result$ 370WHILE ?ptr%>31 380 result$+=CHR$(?ptr%) 390 ptr%+=1 400ENDWHILE 410=result$ 420 430DEF FNsub_times(t1%,t2%) 440LOCAL result%,byte1%,byte2% 450REM msb 460byte1%=t1%?4 470byte2%=t2%?4 480result%=byte1%-byte2% 490IF result%>0 THEN =result% << 24 500byte1%=t1%?3 510byte2%=t2%?3 520result%=byte1%-byte2% 530IF result%>0 THEN =result% << 16 540byte1%=t1%?2 550byte2%=t2%?2 560result%=byte1%-byte2% 570IF result%>0 THEN =result% << 8 580byte1%=t1%?1 590byte2%=t2%?1 600result%=byte1%-byte2% 610IF result%>0 THEN =result% 620REM Ignore lsb 630=0 640
"ș&10�env$:env$=�gln(env$," ") *diff%=((�(env$)-1)*100*60*60*24) � 256 � time% 8,file% 96 (� file$(76) 2!time%=3 <ș "OS_Word",14,time% Fno%=0:I%=0 PDș "OS_GBPB",11,"<Hades$Dir>"+�0,file%,1,no%,96,"*"+�0 � ,,,,no% Zȕ no%<>-1 dZ � �sub_times(time%,file%+24)>diff% � file$(I%)="<Hades$Dir>."+�string(file%+29):I%+=1 nE ș "OS_GBPB",11,"<Hades$Dir>"+�0,file%,1,no%,96,"*"+�0 � ,,,,no% x� � �� OSCLI("SaveLongFSCache") � � OSCLI("RemoveLongFS ADFS") � �� I%>0 � � � J%=0 � I%-1 � error%=� � � � � � � � error%=� �5 � � error% � �("%Wipe "+file$(J%)+".* ~CFR~V") � � � � error%=� � � � � � � � error%=� 3 � � error% � �("%Wipe "+file$(J%)+" ~CFR~V") � � � "� # ,� OSCLI("AddLongFS ADFS") - 6� @ J3� �gln(a$,b$):ȕ�a$,b$):a$=�a$,�a$,b$)+1):�:=a$ T ^� �string(ptr%) h � result$ rȕ ?ptr%>31 | result$+=�(?ptr%) � ptr%+=1 �� �=result$ � �� �sub_times(t1%,t2%) �� result%,byte1%,byte2% � � msb �byte1%=t1%?4 �byte2%=t2%?4 �result%=byte1%-byte2% � � result%>0 � =result% << 24 �byte1%=t1%?3 �byte2%=t2%?3 result%=byte1%-byte2% � result%>0 � =result% << 16 byte1%=t1%?2 &byte2%=t2%?2 0result%=byte1%-byte2% :� result%>0 � =result% << 8 Dbyte1%=t1%?1 Nbyte2%=t2%?1 Xresult%=byte1%-byte2% b� result%>0 � =result% l� Ignore lsb v=0 � �
00000000 0d 00 0a 22 c8 99 26 31 30 b8 65 6e 76 24 3a 65 |..."..&10.env$:e| 00000010 6e 76 24 3d a4 67 6c 6e 28 65 6e 76 24 2c 22 20 |nv$=.gln(env$," | 00000020 22 29 0d 00 14 2a 64 69 66 66 25 3d 28 28 a0 28 |")...*diff%=((.(| 00000030 65 6e 76 24 29 2d 31 29 2a 31 30 30 2a 36 30 2a |env$)-1)*100*60*| 00000040 36 30 2a 32 34 29 20 81 20 32 35 36 0d 00 1e 16 |60*24) . 256....| 00000050 de 20 74 69 6d 65 25 20 38 2c 66 69 6c 65 25 20 |. time% 8,file% | 00000060 39 36 0d 00 28 0f de 20 66 69 6c 65 24 28 37 36 |96..(.. file$(76| 00000070 29 0d 00 32 0c 21 74 69 6d 65 25 3d 33 0d 00 3c |)..2.!time%=3..<| 00000080 19 c8 99 20 22 4f 53 5f 57 6f 72 64 22 2c 31 34 |... "OS_Word",14| 00000090 2c 74 69 6d 65 25 0d 00 46 0e 6e 6f 25 3d 30 3a |,time%..F.no%=0:| 000000a0 49 25 3d 30 0d 00 50 44 c8 99 20 22 4f 53 5f 47 |I%=0..PD.. "OS_G| 000000b0 42 50 42 22 2c 31 31 2c 22 3c 48 61 64 65 73 24 |BPB",11,"<Hades$| 000000c0 44 69 72 3e 22 2b bd 30 2c 66 69 6c 65 25 2c 31 |Dir>"+.0,file%,1| 000000d0 2c 6e 6f 25 2c 39 36 2c 22 2a 22 2b bd 30 20 b8 |,no%,96,"*"+.0 .| 000000e0 20 2c 2c 2c 2c 6e 6f 25 0d 00 5a 0e c8 95 20 6e | ,,,,no%..Z... n| 000000f0 6f 25 3c 3e 2d 31 0d 00 64 5a 20 e7 20 a4 73 75 |o%<>-1..dZ . .su| 00000100 62 5f 74 69 6d 65 73 28 74 69 6d 65 25 2c 66 69 |b_times(time%,fi| 00000110 6c 65 25 2b 32 34 29 3e 64 69 66 66 25 20 8c 20 |le%+24)>diff% . | 00000120 66 69 6c 65 24 28 49 25 29 3d 22 3c 48 61 64 65 |file$(I%)="<Hade| 00000130 73 24 44 69 72 3e 2e 22 2b a4 73 74 72 69 6e 67 |s$Dir>."+.string| 00000140 28 66 69 6c 65 25 2b 32 39 29 3a 49 25 2b 3d 31 |(file%+29):I%+=1| 00000150 0d 00 6e 45 20 c8 99 20 22 4f 53 5f 47 42 50 42 |..nE .. "OS_GBPB| 00000160 22 2c 31 31 2c 22 3c 48 61 64 65 73 24 44 69 72 |",11,"<Hades$Dir| 00000170 3e 22 2b bd 30 2c 66 69 6c 65 25 2c 31 2c 6e 6f |>"+.0,file%,1,no| 00000180 25 2c 39 36 2c 22 2a 22 2b bd 30 20 b8 20 2c 2c |%,96,"*"+.0 . ,,| 00000190 2c 2c 6e 6f 25 0d 00 78 05 ce 0d 00 82 04 0d 00 |,,no%..x........| 000001a0 8c 1e f4 20 4f 53 43 4c 49 28 22 53 61 76 65 4c |... OSCLI("SaveL| 000001b0 6f 6e 67 46 53 43 61 63 68 65 22 29 0d 00 96 20 |ongFSCache")... | 000001c0 f4 20 4f 53 43 4c 49 28 22 52 65 6d 6f 76 65 4c |. OSCLI("RemoveL| 000001d0 6f 6e 67 46 53 20 41 44 46 53 22 29 0d 00 97 04 |ongFS ADFS")....| 000001e0 0d 00 a0 0c e7 20 49 25 3e 30 20 8c 0d 00 aa 12 |..... I%>0 .....| 000001f0 20 e3 20 4a 25 3d 30 20 b8 20 49 25 2d 31 0d 00 | . J%=0 . I%-1..| 00000200 b4 0e 20 20 65 72 72 6f 72 25 3d a3 0d 00 be 09 |.. error%=.....| 00000210 20 20 ea 20 85 0d 00 c8 14 20 20 ee 20 85 20 ea | . ..... . . .| 00000220 20 65 72 72 6f 72 25 3d b9 0d 00 d2 35 20 20 20 | error%=....5 | 00000230 e7 20 ac 20 65 72 72 6f 72 25 20 8c 20 ff 28 22 |. . error% . .("| 00000240 25 57 69 70 65 20 22 2b 66 69 6c 65 24 28 4a 25 |%Wipe "+file$(J%| 00000250 29 2b 22 2e 2a 20 7e 43 46 52 7e 56 22 29 0d 00 |)+".* ~CFR~V")..| 00000260 dc 09 20 20 f7 20 85 0d 00 e6 0e 20 20 65 72 72 |.. . ..... err| 00000270 6f 72 25 3d a3 0d 00 f0 09 20 20 ea 20 85 0d 00 |or%=..... . ...| 00000280 fa 14 20 20 ee 20 85 20 ea 20 65 72 72 6f 72 25 |.. . . . error%| 00000290 3d b9 0d 01 04 33 20 20 20 e7 20 ac 20 65 72 72 |=....3 . . err| 000002a0 6f 72 25 20 8c 20 ff 28 22 25 57 69 70 65 20 22 |or% . .("%Wipe "| 000002b0 2b 66 69 6c 65 24 28 4a 25 29 2b 22 20 7e 43 46 |+file$(J%)+" ~CF| 000002c0 52 7e 56 22 29 0d 01 0e 09 20 20 f7 20 85 0d 01 |R~V").... . ...| 000002d0 18 06 20 ed 0d 01 22 05 cd 0d 01 23 04 0d 01 2c |.. ..."....#...,| 000002e0 1d f4 20 4f 53 43 4c 49 28 22 41 64 64 4c 6f 6e |.. OSCLI("AddLon| 000002f0 67 46 53 20 41 44 46 53 22 29 0d 01 2d 04 0d 01 |gFS ADFS")..-...| 00000300 36 05 e0 0d 01 40 04 0d 01 4a 33 dd 20 a4 67 6c |6....@...J3. .gl| 00000310 6e 28 61 24 2c 62 24 29 3a c8 95 a7 61 24 2c 62 |n(a$,b$):...a$,b| 00000320 24 29 3a 61 24 3d c1 61 24 2c a7 61 24 2c 62 24 |$):a$=.a$,.a$,b$| 00000330 29 2b 31 29 3a ce 3a 3d 61 24 0d 01 54 04 0d 01 |)+1):.:=a$..T...| 00000340 5e 13 dd 20 a4 73 74 72 69 6e 67 28 70 74 72 25 |^.. .string(ptr%| 00000350 29 0d 01 68 0d ea 20 72 65 73 75 6c 74 24 0d 01 |)..h.. result$..| 00000360 72 0f c8 95 20 3f 70 74 72 25 3e 33 31 0d 01 7c |r... ?ptr%>31..|| 00000370 16 20 72 65 73 75 6c 74 24 2b 3d bd 28 3f 70 74 |. result$+=.(?pt| 00000380 72 25 29 0d 01 86 0c 20 70 74 72 25 2b 3d 31 0d |r%).... ptr%+=1.| 00000390 01 90 05 ce 0d 01 9a 0c 3d 72 65 73 75 6c 74 24 |........=result$| 000003a0 0d 01 a4 04 0d 01 ae 19 dd 20 a4 73 75 62 5f 74 |......... .sub_t| 000003b0 69 6d 65 73 28 74 31 25 2c 74 32 25 29 0d 01 b8 |imes(t1%,t2%)...| 000003c0 1b ea 20 72 65 73 75 6c 74 25 2c 62 79 74 65 31 |.. result%,byte1| 000003d0 25 2c 62 79 74 65 32 25 0d 01 c2 09 f4 20 6d 73 |%,byte2%..... ms| 000003e0 62 0d 01 cc 10 62 79 74 65 31 25 3d 74 31 25 3f |b....byte1%=t1%?| 000003f0 34 0d 01 d6 10 62 79 74 65 32 25 3d 74 32 25 3f |4....byte2%=t2%?| 00000400 34 0d 01 e0 19 72 65 73 75 6c 74 25 3d 62 79 74 |4....result%=byt| 00000410 65 31 25 2d 62 79 74 65 32 25 0d 01 ea 20 e7 20 |e1%-byte2%... . | 00000420 72 65 73 75 6c 74 25 3e 30 20 8c 20 3d 72 65 73 |result%>0 . =res| 00000430 75 6c 74 25 20 3c 3c 20 32 34 0d 01 f4 10 62 79 |ult% << 24....by| 00000440 74 65 31 25 3d 74 31 25 3f 33 0d 01 fe 10 62 79 |te1%=t1%?3....by| 00000450 74 65 32 25 3d 74 32 25 3f 33 0d 02 08 19 72 65 |te2%=t2%?3....re| 00000460 73 75 6c 74 25 3d 62 79 74 65 31 25 2d 62 79 74 |sult%=byte1%-byt| 00000470 65 32 25 0d 02 12 20 e7 20 72 65 73 75 6c 74 25 |e2%... . result%| 00000480 3e 30 20 8c 20 3d 72 65 73 75 6c 74 25 20 3c 3c |>0 . =result% <<| 00000490 20 31 36 0d 02 1c 10 62 79 74 65 31 25 3d 74 31 | 16....byte1%=t1| 000004a0 25 3f 32 0d 02 26 10 62 79 74 65 32 25 3d 74 32 |%?2..&.byte2%=t2| 000004b0 25 3f 32 0d 02 30 19 72 65 73 75 6c 74 25 3d 62 |%?2..0.result%=b| 000004c0 79 74 65 31 25 2d 62 79 74 65 32 25 0d 02 3a 1f |yte1%-byte2%..:.| 000004d0 e7 20 72 65 73 75 6c 74 25 3e 30 20 8c 20 3d 72 |. result%>0 . =r| 000004e0 65 73 75 6c 74 25 20 3c 3c 20 38 0d 02 44 10 62 |esult% << 8..D.b| 000004f0 79 74 65 31 25 3d 74 31 25 3f 31 0d 02 4e 10 62 |yte1%=t1%?1..N.b| 00000500 79 74 65 32 25 3d 74 32 25 3f 31 0d 02 58 19 72 |yte2%=t2%?1..X.r| 00000510 65 73 75 6c 74 25 3d 62 79 74 65 31 25 2d 62 79 |esult%=byte1%-by| 00000520 74 65 32 25 0d 02 62 1a e7 20 72 65 73 75 6c 74 |te2%..b.. result| 00000530 25 3e 30 20 8c 20 3d 72 65 73 75 6c 74 25 0d 02 |%>0 . =result%..| 00000540 6c 10 f4 20 49 67 6e 6f 72 65 20 6c 73 62 0d 02 |l.. Ignore lsb..| 00000550 76 06 3d 30 0d 02 80 04 0d ff |v.=0......| 0000055a