Home » CEEFAX disks » telesoftware9.adl » 26-08-88/T\DFS03
26-08-88/T\DFS03
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 » CEEFAX disks » telesoftware9.adl |
Filename: | 26-08-88/T\DFS03 |
Read OK: | ✔ |
File size: | 4102 bytes |
Load address: | 0000 |
Exec address: | FFFFFFFF |
File contents
The Acorn DFS Osword commands - by - Gordon Horsington ---------------------------------------------------------- Module 3. Formatting single density discs ----------------------------------------- +----------------------------------------------------------+ | All the DFS modules in this series use programs which | | experiment with the format and contents of discs. These | | experiments may have disasterous effects if you use any | | of the programs on discs which store programs or data | | which you cannot afford to lose. You should first try | | out the programs using discs that have either been | | duplicated or, better still, have not been used at all. | +----------------------------------------------------------+ Writing your own disc formatting program can be quite a useful exercise because it will give you the opportunity to optimise the speed at which data can be written to and read from a disc. You might think that all disc formatting programs are the same but, if you do, then you are quite wrong. The time taken to write to and read from a disc is affected by the settings on the keyboard DIL switches and the logical sector offsets created during formatting. If you have a DIL switch block on your keyboard you might like to experiment with the settings to increase the performance of your disc drives. Figure 1 shows the effect of switching links 3 and 4 on the keyboard DIL switch block, but do remember that some disc drive manuals specify the settings to be used and these should not be altered. If you do not have a switch block fitted on you keyboard the effect of using these switches can be simulated using Osbyte &FF. Osbyte &FF takes effect after a soft Break and remains active until a hard Break. All but the slowest disc drives can be operated with link 3 open (off) and link 4 closed (on) and many modern disc drives can be used with both links 3 and 4 closed (on). If the settings for links 3 and 4 have not been specified for your disc drive you should experiment and use the fastest reliable speed. +---+---+-----------+-------------+-----------+---------------+---------+ | 3 | 4 | Step time | Settle time | Load time | Osbyte &FF | Speed | +---+---+-----------+-------------+-----------+---------------+---------+ |on |on | 4 | 16 | 0 | *FX 255,0,207 | Fastest | |on |off| 6 | 16 | 0 | *FX 255,0,223 | Faster | |off|on | 6 | 50 | 32 | *FX 255,0,239 | Fast | |off|off| 24 | 20 | 64 | *FX 255,0,255 | Slow | +---+---+-----------+-------------+-----------+---------------+---------+ Figure 1. The effect of keyboard switches 3 and 4 on disc access times ---------------------------------------------------------------------- The Acorn DFS uses discs with either 40 or 80 tracks and with 10 sectors of 256 bytes per track. The physical and logical track numbers must be the same so that, for example, the ten ID fields on track &01 must all use logical track number &01. The 10 sectors on each track must use the logical sector numbers &00 to &09 but the logical and physical sector numbers do not have to be the same. Logical sectors &00 and &01 on physical track &00 store the disc catalogue. The catalogue uses the structure shown in figure 2 and an empty catalogue must be created by the disc formatting program. Sector &00 Track &00 -------------------- &00 - &07 First 8 bytes of the 12 byte disc title. &08 - &0E First file name. &0F Directory of first file name. &10 - &16 Second file name. &17 Directory of second file name. &18 - &FF and so on for the 31 files. Sector &01 Track &00 -------------------- &00 - &03 Last 4 bytes of the 12 byte disc title. &04 Disc cycles (BCD number 0-99). &05 8 * (Number of catalogue entries). &06 (bits 0 and 1) Most significant two bits of the number of sectors on the disc. (bits 4 and 5) The boot up option set using *OPT4,n. &07 The least significant 8 bits of the (10 bit) number of sectors on the disc. The most significant bits are in bits 0 and 1 of byte &06. &08 - &09 Load address of first file, least significant 16 bits. &0A - &0B Execution address of first file, least significant 16 bits. &0C - &0D Length of first file, least significant 16 bits. &0E (bits 0 and 1) Startsector of first file, most sig. 2 bits. (bits 2 and 3) Load address of first file, most sig. 2 bits. (bits 4 and 5) Length of first file, most sig. 2 bits. (bits 6 and 7) Execution address of first file, most sig. bits. &0F Start sector of first file, least significant 8 bits. &10 - &FF Load address, execution address, file length, and sector number for every other file on the disc (8 bytes per file). This is the information given by the *INFO call. Figure 2. The structure of the DFS catalogue -------------------------------------------- Although there is a lot of information stored in a disc catalogue nearly all this information is written by the DFS when the disc is being used. An Acorn single density formatting program must fill the catalogue with null bytes (&00) with the exception of bytes &06 and &07 of sector &01. These bytes must store the number of sectors made available on the disc by the formatting program. When a single density formatter is used with an eighty track disc drive it will create &320 sectors on a disc. Bits 0 and 1 of byte &06 on logical sector &01 must store the number &03 (%11), and byte &07 of logical sector &01 must store the number &20. When the program is used with a fourty track disc drive it will create &190 sectors. Bits 0 and 1 of byte &06 on logical sector &01 must then store the number &01 (%01), and byte &07 of logical sector &01 must store the number &90. Figure 3 shows a part of a sector dump made with a newly formatted eighty track disc. The only information stored in the empty catalogue is the number of available sectors on the disc. Track: 00 Logical Sector: 00 0 1 2 3 4 5 6 7 00 0 0 0 0 0 0 0 0 ........ 08 0 0 0 0 0 0 0 0 ........ 10 0 0 0 0 0 0 0 0 ........ 18 0 0 0 0 0 0 0 0 ........ 20 ... Track: 00 Logical Sector: 01 0 1 2 3 4 5 6 7 00 0 0 0 0 0 0 3 20 ....... 08 0 0 0 0 0 0 0 0 ........ 10 0 0 0 0 0 0 0 0 ........ 18 0 0 0 0 0 0 0 0 ........ 20 ... Figure 3. Part of the catalogue of a newly formatted 80 track disc ------------------------------------------------------------------ The most efficient operation of an Acorn single density disc occurs if physical sector &00 does not store logical sector &00 on every track. The optimum distribution of logical sectors with respect to physical sectors for most disc drives is shown in figure 4. Figure 4 shows that, on track &00, the physical and logical sector numbers are the same. On track &01, physical sector &00 stores logical sector &07, physical sector &01 stores logical sector &08, and so on. This is known as a logical sector offset. Physical sector numbers | 00 01 02 03 04 05 06 07 08 09 ---+------------------------------ T 00 | 00 01 02 03 04 05 06 07 08 09 r 01 | 07 08 09 00 01 02 03 04 05 06 Logical a 02 | 04 05 06 07 08 09 00 01 02 03 sector c 03 | 01 02 03 04 05 06 07 08 09 00 numbers k 04 | 08 09 00 01 02 03 04 05 06 07 s 05 | 05 06 ... Figure 4. The logical sectors numbers for optimum speed ------------------------------------------------------- The logical sector numbers are offset because the disc drive head takes a predictable amount of time to step from one track to the next when writing to or reading from a disc. Consider what will happen if you use the *LOAD command to read a file which is stored in 10 sectors starting with sector &02 on track &00. This hypothetical file will be stored on logical sectors &02 to &09 on track &00, and on logical sectors &00 and &01 on track &01. The sectors on track &00 will be loaded from sector &02 to sector &09 and then the head will step in to track &01. This step will take a predictable amount of time which is long enough for most disc drives to miss logical sector &00 if it is stored on physical sector &00. The disc would then have to make a complete revolution before sector &00 reappears. Using the offset illustrated in figure 4 would ensure that, for most disc drives, sector &00 on track &01 would become immeadiatly available as the head steps in from track &00 to &01. All the tracks in figure 4 use the same sector offset with respect to each other to give an optimum distribution of logical sectors. Not all disc drives take the same amount of time to step the head from one track to another and for this reason the amount of offset used to produce an optimally formated disc will vary from one disc drive to another. The distribution of logical sectors shown in figure 4 uses an offset of 3 sectors. That is, sector &00 is offset 3 sectors with respect to sector &09 on the preceding track. A modern fast disc drive might only require an offset of 2 sectors so that the physical logical sector &00 on track &01 will be logical sector &08. An old disc drive liberated from the local junk shop might require an offset of 4 or even 5 sectors. The program OFFSET can be used to experiment with the amount of offset given to the logical sector numbers. It can format both 40 and 80 track discs with any offset from 0 to 9 sectors. To find the amount of offset needed with a particular disc drive you should create a set of 10 discs with the offset varying from 0 to 9 sectors. Each disc should be used to measure the time taken to store a very large file a large number of times within a program loop. It is a good idea to store the same large file 20 or 30 times and to use a stop watch rather than the computer to measure the time taken. If you start with an offset of 9 sectors and work down to zero offset you should find that the time decreases with each disc until, with one disc, there is an increase in the time taken to store the files. If, for example, the increase is with a disc using an offset of 2 sectors then an optimum offset of 3 sectors is needed for your disc drive. Most disc drives need an offset of 3 sectors. 10 REM: OFFSET 20 DIM mcode &400 30 oswrch=&FFEE 40 osnewl=&FFE7 50 osword=&FFF1 60 osbyte=&FFF4 70 FORpass=0 TO 2 STEP 2 80 P%=mcode 90 [ OPT pass 100 JSR osnewl 110 .loop 120 LDA &FF \ poll escape flag 130 BPL noescape \ bit 7 set if Escape pressed 140 .escape 150 LDA #&7E 160 JSR osbyte \ acknowledge Escape 170 BRK 180 BRK 190 EQUS "Escape" 200 BRK 210 .noescape 220 LDA track \ load physical track number 230 STA block+7 \ store physical track number 240 BEQ endoffset \ don't offset track zero 250 LDX #36 \ logical track index 260 LDY #38 \ logical sector index 270 .inloop 280 LDA track \ load physical track number 290 STA table,X \ store logical track number 300 LDA shear \ load logical sector offset 310 BEQ zero \ branch if no offset 320 STA temp \ temporary store 330 .offsetloop 340 SEC 350 LDA table,Y \ load logical sector number 360 SBC #1 \ subtract 1 370 BPL positive 380 LDA #9 390 .positive 400 STA table,Y \ store logical sector number - 1 410 DEC temp \ decrement sector offset 420 BNE offsetloop \ offset again 430 .zero 440 DEX 450 DEX 460 TXA 470 TAY \ subtract 4 from Y register 480 DEX 490 DEX \ subtract 4 from X register 500 BPL inloop \ branch if less than 10 sectors 510 .endoffset 520 LDA #&7F 530 LDX #block MOD 256 540 LDY #block DIV 256 550 JSR osword \ format track 560 LDA block+12 \ load result byte 570 BNE error \ format OK if result = 0 580 JSR printtrack \ print track number 590 INC track \ increment track number 600 LDA track \ load track number 610 CMP finish \ is that the last track? 620 BCC loop \ branch if more tracks to format 630 LDA #&7F 640 LDX #catblock MOD 256 650 LDY #catblock DIV 256 660 JSR osword \ store empty catalogue 670 LDA catblock+10 \ check result byte 680 BNE error \ branch if not saved 690 RTS \ return to BASIC 700 .error 710 BRK 720 BRK 730 EQUS "Format error" 740 BRK 750 .printtrack 760 LDA track \ load track number 770 LSR A 780 LSR A 790 LSR A 800 LSR A \ isolate MS nybble 810 JSR nybble \ print MS nybble 820 LDA track \ load track number 830 JSR nybble \ print LS nybble 840 LDA #ASC(" ") 850 JSR oswrch \ print space 860 JMP oswrch \ print space 870 .nybble 880 AND #&0F 890 SED 900 CLC 910 ADC #&90 920 ADC #&40 930 CLD 940 JMP oswrch \ print nybble and return 950 .block 960 EQUB &00 \ drive number 0-3 970 EQUD table \ sector table 980 EQUB &05 \ 5 parameters 990 EQUB &63 \ format track 1000 EQUB &00 \ physical track number 0-79 1010 EQUB &15 \ gap 3 1020 EQUB &2A \ 10 sectors of 256 bytes 1030 EQUB &00 \ gap 5 1040 EQUB &10 \ gap 1 1050 EQUB &00 \ result byte 1060 .table 1070 EQUD &01000000 1080 EQUD &01010000 1090 EQUD &01020000 1100 EQUD &01030000 1110 EQUD &01040000 1120 EQUD &01050000 1130 EQUD &01060000 1140 EQUD &01070000 1150 EQUD &01080000 1160 EQUD &01090000 1170 .catalogue 1180 OPT FNfill(262) 1190 \ store 262 zeros 1200 .sectors 1210 EQUW &2003 \ &320 sectors (80 tracks) 1220 OPT FNfill(248) 1230 \ store 248 zeros 1240 .catblock 1250 EQUB &00 \ drive number 0 - 3 1260 EQUD catalogue \ address of buffer 1270 EQUB &03 \ number of parameters 1280 EQUB &4B \ write data multi-sector 1290 EQUB &00 \ logical track 1300 EQUB &00 \ start logical sector 1310 EQUB &22 \ 2 sectors of 256 bytes 1320 EQUB &00 \ result byte 1330 .track 1340 EQUB &00 \ physical track number 1350 .finish 1360 EQUB &00 \ number of tracks 1370 .shear 1380 EQUB &00 \ sector offset 1390 .temp 1400 EQUB &00 \ sector offset 1410 ] 1420 NEXT 1430 REPEAT 1440 INPUT"Drive number (0-3) "D% 1450 UNTIL D%>-1 AND D%<4 1460 ?block=D% 1470 ?catblock=D% 1480 REPEAT 1490 INPUT"Number of tracks (40/80) "T% 1500 UNTIL T%=40 OR T%=80 1510 ?finish=T% 1520 IF T%=40 THEN ?sectors=&01 : sectors?1=&90 1530 REPEAT 1540 INPUT"Logical sector offset (0-9) "L% 1550 UNTIL L%>-1 AND L%<10 1560 ?shear=L% 1570 INPUT"Ready to format? (Y/N) "yes$ 1580 IF LEFT$(yes$,1)="Y" THEN CALL mcode 1590 INPUT'"Another disc? (Y/N) "yes$ 1600 IF LEFT$(yes$,1)="Y" THEN RUN 1610 END 1620 DEF FNfill(size) 1630 FOR count = 1 TO size 1640 ?P%=0 1650 P%=P%+1 1660 NEXT 1670 =pass The logical sector offsets produced by the program OFFSET can be demonstrated by using the program IDSDUMP introduced in module 0. The formatted discs it produces can be verified using any DFS verification program including the program VERIFY, also intorduced in module 0.
00000000 54 68 65 20 41 63 6f 72 6e 20 44 46 53 20 4f 73 |The Acorn DFS Os| 00000010 77 6f 72 64 20 63 6f 6d 6d 61 6e 64 73 20 20 2d |word commands -| 00000020 20 20 62 79 20 20 2d 20 20 47 6f 72 64 6f 6e 20 | by - Gordon | 00000030 48 6f 72 73 69 6e 67 74 6f 6e 0d 2d 2d 2d 2d 2d |Horsington.-----| 00000040 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000070 2d 2d 2d 2d 2d 0d 0d 4d 6f 64 75 6c 65 20 33 2e |-----..Module 3.| 00000080 20 46 6f 72 6d 61 74 74 69 6e 67 20 73 69 6e 67 | Formatting sing| 00000090 6c 65 20 64 65 6e 73 69 74 79 20 64 69 73 63 73 |le density discs| 000000a0 0d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |.---------------| 000000b0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 000000c0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0d 20 20 20 20 |----------.. | 000000d0 20 20 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d | +-------------| 000000e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000100 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 0d 20 |-------------+. | 00000110 20 20 20 20 20 7c 20 41 6c 6c 20 74 68 65 20 44 | | All the D| 00000120 46 53 20 6d 6f 64 75 6c 65 73 20 69 6e 20 20 74 |FS modules in t| 00000130 68 69 73 20 20 73 65 72 69 65 73 20 20 75 73 65 |his series use| 00000140 20 70 72 6f 67 72 61 6d 73 20 77 68 69 63 68 20 | programs which | 00000150 7c 0d 20 20 20 20 20 20 7c 20 65 78 70 65 72 69 ||. | experi| 00000160 6d 65 6e 74 20 20 77 69 74 68 20 74 68 65 20 66 |ment with the f| 00000170 6f 72 6d 61 74 20 61 6e 64 20 63 6f 6e 74 65 6e |ormat and conten| 00000180 74 73 20 6f 66 20 64 69 73 63 73 2e 20 54 68 65 |ts of discs. The| 00000190 73 65 20 7c 0d 20 20 20 20 20 20 7c 20 65 78 70 |se |. | exp| 000001a0 65 72 69 6d 65 6e 74 73 20 6d 61 79 20 20 68 61 |eriments may ha| 000001b0 76 65 20 64 69 73 61 73 74 65 72 6f 75 73 20 65 |ve disasterous e| 000001c0 66 66 65 63 74 73 20 69 66 20 79 6f 75 20 75 73 |ffects if you us| 000001d0 65 20 61 6e 79 20 7c 0d 20 20 20 20 20 20 7c 20 |e any |. | | 000001e0 6f 66 20 74 68 65 20 70 72 6f 67 72 61 6d 73 20 |of the programs | 000001f0 20 6f 6e 20 20 64 69 73 63 73 20 20 77 68 69 63 | on discs whic| 00000200 68 20 73 74 6f 72 65 20 70 72 6f 67 72 61 6d 73 |h store programs| 00000210 20 6f 72 20 64 61 74 61 20 7c 0d 20 20 20 20 20 | or data |. | 00000220 20 7c 20 77 68 69 63 68 20 79 6f 75 20 63 61 6e | | which you can| 00000230 6e 6f 74 20 61 66 66 6f 72 64 20 74 6f 20 6c 6f |not afford to lo| 00000240 73 65 2e 20 20 59 6f 75 20 20 73 68 6f 75 6c 64 |se. You should| 00000250 20 20 66 69 72 73 74 20 74 72 79 20 7c 0d 20 20 | first try |. | 00000260 20 20 20 20 7c 20 6f 75 74 20 20 74 68 65 20 20 | | out the | 00000270 70 72 6f 67 72 61 6d 73 20 20 75 73 69 6e 67 20 |programs using | 00000280 20 64 69 73 63 73 20 20 74 68 61 74 20 20 68 61 | discs that ha| 00000290 76 65 20 65 69 74 68 65 72 20 62 65 65 6e 20 7c |ve either been || 000002a0 0d 20 20 20 20 20 20 7c 20 64 75 70 6c 69 63 61 |. | duplica| 000002b0 74 65 64 20 6f 72 2c 20 62 65 74 74 65 72 20 73 |ted or, better s| 000002c0 74 69 6c 6c 2c 20 68 61 76 65 20 6e 6f 74 20 62 |till, have not b| 000002d0 65 65 6e 20 75 73 65 64 20 61 74 20 61 6c 6c 2e |een used at all.| 000002e0 20 20 7c 0d 20 20 20 20 20 20 2b 2d 2d 2d 2d 2d | |. +-----| 000002f0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000320 2d 2d 2d 2d 2d 2b 0d 0d 0d 57 72 69 74 69 6e 67 |-----+...Writing| 00000330 20 79 6f 75 72 20 6f 77 6e 20 64 69 73 63 20 66 | your own disc f| 00000340 6f 72 6d 61 74 74 69 6e 67 20 70 72 6f 67 72 61 |ormatting progra| 00000350 6d 20 63 61 6e 20 62 65 20 71 75 69 74 65 20 61 |m can be quite a| 00000360 20 75 73 65 66 75 6c 20 65 78 65 72 63 69 73 65 | useful exercise| 00000370 0d 62 65 63 61 75 73 65 20 69 74 20 77 69 6c 6c |.because it will| 00000380 20 67 69 76 65 20 79 6f 75 20 74 68 65 20 6f 70 | give you the op| 00000390 70 6f 72 74 75 6e 69 74 79 20 74 6f 20 6f 70 74 |portunity to opt| 000003a0 69 6d 69 73 65 20 74 68 65 20 73 70 65 65 64 20 |imise the speed | 000003b0 61 74 20 77 68 69 63 68 0d 64 61 74 61 20 63 61 |at which.data ca| 000003c0 6e 20 62 65 20 77 72 69 74 74 65 6e 20 74 6f 20 |n be written to | 000003d0 61 6e 64 20 72 65 61 64 20 66 72 6f 6d 20 61 20 |and read from a | 000003e0 64 69 73 63 2e 20 59 6f 75 20 6d 69 67 68 74 20 |disc. You might | 000003f0 74 68 69 6e 6b 20 74 68 61 74 20 61 6c 6c 20 64 |think that all d| 00000400 69 73 63 0d 66 6f 72 6d 61 74 74 69 6e 67 20 70 |isc.formatting p| 00000410 72 6f 67 72 61 6d 73 20 61 72 65 20 74 68 65 20 |rograms are the | 00000420 73 61 6d 65 20 62 75 74 2c 20 69 66 20 79 6f 75 |same but, if you| 00000430 20 64 6f 2c 20 74 68 65 6e 20 79 6f 75 20 61 72 | do, then you ar| 00000440 65 20 71 75 69 74 65 20 77 72 6f 6e 67 2e 0d 0d |e quite wrong...| 00000450 54 68 65 20 74 69 6d 65 20 74 61 6b 65 6e 20 74 |The time taken t| 00000460 6f 20 77 72 69 74 65 20 74 6f 20 61 6e 64 20 72 |o write to and r| 00000470 65 61 64 20 66 72 6f 6d 20 61 20 64 69 73 63 20 |ead from a disc | 00000480 69 73 20 61 66 66 65 63 74 65 64 20 62 79 20 74 |is affected by t| 00000490 68 65 0d 73 65 74 74 69 6e 67 73 20 6f 6e 20 74 |he.settings on t| 000004a0 68 65 20 6b 65 79 62 6f 61 72 64 20 44 49 4c 20 |he keyboard DIL | 000004b0 73 77 69 74 63 68 65 73 20 61 6e 64 20 74 68 65 |switches and the| 000004c0 20 6c 6f 67 69 63 61 6c 20 73 65 63 74 6f 72 20 | logical sector | 000004d0 6f 66 66 73 65 74 73 0d 63 72 65 61 74 65 64 20 |offsets.created | 000004e0 64 75 72 69 6e 67 20 66 6f 72 6d 61 74 74 69 6e |during formattin| 000004f0 67 2e 20 49 66 20 79 6f 75 20 68 61 76 65 20 61 |g. If you have a| 00000500 20 44 49 4c 20 73 77 69 74 63 68 20 62 6c 6f 63 | DIL switch bloc| 00000510 6b 20 6f 6e 20 79 6f 75 72 20 6b 65 79 62 6f 61 |k on your keyboa| 00000520 72 64 0d 79 6f 75 20 6d 69 67 68 74 20 6c 69 6b |rd.you might lik| 00000530 65 20 74 6f 20 65 78 70 65 72 69 6d 65 6e 74 20 |e to experiment | 00000540 77 69 74 68 20 74 68 65 20 73 65 74 74 69 6e 67 |with the setting| 00000550 73 20 74 6f 20 69 6e 63 72 65 61 73 65 20 74 68 |s to increase th| 00000560 65 20 70 65 72 66 6f 72 6d 61 6e 63 65 0d 6f 66 |e performance.of| 00000570 20 79 6f 75 72 20 64 69 73 63 20 64 72 69 76 65 | your disc drive| 00000580 73 2e 0d 0d 46 69 67 75 72 65 20 31 20 73 68 6f |s...Figure 1 sho| 00000590 77 73 20 74 68 65 20 65 66 66 65 63 74 20 6f 66 |ws the effect of| 000005a0 20 73 77 69 74 63 68 69 6e 67 20 6c 69 6e 6b 73 | switching links| 000005b0 20 33 20 61 6e 64 20 34 20 6f 6e 20 74 68 65 20 | 3 and 4 on the | 000005c0 6b 65 79 62 6f 61 72 64 20 44 49 4c 0d 73 77 69 |keyboard DIL.swi| 000005d0 74 63 68 20 62 6c 6f 63 6b 2c 20 62 75 74 20 64 |tch block, but d| 000005e0 6f 20 72 65 6d 65 6d 62 65 72 20 74 68 61 74 20 |o remember that | 000005f0 73 6f 6d 65 20 64 69 73 63 20 64 72 69 76 65 20 |some disc drive | 00000600 6d 61 6e 75 61 6c 73 20 73 70 65 63 69 66 79 20 |manuals specify | 00000610 74 68 65 0d 73 65 74 74 69 6e 67 73 20 74 6f 20 |the.settings to | 00000620 62 65 20 75 73 65 64 20 61 6e 64 20 74 68 65 73 |be used and thes| 00000630 65 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 |e should not be | 00000640 61 6c 74 65 72 65 64 2e 20 49 66 20 79 6f 75 20 |altered. If you | 00000650 64 6f 20 6e 6f 74 20 68 61 76 65 20 61 0d 73 77 |do not have a.sw| 00000660 69 74 63 68 20 62 6c 6f 63 6b 20 66 69 74 74 65 |itch block fitte| 00000670 64 20 6f 6e 20 79 6f 75 20 6b 65 79 62 6f 61 72 |d on you keyboar| 00000680 64 20 74 68 65 20 65 66 66 65 63 74 20 6f 66 20 |d the effect of | 00000690 75 73 69 6e 67 20 74 68 65 73 65 20 73 77 69 74 |using these swit| 000006a0 63 68 65 73 20 63 61 6e 0d 62 65 20 73 69 6d 75 |ches can.be simu| 000006b0 6c 61 74 65 64 20 75 73 69 6e 67 20 4f 73 62 79 |lated using Osby| 000006c0 74 65 20 26 46 46 2e 20 4f 73 62 79 74 65 20 26 |te &FF. Osbyte &| 000006d0 46 46 20 74 61 6b 65 73 20 65 66 66 65 63 74 20 |FF takes effect | 000006e0 61 66 74 65 72 20 61 20 73 6f 66 74 20 42 72 65 |after a soft Bre| 000006f0 61 6b 0d 61 6e 64 20 72 65 6d 61 69 6e 73 20 61 |ak.and remains a| 00000700 63 74 69 76 65 20 75 6e 74 69 6c 20 61 20 68 61 |ctive until a ha| 00000710 72 64 20 42 72 65 61 6b 2e 20 41 6c 6c 20 62 75 |rd Break. All bu| 00000720 74 20 74 68 65 20 73 6c 6f 77 65 73 74 20 64 69 |t the slowest di| 00000730 73 63 20 64 72 69 76 65 73 20 63 61 6e 0d 62 65 |sc drives can.be| 00000740 20 6f 70 65 72 61 74 65 64 20 77 69 74 68 20 6c | operated with l| 00000750 69 6e 6b 20 33 20 6f 70 65 6e 20 28 6f 66 66 29 |ink 3 open (off)| 00000760 20 61 6e 64 20 6c 69 6e 6b 20 34 20 63 6c 6f 73 | and link 4 clos| 00000770 65 64 20 28 6f 6e 29 20 61 6e 64 20 6d 61 6e 79 |ed (on) and many| 00000780 20 6d 6f 64 65 72 6e 0d 64 69 73 63 20 64 72 69 | modern.disc dri| 00000790 76 65 73 20 63 61 6e 20 62 65 20 75 73 65 64 20 |ves can be used | 000007a0 77 69 74 68 20 62 6f 74 68 20 6c 69 6e 6b 73 20 |with both links | 000007b0 33 20 61 6e 64 20 34 20 63 6c 6f 73 65 64 20 28 |3 and 4 closed (| 000007c0 6f 6e 29 2e 20 49 66 20 74 68 65 0d 73 65 74 74 |on). If the.sett| 000007d0 69 6e 67 73 20 66 6f 72 20 6c 69 6e 6b 73 20 33 |ings for links 3| 000007e0 20 61 6e 64 20 34 20 68 61 76 65 20 6e 6f 74 20 | and 4 have not | 000007f0 62 65 65 6e 20 73 70 65 63 69 66 69 65 64 20 66 |been specified f| 00000800 6f 72 20 79 6f 75 72 20 64 69 73 63 20 64 72 69 |or your disc dri| 00000810 76 65 20 79 6f 75 0d 73 68 6f 75 6c 64 20 65 78 |ve you.should ex| 00000820 70 65 72 69 6d 65 6e 74 20 61 6e 64 20 75 73 65 |periment and use| 00000830 20 74 68 65 20 66 61 73 74 65 73 74 20 72 65 6c | the fastest rel| 00000840 69 61 62 6c 65 20 73 70 65 65 64 2e 0d 0d 0d 2b |iable speed....+| 00000850 2d 2d 2d 2b 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d |---+---+--------| 00000860 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |---+------------| 00000870 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d |-+-----------+--| 00000880 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d |-------------+--| 00000890 2d 2d 2d 2d 2d 2d 2d 2b 0d 7c 20 33 20 7c 20 34 |-------+.| 3 | 4| 000008a0 20 7c 20 53 74 65 70 20 74 69 6d 65 20 7c 20 53 | | Step time | S| 000008b0 65 74 74 6c 65 20 74 69 6d 65 20 7c 20 4c 6f 61 |ettle time | Loa| 000008c0 64 20 74 69 6d 65 20 7c 20 4f 73 62 79 74 65 20 |d time | Osbyte | 000008d0 26 46 46 20 20 20 20 7c 20 53 70 65 65 64 20 20 |&FF | Speed | 000008e0 20 7c 0d 2b 2d 2d 2d 2b 2d 2d 2d 2b 2d 2d 2d 2d | |.+---+---+----| 000008f0 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d |-------+--------| 00000900 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |-----+----------| 00000910 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |-+--------------| 00000920 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 0d 7c 6f 6e |-+---------+.|on| 00000930 20 7c 6f 6e 20 7c 20 20 20 20 20 20 34 20 20 20 | |on | 4 | 00000940 20 7c 20 20 20 20 20 31 36 20 20 20 20 20 20 7c | | 16 || 00000950 20 20 20 20 20 20 30 20 20 20 20 7c 20 2a 46 58 | 0 | *FX| 00000960 20 32 35 35 2c 30 2c 32 30 37 20 7c 20 46 61 73 | 255,0,207 | Fas| 00000970 74 65 73 74 20 7c 0d 7c 6f 6e 20 7c 6f 66 66 7c |test |.|on |off|| 00000980 20 20 20 20 20 20 36 20 20 20 20 7c 20 20 20 20 | 6 | | 00000990 20 31 36 20 20 20 20 20 20 7c 20 20 20 20 20 20 | 16 | | 000009a0 30 20 20 20 20 7c 20 2a 46 58 20 32 35 35 2c 30 |0 | *FX 255,0| 000009b0 2c 32 32 33 20 7c 20 46 61 73 74 65 72 20 20 7c |,223 | Faster || 000009c0 0d 7c 6f 66 66 7c 6f 6e 20 7c 20 20 20 20 20 20 |.|off|on | | 000009d0 36 20 20 20 20 7c 20 20 20 20 20 35 30 20 20 20 |6 | 50 | 000009e0 20 20 20 7c 20 20 20 20 20 33 32 20 20 20 20 7c | | 32 || 000009f0 20 2a 46 58 20 32 35 35 2c 30 2c 32 33 39 20 7c | *FX 255,0,239 || 00000a00 20 46 61 73 74 20 20 20 20 7c 0d 7c 6f 66 66 7c | Fast |.|off|| 00000a10 6f 66 66 7c 20 20 20 20 20 32 34 20 20 20 20 7c |off| 24 || 00000a20 20 20 20 20 20 32 30 20 20 20 20 20 20 7c 20 20 | 20 | | 00000a30 20 20 20 36 34 20 20 20 20 7c 20 2a 46 58 20 32 | 64 | *FX 2| 00000a40 35 35 2c 30 2c 32 35 35 20 7c 20 53 6c 6f 77 20 |55,0,255 | Slow | 00000a50 20 20 20 7c 0d 2b 2d 2d 2d 2b 2d 2d 2d 2b 2d 2d | |.+---+---+--| 00000a60 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d |---------+------| 00000a70 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d |-------+--------| 00000a80 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |---+------------| 00000a90 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 0d 0d |---+---------+..| 00000aa0 20 20 46 69 67 75 72 65 20 31 2e 20 54 68 65 20 | Figure 1. The | 00000ab0 65 66 66 65 63 74 20 6f 66 20 6b 65 79 62 6f 61 |effect of keyboa| 00000ac0 72 64 20 73 77 69 74 63 68 65 73 20 33 20 61 6e |rd switches 3 an| 00000ad0 64 20 34 20 6f 6e 20 64 69 73 63 20 61 63 63 65 |d 4 on disc acce| 00000ae0 73 73 20 74 69 6d 65 73 0d 20 20 2d 2d 2d 2d 2d |ss times. -----| 00000af0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000b30 2d 0d 0d 0d 54 68 65 20 41 63 6f 72 6e 20 44 46 |-...The Acorn DF| 00000b40 53 20 75 73 65 73 20 64 69 73 63 73 20 77 69 74 |S uses discs wit| 00000b50 68 20 65 69 74 68 65 72 20 34 30 20 6f 72 20 38 |h either 40 or 8| 00000b60 30 20 74 72 61 63 6b 73 20 61 6e 64 20 77 69 74 |0 tracks and wit| 00000b70 68 20 31 30 20 73 65 63 74 6f 72 73 0d 6f 66 20 |h 10 sectors.of | 00000b80 32 35 36 20 62 79 74 65 73 20 70 65 72 20 74 72 |256 bytes per tr| 00000b90 61 63 6b 2e 20 54 68 65 20 70 68 79 73 69 63 61 |ack. The physica| 00000ba0 6c 20 61 6e 64 20 6c 6f 67 69 63 61 6c 20 74 72 |l and logical tr| 00000bb0 61 63 6b 20 6e 75 6d 62 65 72 73 20 6d 75 73 74 |ack numbers must| 00000bc0 20 62 65 20 74 68 65 0d 73 61 6d 65 20 73 6f 20 | be the.same so | 00000bd0 74 68 61 74 2c 20 66 6f 72 20 65 78 61 6d 70 6c |that, for exampl| 00000be0 65 2c 20 74 68 65 20 74 65 6e 20 49 44 20 66 69 |e, the ten ID fi| 00000bf0 65 6c 64 73 20 6f 6e 20 74 72 61 63 6b 20 26 30 |elds on track &0| 00000c00 31 20 6d 75 73 74 20 61 6c 6c 20 75 73 65 0d 6c |1 must all use.l| 00000c10 6f 67 69 63 61 6c 20 74 72 61 63 6b 20 6e 75 6d |ogical track num| 00000c20 62 65 72 20 26 30 31 2e 20 54 68 65 20 31 30 20 |ber &01. The 10 | 00000c30 73 65 63 74 6f 72 73 20 6f 6e 20 65 61 63 68 20 |sectors on each | 00000c40 74 72 61 63 6b 20 6d 75 73 74 20 75 73 65 20 74 |track must use t| 00000c50 68 65 0d 6c 6f 67 69 63 61 6c 20 73 65 63 74 6f |he.logical secto| 00000c60 72 20 6e 75 6d 62 65 72 73 20 26 30 30 20 74 6f |r numbers &00 to| 00000c70 20 26 30 39 20 62 75 74 20 74 68 65 20 6c 6f 67 | &09 but the log| 00000c80 69 63 61 6c 20 61 6e 64 20 70 68 79 73 69 63 61 |ical and physica| 00000c90 6c 20 73 65 63 74 6f 72 0d 6e 75 6d 62 65 72 73 |l sector.numbers| 00000ca0 20 64 6f 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 | do not have to | 00000cb0 62 65 20 74 68 65 20 73 61 6d 65 2e 0d 0d 4c 6f |be the same...Lo| 00000cc0 67 69 63 61 6c 20 73 65 63 74 6f 72 73 20 26 30 |gical sectors &0| 00000cd0 30 20 61 6e 64 20 26 30 31 20 6f 6e 20 70 68 79 |0 and &01 on phy| 00000ce0 73 69 63 61 6c 20 74 72 61 63 6b 20 26 30 30 20 |sical track &00 | 00000cf0 73 74 6f 72 65 20 74 68 65 20 64 69 73 63 0d 63 |store the disc.c| 00000d00 61 74 61 6c 6f 67 75 65 2e 20 54 68 65 20 63 61 |atalogue. The ca| 00000d10 74 61 6c 6f 67 75 65 20 75 73 65 73 20 74 68 65 |talogue uses the| 00000d20 20 73 74 72 75 63 74 75 72 65 20 73 68 6f 77 6e | structure shown| 00000d30 20 69 6e 20 66 69 67 75 72 65 20 32 20 61 6e 64 | in figure 2 and| 00000d40 20 61 6e 20 65 6d 70 74 79 0d 63 61 74 61 6c 6f | an empty.catalo| 00000d50 67 75 65 20 6d 75 73 74 20 62 65 20 63 72 65 61 |gue must be crea| 00000d60 74 65 64 20 62 79 20 74 68 65 20 64 69 73 63 20 |ted by the disc | 00000d70 66 6f 72 6d 61 74 74 69 6e 67 20 70 72 6f 67 72 |formatting progr| 00000d80 61 6d 2e 0d 0d 0d 53 65 63 74 6f 72 20 26 30 30 |am....Sector &00| 00000d90 20 54 72 61 63 6b 20 26 30 30 0d 2d 2d 2d 2d 2d | Track &00.-----| 00000da0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d |---------------.| 00000db0 0d 26 30 30 20 2d 20 26 30 37 20 20 46 69 72 73 |.&00 - &07 Firs| 00000dc0 74 20 38 20 62 79 74 65 73 20 6f 66 20 74 68 65 |t 8 bytes of the| 00000dd0 20 31 32 20 62 79 74 65 20 64 69 73 63 20 74 69 | 12 byte disc ti| 00000de0 74 6c 65 2e 0d 26 30 38 20 2d 20 26 30 45 20 20 |tle..&08 - &0E | 00000df0 46 69 72 73 74 20 66 69 6c 65 20 6e 61 6d 65 2e |First file name.| 00000e00 0d 26 30 46 20 20 20 20 20 20 20 20 44 69 72 65 |.&0F Dire| 00000e10 63 74 6f 72 79 20 6f 66 20 66 69 72 73 74 20 66 |ctory of first f| 00000e20 69 6c 65 20 6e 61 6d 65 2e 0d 26 31 30 20 2d 20 |ile name..&10 - | 00000e30 26 31 36 20 20 53 65 63 6f 6e 64 20 66 69 6c 65 |&16 Second file| 00000e40 20 6e 61 6d 65 2e 0d 26 31 37 20 20 20 20 20 20 | name..&17 | 00000e50 20 20 44 69 72 65 63 74 6f 72 79 20 6f 66 20 73 | Directory of s| 00000e60 65 63 6f 6e 64 20 66 69 6c 65 20 6e 61 6d 65 2e |econd file name.| 00000e70 0d 26 31 38 20 2d 20 26 46 46 20 20 61 6e 64 20 |.&18 - &FF and | 00000e80 73 6f 20 6f 6e 20 66 6f 72 20 74 68 65 20 33 31 |so on for the 31| 00000e90 20 66 69 6c 65 73 2e 0d 0d 53 65 63 74 6f 72 20 | files...Sector | 00000ea0 26 30 31 20 54 72 61 63 6b 20 26 30 30 0d 2d 2d |&01 Track &00.--| 00000eb0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00000ec0 2d 2d 0d 0d 26 30 30 20 2d 20 26 30 33 20 20 4c |--..&00 - &03 L| 00000ed0 61 73 74 20 34 20 62 79 74 65 73 20 6f 66 20 74 |ast 4 bytes of t| 00000ee0 68 65 20 31 32 20 62 79 74 65 20 64 69 73 63 20 |he 12 byte disc | 00000ef0 74 69 74 6c 65 2e 0d 26 30 34 20 20 20 20 20 20 |title..&04 | 00000f00 20 20 44 69 73 63 20 63 79 63 6c 65 73 20 28 42 | Disc cycles (B| 00000f10 43 44 20 6e 75 6d 62 65 72 20 30 2d 39 39 29 2e |CD number 0-99).| 00000f20 0d 26 30 35 20 20 20 20 20 20 20 20 38 20 2a 20 |.&05 8 * | 00000f30 28 4e 75 6d 62 65 72 20 6f 66 20 63 61 74 61 6c |(Number of catal| 00000f40 6f 67 75 65 20 65 6e 74 72 69 65 73 29 2e 0d 26 |ogue entries)..&| 00000f50 30 36 20 20 20 20 20 20 20 20 28 62 69 74 73 20 |06 (bits | 00000f60 30 20 61 6e 64 20 31 29 20 4d 6f 73 74 20 73 69 |0 and 1) Most si| 00000f70 67 6e 69 66 69 63 61 6e 74 20 74 77 6f 20 62 69 |gnificant two bi| 00000f80 74 73 20 6f 66 20 74 68 65 20 6e 75 6d 62 65 72 |ts of the number| 00000f90 20 6f 66 0d 20 20 20 20 20 20 20 20 20 20 20 73 | of. s| 00000fa0 65 63 74 6f 72 73 20 6f 6e 20 74 68 65 20 64 69 |ectors on the di| 00000fb0 73 63 2e 0d 20 20 20 20 20 20 20 20 20 20 20 28 |sc.. (| 00000fc0 62 69 74 73 20 34 20 61 6e 64 20 35 29 20 54 68 |bits 4 and 5) Th| 00000fd0 65 20 62 6f 6f 74 20 75 70 20 6f 70 74 69 6f 6e |e boot up option| 00000fe0 20 73 65 74 20 75 73 69 6e 67 20 2a 4f 50 54 34 | set using *OPT4| 00000ff0 2c 6e 2e 0d 26 30 37 20 20 20 20 20 20 20 20 54 |,n..&07 T| 00001000 68 65 20 6c 65 61 73 74 20 73 69 67 6e 69 66 69 |he least signifi| 00001010 63 61 6e 74 20 38 20 62 69 74 73 20 6f 66 20 74 |cant 8 bits of t| 00001020 68 65 20 28 31 30 20 62 69 74 29 20 6e 75 6d 62 |he (10 bit) numb| 00001030 65 72 20 6f 66 20 73 65 63 74 6f 72 73 0d 20 20 |er of sectors. | 00001040 20 20 20 20 20 20 20 20 20 6f 6e 20 74 68 65 20 | on the | 00001050 64 69 73 63 2e 20 54 68 65 20 6d 6f 73 74 20 73 |disc. The most s| 00001060 69 67 6e 69 66 69 63 61 6e 74 20 62 69 74 73 20 |ignificant bits | 00001070 61 72 65 20 69 6e 20 62 69 74 73 20 30 20 61 6e |are in bits 0 an| 00001080 64 20 31 20 6f 66 0d 20 20 20 20 20 20 20 20 20 |d 1 of. | 00001090 20 20 62 79 74 65 20 26 30 36 2e 0d 26 30 38 20 | byte &06..&08 | 000010a0 2d 20 26 30 39 20 20 4c 6f 61 64 20 61 64 64 72 |- &09 Load addr| 000010b0 65 73 73 20 6f 66 20 66 69 72 73 74 20 66 69 6c |ess of first fil| 000010c0 65 2c 20 6c 65 61 73 74 20 73 69 67 6e 69 66 69 |e, least signifi| 000010d0 63 61 6e 74 20 31 36 20 62 69 74 73 2e 0d 26 30 |cant 16 bits..&0| 000010e0 41 20 2d 20 26 30 42 20 20 45 78 65 63 75 74 69 |A - &0B Executi| 000010f0 6f 6e 20 61 64 64 72 65 73 73 20 6f 66 20 66 69 |on address of fi| 00001100 72 73 74 20 66 69 6c 65 2c 20 6c 65 61 73 74 20 |rst file, least | 00001110 73 69 67 6e 69 66 69 63 61 6e 74 20 31 36 20 62 |significant 16 b| 00001120 69 74 73 2e 0d 26 30 43 20 2d 20 26 30 44 20 20 |its..&0C - &0D | 00001130 4c 65 6e 67 74 68 20 6f 66 20 66 69 72 73 74 20 |Length of first | 00001140 66 69 6c 65 2c 20 6c 65 61 73 74 20 73 69 67 6e |file, least sign| 00001150 69 66 69 63 61 6e 74 20 31 36 20 62 69 74 73 2e |ificant 16 bits.| 00001160 0d 26 30 45 20 20 20 20 20 20 20 20 28 62 69 74 |.&0E (bit| 00001170 73 20 30 20 61 6e 64 20 31 29 20 53 74 61 72 74 |s 0 and 1) Start| 00001180 73 65 63 74 6f 72 20 6f 66 20 66 69 72 73 74 20 |sector of first | 00001190 66 69 6c 65 2c 20 6d 6f 73 74 20 73 69 67 2e 20 |file, most sig. | 000011a0 32 20 62 69 74 73 2e 0d 20 20 20 20 20 20 20 20 |2 bits.. | 000011b0 20 20 20 28 62 69 74 73 20 32 20 61 6e 64 20 33 | (bits 2 and 3| 000011c0 29 20 4c 6f 61 64 20 61 64 64 72 65 73 73 20 6f |) Load address o| 000011d0 66 20 66 69 72 73 74 20 66 69 6c 65 2c 20 6d 6f |f first file, mo| 000011e0 73 74 20 73 69 67 2e 20 32 20 62 69 74 73 2e 0d |st sig. 2 bits..| 000011f0 20 20 20 20 20 20 20 20 20 20 20 28 62 69 74 73 | (bits| 00001200 20 34 20 61 6e 64 20 35 29 20 4c 65 6e 67 74 68 | 4 and 5) Length| 00001210 20 6f 66 20 66 69 72 73 74 20 66 69 6c 65 2c 20 | of first file, | 00001220 6d 6f 73 74 20 73 69 67 2e 20 32 20 62 69 74 73 |most sig. 2 bits| 00001230 2e 0d 20 20 20 20 20 20 20 20 20 20 20 28 62 69 |.. (bi| 00001240 74 73 20 36 20 61 6e 64 20 37 29 20 45 78 65 63 |ts 6 and 7) Exec| 00001250 75 74 69 6f 6e 20 61 64 64 72 65 73 73 20 6f 66 |ution address of| 00001260 20 66 69 72 73 74 20 66 69 6c 65 2c 20 6d 6f 73 | first file, mos| 00001270 74 20 73 69 67 2e 20 62 69 74 73 2e 0d 26 30 46 |t sig. bits..&0F| 00001280 20 20 20 20 20 20 20 20 53 74 61 72 74 20 73 65 | Start se| 00001290 63 74 6f 72 20 6f 66 20 66 69 72 73 74 20 66 69 |ctor of first fi| 000012a0 6c 65 2c 20 6c 65 61 73 74 20 73 69 67 6e 69 66 |le, least signif| 000012b0 69 63 61 6e 74 20 38 20 62 69 74 73 2e 0d 26 31 |icant 8 bits..&1| 000012c0 30 20 2d 20 26 46 46 20 20 4c 6f 61 64 20 61 64 |0 - &FF Load ad| 000012d0 64 72 65 73 73 2c 20 65 78 65 63 75 74 69 6f 6e |dress, execution| 000012e0 20 61 64 64 72 65 73 73 2c 20 66 69 6c 65 20 6c | address, file l| 000012f0 65 6e 67 74 68 2c 20 61 6e 64 20 73 65 63 74 6f |ength, and secto| 00001300 72 20 6e 75 6d 62 65 72 0d 20 20 20 20 20 20 20 |r number. | 00001310 20 20 20 20 66 6f 72 20 65 76 65 72 79 20 6f 74 | for every ot| 00001320 68 65 72 20 66 69 6c 65 20 6f 6e 20 74 68 65 20 |her file on the | 00001330 64 69 73 63 20 28 38 20 62 79 74 65 73 20 70 65 |disc (8 bytes pe| 00001340 72 20 66 69 6c 65 29 2e 20 54 68 69 73 20 69 73 |r file). This is| 00001350 0d 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 |. the | 00001360 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 67 69 76 65 |information give| 00001370 6e 20 62 79 20 74 68 65 20 2a 49 4e 46 4f 20 63 |n by the *INFO c| 00001380 61 6c 6c 2e 0d 0d 0d 20 20 20 20 20 20 20 20 20 |all.... | 00001390 20 20 46 69 67 75 72 65 20 32 2e 20 54 68 65 20 | Figure 2. The | 000013a0 73 74 72 75 63 74 75 72 65 20 6f 66 20 74 68 65 |structure of the| 000013b0 20 44 46 53 20 63 61 74 61 6c 6f 67 75 65 0d 20 | DFS catalogue. | 000013c0 20 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d | ------| 000013d0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000013f0 2d 2d 2d 2d 2d 2d 0d 0d 0d 41 6c 74 68 6f 75 67 |------...Althoug| 00001400 68 20 74 68 65 72 65 20 69 73 20 61 20 6c 6f 74 |h there is a lot| 00001410 20 6f 66 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 | of information | 00001420 73 74 6f 72 65 64 20 69 6e 20 61 20 64 69 73 63 |stored in a disc| 00001430 20 63 61 74 61 6c 6f 67 75 65 20 6e 65 61 72 6c | catalogue nearl| 00001440 79 0d 61 6c 6c 20 74 68 69 73 20 69 6e 66 6f 72 |y.all this infor| 00001450 6d 61 74 69 6f 6e 20 69 73 20 77 72 69 74 74 65 |mation is writte| 00001460 6e 20 62 79 20 74 68 65 20 44 46 53 20 77 68 65 |n by the DFS whe| 00001470 6e 20 74 68 65 20 64 69 73 63 20 69 73 20 62 65 |n the disc is be| 00001480 69 6e 67 20 75 73 65 64 2e 20 41 6e 0d 41 63 6f |ing used. An.Aco| 00001490 72 6e 20 73 69 6e 67 6c 65 20 64 65 6e 73 69 74 |rn single densit| 000014a0 79 20 66 6f 72 6d 61 74 74 69 6e 67 20 70 72 6f |y formatting pro| 000014b0 67 72 61 6d 20 6d 75 73 74 20 66 69 6c 6c 20 74 |gram must fill t| 000014c0 68 65 20 63 61 74 61 6c 6f 67 75 65 20 77 69 74 |he catalogue wit| 000014d0 68 20 6e 75 6c 6c 0d 62 79 74 65 73 20 28 26 30 |h null.bytes (&0| 000014e0 30 29 20 77 69 74 68 20 74 68 65 20 65 78 63 65 |0) with the exce| 000014f0 70 74 69 6f 6e 20 6f 66 20 62 79 74 65 73 20 26 |ption of bytes &| 00001500 30 36 20 61 6e 64 20 26 30 37 20 6f 66 20 73 65 |06 and &07 of se| 00001510 63 74 6f 72 20 26 30 31 2e 20 54 68 65 73 65 0d |ctor &01. These.| 00001520 62 79 74 65 73 20 6d 75 73 74 20 73 74 6f 72 65 |bytes must store| 00001530 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 | the number of s| 00001540 65 63 74 6f 72 73 20 6d 61 64 65 20 61 76 61 69 |ectors made avai| 00001550 6c 61 62 6c 65 20 6f 6e 20 74 68 65 20 64 69 73 |lable on the dis| 00001560 63 20 62 79 20 74 68 65 0d 66 6f 72 6d 61 74 74 |c by the.formatt| 00001570 69 6e 67 20 70 72 6f 67 72 61 6d 2e 0d 0d 57 68 |ing program...Wh| 00001580 65 6e 20 61 20 73 69 6e 67 6c 65 20 64 65 6e 73 |en a single dens| 00001590 69 74 79 20 66 6f 72 6d 61 74 74 65 72 20 69 73 |ity formatter is| 000015a0 20 75 73 65 64 20 77 69 74 68 20 61 6e 20 65 69 | used with an ei| 000015b0 67 68 74 79 20 74 72 61 63 6b 20 64 69 73 63 20 |ghty track disc | 000015c0 64 72 69 76 65 20 69 74 0d 77 69 6c 6c 20 63 72 |drive it.will cr| 000015d0 65 61 74 65 20 26 33 32 30 20 73 65 63 74 6f 72 |eate &320 sector| 000015e0 73 20 6f 6e 20 61 20 64 69 73 63 2e 20 42 69 74 |s on a disc. Bit| 000015f0 73 20 30 20 61 6e 64 20 31 20 6f 66 20 62 79 74 |s 0 and 1 of byt| 00001600 65 20 26 30 36 20 6f 6e 20 6c 6f 67 69 63 61 6c |e &06 on logical| 00001610 0d 73 65 63 74 6f 72 20 26 30 31 20 6d 75 73 74 |.sector &01 must| 00001620 20 73 74 6f 72 65 20 74 68 65 20 6e 75 6d 62 65 | store the numbe| 00001630 72 20 26 30 33 20 28 25 31 31 29 2c 20 61 6e 64 |r &03 (%11), and| 00001640 20 62 79 74 65 20 26 30 37 20 6f 66 20 6c 6f 67 | byte &07 of log| 00001650 69 63 61 6c 20 73 65 63 74 6f 72 0d 26 30 31 20 |ical sector.&01 | 00001660 6d 75 73 74 20 73 74 6f 72 65 20 74 68 65 20 6e |must store the n| 00001670 75 6d 62 65 72 20 26 32 30 2e 20 57 68 65 6e 20 |umber &20. When | 00001680 74 68 65 20 70 72 6f 67 72 61 6d 20 69 73 20 75 |the program is u| 00001690 73 65 64 20 77 69 74 68 20 61 20 66 6f 75 72 74 |sed with a fourt| 000016a0 79 0d 74 72 61 63 6b 20 64 69 73 63 20 64 72 69 |y.track disc dri| 000016b0 76 65 20 69 74 20 77 69 6c 6c 20 63 72 65 61 74 |ve it will creat| 000016c0 65 20 26 31 39 30 20 73 65 63 74 6f 72 73 2e 20 |e &190 sectors. | 000016d0 42 69 74 73 20 30 20 61 6e 64 20 31 20 6f 66 20 |Bits 0 and 1 of | 000016e0 62 79 74 65 20 26 30 36 20 6f 6e 0d 6c 6f 67 69 |byte &06 on.logi| 000016f0 63 61 6c 20 73 65 63 74 6f 72 20 26 30 31 20 6d |cal sector &01 m| 00001700 75 73 74 20 74 68 65 6e 20 73 74 6f 72 65 20 74 |ust then store t| 00001710 68 65 20 6e 75 6d 62 65 72 20 26 30 31 20 28 25 |he number &01 (%| 00001720 30 31 29 2c 20 61 6e 64 20 62 79 74 65 20 26 30 |01), and byte &0| 00001730 37 20 6f 66 0d 6c 6f 67 69 63 61 6c 20 73 65 63 |7 of.logical sec| 00001740 74 6f 72 20 26 30 31 20 6d 75 73 74 20 73 74 6f |tor &01 must sto| 00001750 72 65 20 74 68 65 20 6e 75 6d 62 65 72 20 26 39 |re the number &9| 00001760 30 2e 20 46 69 67 75 72 65 20 33 20 73 68 6f 77 |0. Figure 3 show| 00001770 73 20 61 20 70 61 72 74 20 6f 66 20 61 0d 73 65 |s a part of a.se| 00001780 63 74 6f 72 20 64 75 6d 70 20 6d 61 64 65 20 77 |ctor dump made w| 00001790 69 74 68 20 61 20 6e 65 77 6c 79 20 66 6f 72 6d |ith a newly form| 000017a0 61 74 74 65 64 20 65 69 67 68 74 79 20 74 72 61 |atted eighty tra| 000017b0 63 6b 20 64 69 73 63 2e 20 54 68 65 20 6f 6e 6c |ck disc. The onl| 000017c0 79 0d 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 73 74 |y.information st| 000017d0 6f 72 65 64 20 69 6e 20 74 68 65 20 65 6d 70 74 |ored in the empt| 000017e0 79 20 63 61 74 61 6c 6f 67 75 65 20 69 73 20 74 |y catalogue is t| 000017f0 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 61 76 61 |he number of ava| 00001800 69 6c 61 62 6c 65 0d 73 65 63 74 6f 72 73 20 6f |ilable.sectors o| 00001810 6e 20 74 68 65 20 64 69 73 63 2e 0d 0d 0d 20 20 |n the disc.... | 00001820 20 20 20 20 20 20 20 20 20 20 20 20 20 54 72 61 | Tra| 00001830 63 6b 3a 20 30 30 20 20 20 4c 6f 67 69 63 61 6c |ck: 00 Logical| 00001840 20 53 65 63 74 6f 72 3a 20 30 30 0d 0d 20 20 20 | Sector: 00.. | 00001850 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001860 20 20 20 30 20 20 31 20 20 32 20 20 33 20 20 34 | 0 1 2 3 4| 00001870 20 20 35 20 20 36 20 20 37 0d 0d 20 20 20 20 20 | 5 6 7.. | 00001880 20 20 20 20 20 20 20 20 20 20 30 30 20 20 20 20 | 00 | 00001890 20 30 20 20 30 20 20 30 20 20 30 20 20 30 20 20 | 0 0 0 0 0 | 000018a0 30 20 20 30 20 20 30 20 20 2e 2e 2e 2e 2e 2e 2e |0 0 0 .......| 000018b0 2e 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |.. | 000018c0 20 30 38 20 20 20 20 20 30 20 20 30 20 20 30 20 | 08 0 0 0 | 000018d0 20 30 20 20 30 20 20 30 20 20 30 20 20 30 20 20 | 0 0 0 0 0 | 000018e0 2e 2e 2e 2e 2e 2e 2e 2e 0d 20 20 20 20 20 20 20 |......... | 000018f0 20 20 20 20 20 20 20 20 31 30 20 20 20 20 20 30 | 10 0| 00001900 20 20 30 20 20 30 20 20 30 20 20 30 20 20 30 20 | 0 0 0 0 0 | 00001910 20 30 20 20 30 20 20 2e 2e 2e 2e 2e 2e 2e 2e 0d | 0 0 .........| 00001920 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 | 1| 00001930 38 20 20 20 20 20 30 20 20 30 20 20 30 20 20 30 |8 0 0 0 0| 00001940 20 20 30 20 20 30 20 20 30 20 20 30 20 20 2e 2e | 0 0 0 0 ..| 00001950 2e 2e 2e 2e 2e 2e 0d 20 20 20 20 20 20 20 20 20 |....... | 00001960 20 20 20 20 20 20 32 30 20 20 20 20 20 2e 2e 2e | 20 ...| 00001970 0d 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |.. | 00001980 20 54 72 61 63 6b 3a 20 30 30 20 20 20 4c 6f 67 | Track: 00 Log| 00001990 69 63 61 6c 20 53 65 63 74 6f 72 3a 20 30 31 0d |ical Sector: 01.| 000019a0 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 000019b0 20 20 20 20 20 20 20 30 20 20 31 20 20 32 20 20 | 0 1 2 | 000019c0 33 20 20 34 20 20 35 20 20 36 20 20 37 0d 0d 20 |3 4 5 6 7.. | 000019d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 | 00| 000019e0 20 20 20 20 20 30 20 20 30 20 20 30 20 20 30 20 | 0 0 0 0 | 000019f0 20 30 20 20 30 20 20 33 20 32 30 20 20 2e 2e 2e | 0 0 3 20 ...| 00001a00 2e 2e 2e 2e 20 0d 20 20 20 20 20 20 20 20 20 20 |.... . | 00001a10 20 20 20 20 20 30 38 20 20 20 20 20 30 20 20 30 | 08 0 0| 00001a20 20 20 30 20 20 30 20 20 30 20 20 30 20 20 30 20 | 0 0 0 0 0 | 00001a30 20 30 20 20 2e 2e 2e 2e 2e 2e 2e 2e 0d 20 20 20 | 0 ......... | 00001a40 20 20 20 20 20 20 20 20 20 20 20 20 31 30 20 20 | 10 | 00001a50 20 20 20 30 20 20 30 20 20 30 20 20 30 20 20 30 | 0 0 0 0 0| 00001a60 20 20 30 20 20 30 20 20 30 20 20 2e 2e 2e 2e 2e | 0 0 0 .....| 00001a70 2e 2e 2e 0d 20 20 20 20 20 20 20 20 20 20 20 20 |.... | 00001a80 20 20 20 31 38 20 20 20 20 20 30 20 20 30 20 20 | 18 0 0 | 00001a90 30 20 20 30 20 20 30 20 20 30 20 20 30 20 20 30 |0 0 0 0 0 0| 00001aa0 20 20 2e 2e 2e 2e 2e 2e 2e 2e 0d 20 20 20 20 20 | ......... | 00001ab0 20 20 20 20 20 20 20 20 20 20 32 30 20 20 20 20 | 20 | 00001ac0 20 2e 2e 2e 0d 0d 0d 20 20 20 46 69 67 75 72 65 | ...... Figure| 00001ad0 20 33 2e 20 50 61 72 74 20 6f 66 20 74 68 65 20 | 3. Part of the | 00001ae0 63 61 74 61 6c 6f 67 75 65 20 6f 66 20 61 20 6e |catalogue of a n| 00001af0 65 77 6c 79 20 66 6f 72 6d 61 74 74 65 64 20 38 |ewly formatted 8| 00001b00 30 20 74 72 61 63 6b 20 64 69 73 63 0d 20 20 20 |0 track disc. | 00001b10 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00001b50 2d 2d 0d 0d 0d 54 68 65 20 6d 6f 73 74 20 65 66 |--...The most ef| 00001b60 66 69 63 69 65 6e 74 20 6f 70 65 72 61 74 69 6f |ficient operatio| 00001b70 6e 20 6f 66 20 61 6e 20 41 63 6f 72 6e 20 73 69 |n of an Acorn si| 00001b80 6e 67 6c 65 20 64 65 6e 73 69 74 79 20 64 69 73 |ngle density dis| 00001b90 63 20 6f 63 63 75 72 73 20 69 66 0d 70 68 79 73 |c occurs if.phys| 00001ba0 69 63 61 6c 20 73 65 63 74 6f 72 20 26 30 30 20 |ical sector &00 | 00001bb0 64 6f 65 73 20 6e 6f 74 20 73 74 6f 72 65 20 6c |does not store l| 00001bc0 6f 67 69 63 61 6c 20 73 65 63 74 6f 72 20 26 30 |ogical sector &0| 00001bd0 30 20 6f 6e 20 65 76 65 72 79 20 74 72 61 63 6b |0 on every track| 00001be0 2e 20 54 68 65 0d 6f 70 74 69 6d 75 6d 20 64 69 |. The.optimum di| 00001bf0 73 74 72 69 62 75 74 69 6f 6e 20 6f 66 20 6c 6f |stribution of lo| 00001c00 67 69 63 61 6c 20 73 65 63 74 6f 72 73 20 77 69 |gical sectors wi| 00001c10 74 68 20 72 65 73 70 65 63 74 20 74 6f 20 70 68 |th respect to ph| 00001c20 79 73 69 63 61 6c 20 73 65 63 74 6f 72 73 0d 66 |ysical sectors.f| 00001c30 6f 72 20 6d 6f 73 74 20 64 69 73 63 20 64 72 69 |or most disc dri| 00001c40 76 65 73 20 69 73 20 73 68 6f 77 6e 20 69 6e 20 |ves is shown in | 00001c50 66 69 67 75 72 65 20 34 2e 20 46 69 67 75 72 65 |figure 4. Figure| 00001c60 20 34 20 73 68 6f 77 73 20 74 68 61 74 2c 20 6f | 4 shows that, o| 00001c70 6e 20 74 72 61 63 6b 0d 26 30 30 2c 20 74 68 65 |n track.&00, the| 00001c80 20 70 68 79 73 69 63 61 6c 20 61 6e 64 20 6c 6f | physical and lo| 00001c90 67 69 63 61 6c 20 73 65 63 74 6f 72 20 6e 75 6d |gical sector num| 00001ca0 62 65 72 73 20 61 72 65 20 74 68 65 20 73 61 6d |bers are the sam| 00001cb0 65 2e 20 4f 6e 20 74 72 61 63 6b 20 26 30 31 2c |e. On track &01,| 00001cc0 0d 70 68 79 73 69 63 61 6c 20 73 65 63 74 6f 72 |.physical sector| 00001cd0 20 26 30 30 20 73 74 6f 72 65 73 20 6c 6f 67 69 | &00 stores logi| 00001ce0 63 61 6c 20 73 65 63 74 6f 72 20 26 30 37 2c 20 |cal sector &07, | 00001cf0 70 68 79 73 69 63 61 6c 20 73 65 63 74 6f 72 20 |physical sector | 00001d00 26 30 31 20 73 74 6f 72 65 73 0d 6c 6f 67 69 63 |&01 stores.logic| 00001d10 61 6c 20 73 65 63 74 6f 72 20 26 30 38 2c 20 61 |al sector &08, a| 00001d20 6e 64 20 73 6f 20 6f 6e 2e 20 54 68 69 73 20 69 |nd so on. This i| 00001d30 73 20 6b 6e 6f 77 6e 20 61 73 20 61 20 6c 6f 67 |s known as a log| 00001d40 69 63 61 6c 20 73 65 63 74 6f 72 20 6f 66 66 73 |ical sector offs| 00001d50 65 74 2e 0d 0d 0d 20 20 20 20 20 20 20 20 20 20 |et.... | 00001d60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 68 | Ph| 00001d70 79 73 69 63 61 6c 20 73 65 63 74 6f 72 20 6e 75 |ysical sector nu| 00001d80 6d 62 65 72 73 0d 20 20 20 20 20 20 20 20 20 20 |mbers. | 00001d90 20 20 20 20 20 20 20 20 20 20 0d 20 20 20 20 20 | . | 00001da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 | | | 00001db0 30 30 20 30 31 20 30 32 20 30 33 20 30 34 20 30 |00 01 02 03 04 0| 00001dc0 35 20 30 36 20 30 37 20 30 38 20 30 39 0d 20 20 |5 06 07 08 09. | 00001dd0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d | --| 00001de0 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |-+--------------| 00001df0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00001e00 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 54 20 |. T | 00001e10 20 30 30 20 7c 20 30 30 20 30 31 20 30 32 20 30 | 00 | 00 01 02 0| 00001e20 33 20 30 34 20 30 35 20 30 36 20 30 37 20 30 38 |3 04 05 06 07 08| 00001e30 20 30 39 0d 20 20 20 20 20 20 20 20 20 20 20 20 | 09. | 00001e40 20 72 20 20 30 31 20 7c 20 30 37 20 30 38 20 30 | r 01 | 07 08 0| 00001e50 39 20 30 30 20 30 31 20 30 32 20 30 33 20 30 34 |9 00 01 02 03 04| 00001e60 20 30 35 20 30 36 20 4c 6f 67 69 63 61 6c 0d 20 | 05 06 Logical. | 00001e70 20 20 20 20 20 20 20 20 20 20 20 20 61 20 20 30 | a 0| 00001e80 32 20 7c 20 30 34 20 30 35 20 30 36 20 30 37 20 |2 | 04 05 06 07 | 00001e90 30 38 20 30 39 20 30 30 20 30 31 20 30 32 20 30 |08 09 00 01 02 0| 00001ea0 33 20 73 65 63 74 6f 72 0d 20 20 20 20 20 20 20 |3 sector. | 00001eb0 20 20 20 20 20 20 63 20 20 30 33 20 7c 20 30 31 | c 03 | 01| 00001ec0 20 30 32 20 30 33 20 30 34 20 30 35 20 30 36 20 | 02 03 04 05 06 | 00001ed0 30 37 20 30 38 20 30 39 20 30 30 20 6e 75 6d 62 |07 08 09 00 numb| 00001ee0 65 72 73 0d 20 20 20 20 20 20 20 20 20 20 20 20 |ers. | 00001ef0 20 6b 20 20 30 34 20 7c 20 30 38 20 30 39 20 30 | k 04 | 08 09 0| 00001f00 30 20 30 31 20 30 32 20 30 33 20 30 34 20 30 35 |0 01 02 03 04 05| 00001f10 20 30 36 20 30 37 0d 20 20 20 20 20 20 20 20 20 | 06 07. | 00001f20 20 20 20 20 73 20 20 30 35 20 7c 20 30 35 20 30 | s 05 | 05 0| 00001f30 36 20 2e 2e 2e 0d 0d 20 20 20 20 20 20 20 20 46 |6 ..... F| 00001f40 69 67 75 72 65 20 34 2e 20 54 68 65 20 6c 6f 67 |igure 4. The log| 00001f50 69 63 61 6c 20 73 65 63 74 6f 72 73 20 6e 75 6d |ical sectors num| 00001f60 62 65 72 73 20 66 6f 72 20 6f 70 74 69 6d 75 6d |bers for optimum| 00001f70 20 73 70 65 65 64 0d 20 20 20 20 20 20 20 20 2d | speed. -| 00001f80 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00001fb0 2d 2d 2d 2d 2d 2d 0d 0d 0d 54 68 65 20 6c 6f 67 |------...The log| 00001fc0 69 63 61 6c 20 73 65 63 74 6f 72 20 6e 75 6d 62 |ical sector numb| 00001fd0 65 72 73 20 61 72 65 20 6f 66 66 73 65 74 20 62 |ers are offset b| 00001fe0 65 63 61 75 73 65 20 74 68 65 20 64 69 73 63 20 |ecause the disc | 00001ff0 64 72 69 76 65 20 68 65 61 64 20 74 61 6b 65 73 |drive head takes| 00002000 20 61 0d 70 72 65 64 69 63 74 61 62 6c 65 20 61 | a.predictable a| 00002010 6d 6f 75 6e 74 20 6f 66 20 74 69 6d 65 20 74 6f |mount of time to| 00002020 20 73 74 65 70 20 66 72 6f 6d 20 6f 6e 65 20 74 | step from one t| 00002030 72 61 63 6b 20 74 6f 20 74 68 65 20 6e 65 78 74 |rack to the next| 00002040 20 77 68 65 6e 20 77 72 69 74 69 6e 67 0d 74 6f | when writing.to| 00002050 20 6f 72 20 72 65 61 64 69 6e 67 20 66 72 6f 6d | or reading from| 00002060 20 61 20 64 69 73 63 2e 0d 0d 43 6f 6e 73 69 64 | a disc...Consid| 00002070 65 72 20 77 68 61 74 20 77 69 6c 6c 20 68 61 70 |er what will hap| 00002080 70 65 6e 20 69 66 20 79 6f 75 20 75 73 65 20 74 |pen if you use t| 00002090 68 65 20 2a 4c 4f 41 44 20 63 6f 6d 6d 61 6e 64 |he *LOAD command| 000020a0 20 74 6f 20 72 65 61 64 20 61 20 66 69 6c 65 0d | to read a file.| 000020b0 77 68 69 63 68 20 69 73 20 73 74 6f 72 65 64 20 |which is stored | 000020c0 69 6e 20 31 30 20 73 65 63 74 6f 72 73 20 73 74 |in 10 sectors st| 000020d0 61 72 74 69 6e 67 20 77 69 74 68 20 73 65 63 74 |arting with sect| 000020e0 6f 72 20 26 30 32 20 6f 6e 20 74 72 61 63 6b 20 |or &02 on track | 000020f0 26 30 30 2e 20 54 68 69 73 0d 68 79 70 6f 74 68 |&00. This.hypoth| 00002100 65 74 69 63 61 6c 20 66 69 6c 65 20 77 69 6c 6c |etical file will| 00002110 20 62 65 20 73 74 6f 72 65 64 20 6f 6e 20 6c 6f | be stored on lo| 00002120 67 69 63 61 6c 20 73 65 63 74 6f 72 73 20 26 30 |gical sectors &0| 00002130 32 20 74 6f 20 26 30 39 20 6f 6e 20 74 72 61 63 |2 to &09 on trac| 00002140 6b 0d 26 30 30 2c 20 61 6e 64 20 6f 6e 20 6c 6f |k.&00, and on lo| 00002150 67 69 63 61 6c 20 73 65 63 74 6f 72 73 20 26 30 |gical sectors &0| 00002160 30 20 61 6e 64 20 26 30 31 20 6f 6e 20 74 72 61 |0 and &01 on tra| 00002170 63 6b 20 26 30 31 2e 20 54 68 65 20 73 65 63 74 |ck &01. The sect| 00002180 6f 72 73 20 6f 6e 20 74 72 61 63 6b 0d 26 30 30 |ors on track.&00| 00002190 20 77 69 6c 6c 20 62 65 20 6c 6f 61 64 65 64 20 | will be loaded | 000021a0 66 72 6f 6d 20 73 65 63 74 6f 72 20 26 30 32 20 |from sector &02 | 000021b0 74 6f 20 73 65 63 74 6f 72 20 26 30 39 20 61 6e |to sector &09 an| 000021c0 64 20 74 68 65 6e 20 74 68 65 20 68 65 61 64 20 |d then the head | 000021d0 77 69 6c 6c 0d 73 74 65 70 20 69 6e 20 74 6f 20 |will.step in to | 000021e0 74 72 61 63 6b 20 26 30 31 2e 20 54 68 69 73 20 |track &01. This | 000021f0 73 74 65 70 20 77 69 6c 6c 20 74 61 6b 65 20 61 |step will take a| 00002200 20 70 72 65 64 69 63 74 61 62 6c 65 20 61 6d 6f | predictable amo| 00002210 75 6e 74 20 6f 66 20 74 69 6d 65 0d 77 68 69 63 |unt of time.whic| 00002220 68 20 69 73 20 6c 6f 6e 67 20 65 6e 6f 75 67 68 |h is long enough| 00002230 20 66 6f 72 20 6d 6f 73 74 20 64 69 73 63 20 64 | for most disc d| 00002240 72 69 76 65 73 20 74 6f 20 6d 69 73 73 20 6c 6f |rives to miss lo| 00002250 67 69 63 61 6c 20 73 65 63 74 6f 72 20 26 30 30 |gical sector &00| 00002260 20 69 66 20 69 74 0d 69 73 20 73 74 6f 72 65 64 | if it.is stored| 00002270 20 6f 6e 20 70 68 79 73 69 63 61 6c 20 73 65 63 | on physical sec| 00002280 74 6f 72 20 26 30 30 2e 20 54 68 65 20 64 69 73 |tor &00. The dis| 00002290 63 20 77 6f 75 6c 64 20 74 68 65 6e 20 68 61 76 |c would then hav| 000022a0 65 20 74 6f 20 6d 61 6b 65 20 61 0d 63 6f 6d 70 |e to make a.comp| 000022b0 6c 65 74 65 20 72 65 76 6f 6c 75 74 69 6f 6e 20 |lete revolution | 000022c0 62 65 66 6f 72 65 20 73 65 63 74 6f 72 20 26 30 |before sector &0| 000022d0 30 20 72 65 61 70 70 65 61 72 73 2e 20 55 73 69 |0 reappears. Usi| 000022e0 6e 67 20 74 68 65 20 6f 66 66 73 65 74 0d 69 6c |ng the offset.il| 000022f0 6c 75 73 74 72 61 74 65 64 20 69 6e 20 66 69 67 |lustrated in fig| 00002300 75 72 65 20 34 20 77 6f 75 6c 64 20 65 6e 73 75 |ure 4 would ensu| 00002310 72 65 20 74 68 61 74 2c 20 66 6f 72 20 6d 6f 73 |re that, for mos| 00002320 74 20 64 69 73 63 20 64 72 69 76 65 73 2c 20 73 |t disc drives, s| 00002330 65 63 74 6f 72 0d 26 30 30 20 6f 6e 20 74 72 61 |ector.&00 on tra| 00002340 63 6b 20 26 30 31 20 77 6f 75 6c 64 20 62 65 63 |ck &01 would bec| 00002350 6f 6d 65 20 69 6d 6d 65 61 64 69 61 74 6c 79 20 |ome immeadiatly | 00002360 61 76 61 69 6c 61 62 6c 65 20 61 73 20 74 68 65 |available as the| 00002370 20 68 65 61 64 20 73 74 65 70 73 20 69 6e 0d 66 | head steps in.f| 00002380 72 6f 6d 20 74 72 61 63 6b 20 26 30 30 20 74 6f |rom track &00 to| 00002390 20 26 30 31 2e 20 41 6c 6c 20 74 68 65 20 74 72 | &01. All the tr| 000023a0 61 63 6b 73 20 69 6e 20 66 69 67 75 72 65 20 34 |acks in figure 4| 000023b0 20 75 73 65 20 74 68 65 20 73 61 6d 65 20 73 65 | use the same se| 000023c0 63 74 6f 72 0d 6f 66 66 73 65 74 20 77 69 74 68 |ctor.offset with| 000023d0 20 72 65 73 70 65 63 74 20 74 6f 20 65 61 63 68 | respect to each| 000023e0 20 6f 74 68 65 72 20 74 6f 20 67 69 76 65 20 61 | other to give a| 000023f0 6e 20 6f 70 74 69 6d 75 6d 20 64 69 73 74 72 69 |n optimum distri| 00002400 62 75 74 69 6f 6e 20 6f 66 0d 6c 6f 67 69 63 61 |bution of.logica| 00002410 6c 20 73 65 63 74 6f 72 73 2e 0d 0d 4e 6f 74 20 |l sectors...Not | 00002420 61 6c 6c 20 64 69 73 63 20 64 72 69 76 65 73 20 |all disc drives | 00002430 74 61 6b 65 20 74 68 65 20 73 61 6d 65 20 61 6d |take the same am| 00002440 6f 75 6e 74 20 6f 66 20 74 69 6d 65 20 74 6f 20 |ount of time to | 00002450 73 74 65 70 20 74 68 65 20 68 65 61 64 20 66 72 |step the head fr| 00002460 6f 6d 20 6f 6e 65 0d 74 72 61 63 6b 20 74 6f 20 |om one.track to | 00002470 61 6e 6f 74 68 65 72 20 61 6e 64 20 66 6f 72 20 |another and for | 00002480 74 68 69 73 20 72 65 61 73 6f 6e 20 74 68 65 20 |this reason the | 00002490 61 6d 6f 75 6e 74 20 6f 66 20 6f 66 66 73 65 74 |amount of offset| 000024a0 20 75 73 65 64 20 74 6f 20 70 72 6f 64 75 63 65 | used to produce| 000024b0 0d 61 6e 20 6f 70 74 69 6d 61 6c 6c 79 20 66 6f |.an optimally fo| 000024c0 72 6d 61 74 65 64 20 64 69 73 63 20 77 69 6c 6c |rmated disc will| 000024d0 20 76 61 72 79 20 66 72 6f 6d 20 6f 6e 65 20 64 | vary from one d| 000024e0 69 73 63 20 64 72 69 76 65 20 74 6f 20 61 6e 6f |isc drive to ano| 000024f0 74 68 65 72 2e 20 54 68 65 0d 64 69 73 74 72 69 |ther. The.distri| 00002500 62 75 74 69 6f 6e 20 6f 66 20 6c 6f 67 69 63 61 |bution of logica| 00002510 6c 20 73 65 63 74 6f 72 73 20 73 68 6f 77 6e 20 |l sectors shown | 00002520 69 6e 20 66 69 67 75 72 65 20 34 20 75 73 65 73 |in figure 4 uses| 00002530 20 61 6e 20 6f 66 66 73 65 74 20 6f 66 20 33 0d | an offset of 3.| 00002540 73 65 63 74 6f 72 73 2e 20 54 68 61 74 20 69 73 |sectors. That is| 00002550 2c 20 73 65 63 74 6f 72 20 26 30 30 20 69 73 20 |, sector &00 is | 00002560 6f 66 66 73 65 74 20 33 20 73 65 63 74 6f 72 73 |offset 3 sectors| 00002570 20 77 69 74 68 20 72 65 73 70 65 63 74 20 74 6f | with respect to| 00002580 20 73 65 63 74 6f 72 0d 26 30 39 20 6f 6e 20 74 | sector.&09 on t| 00002590 68 65 20 70 72 65 63 65 64 69 6e 67 20 74 72 61 |he preceding tra| 000025a0 63 6b 2e 20 41 20 6d 6f 64 65 72 6e 20 66 61 73 |ck. A modern fas| 000025b0 74 20 64 69 73 63 20 64 72 69 76 65 20 6d 69 67 |t disc drive mig| 000025c0 68 74 20 6f 6e 6c 79 20 72 65 71 75 69 72 65 20 |ht only require | 000025d0 61 6e 0d 6f 66 66 73 65 74 20 6f 66 20 32 20 73 |an.offset of 2 s| 000025e0 65 63 74 6f 72 73 20 73 6f 20 74 68 61 74 20 74 |ectors so that t| 000025f0 68 65 20 70 68 79 73 69 63 61 6c 20 6c 6f 67 69 |he physical logi| 00002600 63 61 6c 20 73 65 63 74 6f 72 20 26 30 30 20 6f |cal sector &00 o| 00002610 6e 20 74 72 61 63 6b 20 26 30 31 0d 77 69 6c 6c |n track &01.will| 00002620 20 62 65 20 6c 6f 67 69 63 61 6c 20 73 65 63 74 | be logical sect| 00002630 6f 72 20 26 30 38 2e 20 41 6e 20 6f 6c 64 20 64 |or &08. An old d| 00002640 69 73 63 20 64 72 69 76 65 20 6c 69 62 65 72 61 |isc drive libera| 00002650 74 65 64 20 66 72 6f 6d 20 74 68 65 20 6c 6f 63 |ted from the loc| 00002660 61 6c 0d 6a 75 6e 6b 20 73 68 6f 70 20 6d 69 67 |al.junk shop mig| 00002670 68 74 20 72 65 71 75 69 72 65 20 61 6e 20 6f 66 |ht require an of| 00002680 66 73 65 74 20 6f 66 20 34 20 6f 72 20 65 76 65 |fset of 4 or eve| 00002690 6e 20 35 20 73 65 63 74 6f 72 73 2e 0d 0d 54 68 |n 5 sectors...Th| 000026a0 65 20 70 72 6f 67 72 61 6d 20 4f 46 46 53 45 54 |e program OFFSET| 000026b0 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 | can be used to | 000026c0 65 78 70 65 72 69 6d 65 6e 74 20 77 69 74 68 20 |experiment with | 000026d0 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 6f 66 |the amount of of| 000026e0 66 73 65 74 0d 67 69 76 65 6e 20 74 6f 20 74 68 |fset.given to th| 000026f0 65 20 6c 6f 67 69 63 61 6c 20 73 65 63 74 6f 72 |e logical sector| 00002700 20 6e 75 6d 62 65 72 73 2e 20 49 74 20 63 61 6e | numbers. It can| 00002710 20 66 6f 72 6d 61 74 20 62 6f 74 68 20 34 30 20 | format both 40 | 00002720 61 6e 64 20 38 30 20 74 72 61 63 6b 0d 64 69 73 |and 80 track.dis| 00002730 63 73 20 77 69 74 68 20 61 6e 79 20 6f 66 66 73 |cs with any offs| 00002740 65 74 20 66 72 6f 6d 20 30 20 74 6f 20 39 20 73 |et from 0 to 9 s| 00002750 65 63 74 6f 72 73 2e 0d 0d 54 6f 20 66 69 6e 64 |ectors...To find| 00002760 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 6f | the amount of o| 00002770 66 66 73 65 74 20 6e 65 65 64 65 64 20 77 69 74 |ffset needed wit| 00002780 68 20 61 20 70 61 72 74 69 63 75 6c 61 72 20 64 |h a particular d| 00002790 69 73 63 20 64 72 69 76 65 20 79 6f 75 0d 73 68 |isc drive you.sh| 000027a0 6f 75 6c 64 20 63 72 65 61 74 65 20 61 20 73 65 |ould create a se| 000027b0 74 20 6f 66 20 31 30 20 64 69 73 63 73 20 77 69 |t of 10 discs wi| 000027c0 74 68 20 74 68 65 20 6f 66 66 73 65 74 20 76 61 |th the offset va| 000027d0 72 79 69 6e 67 20 66 72 6f 6d 20 30 20 74 6f 20 |rying from 0 to | 000027e0 39 0d 73 65 63 74 6f 72 73 2e 20 45 61 63 68 20 |9.sectors. Each | 000027f0 64 69 73 63 20 73 68 6f 75 6c 64 20 62 65 20 75 |disc should be u| 00002800 73 65 64 20 74 6f 20 6d 65 61 73 75 72 65 20 74 |sed to measure t| 00002810 68 65 20 74 69 6d 65 20 74 61 6b 65 6e 20 74 6f |he time taken to| 00002820 20 73 74 6f 72 65 20 61 0d 76 65 72 79 20 6c 61 | store a.very la| 00002830 72 67 65 20 66 69 6c 65 20 61 20 6c 61 72 67 65 |rge file a large| 00002840 20 6e 75 6d 62 65 72 20 6f 66 20 74 69 6d 65 73 | number of times| 00002850 20 77 69 74 68 69 6e 20 61 20 70 72 6f 67 72 61 | within a progra| 00002860 6d 20 6c 6f 6f 70 2e 20 49 74 20 69 73 20 61 0d |m loop. It is a.| 00002870 67 6f 6f 64 20 69 64 65 61 20 74 6f 20 73 74 6f |good idea to sto| 00002880 72 65 20 74 68 65 20 73 61 6d 65 20 6c 61 72 67 |re the same larg| 00002890 65 20 66 69 6c 65 20 32 30 20 6f 72 20 33 30 20 |e file 20 or 30 | 000028a0 74 69 6d 65 73 20 61 6e 64 20 74 6f 20 75 73 65 |times and to use| 000028b0 20 61 20 73 74 6f 70 0d 77 61 74 63 68 20 72 61 | a stop.watch ra| 000028c0 74 68 65 72 20 74 68 61 6e 20 74 68 65 20 63 6f |ther than the co| 000028d0 6d 70 75 74 65 72 20 74 6f 20 6d 65 61 73 75 72 |mputer to measur| 000028e0 65 20 74 68 65 20 74 69 6d 65 20 74 61 6b 65 6e |e the time taken| 000028f0 2e 20 49 66 20 79 6f 75 20 73 74 61 72 74 0d 77 |. If you start.w| 00002900 69 74 68 20 61 6e 20 6f 66 66 73 65 74 20 6f 66 |ith an offset of| 00002910 20 39 20 73 65 63 74 6f 72 73 20 61 6e 64 20 77 | 9 sectors and w| 00002920 6f 72 6b 20 64 6f 77 6e 20 74 6f 20 7a 65 72 6f |ork down to zero| 00002930 20 6f 66 66 73 65 74 20 79 6f 75 20 73 68 6f 75 | offset you shou| 00002940 6c 64 20 66 69 6e 64 0d 74 68 61 74 20 74 68 65 |ld find.that the| 00002950 20 74 69 6d 65 20 64 65 63 72 65 61 73 65 73 20 | time decreases | 00002960 77 69 74 68 20 65 61 63 68 20 64 69 73 63 20 75 |with each disc u| 00002970 6e 74 69 6c 2c 20 77 69 74 68 20 6f 6e 65 20 64 |ntil, with one d| 00002980 69 73 63 2c 20 74 68 65 72 65 20 69 73 20 61 6e |isc, there is an| 00002990 0d 69 6e 63 72 65 61 73 65 20 69 6e 20 74 68 65 |.increase in the| 000029a0 20 74 69 6d 65 20 74 61 6b 65 6e 20 74 6f 20 73 | time taken to s| 000029b0 74 6f 72 65 20 74 68 65 20 66 69 6c 65 73 2e 20 |tore the files. | 000029c0 49 66 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c |If, for example,| 000029d0 20 74 68 65 0d 69 6e 63 72 65 61 73 65 20 69 73 | the.increase is| 000029e0 20 77 69 74 68 20 61 20 64 69 73 63 20 75 73 69 | with a disc usi| 000029f0 6e 67 20 61 6e 20 6f 66 66 73 65 74 20 6f 66 20 |ng an offset of | 00002a00 32 20 73 65 63 74 6f 72 73 20 74 68 65 6e 20 61 |2 sectors then a| 00002a10 6e 20 6f 70 74 69 6d 75 6d 0d 6f 66 66 73 65 74 |n optimum.offset| 00002a20 20 6f 66 20 33 20 73 65 63 74 6f 72 73 20 69 73 | of 3 sectors is| 00002a30 20 6e 65 65 64 65 64 20 66 6f 72 20 79 6f 75 72 | needed for your| 00002a40 20 64 69 73 63 20 64 72 69 76 65 2e 20 4d 6f 73 | disc drive. Mos| 00002a50 74 20 64 69 73 63 20 64 72 69 76 65 73 20 6e 65 |t disc drives ne| 00002a60 65 64 0d 61 6e 20 6f 66 66 73 65 74 20 6f 66 20 |ed.an offset of | 00002a70 33 20 73 65 63 74 6f 72 73 2e 0d 0d 0d 20 20 20 |3 sectors.... | 00002a80 31 30 20 52 45 4d 3a 20 4f 46 46 53 45 54 0d 20 |10 REM: OFFSET. | 00002a90 20 20 32 30 20 44 49 4d 20 6d 63 6f 64 65 20 26 | 20 DIM mcode &| 00002aa0 34 30 30 0d 20 20 20 33 30 20 6f 73 77 72 63 68 |400. 30 oswrch| 00002ab0 3d 26 46 46 45 45 0d 20 20 20 34 30 20 6f 73 6e |=&FFEE. 40 osn| 00002ac0 65 77 6c 3d 26 46 46 45 37 0d 20 20 20 35 30 20 |ewl=&FFE7. 50 | 00002ad0 6f 73 77 6f 72 64 3d 26 46 46 46 31 0d 20 20 20 |osword=&FFF1. | 00002ae0 36 30 20 6f 73 62 79 74 65 3d 26 46 46 46 34 0d |60 osbyte=&FFF4.| 00002af0 20 20 20 37 30 20 46 4f 52 70 61 73 73 3d 30 20 | 70 FORpass=0 | 00002b00 54 4f 20 32 20 53 54 45 50 20 32 0d 20 20 20 38 |TO 2 STEP 2. 8| 00002b10 30 20 50 25 3d 6d 63 6f 64 65 0d 20 20 20 39 30 |0 P%=mcode. 90| 00002b20 20 5b 20 20 20 20 20 20 20 4f 50 54 20 70 61 73 | [ OPT pas| 00002b30 73 0d 20 20 31 30 30 20 20 20 20 20 20 20 20 20 |s. 100 | 00002b40 4a 53 52 20 6f 73 6e 65 77 6c 0d 20 20 31 31 30 |JSR osnewl. 110| 00002b50 20 2e 6c 6f 6f 70 0d 20 20 31 32 30 20 20 20 20 | .loop. 120 | 00002b60 20 20 20 20 20 4c 44 41 20 26 46 46 20 20 20 20 | LDA &FF | 00002b70 20 20 20 5c 20 70 6f 6c 6c 20 65 73 63 61 70 65 | \ poll escape| 00002b80 20 66 6c 61 67 0d 20 20 31 33 30 20 20 20 20 20 | flag. 130 | 00002b90 20 20 20 20 42 50 4c 20 6e 6f 65 73 63 61 70 65 | BPL noescape| 00002ba0 20 20 5c 20 62 69 74 20 37 20 73 65 74 20 69 66 | \ bit 7 set if| 00002bb0 20 45 73 63 61 70 65 20 70 72 65 73 73 65 64 0d | Escape pressed.| 00002bc0 20 20 31 34 30 20 2e 65 73 63 61 70 65 0d 20 20 | 140 .escape. | 00002bd0 31 35 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 |150 LDA | 00002be0 23 26 37 45 0d 20 20 31 36 30 20 20 20 20 20 20 |#&7E. 160 | 00002bf0 20 20 20 4a 53 52 20 6f 73 62 79 74 65 20 20 20 | JSR osbyte | 00002c00 20 5c 20 61 63 6b 6e 6f 77 6c 65 64 67 65 20 45 | \ acknowledge E| 00002c10 73 63 61 70 65 0d 20 20 31 37 30 20 20 20 20 20 |scape. 170 | 00002c20 20 20 20 20 42 52 4b 0d 20 20 31 38 30 20 20 20 | BRK. 180 | 00002c30 20 20 20 20 20 20 42 52 4b 0d 20 20 31 39 30 20 | BRK. 190 | 00002c40 20 20 20 20 20 20 20 20 45 51 55 53 20 22 45 73 | EQUS "Es| 00002c50 63 61 70 65 22 0d 20 20 32 30 30 20 20 20 20 20 |cape". 200 | 00002c60 20 20 20 20 42 52 4b 0d 20 20 32 31 30 20 2e 6e | BRK. 210 .n| 00002c70 6f 65 73 63 61 70 65 0d 20 20 32 32 30 20 20 20 |oescape. 220 | 00002c80 20 20 20 20 20 20 4c 44 41 20 74 72 61 63 6b 20 | LDA track | 00002c90 20 20 20 20 5c 20 6c 6f 61 64 20 70 68 79 73 69 | \ load physi| 00002ca0 63 61 6c 20 74 72 61 63 6b 20 6e 75 6d 62 65 72 |cal track number| 00002cb0 0d 20 20 32 33 30 20 20 20 20 20 20 20 20 20 53 |. 230 S| 00002cc0 54 41 20 62 6c 6f 63 6b 2b 37 20 20 20 5c 20 73 |TA block+7 \ s| 00002cd0 74 6f 72 65 20 70 68 79 73 69 63 61 6c 20 74 72 |tore physical tr| 00002ce0 61 63 6b 20 6e 75 6d 62 65 72 0d 20 20 32 34 30 |ack number. 240| 00002cf0 20 20 20 20 20 20 20 20 20 42 45 51 20 65 6e 64 | BEQ end| 00002d00 6f 66 66 73 65 74 20 5c 20 64 6f 6e 27 74 20 6f |offset \ don't o| 00002d10 66 66 73 65 74 20 74 72 61 63 6b 20 7a 65 72 6f |ffset track zero| 00002d20 0d 20 20 32 35 30 20 20 20 20 20 20 20 20 20 4c |. 250 L| 00002d30 44 58 20 23 33 36 20 20 20 20 20 20 20 5c 20 6c |DX #36 \ l| 00002d40 6f 67 69 63 61 6c 20 74 72 61 63 6b 20 69 6e 64 |ogical track ind| 00002d50 65 78 0d 20 20 32 36 30 20 20 20 20 20 20 20 20 |ex. 260 | 00002d60 20 4c 44 59 20 23 33 38 20 20 20 20 20 20 20 5c | LDY #38 \| 00002d70 20 6c 6f 67 69 63 61 6c 20 73 65 63 74 6f 72 20 | logical sector | 00002d80 69 6e 64 65 78 0d 20 20 32 37 30 20 2e 69 6e 6c |index. 270 .inl| 00002d90 6f 6f 70 0d 20 20 32 38 30 20 20 20 20 20 20 20 |oop. 280 | 00002da0 20 20 4c 44 41 20 74 72 61 63 6b 20 20 20 20 20 | LDA track | 00002db0 5c 20 6c 6f 61 64 20 70 68 79 73 69 63 61 6c 20 |\ load physical | 00002dc0 74 72 61 63 6b 20 6e 75 6d 62 65 72 0d 20 20 32 |track number. 2| 00002dd0 39 30 20 20 20 20 20 20 20 20 20 53 54 41 20 74 |90 STA t| 00002de0 61 62 6c 65 2c 58 20 20 20 5c 20 73 74 6f 72 65 |able,X \ store| 00002df0 20 6c 6f 67 69 63 61 6c 20 74 72 61 63 6b 20 6e | logical track n| 00002e00 75 6d 62 65 72 0d 20 20 33 30 30 20 20 20 20 20 |umber. 300 | 00002e10 20 20 20 20 4c 44 41 20 73 68 65 61 72 20 20 20 | LDA shear | 00002e20 20 20 5c 20 6c 6f 61 64 20 6c 6f 67 69 63 61 6c | \ load logical| 00002e30 20 73 65 63 74 6f 72 20 6f 66 66 73 65 74 0d 20 | sector offset. | 00002e40 20 33 31 30 20 20 20 20 20 20 20 20 20 42 45 51 | 310 BEQ| 00002e50 20 7a 65 72 6f 20 20 20 20 20 20 5c 20 62 72 61 | zero \ bra| 00002e60 6e 63 68 20 69 66 20 6e 6f 20 6f 66 66 73 65 74 |nch if no offset| 00002e70 0d 20 20 33 32 30 20 20 20 20 20 20 20 20 20 53 |. 320 S| 00002e80 54 41 20 74 65 6d 70 20 20 20 20 20 20 5c 20 74 |TA temp \ t| 00002e90 65 6d 70 6f 72 61 72 79 20 73 74 6f 72 65 0d 20 |emporary store. | 00002ea0 20 33 33 30 20 2e 6f 66 66 73 65 74 6c 6f 6f 70 | 330 .offsetloop| 00002eb0 0d 20 20 33 34 30 20 20 20 20 20 20 20 20 20 53 |. 340 S| 00002ec0 45 43 0d 20 20 33 35 30 20 20 20 20 20 20 20 20 |EC. 350 | 00002ed0 20 4c 44 41 20 74 61 62 6c 65 2c 59 20 20 20 5c | LDA table,Y \| 00002ee0 20 6c 6f 61 64 20 6c 6f 67 69 63 61 6c 20 73 65 | load logical se| 00002ef0 63 74 6f 72 20 6e 75 6d 62 65 72 0d 20 20 33 36 |ctor number. 36| 00002f00 30 20 20 20 20 20 20 20 20 20 53 42 43 20 23 31 |0 SBC #1| 00002f10 20 20 20 20 20 20 20 20 5c 20 73 75 62 74 72 61 | \ subtra| 00002f20 63 74 20 31 0d 20 20 33 37 30 20 20 20 20 20 20 |ct 1. 370 | 00002f30 20 20 20 42 50 4c 20 70 6f 73 69 74 69 76 65 0d | BPL positive.| 00002f40 20 20 33 38 30 20 20 20 20 20 20 20 20 20 4c 44 | 380 LD| 00002f50 41 20 23 39 0d 20 20 33 39 30 20 2e 70 6f 73 69 |A #9. 390 .posi| 00002f60 74 69 76 65 0d 20 20 34 30 30 20 20 20 20 20 20 |tive. 400 | 00002f70 20 20 20 53 54 41 20 74 61 62 6c 65 2c 59 20 20 | STA table,Y | 00002f80 20 5c 20 73 74 6f 72 65 20 6c 6f 67 69 63 61 6c | \ store logical| 00002f90 20 73 65 63 74 6f 72 20 6e 75 6d 62 65 72 20 2d | sector number -| 00002fa0 20 31 0d 20 20 34 31 30 20 20 20 20 20 20 20 20 | 1. 410 | 00002fb0 20 44 45 43 20 74 65 6d 70 20 20 20 20 20 20 5c | DEC temp \| 00002fc0 20 64 65 63 72 65 6d 65 6e 74 20 73 65 63 74 6f | decrement secto| 00002fd0 72 20 6f 66 66 73 65 74 0d 20 20 34 32 30 20 20 |r offset. 420 | 00002fe0 20 20 20 20 20 20 20 42 4e 45 20 6f 66 66 73 65 | BNE offse| 00002ff0 74 6c 6f 6f 70 20 5c 20 6f 66 66 73 65 74 20 61 |tloop \ offset a| 00003000 67 61 69 6e 0d 20 20 34 33 30 20 2e 7a 65 72 6f |gain. 430 .zero| 00003010 0d 20 20 34 34 30 20 20 20 20 20 20 20 20 20 44 |. 440 D| 00003020 45 58 0d 20 20 34 35 30 20 20 20 20 20 20 20 20 |EX. 450 | 00003030 20 44 45 58 0d 20 20 34 36 30 20 20 20 20 20 20 | DEX. 460 | 00003040 20 20 20 54 58 41 0d 20 20 34 37 30 20 20 20 20 | TXA. 470 | 00003050 20 20 20 20 20 54 41 59 20 20 20 20 20 20 20 20 | TAY | 00003060 20 20 20 5c 20 73 75 62 74 72 61 63 74 20 34 20 | \ subtract 4 | 00003070 66 72 6f 6d 20 59 20 72 65 67 69 73 74 65 72 0d |from Y register.| 00003080 20 20 34 38 30 20 20 20 20 20 20 20 20 20 44 45 | 480 DE| 00003090 58 0d 20 20 34 39 30 20 20 20 20 20 20 20 20 20 |X. 490 | 000030a0 44 45 58 20 20 20 20 20 20 20 20 20 20 20 5c 20 |DEX \ | 000030b0 73 75 62 74 72 61 63 74 20 34 20 66 72 6f 6d 20 |subtract 4 from | 000030c0 58 20 72 65 67 69 73 74 65 72 0d 20 20 35 30 30 |X register. 500| 000030d0 20 20 20 20 20 20 20 20 20 42 50 4c 20 69 6e 6c | BPL inl| 000030e0 6f 6f 70 20 20 20 20 5c 20 62 72 61 6e 63 68 20 |oop \ branch | 000030f0 69 66 20 6c 65 73 73 20 74 68 61 6e 20 31 30 20 |if less than 10 | 00003100 73 65 63 74 6f 72 73 0d 20 20 35 31 30 20 2e 65 |sectors. 510 .e| 00003110 6e 64 6f 66 66 73 65 74 0d 20 20 35 32 30 20 20 |ndoffset. 520 | 00003120 20 20 20 20 20 20 20 4c 44 41 20 23 26 37 46 0d | LDA #&7F.| 00003130 20 20 35 33 30 20 20 20 20 20 20 20 20 20 4c 44 | 530 LD| 00003140 58 20 23 62 6c 6f 63 6b 20 4d 4f 44 20 32 35 36 |X #block MOD 256| 00003150 0d 20 20 35 34 30 20 20 20 20 20 20 20 20 20 4c |. 540 L| 00003160 44 59 20 23 62 6c 6f 63 6b 20 44 49 56 20 32 35 |DY #block DIV 25| 00003170 36 0d 20 20 35 35 30 20 20 20 20 20 20 20 20 20 |6. 550 | 00003180 4a 53 52 20 6f 73 77 6f 72 64 20 20 20 20 5c 20 |JSR osword \ | 00003190 66 6f 72 6d 61 74 20 74 72 61 63 6b 0d 20 20 35 |format track. 5| 000031a0 36 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 62 |60 LDA b| 000031b0 6c 6f 63 6b 2b 31 32 20 20 5c 20 6c 6f 61 64 20 |lock+12 \ load | 000031c0 72 65 73 75 6c 74 20 62 79 74 65 0d 20 20 35 37 |result byte. 57| 000031d0 30 20 20 20 20 20 20 20 20 20 42 4e 45 20 65 72 |0 BNE er| 000031e0 72 6f 72 20 20 20 20 20 5c 20 66 6f 72 6d 61 74 |ror \ format| 000031f0 20 4f 4b 20 69 66 20 72 65 73 75 6c 74 20 3d 20 | OK if result = | 00003200 30 0d 20 20 35 38 30 20 20 20 20 20 20 20 20 20 |0. 580 | 00003210 4a 53 52 20 70 72 69 6e 74 74 72 61 63 6b 20 5c |JSR printtrack \| 00003220 20 70 72 69 6e 74 20 74 72 61 63 6b 20 6e 75 6d | print track num| 00003230 62 65 72 0d 20 20 35 39 30 20 20 20 20 20 20 20 |ber. 590 | 00003240 20 20 49 4e 43 20 74 72 61 63 6b 20 20 20 20 20 | INC track | 00003250 5c 20 69 6e 63 72 65 6d 65 6e 74 20 74 72 61 63 |\ increment trac| 00003260 6b 20 6e 75 6d 62 65 72 0d 20 20 36 30 30 20 20 |k number. 600 | 00003270 20 20 20 20 20 20 20 4c 44 41 20 74 72 61 63 6b | LDA track| 00003280 20 20 20 20 20 5c 20 6c 6f 61 64 20 74 72 61 63 | \ load trac| 00003290 6b 20 6e 75 6d 62 65 72 0d 20 20 36 31 30 20 20 |k number. 610 | 000032a0 20 20 20 20 20 20 20 43 4d 50 20 66 69 6e 69 73 | CMP finis| 000032b0 68 20 20 20 20 5c 20 69 73 20 74 68 61 74 20 74 |h \ is that t| 000032c0 68 65 20 6c 61 73 74 20 74 72 61 63 6b 3f 0d 20 |he last track?. | 000032d0 20 36 32 30 20 20 20 20 20 20 20 20 20 42 43 43 | 620 BCC| 000032e0 20 6c 6f 6f 70 20 20 20 20 20 20 5c 20 62 72 61 | loop \ bra| 000032f0 6e 63 68 20 69 66 20 6d 6f 72 65 20 74 72 61 63 |nch if more trac| 00003300 6b 73 20 74 6f 20 66 6f 72 6d 61 74 0d 20 20 36 |ks to format. 6| 00003310 33 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 23 |30 LDA #| 00003320 26 37 46 0d 20 20 36 34 30 20 20 20 20 20 20 20 |&7F. 640 | 00003330 20 20 4c 44 58 20 23 63 61 74 62 6c 6f 63 6b 20 | LDX #catblock | 00003340 4d 4f 44 20 32 35 36 0d 20 20 36 35 30 20 20 20 |MOD 256. 650 | 00003350 20 20 20 20 20 20 4c 44 59 20 23 63 61 74 62 6c | LDY #catbl| 00003360 6f 63 6b 20 44 49 56 20 32 35 36 0d 20 20 36 36 |ock DIV 256. 66| 00003370 30 20 20 20 20 20 20 20 20 20 4a 53 52 20 6f 73 |0 JSR os| 00003380 77 6f 72 64 20 20 20 20 5c 20 73 74 6f 72 65 20 |word \ store | 00003390 65 6d 70 74 79 20 63 61 74 61 6c 6f 67 75 65 0d |empty catalogue.| 000033a0 20 20 36 37 30 20 20 20 20 20 20 20 20 20 4c 44 | 670 LD| 000033b0 41 20 63 61 74 62 6c 6f 63 6b 2b 31 30 20 5c 20 |A catblock+10 \ | 000033c0 63 68 65 63 6b 20 72 65 73 75 6c 74 20 62 79 74 |check result byt| 000033d0 65 0d 20 20 36 38 30 20 20 20 20 20 20 20 20 20 |e. 680 | 000033e0 42 4e 45 20 65 72 72 6f 72 20 20 20 20 20 5c 20 |BNE error \ | 000033f0 62 72 61 6e 63 68 20 69 66 20 6e 6f 74 20 73 61 |branch if not sa| 00003400 76 65 64 0d 20 20 36 39 30 20 20 20 20 20 20 20 |ved. 690 | 00003410 20 20 52 54 53 20 20 20 20 20 20 20 20 20 20 20 | RTS | 00003420 5c 20 72 65 74 75 72 6e 20 74 6f 20 42 41 53 49 |\ return to BASI| 00003430 43 0d 20 20 37 30 30 20 2e 65 72 72 6f 72 0d 20 |C. 700 .error. | 00003440 20 37 31 30 20 20 20 20 20 20 20 20 20 42 52 4b | 710 BRK| 00003450 0d 20 20 37 32 30 20 20 20 20 20 20 20 20 20 42 |. 720 B| 00003460 52 4b 0d 20 20 37 33 30 20 20 20 20 20 20 20 20 |RK. 730 | 00003470 20 45 51 55 53 20 22 46 6f 72 6d 61 74 20 65 72 | EQUS "Format er| 00003480 72 6f 72 22 0d 20 20 37 34 30 20 20 20 20 20 20 |ror". 740 | 00003490 20 20 20 42 52 4b 0d 20 20 37 35 30 20 2e 70 72 | BRK. 750 .pr| 000034a0 69 6e 74 74 72 61 63 6b 0d 20 20 37 36 30 20 20 |inttrack. 760 | 000034b0 20 20 20 20 20 20 20 4c 44 41 20 74 72 61 63 6b | LDA track| 000034c0 20 20 20 20 20 5c 20 6c 6f 61 64 20 74 72 61 63 | \ load trac| 000034d0 6b 20 6e 75 6d 62 65 72 0d 20 20 37 37 30 20 20 |k number. 770 | 000034e0 20 20 20 20 20 20 20 4c 53 52 20 41 0d 20 20 37 | LSR A. 7| 000034f0 38 30 20 20 20 20 20 20 20 20 20 4c 53 52 20 41 |80 LSR A| 00003500 0d 20 20 37 39 30 20 20 20 20 20 20 20 20 20 4c |. 790 L| 00003510 53 52 20 41 0d 20 20 38 30 30 20 20 20 20 20 20 |SR A. 800 | 00003520 20 20 20 4c 53 52 20 41 20 20 20 20 20 20 20 20 | LSR A | 00003530 20 5c 20 69 73 6f 6c 61 74 65 20 4d 53 20 6e 79 | \ isolate MS ny| 00003540 62 62 6c 65 0d 20 20 38 31 30 20 20 20 20 20 20 |bble. 810 | 00003550 20 20 20 4a 53 52 20 6e 79 62 62 6c 65 20 20 20 | JSR nybble | 00003560 20 5c 20 70 72 69 6e 74 20 4d 53 20 6e 79 62 62 | \ print MS nybb| 00003570 6c 65 0d 20 20 38 32 30 20 20 20 20 20 20 20 20 |le. 820 | 00003580 20 4c 44 41 20 74 72 61 63 6b 20 20 20 20 20 5c | LDA track \| 00003590 20 6c 6f 61 64 20 74 72 61 63 6b 20 6e 75 6d 62 | load track numb| 000035a0 65 72 0d 20 20 38 33 30 20 20 20 20 20 20 20 20 |er. 830 | 000035b0 20 4a 53 52 20 6e 79 62 62 6c 65 20 20 20 20 5c | JSR nybble \| 000035c0 20 70 72 69 6e 74 20 4c 53 20 6e 79 62 62 6c 65 | print LS nybble| 000035d0 0d 20 20 38 34 30 20 20 20 20 20 20 20 20 20 4c |. 840 L| 000035e0 44 41 20 23 41 53 43 28 22 20 22 29 0d 20 20 38 |DA #ASC(" "). 8| 000035f0 35 30 20 20 20 20 20 20 20 20 20 4a 53 52 20 6f |50 JSR o| 00003600 73 77 72 63 68 20 20 20 20 5c 20 70 72 69 6e 74 |swrch \ print| 00003610 20 73 70 61 63 65 0d 20 20 38 36 30 20 20 20 20 | space. 860 | 00003620 20 20 20 20 20 4a 4d 50 20 6f 73 77 72 63 68 20 | JMP oswrch | 00003630 20 20 20 5c 20 70 72 69 6e 74 20 73 70 61 63 65 | \ print space| 00003640 0d 20 20 38 37 30 20 2e 6e 79 62 62 6c 65 0d 20 |. 870 .nybble. | 00003650 20 38 38 30 20 20 20 20 20 20 20 20 20 41 4e 44 | 880 AND| 00003660 20 23 26 30 46 0d 20 20 38 39 30 20 20 20 20 20 | #&0F. 890 | 00003670 20 20 20 20 53 45 44 0d 20 20 39 30 30 20 20 20 | SED. 900 | 00003680 20 20 20 20 20 20 43 4c 43 0d 20 20 39 31 30 20 | CLC. 910 | 00003690 20 20 20 20 20 20 20 20 41 44 43 20 23 26 39 30 | ADC #&90| 000036a0 0d 20 20 39 32 30 20 20 20 20 20 20 20 20 20 41 |. 920 A| 000036b0 44 43 20 23 26 34 30 0d 20 20 39 33 30 20 20 20 |DC #&40. 930 | 000036c0 20 20 20 20 20 20 43 4c 44 0d 20 20 39 34 30 20 | CLD. 940 | 000036d0 20 20 20 20 20 20 20 20 4a 4d 50 20 6f 73 77 72 | JMP oswr| 000036e0 63 68 20 20 20 20 5c 20 70 72 69 6e 74 20 6e 79 |ch \ print ny| 000036f0 62 62 6c 65 20 61 6e 64 20 72 65 74 75 72 6e 0d |bble and return.| 00003700 20 20 39 35 30 20 2e 62 6c 6f 63 6b 0d 20 20 39 | 950 .block. 9| 00003710 36 30 20 20 20 20 20 20 20 20 20 45 51 55 42 20 |60 EQUB | 00003720 26 30 30 20 20 20 20 20 20 5c 20 64 72 69 76 65 |&00 \ drive| 00003730 20 6e 75 6d 62 65 72 20 30 2d 33 0d 20 20 39 37 | number 0-3. 97| 00003740 30 20 20 20 20 20 20 20 20 20 45 51 55 44 20 74 |0 EQUD t| 00003750 61 62 6c 65 20 20 20 20 5c 20 73 65 63 74 6f 72 |able \ sector| 00003760 20 74 61 62 6c 65 0d 20 20 39 38 30 20 20 20 20 | table. 980 | 00003770 20 20 20 20 20 45 51 55 42 20 26 30 35 20 20 20 | EQUB &05 | 00003780 20 20 20 5c 20 35 20 70 61 72 61 6d 65 74 65 72 | \ 5 parameter| 00003790 73 0d 20 20 39 39 30 20 20 20 20 20 20 20 20 20 |s. 990 | 000037a0 45 51 55 42 20 26 36 33 20 20 20 20 20 20 5c 20 |EQUB &63 \ | 000037b0 66 6f 72 6d 61 74 20 74 72 61 63 6b 0d 20 31 30 |format track. 10| 000037c0 30 30 20 20 20 20 20 20 20 20 20 45 51 55 42 20 |00 EQUB | 000037d0 26 30 30 20 20 20 20 20 20 5c 20 70 68 79 73 69 |&00 \ physi| 000037e0 63 61 6c 20 74 72 61 63 6b 20 6e 75 6d 62 65 72 |cal track number| 000037f0 20 30 2d 37 39 0d 20 31 30 31 30 20 20 20 20 20 | 0-79. 1010 | 00003800 20 20 20 20 45 51 55 42 20 26 31 35 20 20 20 20 | EQUB &15 | 00003810 20 20 5c 20 67 61 70 20 33 0d 20 31 30 32 30 20 | \ gap 3. 1020 | 00003820 20 20 20 20 20 20 20 20 45 51 55 42 20 26 32 41 | EQUB &2A| 00003830 20 20 20 20 20 20 5c 20 31 30 20 73 65 63 74 6f | \ 10 secto| 00003840 72 73 20 6f 66 20 32 35 36 20 62 79 74 65 73 0d |rs of 256 bytes.| 00003850 20 31 30 33 30 20 20 20 20 20 20 20 20 20 45 51 | 1030 EQ| 00003860 55 42 20 26 30 30 20 20 20 20 20 20 5c 20 67 61 |UB &00 \ ga| 00003870 70 20 35 0d 20 31 30 34 30 20 20 20 20 20 20 20 |p 5. 1040 | 00003880 20 20 45 51 55 42 20 26 31 30 20 20 20 20 20 20 | EQUB &10 | 00003890 5c 20 67 61 70 20 31 0d 20 31 30 35 30 20 20 20 |\ gap 1. 1050 | 000038a0 20 20 20 20 20 20 45 51 55 42 20 26 30 30 20 20 | EQUB &00 | 000038b0 20 20 20 20 5c 20 72 65 73 75 6c 74 20 62 79 74 | \ result byt| 000038c0 65 0d 20 31 30 36 30 20 2e 74 61 62 6c 65 0d 20 |e. 1060 .table. | 000038d0 31 30 37 30 20 20 20 20 20 20 20 20 20 45 51 55 |1070 EQU| 000038e0 44 20 26 30 31 30 30 30 30 30 30 0d 20 31 30 38 |D &01000000. 108| 000038f0 30 20 20 20 20 20 20 20 20 20 45 51 55 44 20 26 |0 EQUD &| 00003900 30 31 30 31 30 30 30 30 0d 20 31 30 39 30 20 20 |01010000. 1090 | 00003910 20 20 20 20 20 20 20 45 51 55 44 20 26 30 31 30 | EQUD &010| 00003920 32 30 30 30 30 0d 20 31 31 30 30 20 20 20 20 20 |20000. 1100 | 00003930 20 20 20 20 45 51 55 44 20 26 30 31 30 33 30 30 | EQUD &010300| 00003940 30 30 0d 20 31 31 31 30 20 20 20 20 20 20 20 20 |00. 1110 | 00003950 20 45 51 55 44 20 26 30 31 30 34 30 30 30 30 0d | EQUD &01040000.| 00003960 20 31 31 32 30 20 20 20 20 20 20 20 20 20 45 51 | 1120 EQ| 00003970 55 44 20 26 30 31 30 35 30 30 30 30 0d 20 31 31 |UD &01050000. 11| 00003980 33 30 20 20 20 20 20 20 20 20 20 45 51 55 44 20 |30 EQUD | 00003990 26 30 31 30 36 30 30 30 30 0d 20 31 31 34 30 20 |&01060000. 1140 | 000039a0 20 20 20 20 20 20 20 20 45 51 55 44 20 26 30 31 | EQUD &01| 000039b0 30 37 30 30 30 30 0d 20 31 31 35 30 20 20 20 20 |070000. 1150 | 000039c0 20 20 20 20 20 45 51 55 44 20 26 30 31 30 38 30 | EQUD &01080| 000039d0 30 30 30 0d 20 31 31 36 30 20 20 20 20 20 20 20 |000. 1160 | 000039e0 20 20 45 51 55 44 20 26 30 31 30 39 30 30 30 30 | EQUD &01090000| 000039f0 0d 20 31 31 37 30 20 2e 63 61 74 61 6c 6f 67 75 |. 1170 .catalogu| 00003a00 65 0d 20 31 31 38 30 20 20 20 20 20 20 20 20 20 |e. 1180 | 00003a10 4f 50 54 20 46 4e 66 69 6c 6c 28 32 36 32 29 0d |OPT FNfill(262).| 00003a20 20 31 31 39 30 20 20 20 20 20 20 20 20 20 20 20 | 1190 | 00003a30 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 73 74 | \ st| 00003a40 6f 72 65 20 32 36 32 20 7a 65 72 6f 73 0d 20 31 |ore 262 zeros. 1| 00003a50 32 30 30 20 2e 73 65 63 74 6f 72 73 0d 20 31 32 |200 .sectors. 12| 00003a60 31 30 20 20 20 20 20 20 20 20 20 45 51 55 57 20 |10 EQUW | 00003a70 26 32 30 30 33 20 20 20 20 5c 20 26 33 32 30 20 |&2003 \ &320 | 00003a80 73 65 63 74 6f 72 73 20 28 38 30 20 74 72 61 63 |sectors (80 trac| 00003a90 6b 73 29 0d 20 31 32 32 30 20 20 20 20 20 20 20 |ks). 1220 | 00003aa0 20 20 4f 50 54 20 46 4e 66 69 6c 6c 28 32 34 38 | OPT FNfill(248| 00003ab0 29 0d 20 31 32 33 30 20 20 20 20 20 20 20 20 20 |). 1230 | 00003ac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 | \ | 00003ad0 73 74 6f 72 65 20 32 34 38 20 7a 65 72 6f 73 0d |store 248 zeros.| 00003ae0 20 31 32 34 30 20 2e 63 61 74 62 6c 6f 63 6b 0d | 1240 .catblock.| 00003af0 20 31 32 35 30 20 20 20 20 20 20 20 20 20 45 51 | 1250 EQ| 00003b00 55 42 20 26 30 30 20 20 20 20 20 20 5c 20 64 72 |UB &00 \ dr| 00003b10 69 76 65 20 6e 75 6d 62 65 72 20 30 20 2d 20 33 |ive number 0 - 3| 00003b20 0d 20 31 32 36 30 20 20 20 20 20 20 20 20 20 45 |. 1260 E| 00003b30 51 55 44 20 63 61 74 61 6c 6f 67 75 65 20 5c 20 |QUD catalogue \ | 00003b40 61 64 64 72 65 73 73 20 6f 66 20 62 75 66 66 65 |address of buffe| 00003b50 72 0d 20 31 32 37 30 20 20 20 20 20 20 20 20 20 |r. 1270 | 00003b60 45 51 55 42 20 26 30 33 20 20 20 20 20 20 5c 20 |EQUB &03 \ | 00003b70 6e 75 6d 62 65 72 20 6f 66 20 70 61 72 61 6d 65 |number of parame| 00003b80 74 65 72 73 0d 20 31 32 38 30 20 20 20 20 20 20 |ters. 1280 | 00003b90 20 20 20 45 51 55 42 20 26 34 42 20 20 20 20 20 | EQUB &4B | 00003ba0 20 5c 20 77 72 69 74 65 20 64 61 74 61 20 6d 75 | \ write data mu| 00003bb0 6c 74 69 2d 73 65 63 74 6f 72 0d 20 31 32 39 30 |lti-sector. 1290| 00003bc0 20 20 20 20 20 20 20 20 20 45 51 55 42 20 26 30 | EQUB &0| 00003bd0 30 20 20 20 20 20 20 5c 20 6c 6f 67 69 63 61 6c |0 \ logical| 00003be0 20 74 72 61 63 6b 0d 20 31 33 30 30 20 20 20 20 | track. 1300 | 00003bf0 20 20 20 20 20 45 51 55 42 20 26 30 30 20 20 20 | EQUB &00 | 00003c00 20 20 20 5c 20 73 74 61 72 74 20 6c 6f 67 69 63 | \ start logic| 00003c10 61 6c 20 73 65 63 74 6f 72 0d 20 31 33 31 30 20 |al sector. 1310 | 00003c20 20 20 20 20 20 20 20 20 45 51 55 42 20 26 32 32 | EQUB &22| 00003c30 20 20 20 20 20 20 5c 20 32 20 73 65 63 74 6f 72 | \ 2 sector| 00003c40 73 20 6f 66 20 32 35 36 20 62 79 74 65 73 0d 20 |s of 256 bytes. | 00003c50 31 33 32 30 20 20 20 20 20 20 20 20 20 45 51 55 |1320 EQU| 00003c60 42 20 26 30 30 20 20 20 20 20 20 5c 20 72 65 73 |B &00 \ res| 00003c70 75 6c 74 20 62 79 74 65 0d 20 31 33 33 30 20 2e |ult byte. 1330 .| 00003c80 74 72 61 63 6b 0d 20 31 33 34 30 20 20 20 20 20 |track. 1340 | 00003c90 20 20 20 20 45 51 55 42 20 26 30 30 20 20 20 20 | EQUB &00 | 00003ca0 20 20 5c 20 70 68 79 73 69 63 61 6c 20 74 72 61 | \ physical tra| 00003cb0 63 6b 20 6e 75 6d 62 65 72 0d 20 31 33 35 30 20 |ck number. 1350 | 00003cc0 2e 66 69 6e 69 73 68 0d 20 31 33 36 30 20 20 20 |.finish. 1360 | 00003cd0 20 20 20 20 20 20 45 51 55 42 20 26 30 30 20 20 | EQUB &00 | 00003ce0 20 20 20 20 5c 20 6e 75 6d 62 65 72 20 6f 66 20 | \ number of | 00003cf0 74 72 61 63 6b 73 0d 20 31 33 37 30 20 2e 73 68 |tracks. 1370 .sh| 00003d00 65 61 72 0d 20 31 33 38 30 20 20 20 20 20 20 20 |ear. 1380 | 00003d10 20 20 45 51 55 42 20 26 30 30 20 20 20 20 20 20 | EQUB &00 | 00003d20 5c 20 73 65 63 74 6f 72 20 6f 66 66 73 65 74 0d |\ sector offset.| 00003d30 20 31 33 39 30 20 2e 74 65 6d 70 0d 20 31 34 30 | 1390 .temp. 140| 00003d40 30 20 20 20 20 20 20 20 20 20 45 51 55 42 20 26 |0 EQUB &| 00003d50 30 30 20 20 20 20 20 20 5c 20 73 65 63 74 6f 72 |00 \ sector| 00003d60 20 6f 66 66 73 65 74 0d 20 31 34 31 30 20 5d 0d | offset. 1410 ].| 00003d70 20 31 34 32 30 20 4e 45 58 54 0d 20 31 34 33 30 | 1420 NEXT. 1430| 00003d80 20 52 45 50 45 41 54 0d 20 31 34 34 30 20 49 4e | REPEAT. 1440 IN| 00003d90 50 55 54 22 44 72 69 76 65 20 6e 75 6d 62 65 72 |PUT"Drive number| 00003da0 20 28 30 2d 33 29 20 22 44 25 0d 20 31 34 35 30 | (0-3) "D%. 1450| 00003db0 20 55 4e 54 49 4c 20 44 25 3e 2d 31 20 41 4e 44 | UNTIL D%>-1 AND| 00003dc0 20 44 25 3c 34 0d 20 31 34 36 30 20 3f 62 6c 6f | D%<4. 1460 ?blo| 00003dd0 63 6b 3d 44 25 0d 20 31 34 37 30 20 3f 63 61 74 |ck=D%. 1470 ?cat| 00003de0 62 6c 6f 63 6b 3d 44 25 0d 20 31 34 38 30 20 52 |block=D%. 1480 R| 00003df0 45 50 45 41 54 0d 20 31 34 39 30 20 49 4e 50 55 |EPEAT. 1490 INPU| 00003e00 54 22 4e 75 6d 62 65 72 20 6f 66 20 74 72 61 63 |T"Number of trac| 00003e10 6b 73 20 28 34 30 2f 38 30 29 20 22 54 25 0d 20 |ks (40/80) "T%. | 00003e20 31 35 30 30 20 55 4e 54 49 4c 20 54 25 3d 34 30 |1500 UNTIL T%=40| 00003e30 20 4f 52 20 54 25 3d 38 30 0d 20 31 35 31 30 20 | OR T%=80. 1510 | 00003e40 3f 66 69 6e 69 73 68 3d 54 25 0d 20 31 35 32 30 |?finish=T%. 1520| 00003e50 20 49 46 20 54 25 3d 34 30 20 54 48 45 4e 20 3f | IF T%=40 THEN ?| 00003e60 73 65 63 74 6f 72 73 3d 26 30 31 20 3a 20 73 65 |sectors=&01 : se| 00003e70 63 74 6f 72 73 3f 31 3d 26 39 30 0d 20 31 35 33 |ctors?1=&90. 153| 00003e80 30 20 52 45 50 45 41 54 0d 20 31 35 34 30 20 49 |0 REPEAT. 1540 I| 00003e90 4e 50 55 54 22 4c 6f 67 69 63 61 6c 20 73 65 63 |NPUT"Logical sec| 00003ea0 74 6f 72 20 6f 66 66 73 65 74 20 28 30 2d 39 29 |tor offset (0-9)| 00003eb0 20 22 4c 25 0d 20 31 35 35 30 20 55 4e 54 49 4c | "L%. 1550 UNTIL| 00003ec0 20 4c 25 3e 2d 31 20 41 4e 44 20 4c 25 3c 31 30 | L%>-1 AND L%<10| 00003ed0 0d 20 31 35 36 30 20 3f 73 68 65 61 72 3d 4c 25 |. 1560 ?shear=L%| 00003ee0 0d 20 31 35 37 30 20 49 4e 50 55 54 22 52 65 61 |. 1570 INPUT"Rea| 00003ef0 64 79 20 74 6f 20 66 6f 72 6d 61 74 3f 20 28 59 |dy to format? (Y| 00003f00 2f 4e 29 20 22 79 65 73 24 0d 20 31 35 38 30 20 |/N) "yes$. 1580 | 00003f10 49 46 20 4c 45 46 54 24 28 79 65 73 24 2c 31 29 |IF LEFT$(yes$,1)| 00003f20 3d 22 59 22 20 54 48 45 4e 20 43 41 4c 4c 20 6d |="Y" THEN CALL m| 00003f30 63 6f 64 65 0d 20 31 35 39 30 20 49 4e 50 55 54 |code. 1590 INPUT| 00003f40 27 22 41 6e 6f 74 68 65 72 20 64 69 73 63 3f 20 |'"Another disc? | 00003f50 28 59 2f 4e 29 20 22 79 65 73 24 0d 20 31 36 30 |(Y/N) "yes$. 160| 00003f60 30 20 49 46 20 4c 45 46 54 24 28 79 65 73 24 2c |0 IF LEFT$(yes$,| 00003f70 31 29 3d 22 59 22 20 54 48 45 4e 20 52 55 4e 0d |1)="Y" THEN RUN.| 00003f80 20 31 36 31 30 20 45 4e 44 0d 20 31 36 32 30 20 | 1610 END. 1620 | 00003f90 44 45 46 20 46 4e 66 69 6c 6c 28 73 69 7a 65 29 |DEF FNfill(size)| 00003fa0 0d 20 31 36 33 30 20 46 4f 52 20 63 6f 75 6e 74 |. 1630 FOR count| 00003fb0 20 3d 20 31 20 54 4f 20 73 69 7a 65 0d 20 31 36 | = 1 TO size. 16| 00003fc0 34 30 20 3f 50 25 3d 30 0d 20 31 36 35 30 20 50 |40 ?P%=0. 1650 P| 00003fd0 25 3d 50 25 2b 31 0d 20 31 36 36 30 20 4e 45 58 |%=P%+1. 1660 NEX| 00003fe0 54 0d 20 31 36 37 30 20 3d 70 61 73 73 0d 0d 0d |T. 1670 =pass...| 00003ff0 54 68 65 20 6c 6f 67 69 63 61 6c 20 73 65 63 74 |The logical sect| 00004000 6f 72 20 6f 66 66 73 65 74 73 20 70 72 6f 64 75 |or offsets produ| 00004010 63 65 64 20 62 79 20 74 68 65 20 70 72 6f 67 72 |ced by the progr| 00004020 61 6d 20 4f 46 46 53 45 54 20 63 61 6e 20 62 65 |am OFFSET can be| 00004030 20 0d 64 65 6d 6f 6e 73 74 72 61 74 65 64 20 62 | .demonstrated b| 00004040 79 20 75 73 69 6e 67 20 74 68 65 20 70 72 6f 67 |y using the prog| 00004050 72 61 6d 20 49 44 53 44 55 4d 50 20 69 6e 74 72 |ram IDSDUMP intr| 00004060 6f 64 75 63 65 64 20 69 6e 20 6d 6f 64 75 6c 65 |oduced in module| 00004070 20 30 2e 20 54 68 65 0d 66 6f 72 6d 61 74 74 65 | 0. The.formatte| 00004080 64 20 64 69 73 63 73 20 69 74 20 70 72 6f 64 75 |d discs it produ| 00004090 63 65 73 20 63 61 6e 20 62 65 20 76 65 72 69 66 |ces can be verif| 000040a0 69 65 64 20 75 73 69 6e 67 20 61 6e 79 20 44 46 |ied using any DF| 000040b0 53 20 76 65 72 69 66 69 63 61 74 69 6f 6e 0d 70 |S verification.p| 000040c0 72 6f 67 72 61 6d 20 69 6e 63 6c 75 64 69 6e 67 |rogram including| 000040d0 20 74 68 65 20 70 72 6f 67 72 61 6d 20 56 45 52 | the program VER| 000040e0 49 46 59 2c 20 61 6c 73 6f 20 69 6e 74 6f 72 64 |IFY, also intord| 000040f0 75 63 65 64 20 69 6e 20 6d 6f 64 75 6c 65 20 30 |uced in module 0| 00004100 2e 0d |..| 00004102