Commodore 64 floppy drive has the power to be a computer — bulky 1982 Commodore 1541 5.25 inch drive packs a 1 MHz MOS 6502 CPU

Commodore 1541 floppy disk electronics used as a computer
(Image credit: Commodore History channel on YouTube)

The Commodore History channel on YouTube has confirmed that the Commodore 1541 floppy disk drives electronics are powerful and capable enough to work as a standalone computer. This 1982 vintage peripheral, designed to add a 5.25-inch floppy disc to the equally ancient Commodore 64, actually has its own processor, RAM, ROM and I/O.

There’s a 1 MHz MOS 6502 in the floppy drive electronics, which is closely related to the C64’s MOS 6510, and exactly the same processor as in the VIC-20. However, Dave from the Commodore History channel did his work with minimal hardware modding, so the resulting ‘1541 computer’ ended up being rather limited.

Can a Commodore 1541 disk drive be used as a general purpose computer? - YouTube Can a Commodore 1541 disk drive be used as a general purpose computer? - YouTube
Watch On

The video starts with Dave explaining that a channel subscriber had asked about whether the Commodore 1541 floppy disk could work as a general purpose computer – as it was known to pack a MOS 6502 chip, its own RAM, its own I/O chips, alongside the ROMs which help it carry out its day job as a storage device. The CPU is very similar to the C64’s MOS 6510, which is just “a customized upgrade for the Commodore 64” based on the 6502. But the VIC-20 is actually a much closer match, and you can see a comparison in the infographic, below.

Commodore 1541 floppy disk electronics used as a computer

(Image credit: Commodore History channel on YouTube)

Turning the 1541 into a VIC-20-a-like was still too much of a stretch for this investigation, as Dave wanted to keep hardware modding off the menu. The VIC-20 owes a lot of its general purpose computing ability to its additional 6560 VIC chip – a custom IC for graphics and sound. It also offers lot more I/O for general purpose computing appeal.

Thus, Dave had to wind-back the Commodore clock even further for inspiration. And he decided the first way to demonstrate that the Commodore 1541 floppy disk could work as a general purpose computer was to look at the Commodore KIM-1, the firm’s first, and most simple computer, which would be described as a Single Board Computer (SBC) today.

The KIM-1 was programmed using an onboard keypad, punching in values in 6502 machine language, byte-by-byte. Its only display was a set of 6 segmented LCDs. This computer could also be used via Teletype (TTY) over serial connection, and this method was adopted as the way to interface and work with the Commodore 1541.

So, the KIM-1 became the new target of the Commodore 1541 as a computer project. Dave found the KIM-1 kernel had already been published, so set about modifying it with code to initialize the 1541, and tweak I/O routines so serial teletype would work. This code was burned onto an EEPROM, and is now available on GitHub.

Costs

  • The Commodore 64's original price was $599 in 1982 (~$1,950 in today’s money)
  • The Commodore 1541 disk drive was originally priced at $399 in 1982 (~$1,300 in today’s money)

To teletype interface with the pair of 1541 serial connectors, an adaptor / dongle was required. Dave brewed up a USB to RS232 to TTL dongle. The finished MacBook USB to 1541 serial adaptor looks a bit messy, but did the job.

Next up, Dave communicated with the 1541, with its freshly baked KIM-1 ROMs, and dongle, via a Minicom terminal on his Mac. His hand typed assembly Hello World code worked first time (as far as we saw in the video).

Before signing off, Dave wanted to get a bit nearer to making the 1541 into a VIC-20 by adding a BASIC interpreter. He ported Tiny Basic to the KIM-1 and burned it to a ROM to insert on the 1541's PCB. Again, this worked, making it much quicker to code a Hello World program.

The TechTuber made it clear that this 1541 ‘general purpose computer’ remained very limited without major hardware mods due to its lack of I/O – limiting it to serial terminal use. But we don’t blame him for not wanting to mess with this precious retro hardware too much.

This project makes us wonder about the general purpose computing abilities of modern drive controller electronics.

Google Preferred Source

Follow Tom's Hardware on Google News, or add us as a preferred source, to get our latest news, analysis, & reviews in your feeds.

Mark Tyson
News Editor

Mark Tyson is a news editor at Tom's Hardware. He enjoys covering the full breadth of PC tech; from business and semiconductor design to products approaching the edge of reason.

  • snemarch
    Iirc there was software (can't remember if any commercial games did it, or only demos) back in the day that would offload computation to the 1541 drive, but can't remember any specific titles right now.

    But I did stumble upon Freespin from 2021, which is kinda crazy – it bit-bangs video and sound output 🤯
    Reply
  • Jason Ka
    I recall that that there was a cartridge for the Commodore 64 that At Least doubled the load speed from the disk drive called “Mach 5”. I am wondering how it worked. Would that have had an effect on using the hard drive as it own computer?
    Reply
  • Fruitmaniac
    Yup. The C64 didn't have room for a disk controller so they put everything in the drive.
    Reply
  • blppt
    Jason Ka said:
    I recall that that there was a cartridge for the Commodore 64 that At Least doubled the load speed from the disk drive called “Mach 5”. I am wondering how it worked. Would that have had an effect on using the hard drive as it own computer?
    The 1541 was a buggy mess to the point where it defaulted to something ridiculous like 300 BYTES/sec transfer rates, though the mechanism was capable of much higher.

    Epyx's Fast Load Cartridge was the popular fix for it---basically all it did was enable the 1541 to transfer at the rate it was originally supposed to.
    Reply
  • BFG-9000
    The $400 1541 was initially so unreliable that a host of 3rd party clone external floppy drives from many manufacturers popped up, usually selling for around half that price, and I had one (still have it, and it did not turn out to be as completely compatible as they claimed). All of those also used the $25 6502 because the closest equivalent from Intel in their 8080 was $370 for the chip alone. The low price was why it or a variant was used in many 8-bit computers through the 1970s and 80s from Acorn, Apple, Atari, and Commodore
    Reply
  • Tanakoi
    Jason Ka said:
    I recall that that there was a cartridge for the Commodore 64 that At Least doubled the load speed from the disk drive called “Mach 5”. I am wondering how it worked. Would that have had an effect on using the hard drive as it own computer?
    The original C64 didn't come with a hard drive, and even the floppy drive was an aftermarket purchase.

    I can't recall its name, but there was one program that made the rounds back then which purported to raise the floppy drive's speed, but would literally make the drive catch fire if run.
    Reply