Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_31.ADF » S/Y2000
S/Y2000
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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_31.ADF |
Filename: | S/Y2000 |
Read OK: | ✔ |
File size: | 05CC bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF802B |
Duplicates
There is 1 duplicate copy of this file in the archive:
- AEW website » eug » eug_5_25_discs_Eug-31_D-EUG31.dsd » U.Y2000
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_31.ADF » S/Y2000
File contents
10REM Attempts to detect whether osword 20REM to read clock is supported and 30REM osbyte to read cmos RAM 40REM (C)1997 SPROW 50DIMblock% 32 55MODE7:CLS:PRINT"OSWord/OSByte for RT Clock detector"' 60PRINT"Read/write clock mode=0 "; 70IFFNsubcall(0)=FALSE THENPRINT;"un"; 80PRINT;"available" 90PRINT"Read/write clock mode=1 "; 100IFFNsubcall(1)=FALSE THENPRINT;"un"; 110PRINT;"available" 120PRINT"Read/write clock mode=2 "; 130IFFNsubcall(2)=FALSE THENPRINT;"un"; 140PRINT;"available" 150PRINT"Read/write cmos ram "; 160IFFNosbyte161_162=FALSE THENPRINT;"un"; 170PRINT;"available" 171PRINT'"Doomsday is "; 172IF(FNsubcall(0)=FALSE ANDFNsubcall(1)=FALSE ANDFNsubcall(2)=FALSE) ORFNosbyte161_162=FALSE THENPRINT;"un"; 174PRINT;"suitable for your machine" 180END 190: 200DEFPROCsetto255 205REM Clear a block to 255 210P%=block% 220FORoffset%=0TO31:?(block%+offset%)=255:NEXT 230ENDPROC 240: 250DEFFNsubcall(type%) 255REM After the call,some,if not all,of the 255's will have been overwritten 260PROCsetto255 270?block%=type%:A%=14:X%=block% MOD256:Y%=block% DIV256:CALL&FFF1 280flag%=FALSE 290FORtest%=1TO31:IF?(block%+test%)<>255 THENflag%=TRUE 300=flag% 310: 320DEFFNosbyte161_162 325REM Attempts to alter a byte,but is done twice just to be sure 330A%=161:X%=30:Y%=255:old30%=(USR&FFF4 AND&FF0000)DIV&10000 340A%=161:X%=31:Y%=255:old31%=(USR&FFF4 AND&FF0000)DIV&10000 350A%=162:X%=30:Y%=old30%+1:CALL&FFF4 360A%=162:X%=31:Y%=old31%+1:CALL&FFF4 370A%=161:X%=30:Y%=255:reread30%=(USR&FFF4 AND&FF0000)DIV&10000 380A%=161:X%=31:Y%=255:reread31%=(USR&FFF4 AND&FF0000)DIV&10000 390IF(reread30%<>(old30%+1)) OR(reread31%<>(old31%+1)) THEN=FALSE 400A%=162:X%=30:Y%=old30%:CALL&FFF4 410A%=162:X%=31:Y%=old31%:CALL&FFF4 420=TRUE
'� Attempts to detect whether osword $� to read clock is supported and � osbyte to read cmos RAM (� (C)1997 SPROW 2�block% 32 70�7:�:�"OSWord/OSByte for RT Clock detector"' < �"Read/write clock mode=0 "; F�subcall(0)=� ��;"un"; P�;"available" Z �"Read/write clock mode=1 "; d�subcall(1)=� ��;"un"; n�;"available" x �"Read/write clock mode=2 "; ��subcall(2)=� ��;"un"; ��;"available" ��"Read/write cmos ram "; ��osbyte161_162=� ��;"un"; ��;"available" ��'"Doomsday is "; �M�(�subcall(0)=� ��subcall(1)=� ��subcall(2)=�) ��osbyte161_162=� ��;"un"; �!�;"suitable for your machine" �� �: ���setto255 �� Clear a block to 255 � P%=block% �)�offset%=0�31:?(block%+offset%)=255:� �� �: �ݤsubcall(type%) �L� After the call,some,if not all,of the 255's will have been overwritten �setto255 <?block%=type%:A%=14:X%=block% �256:Y%=block% �256:�&FFF1 flag%=� ".�test%=1�31:�?(block%+test%)<>255 �flag%=� , =flag% 6: @ݤosbyte161_162 E@� Attempts to alter a byte,but is done twice just to be sure J7A%=161:X%=30:Y%=255:old30%=(�&FFF4 �&FF0000)�&10000 T7A%=161:X%=31:Y%=255:old31%=(�&FFF4 �&FF0000)�&10000 ^#A%=162:X%=30:Y%=old30%+1:�&FFF4 h#A%=162:X%=31:Y%=old31%+1:�&FFF4 r:A%=161:X%=30:Y%=255:reread30%=(�&FFF4 �&FF0000)�&10000 |:A%=161:X%=31:Y%=255:reread31%=(�&FFF4 �&FF0000)�&10000 �9�(reread30%<>(old30%+1)) �(reread31%<>(old31%+1)) �=� �!A%=162:X%=30:Y%=old30%:�&FFF4 �!A%=162:X%=31:Y%=old31%:�&FFF4 �=� �
00000000 0d 00 0a 27 f4 20 41 74 74 65 6d 70 74 73 20 74 |...'. Attempts t| 00000010 6f 20 64 65 74 65 63 74 20 77 68 65 74 68 65 72 |o detect whether| 00000020 20 6f 73 77 6f 72 64 0d 00 14 24 f4 20 74 6f 20 | osword...$. to | 00000030 72 65 61 64 20 63 6c 6f 63 6b 20 69 73 20 73 75 |read clock is su| 00000040 70 70 6f 72 74 65 64 20 61 6e 64 0d 00 1e 1d f4 |pported and.....| 00000050 20 6f 73 62 79 74 65 20 74 6f 20 72 65 61 64 20 | osbyte to read | 00000060 63 6d 6f 73 20 52 41 4d 0d 00 28 13 f4 20 28 43 |cmos RAM..(.. (C| 00000070 29 31 39 39 37 20 53 50 52 4f 57 0d 00 32 0e de |)1997 SPROW..2..| 00000080 62 6c 6f 63 6b 25 20 33 32 0d 00 37 30 eb 37 3a |block% 32..70.7:| 00000090 db 3a f1 22 4f 53 57 6f 72 64 2f 4f 53 42 79 74 |.:."OSWord/OSByt| 000000a0 65 20 66 6f 72 20 52 54 20 43 6c 6f 63 6b 20 64 |e for RT Clock d| 000000b0 65 74 65 63 74 6f 72 22 27 0d 00 3c 20 f1 22 52 |etector"'..< ."R| 000000c0 65 61 64 2f 77 72 69 74 65 20 63 6c 6f 63 6b 20 |ead/write clock | 000000d0 6d 6f 64 65 3d 30 20 22 3b 0d 00 46 1b e7 a4 73 |mode=0 ";..F...s| 000000e0 75 62 63 61 6c 6c 28 30 29 3d a3 20 8c f1 3b 22 |ubcall(0)=. ..;"| 000000f0 75 6e 22 3b 0d 00 50 11 f1 3b 22 61 76 61 69 6c |un";..P..;"avail| 00000100 61 62 6c 65 22 0d 00 5a 20 f1 22 52 65 61 64 2f |able"..Z ."Read/| 00000110 77 72 69 74 65 20 63 6c 6f 63 6b 20 6d 6f 64 65 |write clock mode| 00000120 3d 31 20 22 3b 0d 00 64 1b e7 a4 73 75 62 63 61 |=1 ";..d...subca| 00000130 6c 6c 28 31 29 3d a3 20 8c f1 3b 22 75 6e 22 3b |ll(1)=. ..;"un";| 00000140 0d 00 6e 11 f1 3b 22 61 76 61 69 6c 61 62 6c 65 |..n..;"available| 00000150 22 0d 00 78 20 f1 22 52 65 61 64 2f 77 72 69 74 |"..x ."Read/writ| 00000160 65 20 63 6c 6f 63 6b 20 6d 6f 64 65 3d 32 20 22 |e clock mode=2 "| 00000170 3b 0d 00 82 1b e7 a4 73 75 62 63 61 6c 6c 28 32 |;......subcall(2| 00000180 29 3d a3 20 8c f1 3b 22 75 6e 22 3b 0d 00 8c 11 |)=. ..;"un";....| 00000190 f1 3b 22 61 76 61 69 6c 61 62 6c 65 22 0d 00 96 |.;"available"...| 000001a0 1c f1 22 52 65 61 64 2f 77 72 69 74 65 20 63 6d |.."Read/write cm| 000001b0 6f 73 20 72 61 6d 20 22 3b 0d 00 a0 1e e7 a4 6f |os ram ";......o| 000001c0 73 62 79 74 65 31 36 31 5f 31 36 32 3d a3 20 8c |sbyte161_162=. .| 000001d0 f1 3b 22 75 6e 22 3b 0d 00 aa 11 f1 3b 22 61 76 |.;"un";.....;"av| 000001e0 61 69 6c 61 62 6c 65 22 0d 00 ab 15 f1 27 22 44 |ailable".....'"D| 000001f0 6f 6f 6d 73 64 61 79 20 69 73 20 22 3b 0d 00 ac |oomsday is ";...| 00000200 4d e7 28 a4 73 75 62 63 61 6c 6c 28 30 29 3d a3 |M.(.subcall(0)=.| 00000210 20 80 a4 73 75 62 63 61 6c 6c 28 31 29 3d a3 20 | ..subcall(1)=. | 00000220 80 a4 73 75 62 63 61 6c 6c 28 32 29 3d a3 29 20 |..subcall(2)=.) | 00000230 84 a4 6f 73 62 79 74 65 31 36 31 5f 31 36 32 3d |..osbyte161_162=| 00000240 a3 20 8c f1 3b 22 75 6e 22 3b 0d 00 ae 21 f1 3b |. ..;"un";...!.;| 00000250 22 73 75 69 74 61 62 6c 65 20 66 6f 72 20 79 6f |"suitable for yo| 00000260 75 72 20 6d 61 63 68 69 6e 65 22 0d 00 b4 05 e0 |ur machine".....| 00000270 0d 00 be 05 3a 0d 00 c8 0e dd f2 73 65 74 74 6f |....:......setto| 00000280 32 35 35 0d 00 cd 1a f4 20 43 6c 65 61 72 20 61 |255..... Clear a| 00000290 20 62 6c 6f 63 6b 20 74 6f 20 32 35 35 0d 00 d2 | block to 255...| 000002a0 0d 50 25 3d 62 6c 6f 63 6b 25 0d 00 dc 29 e3 6f |.P%=block%...).o| 000002b0 66 66 73 65 74 25 3d 30 b8 33 31 3a 3f 28 62 6c |ffset%=0.31:?(bl| 000002c0 6f 63 6b 25 2b 6f 66 66 73 65 74 25 29 3d 32 35 |ock%+offset%)=25| 000002d0 35 3a ed 0d 00 e6 05 e1 0d 00 f0 05 3a 0d 00 fa |5:..........:...| 000002e0 14 dd a4 73 75 62 63 61 6c 6c 28 74 79 70 65 25 |...subcall(type%| 000002f0 29 0d 00 ff 4c f4 20 41 66 74 65 72 20 74 68 65 |)...L. After the| 00000300 20 63 61 6c 6c 2c 73 6f 6d 65 2c 69 66 20 6e 6f | call,some,if no| 00000310 74 20 61 6c 6c 2c 6f 66 20 74 68 65 20 32 35 35 |t all,of the 255| 00000320 27 73 20 77 69 6c 6c 20 68 61 76 65 20 62 65 65 |'s will have bee| 00000330 6e 20 6f 76 65 72 77 72 69 74 74 65 6e 0d 01 04 |n overwritten...| 00000340 0d f2 73 65 74 74 6f 32 35 35 0d 01 0e 3c 3f 62 |..setto255...<?b| 00000350 6c 6f 63 6b 25 3d 74 79 70 65 25 3a 41 25 3d 31 |lock%=type%:A%=1| 00000360 34 3a 58 25 3d 62 6c 6f 63 6b 25 20 83 32 35 36 |4:X%=block% .256| 00000370 3a 59 25 3d 62 6c 6f 63 6b 25 20 81 32 35 36 3a |:Y%=block% .256:| 00000380 d6 26 46 46 46 31 0d 01 18 0b 66 6c 61 67 25 3d |.&FFF1....flag%=| 00000390 a3 0d 01 22 2e e3 74 65 73 74 25 3d 31 b8 33 31 |..."..test%=1.31| 000003a0 3a e7 3f 28 62 6c 6f 63 6b 25 2b 74 65 73 74 25 |:.?(block%+test%| 000003b0 29 3c 3e 32 35 35 20 8c 66 6c 61 67 25 3d b9 0d |)<>255 .flag%=..| 000003c0 01 2c 0a 3d 66 6c 61 67 25 0d 01 36 05 3a 0d 01 |.,.=flag%..6.:..| 000003d0 40 13 dd a4 6f 73 62 79 74 65 31 36 31 5f 31 36 |@...osbyte161_16| 000003e0 32 0d 01 45 40 f4 20 41 74 74 65 6d 70 74 73 20 |2..E@. Attempts | 000003f0 74 6f 20 61 6c 74 65 72 20 61 20 62 79 74 65 2c |to alter a byte,| 00000400 62 75 74 20 69 73 20 64 6f 6e 65 20 74 77 69 63 |but is done twic| 00000410 65 20 6a 75 73 74 20 74 6f 20 62 65 20 73 75 72 |e just to be sur| 00000420 65 0d 01 4a 37 41 25 3d 31 36 31 3a 58 25 3d 33 |e..J7A%=161:X%=3| 00000430 30 3a 59 25 3d 32 35 35 3a 6f 6c 64 33 30 25 3d |0:Y%=255:old30%=| 00000440 28 ba 26 46 46 46 34 20 80 26 46 46 30 30 30 30 |(.&FFF4 .&FF0000| 00000450 29 81 26 31 30 30 30 30 0d 01 54 37 41 25 3d 31 |).&10000..T7A%=1| 00000460 36 31 3a 58 25 3d 33 31 3a 59 25 3d 32 35 35 3a |61:X%=31:Y%=255:| 00000470 6f 6c 64 33 31 25 3d 28 ba 26 46 46 46 34 20 80 |old31%=(.&FFF4 .| 00000480 26 46 46 30 30 30 30 29 81 26 31 30 30 30 30 0d |&FF0000).&10000.| 00000490 01 5e 23 41 25 3d 31 36 32 3a 58 25 3d 33 30 3a |.^#A%=162:X%=30:| 000004a0 59 25 3d 6f 6c 64 33 30 25 2b 31 3a d6 26 46 46 |Y%=old30%+1:.&FF| 000004b0 46 34 0d 01 68 23 41 25 3d 31 36 32 3a 58 25 3d |F4..h#A%=162:X%=| 000004c0 33 31 3a 59 25 3d 6f 6c 64 33 31 25 2b 31 3a d6 |31:Y%=old31%+1:.| 000004d0 26 46 46 46 34 0d 01 72 3a 41 25 3d 31 36 31 3a |&FFF4..r:A%=161:| 000004e0 58 25 3d 33 30 3a 59 25 3d 32 35 35 3a 72 65 72 |X%=30:Y%=255:rer| 000004f0 65 61 64 33 30 25 3d 28 ba 26 46 46 46 34 20 80 |ead30%=(.&FFF4 .| 00000500 26 46 46 30 30 30 30 29 81 26 31 30 30 30 30 0d |&FF0000).&10000.| 00000510 01 7c 3a 41 25 3d 31 36 31 3a 58 25 3d 33 31 3a |.|:A%=161:X%=31:| 00000520 59 25 3d 32 35 35 3a 72 65 72 65 61 64 33 31 25 |Y%=255:reread31%| 00000530 3d 28 ba 26 46 46 46 34 20 80 26 46 46 30 30 30 |=(.&FFF4 .&FF000| 00000540 30 29 81 26 31 30 30 30 30 0d 01 86 39 e7 28 72 |0).&10000...9.(r| 00000550 65 72 65 61 64 33 30 25 3c 3e 28 6f 6c 64 33 30 |eread30%<>(old30| 00000560 25 2b 31 29 29 20 84 28 72 65 72 65 61 64 33 31 |%+1)) .(reread31| 00000570 25 3c 3e 28 6f 6c 64 33 31 25 2b 31 29 29 20 8c |%<>(old31%+1)) .| 00000580 3d a3 0d 01 90 21 41 25 3d 31 36 32 3a 58 25 3d |=....!A%=162:X%=| 00000590 33 30 3a 59 25 3d 6f 6c 64 33 30 25 3a d6 26 46 |30:Y%=old30%:.&F| 000005a0 46 46 34 0d 01 9a 21 41 25 3d 31 36 32 3a 58 25 |FF4...!A%=162:X%| 000005b0 3d 33 31 3a 59 25 3d 6f 6c 64 33 31 25 3a d6 26 |=31:Y%=old31%:.&| 000005c0 46 46 46 34 0d 01 a4 06 3d b9 0d ff |FFF4....=...| 000005cc