Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_34.ADF » P/DFSEXAM
P/DFSEXAM
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_34.ADF |
Filename: | P/DFSEXAM |
Read OK: | ✔ |
File size: | 05B6 bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF802B |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » eug » eug_3_5_discs_Eug-34_A-EUG34.adf » U/DFSEXM
- AEW website » eug » eug_5_25_discs_Eug-34_D-EUG34.dsd » U.DFSEXM
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_34.ADF » P/DFSEXAM
File contents
10REM ******************************* 20REM Read DFS sectors 30REM Original BASIC ADFS program 40REM By R.A.Waddilove 50REM (c) Electron User, June 1989 60REM Converted for DFS use 70REM By R.A.Dimond, September 1997 80REM ******************************* 90MODE 6 100*DISC 110VDU 19,0,4;0; 120buffer=&3000 130DIM block 16 140osword=&FFF1 150PROCtitle 160PRINT 170PRINT"Drive no. (0,1,2,3) "; 180REPEAT:S$=GET$:UNTIL INSTR("0123",S$):PRINT;S$:d%=VAL S$ 190PRINT 200INPUT "Enter disc address:&"da$ 210IF da$="" da$="00" 220REPEAT 230dadd=EVAL("&"+da$) 240?block=d% :REM drive no. 250block!1=buffer :REM load address 260block?5=3 270block?6=&53 280block?7=dadd DIV 10 290block?8=dadd MOD 10 300block?9=&21 310block?10=0 :REM Disc error 320A%=&7F 330X%=block MOD 256 340Y%=block DIV 256 350CALL osword 360IFblock?10>0 PRINT''"Disc Error ";:END 370@%=&000904 380VDU23;8202;0;0;0;0 390FOR K%=0 TO 128 STEP 128 400PROCtitle 410PRINT "Disc address=&";~dadd;" / Track=";dadd DIV10;" / Sector=";dadd MOD10 420PRINT TAB(0,5)"-Byte-------Hexadecimal--------Ascii----"; 430FOR I%=0 TO 15*8 STEP 8 440a$="" 450PRINT I%+K%;":"; 460FOR J%=0 TO 7 470byte=?(buffer+K%+I%+J%) 480IF byte<32 OR byte>126 a$=a$+"." ELSE a$=a$+CHR$(byte) 490PRINT " ";~byte DIV 16;~byte MOD 16; 500NEXT 510PRINT " ";a$ 520NEXT 530PRINT TAB(10,23)"Press a key..."; 540dummy=GET 550NEXT 560PRINT TAB(8,23)"B=Back F=Forward" 570PRINT TAB(8,24)"R=Re-run ESCAPE=Quit"; 580key$=CHR$(GET OR 32) 590IFINKEY-101 dadd=dadd-1 600IFINKEY-68 dadd=dadd+1 610da$=STR$~dadd 620IFINKEY-52 THENRUN 630UNTILFALSE 640END 650: 660DEF PROCtitle 670CLS 680COLOUR 129:COLOUR 0 690PRINT TAB(0,1)"********* DFS Disc Explorer ***********" 700COLOUR 128:COLOUR 1 710ENDPROC
%� ******************************* � Read DFS sectors !� Original BASIC ADFS program (� By R.A.Waddilove 2"� (c) Electron User, June 1989 <� Converted for DFS use F#� By R.A.Dimond, September 1997 P%� ******************************* Z� 6 d *DISC n� 19,0,4;0; xbuffer=&3000 �� block 16 �osword=&FFF1 � �title �� ��"Drive no. (0,1,2,3) "; �%�:S$=�:� �"0123",S$):�;S$:d%=� S$ �� �� "Enter disc address:&"da$ �� da$="" da$="00" �� �dadd=�("&"+da$) �?block=d% :� drive no. �"block!1=buffer :� load address block?5=3 block?6=&53 block?7=dadd � 10 "block?8=dadd � 10 ,block?9=&21 6block?10=0 :� Disc error @ A%=&7F JX%=block � 256 TY%=block � 256 ^� osword h#�block?10>0 �''"Disc Error ";:� r@%=&000904 |�23;8202;0;0;0;0 �� K%=0 � 128 � 128 � �title �G� "Disc address=&";~dadd;" / Track=";dadd �10;" / Sector=";dadd �10 �6� �0,5)"-Byte-------Hexadecimal--------Ascii----"; �� I%=0 � 15*8 � 8 � a$="" �� I%+K%;":"; �� J%=0 � 7 �byte=?(buffer+K%+I%+J%) �2� byte<32 � byte>126 a$=a$+"." � a$=a$+�(byte) � � " ";~byte � 16;~byte � 16; �� � � " ";a$ � � �10,23)"Press a key..."; dummy=� &� 0#� �8,23)"B=Back F=Forward" :&� �8,24)"R=Re-run ESCAPE=Quit"; Dkey$=�(� � 32) N�-101 dadd=dadd-1 X�-68 dadd=dadd+1 bda$=�~dadd l�-52 �� v�� �� �: �� �title �� � � 129:� 0 �5� �0,1)"********* DFS Disc Explorer ***********" � � 128:� 1 �� �
00000000 0d 00 0a 25 f4 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |...%. **********| 00000010 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 00000020 2a 2a 2a 2a 2a 0d 00 14 16 f4 20 52 65 61 64 20 |*****..... Read | 00000030 44 46 53 20 73 65 63 74 6f 72 73 0d 00 1e 21 f4 |DFS sectors...!.| 00000040 20 4f 72 69 67 69 6e 61 6c 20 42 41 53 49 43 20 | Original BASIC | 00000050 41 44 46 53 20 70 72 6f 67 72 61 6d 0d 00 28 16 |ADFS program..(.| 00000060 f4 20 42 79 20 52 2e 41 2e 57 61 64 64 69 6c 6f |. By R.A.Waddilo| 00000070 76 65 0d 00 32 22 f4 20 28 63 29 20 45 6c 65 63 |ve..2". (c) Elec| 00000080 74 72 6f 6e 20 55 73 65 72 2c 20 4a 75 6e 65 20 |tron User, June | 00000090 31 39 38 39 0d 00 3c 1b f4 20 43 6f 6e 76 65 72 |1989..<.. Conver| 000000a0 74 65 64 20 66 6f 72 20 44 46 53 20 75 73 65 0d |ted for DFS use.| 000000b0 00 46 23 f4 20 42 79 20 52 2e 41 2e 44 69 6d 6f |.F#. By R.A.Dimo| 000000c0 6e 64 2c 20 53 65 70 74 65 6d 62 65 72 20 31 39 |nd, September 19| 000000d0 39 37 0d 00 50 25 f4 20 2a 2a 2a 2a 2a 2a 2a 2a |97..P%. ********| 000000e0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 000000f0 2a 2a 2a 2a 2a 2a 2a 0d 00 5a 07 eb 20 36 0d 00 |*******..Z.. 6..| 00000100 64 09 2a 44 49 53 43 0d 00 6e 0f ef 20 31 39 2c |d.*DISC..n.. 19,| 00000110 30 2c 34 3b 30 3b 0d 00 78 10 62 75 66 66 65 72 |0,4;0;..x.buffer| 00000120 3d 26 33 30 30 30 0d 00 82 0e de 20 62 6c 6f 63 |=&3000..... bloc| 00000130 6b 20 31 36 0d 00 8c 10 6f 73 77 6f 72 64 3d 26 |k 16....osword=&| 00000140 46 46 46 31 0d 00 96 0a f2 74 69 74 6c 65 0d 00 |FFF1.....title..| 00000150 a0 05 f1 0d 00 aa 1c f1 22 44 72 69 76 65 20 6e |........"Drive n| 00000160 6f 2e 20 28 30 2c 31 2c 32 2c 33 29 20 22 3b 0d |o. (0,1,2,3) ";.| 00000170 00 b4 25 f5 3a 53 24 3d be 3a fd 20 a7 22 30 31 |..%.:S$=.:. ."01| 00000180 32 33 22 2c 53 24 29 3a f1 3b 53 24 3a 64 25 3d |23",S$):.;S$:d%=| 00000190 bb 20 53 24 0d 00 be 05 f1 0d 00 c8 1f e8 20 22 |. S$.......... "| 000001a0 45 6e 74 65 72 20 64 69 73 63 20 61 64 64 72 65 |Enter disc addre| 000001b0 73 73 3a 26 22 64 61 24 0d 00 d2 15 e7 20 64 61 |ss:&"da$..... da| 000001c0 24 3d 22 22 20 64 61 24 3d 22 30 30 22 0d 00 dc |$="" da$="00"...| 000001d0 05 f5 0d 00 e6 13 64 61 64 64 3d a0 28 22 26 22 |......dadd=.("&"| 000001e0 2b 64 61 24 29 0d 00 f0 1d 3f 62 6c 6f 63 6b 3d |+da$)....?block=| 000001f0 64 25 20 3a f4 20 64 72 69 76 65 20 6e 6f 2e 20 |d% :. drive no. | 00000200 20 20 0d 00 fa 22 62 6c 6f 63 6b 21 31 3d 62 75 | ..."block!1=bu| 00000210 66 66 65 72 20 3a f4 20 6c 6f 61 64 20 61 64 64 |ffer :. load add| 00000220 72 65 73 73 0d 01 04 0d 62 6c 6f 63 6b 3f 35 3d |ress....block?5=| 00000230 33 0d 01 0e 0f 62 6c 6f 63 6b 3f 36 3d 26 35 33 |3....block?6=&53| 00000240 0d 01 18 15 62 6c 6f 63 6b 3f 37 3d 64 61 64 64 |....block?7=dadd| 00000250 20 81 20 31 30 0d 01 22 15 62 6c 6f 63 6b 3f 38 | . 10..".block?8| 00000260 3d 64 61 64 64 20 83 20 31 30 0d 01 2c 0f 62 6c |=dadd . 10..,.bl| 00000270 6f 63 6b 3f 39 3d 26 32 31 0d 01 36 1c 62 6c 6f |ock?9=&21..6.blo| 00000280 63 6b 3f 31 30 3d 30 20 3a f4 20 44 69 73 63 20 |ck?10=0 :. Disc | 00000290 65 72 72 6f 72 0d 01 40 0a 41 25 3d 26 37 46 0d |error..@.A%=&7F.| 000002a0 01 4a 12 58 25 3d 62 6c 6f 63 6b 20 83 20 32 35 |.J.X%=block . 25| 000002b0 36 0d 01 54 12 59 25 3d 62 6c 6f 63 6b 20 81 20 |6..T.Y%=block . | 000002c0 32 35 36 0d 01 5e 0c d6 20 6f 73 77 6f 72 64 0d |256..^.. osword.| 000002d0 01 68 23 e7 62 6c 6f 63 6b 3f 31 30 3e 30 20 f1 |.h#.block?10>0 .| 000002e0 27 27 22 44 69 73 63 20 45 72 72 6f 72 20 22 3b |''"Disc Error ";| 000002f0 3a e0 0d 01 72 0e 40 25 3d 26 30 30 30 39 30 34 |:...r.@%=&000904| 00000300 0d 01 7c 14 ef 32 33 3b 38 32 30 32 3b 30 3b 30 |..|..23;8202;0;0| 00000310 3b 30 3b 30 0d 01 86 16 e3 20 4b 25 3d 30 20 b8 |;0;0..... K%=0 .| 00000320 20 31 32 38 20 88 20 31 32 38 0d 01 90 0a f2 74 | 128 . 128.....t| 00000330 69 74 6c 65 0d 01 9a 47 f1 20 22 44 69 73 63 20 |itle...G. "Disc | 00000340 61 64 64 72 65 73 73 3d 26 22 3b 7e 64 61 64 64 |address=&";~dadd| 00000350 3b 22 20 2f 20 54 72 61 63 6b 3d 22 3b 64 61 64 |;" / Track=";dad| 00000360 64 20 81 31 30 3b 22 20 2f 20 53 65 63 74 6f 72 |d .10;" / Sector| 00000370 3d 22 3b 64 61 64 64 20 83 31 30 0d 01 a4 36 f1 |=";dadd .10...6.| 00000380 20 8a 30 2c 35 29 22 2d 42 79 74 65 2d 2d 2d 2d | .0,5)"-Byte----| 00000390 2d 2d 2d 48 65 78 61 64 65 63 69 6d 61 6c 2d 2d |---Hexadecimal--| 000003a0 2d 2d 2d 2d 2d 2d 41 73 63 69 69 2d 2d 2d 2d 22 |------Ascii----"| 000003b0 3b 0d 01 ae 15 e3 20 49 25 3d 30 20 b8 20 31 35 |;..... I%=0 . 15| 000003c0 2a 38 20 88 20 38 0d 01 b8 09 61 24 3d 22 22 0d |*8 . 8....a$="".| 000003d0 01 c2 10 f1 20 49 25 2b 4b 25 3b 22 3a 22 3b 0d |.... I%+K%;":";.| 000003e0 01 cc 0e e3 20 4a 25 3d 30 20 b8 20 37 0d 01 d6 |.... J%=0 . 7...| 000003f0 1b 62 79 74 65 3d 3f 28 62 75 66 66 65 72 2b 4b |.byte=?(buffer+K| 00000400 25 2b 49 25 2b 4a 25 29 0d 01 e0 32 e7 20 62 79 |%+I%+J%)...2. by| 00000410 74 65 3c 33 32 20 84 20 62 79 74 65 3e 31 32 36 |te<32 . byte>126| 00000420 20 61 24 3d 61 24 2b 22 2e 22 20 8b 20 61 24 3d | a$=a$+"." . a$=| 00000430 61 24 2b bd 28 62 79 74 65 29 0d 01 ea 20 f1 20 |a$+.(byte)... . | 00000440 22 20 22 3b 7e 62 79 74 65 20 81 20 31 36 3b 7e |" ";~byte . 16;~| 00000450 62 79 74 65 20 83 20 31 36 3b 0d 01 f4 05 ed 0d |byte . 16;......| 00000460 01 fe 0d f1 20 22 20 20 22 3b 61 24 0d 02 08 05 |.... " ";a$....| 00000470 ed 0d 02 12 1e f1 20 8a 31 30 2c 32 33 29 22 50 |...... .10,23)"P| 00000480 72 65 73 73 20 61 20 6b 65 79 2e 2e 2e 22 3b 0d |ress a key...";.| 00000490 02 1c 0b 64 75 6d 6d 79 3d a5 0d 02 26 05 ed 0d |...dummy=...&...| 000004a0 02 30 23 f1 20 8a 38 2c 32 33 29 22 42 3d 42 61 |.0#. .8,23)"B=Ba| 000004b0 63 6b 20 20 20 20 20 20 46 3d 46 6f 72 77 61 72 |ck F=Forwar| 000004c0 64 22 0d 02 3a 26 f1 20 8a 38 2c 32 34 29 22 52 |d"..:&. .8,24)"R| 000004d0 3d 52 65 2d 72 75 6e 20 20 20 20 45 53 43 41 50 |=Re-run ESCAP| 000004e0 45 3d 51 75 69 74 22 3b 0d 02 44 12 6b 65 79 24 |E=Quit";..D.key$| 000004f0 3d bd 28 a5 20 84 20 33 32 29 0d 02 4e 16 e7 a6 |=.(. . 32)..N...| 00000500 2d 31 30 31 20 64 61 64 64 3d 64 61 64 64 2d 31 |-101 dadd=dadd-1| 00000510 0d 02 58 15 e7 a6 2d 36 38 20 64 61 64 64 3d 64 |..X...-68 dadd=d| 00000520 61 64 64 2b 31 0d 02 62 0e 64 61 24 3d c3 7e 64 |add+1..b.da$=.~d| 00000530 61 64 64 0d 02 6c 0c e7 a6 2d 35 32 20 8c f9 0d |add..l...-52 ...| 00000540 02 76 06 fd a3 0d 02 80 05 e0 0d 02 8a 05 3a 0d |.v............:.| 00000550 02 94 0c dd 20 f2 74 69 74 6c 65 0d 02 9e 05 db |.... .title.....| 00000560 0d 02 a8 0d fb 20 31 32 39 3a fb 20 30 0d 02 b2 |..... 129:. 0...| 00000570 35 f1 20 8a 30 2c 31 29 22 2a 2a 2a 2a 2a 2a 2a |5. .0,1)"*******| 00000580 2a 2a 20 44 46 53 20 44 69 73 63 20 20 45 78 70 |** DFS Disc Exp| 00000590 6c 6f 72 65 72 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |lorer **********| 000005a0 2a 22 0d 02 bc 0d fb 20 31 32 38 3a fb 20 31 0d |*"..... 128:. 1.| 000005b0 02 c6 05 e1 0d ff |......| 000005b6