tHIS DOCUMENT DISCUSSES THE DATA TRANSFER SOLUTIONS THAT ARE AVAILABLE FOR 8-BIT cOMMODORE COMPUTERS. sOME OF THEM ARE SUPPORTED BY SEVERAL SOFTWARE TOOLS, OTHERS ARE SPECIFIC TO ONE TOOL OR ONE OPERATING SYSTEM.
tHE USE OF MAGNETIC MEDIA HAS BOTH ADVANTAGES AND DISADVANTAGES. tHE MAIN ADVANTAGE IS THAT IN SOME CASES, NO ADDITIONAL HARDWARE IS REQUIRED. tHE MAIN DISADVANTAGES ARE SLOW TRANSFER SPEEDS AND MECHANICAL WEAR AND TEAR OF THE MEDIA AND THE DRIVES.
tHE 1541 AND ITS PRECURSORS USE THE PROPRIETARY cOMMODORE gcr FORMAT, WHICH IS VERY DIFFICULT TO ACCESS ON OTHER THAN cOMMODORE COMPUTERS. bUT THANKS TO A HACK INVENTED BY dANIEL fANDRICH, MOST 1541 MODELS (EXCEPT THE 1541-ii) CAN BE MODIFIED TO GENERATE A HIGHER BAUD RATE THAT IS REQUIRED FOR READING AND WRITING mfm DISKS. tHE 1541-DOS PACKAGE WRITTEN BY dANIEL fANDRICH AND rICHARD hABLE READS SINGLE-SIDED 9-SECTOR 180-KILOBYTE mfm DISKS. tHE PACKAGE WRITES FILES IN ITS OWN 90-KILOBYTE FORMAT, WHICH CAN BE READ WITH THE ms-dos AND uNIX PROGRAMS SUPPLIED WITH THE PACKAGE.
tHE 1570, 1571 AND THE 1581 DISK DRIVES CONTAIN AN mfm CONTROLLER CHIP THAT CAN EASILY BE PROGRAMMED TO READ ms-dos (AND cp/m) DISKETTE FORMATS. tHERE ARE NUMEROUS UTILITIES FOR THESE DRIVES. sOME OF THESE UTILITIES CAN BE FOUND AT HTTP://WWW.FUNET.FI/PUB/CBM/C64/DISKUTIL/.
tHE 1581 DISK DRIVE USES mfm ALSO FOR ITS NATIVE FORMAT, WHICH MAKES IT RELATIVELY EASY TO READ AND WRITE ITS DISKS ON AN aMIGA OR pc. fOR THE aMIGA, THERE ARE cOPY1581 AND pASI oJALA'S c1581 FILESYSTEM. tHE lINUX FLOPPY DRIVER CAN BE CONFIGURED TO READ AND WRITE 1581 DISKS, AND dANIEL fANDRICH HAS WRITTEN A cOMMODORE FILE SYSTEM FOR lINUX, CBMFS. fOR ms-dos, THERE IS 1581COPY BY wOLFGANG mOSER.
uNLIKE THE aMIGA, THE FLOPPY DRIVE CONTROLLER OF ibm pc COMPATIBLES CANNOT BE EASILY CONFIGURED TO ACCESS OTHER THAN mfm FORMATS. wITH THE HELP OF jENS sCH{$f6}NFELD'S cATWEASEL DISK CONTROLLER, THE FLOPPY DRIVE IS CAPABLE OF READING MOST FORMATS, EXCEPT THE 100 tpi FORMAT OF THE cOMMODORE 8050 AND 8250 DISK DRIVES. tHE DISADVANTAGES OF THE cATWEASEL CONTROLLER ARE ITS CLOSED DESIGN, RELATIVELY HIGH PRICE AND DEPENDENCE ON LOW-LEVEL HARDWARE AND SOFTWARE INTERFACES ON THE HOST COMPUTER, WHICH IS LIKELY TO CAUSE PROBLEMS WITH FUTURE COMPUTER MODELS AND OPERATING SYSTEMS.
tHERE ARE SOME HARD DISK INTERFACES FOR cOMMODORE COMPUTERS.
aLTHOUGH HARD DISKS, ALSO KNOWN AS FIXED DISKS
, ARE NOT
SUPPOSED TO BE REMOVED FROM THE COMPUTER, THEY HAVE MUCH GREATER
STORAGE CAPACITY AND TRANSFER SPEED THAN OTHER STORAGE MEDIA.
mAYBE THE BEST KNOWN HARD DISK INTERFACES ARE THE scsi ADAPTERS FOR THE cOMMODORE SERIAL BUS THAT WERE PRODUCED BY cmd. a MORE MODERN DESIGN IS aSBJ{$f8}RN dJUPDAL'S ata HARD DISK CONTROLLER FOR THE SERIAL BUS. iT IS ALSO POSSIBLE TO USE ANOTHER COMPUTER AS A FILE SERVER FOR 8-BIT cOMMODORE COMPUTERS; SEE sECTION 2.2.
fOR THE cOMMODORE 64, THERE ARE CARTRIDGE-BASED HARD DISK INTERFACES THAT SHOULD OUTPERFORM SERIAL BUS BASED ADAPTERS. iN THE OLD DAYS, THERE WAS lT. kERNAL, AND NOWADAYS YOU CAN BUY AN ide64 ADAPTER FOR ata HARD DISKS.
iF THE HARD DISK INTERFACE USES A COMMON FILE SYSTEM, SUCH AS THE fat OF ms-dos, IT IS RELATIVELY EASY TO INSTALL THE HARD DISK IN SOME OTHER COMPUTER AND COPY THE FILES OVER. pROPRIETARY FILE SYSTEMS NEED SPECIAL TREATMENT. iN THE AUTHOR'S OPINION, SWAPPING HARD DISKS ONLY MAKES SENSE FOR BULK TRANSFERS OF LARGE AMOUNTS OF DATA—IT IS NOT SOMETHING ONE WOULD DO TO COPY A SINGLE SMALL FILE TO A 8-BIT cOMMODORE COMPUTER.
cOMPARED TO DISKETTE, THE TAPE IS SLOWER AND MORE UNRELIABLE. hOWEVER, CASSETTE TAPE DRIVES USED TO BE CHEAPER THAN DISK DRIVES, AND c CASSETTES ARE STILL AVAILABLE (FOR AUDIO APPLICATIONS) UNLIKE 5{CBM-C}-INCH DISKETTES AND DISK DRIVES. fURTHERMORE, THE DATA RECORDED ON THE TAPE CAN BE CAPTURED AND PRODUCED WITH THE BUILT-IN AUDIO EQUIPMENT OF MODERN PERSONAL COMPUTERS.
aUDIO DATA CAN BE REPRESENTED WITH A STREAM OF pcm SAMPLES. hOWEVER, THE
CASSETTE TAPE CIRCUITRY IN 8-BIT COMPUTERS ONLY RECOGNISES CHANGES IN
THE SIGNAL POLARITY. tHEREFORE, THE DATA CAN BE REPRESENTED AS THE
DELAY BETWEEN POLARITY CHANGES. mOST 8-BIT cOMMODORE COMPUTERS ONLY
RECOGNISE THE POSITIVE-TO-NEGATIVE POLARITY CHANGES. tHUS, MOST
LOW-LEVEL TAPE IMAGES (
) RECORD THE TIME
BETWEEN SUCCESSIVE POSITIVE-TO-NEGATIVE POLARITY CHANGES.tap
FILES
tHE BUILT-IN TAPE ROUTINES OF 8-BIT cOMMODORE COMPUTERS STORE THE
DATA IN BLOCKS, WHICH ARE 192 BYTES IN SIZE, WITH THE EXCEPTION OF THE
PAYLOAD OF PROGRAM FILES, WHICH CAN BE ANYTHING BETWEEN 1 AND 65536
BYTES IN SIZE. iF THE DATA IS IN THE STANDARD FORMAT, A HIGH-LEVEL
TAPE IMAGE (A
)
REPRESENTS IT MORE EFFICIENTLY THAN A SEQUENCE OF PULSES. tHIS
HIGH-LEVEL FORMAT IS SUPPORTED BY THE mess EMULATOR, AND BY mARKO m{$e4}KEL{$e4}'S CBMCONVERT AND c2n
TOOLS.cas
OR csm
FILE
mANY TOOLS RELATED TO cOMMODORE TAPES ARE AVAILABLE AT HTTP://WWW.FUNET.FI/PUB/CBM/CROSSPLATFORM/TRANSFER/DATASSETTE/. sOME OF THESE TOOLS CONTAIN A SOUND CARD INTERFACE, LIKE THE REAL-TIME LOW-LEVEL TAPE IMAGER tapIR FOR wIN32 AND gnu/lINUX, WHILE OTHERS OPERATE ON FILES.
iN MANY CASES, A CABLE CONNECTION IS FASTER AND MORE RELIABLE THAN METHODS BASED ON PHYSICAL STORAGE MEDIA. mANY INTERFACES ARE AVAILABLE FOR A CABLE CONNECTION. tHOSE INTERFACES THAT ARE SUPPORTED BY THE BUILT-IN FIRMWARE OF THE cOMMODORE EQUIPMENT ARE EASIEST TO USE. tHESE INCLUDE THE CASSETTE TAPE DRIVE INTERFACE ON THE COMPUTER AND THE INTERFACE BETWEEN THE DISK DRIVE AND THE COMPUTER. oTHER INTERFACES REQUIRE THAT SOME PROGRAM CODE IS LOADED FIRST.
iN THE LATE 1980'S, A COMPANY RELEASED A SMALL COLLECTION OF GAMES ON AN AUDIO cd, WHICH WAS DELIVERED WITH A SIMPLE INTERFACE FOR CONNECTING THE HEADPHONE JACK OF THE cd PLAYER TO THE CASSETTE DRIVE INTERFACE.
a SIMILAR DEVICE FOR PLAYING BACK LOW-LEVEL TAPE IMAGES HAS BEEN DESIGNED BY tOMAZ kAC.
iN PRACTICE, THE TRANSFER SPEED OF THIS SOLUTION IS LIMITED TO ONE OR TWO KILOBYTES PER SECOND, AND SO FAR, NOBODY HAS WRITTEN AN OPTIMAL FASTLOADER.
tHE c2n232 IS A SMALL rs-232 INTERFACE THAT CAN BE PLUGGED TO THE CASSETTE PORT OF AN 8-BIT cOMMODORE COMPUTER. iTS COMPONENTS COST A LITTLE MORE THAN THOSE OF tOMAZ kAC'S SOUND CARD INTERFACE, BUT IT IS EQUIPPED WITH A PROGRAMMABLE MICROCONTROLLER THAT CAN REACH 38,400 BITS PER SECOND TRANSFER SPEED USING A CUSTOM PROTOCOL.
tHE c2n232 IS SUPPORTED ON THE cOMMODORE aMIGA, ON wIN32, AND ON ANY SYSTEM WITH A posix COMPLIANT rs-232 INTERFACE, MOST NOTABLY gnu/lINUX AND aPPLE mAC os x. tHERE ARE THREE SUPPORT TOOLS: C2N FOR EXCHANGING DATA IN THE STANDARD FORMAT, C2NLOAD FOR LOADING AND STARTING PROGRAMS WITH AN AUTOMATICALLY STARTING FASTLOADER AT 38,400 BITS PER SECOND, AND CBMLINK FOR REMOTE ACCESS AND DISK TRANSFERS.
tHE DISK DRIVE INTERFACE CAN BE UTILISED FOR DATA TRANSFERS IN TWO WAYS: THE HOST COMPUTER CAN EITHER DIRECTLY SERVE FILES TO THE 8-BIT cOMMODORE COMPUTER, EMULATING A DISK DRIVE, OR IT CAN ACCESS THE DISK DRIVE, POSING AS A 8-BIT cOMMODORE COMPUTER.
tHE 8-BIT BUSINESS COMPUTERS OF cOMMODORE USE A PARALLEL CONNECTION TO PERIPHERAL DEVICES, WHICH IS ALSO KNOWN AS hpib AND gENERAL pURPOSE iNTERFACE bUS. tHIS BUS IS STILL USED IN SOME LABORATORY INSTRUMENTS, AND CONTROLLER CARDS ARE AVAILABLE FOR ibm pc COMPATIBLES, ALBEIT AT A VERY EXPENSIVE PRICE.
hARDWARE PROJECTS RELATED TO ieee-488 INCLUDE AN ieee-488 INTERFACE FOR THE PARALLEL PORT OF ibm pc COMPATIBLES, DESIGNED BY aNDR{$e9} fACHAT.
cOMMODORE DEVELOPED A SERIAL VERSION OF THE PARALLEL ieee-488 BUS. tHE SERIAL BUS IS QUITE DIFFICULT FOR INTERFACING PROJECTS, BECAUSE THE PROTOCOL IS VERY PICKY ABOUT THE TIMING. iN PRACTICE, ALL SOFTWARE THAT INTERFACES TO THIS BUS REQUIRES A DEDICATED COMPUTER OR MICROCONTROLLER, OR REAL-TIME SCHEDULING.
tHE CORRECT TIMING IS EASIEST TO IMPLEMENT ON A DEDICATED PROCESSOR, SUCH AS THE MICROCONTROLLER IN aSBJ{$f8}RN dJUPDAL'S ata HARD DISK CONTROLLER. oN ibm pc COMPATIBLES, IT IS HARD TO GET THE TIMING RIGHT, BECAUSE THE PRINTER INTERFACE IS USUALLY CLOCKED AT A MUCH LOWER SPEED THAN THE PROCESSOR. nEVERTHELESS, THERE EXISTS SOME SOFTWARE, MOSTLY FOR ms-dos.
fILE SERVERS OR FLOPPY DRIVE EMULATORS INCLUDE 1541EMU BY vILLE mUIKKULA, vc1541 BY tORSTEN pAUL,
AND THE CLOSED-SOURCE 64hdd BY nICHOLAS cOPLIN. iN ORDER
TO ACHIEVE REAL-TIME PERFORMANCE, ALL THESE TOOLS RUN ON ms-dos. 1541EMU HAS
THE MOST EXTREME HARDWARE REQUIREMENTS, SINCE IT EMULATES THE
PROCESSOR OF THE 1541 DISK DRIVE IN REAL TIME, ALLOWING FASTLOADERS TO
WORK. ms-dos BASED FILE SERVERS HAVE A COMMON DRAWBACK: THE HOST
COMPUTER IS EXCLUSIVELY RESERVED FOR SERVING THE cOMMODORE, UNLESS THE
SERVER CAN BE RUN IN THE ms-dos EMULATION OF
A MULTI-TASKING OPERATING SYSTEM. hOWEVER, SUCH EMULATION CAN VIOLATE
THE REAL-TIME CONSTRAINTS. iN ORDER TO ALLOW THE cOMMODORE FILE SERVER
TO EXCHANGE FILES WITH OTHER COMPUTERS, IT MAY MAKE SENSE TO STORE ALL
FILES ON ANOTHER COMPUTER (NETWORK DRIVE
).
tHE MOST NOTABLE PROGRAMS FOR ACCESSING SERIAL BUS DEVICES ARE sTAR cOMMANDER FOR ms-dos BY jOE fORSTER/sta AND CBM4LINUX FOR lINUX BY mICHAEL kLEIN. fOR THE cOMMODORE aMIGA, THERE EXIST SEVERAL EMULATORS THAT CAN ACCESS A DISK DRIVE CONNECTED TO THE PRINTER PORT. tHE BEST SUCH EMULATOR IS fRODO WRITTEN BY cHRISTIAN bAUER. tHERE ARE ALSO SOME SIMPLER UTILITIES, LIKE eASY1541, THAT MERELY COPY DATA; SEE HTTP://WWW.FUNET.FI/PUB/CBM/CROSSPLATFORM/TRANSFER/aMIGA/.
oTHER INTERFACES THAN THE TAPE AND DISK ARE LESS CONVENIENT TO USE, BECAUSE THEY REQUIRE THAT A PIECE OF SOFTWARE IS LOADED TO THE 8-BIT cOMMODORE COMPUTER FIRST, USUALLY BY TAPE, DISK, OR EVEN THE KEYBOARD.
a LONG TIME AGO, THE ONLY TRANSFER OPTION WAS AN rs-232 CABLE HOOKED TO AN rs-232 ADAPTOR, AND A TERMINAL PROGRAM. tYPICALLY, THIS ALLOWED TRANSFER RATES OF AT MOST 1,200 BITS PER SECOND.
dANIEL kAHLIN'S oVER5 ALLOWS TRANSFER RATES OF 38,400 BITS PER SECOND BETWEEN AN aMIGA, pc OR unix BOX AND A cOMMODORE 64 OR vIC-20.
cHRISTOPHER jAM'S sNAFFLEuPadISK IS A TOOL FOR THE pal MODELS OF cOMMODORE 64 EQUIPPED WITH A 6551 CARTRIDGE AND A 1541 DISK DRIVE. iT TRANSFERS A 1541 DISK TO A posix COMPLIANT SYSTEM IN ABOUT FIVE OR SIX MINUTES. tHE CODE HAS ONLY BEEN TESTED UNDER aPPLE mAC os x VERSIONS 10.1.2 AND 10.1.3, ON A g4/agp WITH A kEYSPAN usb TO SERIAL CONVERTER.
a DIRECT PARALLEL CONNECTION OF AN 8-BIT cOMMODORE TO ANOTHER COMPUTER IS GENERALLY THE FASTEST WAY TO GO, BECAUSE MULTIPLE BITS CAN BE TRANSFERRED AT A TIME. tHIS KIND OF UTILITIES EXISTED FIRST FOR THE aMIGA AND LATER FOR ibm pc COMPATIBLES.
mOST UTILITIES SUPPORT ONLY THE cOMMODORE 64, BUT mARKO m{$e4}KEL{$e4}'S CBMLINK, THE SUCCESSOR OF PRLINK BY HIM AND oLAF sEIBERT, SUPPORTS PRACTICALLY ALL 8-BIT cOMMODORES (pet, vic-20, c64/sx-64, c16/c116/PLUS4, c128, pet ii), cOMMODORE aMIGA, wIN32, AND posix COMPLIANT SYSTEMS.
tHE MAIN DISADVANTAGE OF PARALLEL CONNECTIONS IS THAT THE SOFTWARE REQUIRES ACCESS TO LOW-LEVEL INTERFACES, WHICH TEND NOT TO BE AVAILABLE ON MODERN OPERATING SYSTEMS. lINUX AND fREEbsd HAVE GENERAL-PURPOSE PARALLEL PORT DEVICE DRIVERS, BUT wIN32 LACKS THEM. fURTHERMORE, IT CAN BE THAT FUTURE COMPUTERS WILL LACK A PARALLEL PORT, AND THE SOFTWARE SUPPORT FOR usb BASED ADAPTERS MIGHT NOT BE FLEXIBLE ENOUGH FOR THIS KIND OF INTERFACES. lAST BUT NOT LEAST, rs-232 TOLERATES HOT-PLUGGING AND VOLTAGE POTENTIAL DIFFERENCES BETTER THAN THE PARALLEL INTERFACES OF 8-BIT cOMMODORE COMPUTERS.
tHE AUTHOR BELIEVES THAT MICROCONTROLLERS AND rs-232 HAVE THE LEAST COMPATIBILITY PROBLEMS NOW AND IN THE FORESEEABLE FUTURE.