- Fast loader
A fast loader is a software program for a
home computer - most commonly, theCommodore 64 - that accelerates the speed of file loading from thefloppy disk drive.Background
Fast loaders came about because of a discrepancy between the actual speed at which floppy drives could transfer data and the speed that was provided by the
operating system 's default routines. This discrepancy was most pronounced on theCommodore VIC-20 and 64. While the earlierCommodore PET series had used an industry-standardIEEE-488 parallel bus, this was replaced with a customserial bus on the VIC-20. The serial bus was intended to be nearly as fast as its predecessor, due to the use of the 6522 VIA as a hardwareshift register on both the drive and computer. However, hardware bugs were discovered in the 6522 that prevented this function from working consistently. As a result, theKERNAL ROM routines were hastily rewritten to transfer a single bit at a time, using a slow softwarehandshaking protocol. [http://groups.google.com/group/alt.folklore.computers/msg/6649af4cb9c790dc?hl=en&] Although the C64 replaced the 6522 VIA with two 6526 CIA chips, which did not suffer from this bug, the companion 1541 disk drive still had a 6522 VIA. Commodore chose not to redesign the 1541 hardware, also in order to retain backward compatibility with VIC-20 peripherals; this however came at the expense of speed. Because of the transfer protocol, theCommodore 1540 and 1541 disk drives soon gained a reputation for extreme slowness. Only at the introduction of theCommodore 128 computer and theCommodore 1571 disk drive was the original plan put into action and a hardware shift register was used, reducing the need for special fast loaders.Development
Soon after the C64's release, some astute programmers realized that Commodore's
bit-banging serial KERNAL routines were unnecessarily sluggish. Since the CPU in the C64 ran at approximately the same speed as that in the 1541 disk drive, it was sufficient to synchronize only at the beginning of eachbyte , rather than at each individualbit . Moreover, this transfer method allowed two bits to be sent simultaneously, one over the standardDATA
line and one over theCLK
line (which was normally used to perform the handshaking). On the C64, this required very careful timing to avoid interference from interrupts and from the VIC-II graphics chip, which could "steal" CPU cycles. Some fast loaders disabled interrupts and blanked the screen for this reason. A fast loader would generally "wedge" itself into theLOAD
vector at$0330
, thus intercepting any calls to the KERNALLOAD
routine. Next, the fast loader would transfer the necessary code into the drive RAM and order its execution, then receive the file sent by the altered transfer code. Depending on the exact nature of the routines used, the loading speed could be improved by as much as a factor of five.This technique was used for a few of the many fast-load systems made (such as JiffyDOS). Others were simply more efficient in I/O and file handling, offering marginal to good improvement. Other products added parallel hardware.
Commercial fast loaders
Various software companies released fast loaders for the C64, usually in cartridge form. In the
United States , probably the most popular such cartridge was theEpyx FastLoad . Most fast loader cartridges also incorporated other features to increase ease of use. An on-board implementation of Commodore'sDOS Wedge was included in most fast loader cartridges.Machine language monitor s,disk editor s, and various convenience commands forCommodore BASIC were also common additions. Some fast loader cartridges were very sophisticated, incorporating areset button , "freeze" capabilities, and a simple onboard GUI.The Final Cartridge III was perhaps the most successful of this genre. A few commercial fast loaders, most notably CMD'sJiffyDOS , were not cartridge-driven but instead replaced theKERNAL ROM in the C64 and the DOS ROM in the 1541. While these were more difficult to install, they offered greatly increased compatibility, being almost invisible to software running on the machine.Many commercial programs for the C64, especially games, contained their own fast-loading routines on the distribution media. The user would load a small "stub" program from the disk with the standard slow routines, which would then install faster transfer routines in both the computer and the drive before proceeding to load the rest of the program at high speed. This way, the user benefited from the fast loader without having to buy or know about a dedicated fast-loader product.
Type-in fast loaders
Several of the popular Commodore magazines published type-in fast loading software. In
April 1985 , "COMPUTE! " published "TurboDisk ", a fast loader that included C64 and VIC-20 versions. This program proved popular and was republished in theJuly 1985 issue of "COMPUTE!'s Gazette ". [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1985/07jul/jul85-TurboDiskA.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1985/07jul/jul85-TurboDiskB.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1985/07jul/jul85-TurboDiskC.jpg] It was printed yet again inAugust 1986 , without the VIC-20 version, but with several accompanying utilities to relocate the program in memory and to create auto-booting software that took advantage of "TurboDisk"'s speed. ACommodore 128 version was also included for those C128 users who still had 1541 disk drives. [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDisk64A.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDisk64B.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDisk128A.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDisk128B.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDiskRelocator.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/08aug/aug86-TurboDiskBootMaker.jpg] "COMPUTE!'s Gazette" also published several other utilities that speeded up C64-to-1541 communications, including "Turbo Copy" (a 4-minute full-disk copier) [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/04apr/apr86-TurboCopyA.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1986/04apr/apr86-TurboCopyB.jpg] , "TurboSave" (a utility that accelerated the speed of disk saves) [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1987/04apr/apr87-TurboSave64.jpg] , and "Quick!" (another fast loader) [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1988/12dec/dec88-Quick!A.jpg] [http://www.devili.iki.fi/pub/Commodore/docs/magazines/gazette/1988/12dec/dec88-Quick!B.jpg] . "RUN" Magazine published "Sizzle!" inDecember 1987 , an integrated package that included a relocatable fast loader with autoboot generation capability.
Wikimedia Foundation. 2010.