background image

Summary of Contents for FSD-2

Page 1: ...FSD 2 5 r FLOPPY DISK DRIVE FOR COMMODORE C64...

Page 2: ......

Page 3: ...packaged Software 6 The Disk Directory 7 Pattern Matching and Wild Cards 8 5 Disk Commands 10 Reading the Error Channel 13 6 Sequential Files 14 7 Random Files 16 8 Relative Files 20 Using Relative Fi...

Page 4: ...ll tne FSD 2 power and features Regardless of the level of your programming expertise the FSD 2 will greatly increase the efficiency and capability of your computer system Please be aware that this ma...

Page 5: ...h diameter Capacity Per Disk 174 8 kbytes Directory Entries 144 disk SectorArack 17 21 Bytes Sector 256 Tracks 35 Average NTBF rate of 8000 hours Power Requirements Voltage 117 VAC 220 230 240 VAC opt...

Page 6: ...1 frant panel red active LED green ready flash error SERIAL BUS POWER ON Figure 4 2 back panel Please9 don t connect anything until you ve completed the following section9 otherwise you will get dang...

Page 7: ...g serial bus socket to daisy chain the devices If it s a disk drive you will need to change one of the drives device numbers TURNING ON THE POWER When all the devices are hooked together the power may...

Page 8: ...the disk to the computer s current memory FORMAT LOAD program ameM device command The program name is a character string that is either a name in quotes or the contents of a given string variable The...

Page 9: ...you It organizes them into a Block Availibility Nap or BAM and a directory The BAN is simply a checklist of the blocks and is updated every time a program is SAVEd or a data file OPENed The directory...

Page 10: ...OADing the directory into current memory This allows checking for a list of specific programs The procedure is the same as above except for the addition of a EXAMPLE LOAD T ST 8 LOADs all file names i...

Page 11: ...d VERIFY does a byte by byte comparison of the program in current memory with one on the disk as specified in the VERIFY command EXAMPLE VERIFY OLD VERSION 8 NOTE ABOUT FILE NAMES File names must begi...

Page 12: ...d be any number from 1 to 127 Numbers from 128 to 255 can be used but should be avoided as they cause the PRINT statement to generate a linefeed after carriage returns The device number is usually 8 T...

Page 13: ...on command Channel INITIALIZE PURPOSE Initializes disk driver to power up condition FORMAT OPEN 15 8 15 I or OPEN 15 8 15 PRINTH5 I Sometimes an error condition on the disk will prevent you from perf...

Page 14: ...RPOSE Duplicate an existing file FORMAT PRINTi 15 COPY 0 newfilename 0 oldf ilenar e COPY allows you to make a copy of any program or file on the disk The new file s name must be different from the ol...

Page 15: ...ric variables can be used The inputs are organized as follows First error number 0 means no error Second error description Third track number where error occurred Fourth block sector in track where er...

Page 16: ...annel 2 through 14 It s a good idea to use the same number for both file and channel numbers for easy remembering you may have noticed this in previous examples The name is the file name for which no...

Page 17: ...ing example program 10 A THIS IS AH 20 B TEST 30 OPEN 8 8 8 0 TEST S W 40 PRINT 8 A B OF THE DISK 50 CLOSE8 60 END If you could see the data and its position on the disk it would look like this 1 2 3...

Page 18: ...MAT INPUT file variable The file number is the same as the one OPENed and the variable can represent character strings or numbers To read a group of data separators are needed to indicate the start an...

Page 19: ...e disk The disk is divided into 35 concentric rings or tracks with each track containing from 17 to 21 sectors TRACK NUMBER 1 TO 17 18 TO 24 25 TO 30 31 TO 35 SECTOR RANGE 0 TO 20 0 TO 18 0 TO 17 0 TO...

Page 20: ...IF ST 0 THEN 40 70 PRINT READ COMPLETE 80 CLOSE 8 CLOSE 15 BLOCK WRITE PURPOSE Write a block of data to a specified block location on the disk FORMAT PRINT file BLOCK WRITE 11 drive channel track blo...

Page 21: ...error message tells you the numbers of the next available track and block on the disk This block does not get allocated so the BLOCK ALLOCATE command must be used again but this time you can be sure...

Page 22: ...rs for the beginning of each record There can be 6 side sectors in a file and each side sector can point to up to 120 records This means a file can have as many as 720 records and since each record ca...

Page 23: ...side sector 1 8 9 Track and sector of third side sector 2 10 11 Track and sector of fourth side sector 3 12 13 Track and sector of fifth side sector 4 14 15 Track and sector of sixth side sector 5 16...

Page 24: ...lo CHR rec hi CHR record position NOTE CHR record position specifies the location within the record itself and is optional Since there are 720 records available and the largest number one byte can ho...

Page 25: ...owing 10 OPEN 15 8 15 20 OPEN 2 8 6 0 TEST 30 GOSUB 1000 40 IF A 100 THEN STOP 50 PRINT 15 MP CHR 6 CHR 100 CHR 0 CHR l 60 GOSUB 1000 70 IF A 50 THEN PRINT 2 1 GOTO50 80 IF A 100 THEN STOP 90 PRINT 2...

Page 26: ...B C 1010 IF A 5O OR A 20 THEN RETURN 1020 PRINT FATAL ERROR 1030 PRINT A A B C 1040 A 100 RETURN Lines 90 100 and 110 read the record and display the contents on the screen Notice that the carriage r...

Page 27: ...al commands called USER commands MEMORY WRITE PURPOSE Transfers up to 34 bytes of data to drive memory FORMAT PRINT 15 M W CHR address low byte CHR address high byte CHR of characters CHR data MEMORY...

Page 28: ...liar results This can be cleared up by using any other command except the MEMORY commands Here s a useful program that reads the disk controller s memory 10 OPEN 15 8 15 20 INPUT LOCATION PLEASE A 30...

Page 29: ...outines that operate in the disk s memory along with a jump table even in BASIC USER COMMAND FUNCTION Ul or UA BLOCK READ without changing buffer pointer U2 or UB BLOCK WRITE without changing buffer p...

Page 30: ...lets you change one drive s device number temporarily If you expect to use two or more drives on a permanent basis the hardware method is a simple and permanent way to change a drive s device number S...

Page 31: ...the bottom of the drive to change the drive s device number Detailed instructions are below TO CHANGE THE DEVICE NUMBER 1 TURN OFF DISK DRIVE 2 TURN OVER AND LOCATE TWO SMALL DIP SWITCHES ABOUT HALFW...

Page 32: ...2 19 UNUSED ERROR MESSAGE NUMBERS 20 READ ERROR block header not found The disk controller is unable to locate the header of the requested block This can be caused by a bad header on the disk or spec...

Page 33: ...OR long data block The controller attempts to detect the sync mark of the next header after writing a data block If the sync mark does not appear within a pre determined time the error message is gene...

Page 34: ...error occurs without first repositioning 51 OVERFLOW IN RECORD PRINT statement exceeds the record boundary truncating information Since the carriage return sent as a record terminator is counted in th...

Page 35: ...he DOS Direct access channels may have six opened files 71 DIRECTORY ERROR The BAM Block Availability Map does not match the internal count There is a problem in the BAN allocation or the BAM has been...

Reviews:

Related manuals for FSD-2