TensorFlow Lite – On A Commodore 64

TensorFlow is a machine learning and AI library that has enabled so much and brought AI within the reach of most developers. But it’s fair to say that it’s not for the less powerful computers. For them there’s TensorFlow Lite, in which a model is created on a larger machine and exported to a microcontroller or similarly resource-constrained one. [Nick Bild] has probably taken this to its extreme though, by achieving this feat on a Commodore 64. Not just that, but he’s also done it using Commodore BASIC.

TensorFlow Lite works by the model being created as a C array which is then parsed and run by an interpreter on the microcontroller. This is a little beyond the capabilities of the mighty 64, so he has instead created a Python script that does the job of the interpreter and produces Commodore BASIC code that can run on the 64. The trusty Commodore was one of the more powerful home computers of its day, but we’re fairly certain that its designers never in their wildest dreams expected it to be capable of this!

If you’re interested to know more about TensorFlow Lite, we’ve covered it in the past.

Header: MOS6502, CC BY-SA 3.0.

Will The Real Commodore Please Stand Up?

The Commodore 64 is a much-loved 8-bit retro computer that first appeared in 1982 and finally faded away around a decade later. The Commodore company started by [Jack Tramiel] went on to make the Amiga, and eventually ceased trading some time in the late 1990s. All history, now kept alive only by enthusiasts, right? Well, not quite, as the C64 has been the subject of a number of revivals both miniature and full-sized over the years. The latest came in the form of a Kickstarter for the C64x, a seemingly legitimately-branded Commodore 64-shaped PC, but it seems that has now been paused due to a complaint from an Italian company claiming to be the real heirs of Commodore. So will the real Commodore please stand up?

The origin of the Kickstarter C64x breadbin C64 PC is well enough documented, having its roots in a legitimate 2010 offering for which the person behind the C64x appears to have gained the rights. The Italian company is also called Commodore and uses the familiar branding from the glory days to sell some Commodore-themed games, novelties, and a tablet computer, but its website is a little tight-lipped about how it came by the use of that IP. Could it have come upon those rights through the 1990s German owner of the brand, Escom? We’d be fascinated to know.

Continue reading “Will The Real Commodore Please Stand Up?”

A (Nearly All) New Commodore 64

The Commodore 64 remains one of the most influential of the 8-bit home computers four decades after its launch, so not surprisingly there is a huge enthusiast community surrounding it. With so many produced over the years it was available one might think that there would be no shortage of surviving specimens, but sadly time and component failure have taken their toll and the classic micro is not always the most reliable kid on the block. Thus a cottage industry has sprung up supplying C64 parts, leading [The Retro Shack] to have a go at making a new one entirely from scratch.

As you can see in the video below the break it’s not quite an entirely new ’64, as parts including some of the custom silicon come from failed boards. The PCB is a modern recreation of the original and the SID sound chip is an ARMsid though, and most of the parts come from a handy bagged-up kit that makes assembling the BoM much easier. Instead of the big silver box of the original RF modulator is a modern composite board, and there are a few issues with minor connector part differences.

Assembly is simply a very long through-hole soldering process, and once he’d completed it there was the expected refusal to work. We’ve all been there, and eventually he traced it to an incorrectly fitted chip. If you think you’ve seen a few brand new C64s here before you’d be correct, one of them even used LEGO for those elusive keycaps.

Continue reading “A (Nearly All) New Commodore 64”

Commodore C64: The Most Popular Home Computer Ever Turns 40

This year marks the anniversary of the most popular selling home computer ever, the Commodore 64, which made its debut in 1982. Note that I am saying “home computer” and not personal computer (PC) because back then the term PC was not yet in use for home computer users.

Some of you have probably not heard of Commodore, which is kind of sad, though there is a simple reason why — Commodore is no longer around to maintain its legacy. If one were to watch a documentary about the 1980s they may see a picture of an Apple computer or its founders but most likely would not see a picture of a Commodore computer in spite of selling tens of millions of units.

To understand the success of the C64 I would first back up and talk about the fabled era of home computers which starts with understanding the microprocessor of the day, the venerable 6502. Check out the video and follow along below.

Continue reading “Commodore C64: The Most Popular Home Computer Ever Turns 40”

Commodore 64 Monitor Traces I/O Calls, Eases Debugging

Developing for the Commodore 64 can be a rewarding retrocomputing experience, and thanks to [Dave Van Wagner], things are easier with his C64 IO_Monitor project, which opens the door to logging and tracing Kernal I/O calls for closer inspection. That’s not a typo, by the way. Kernal is what handles the C64’s low-level OS routines. Amusingly, as the story goes, it did in fact originate as a misspelling of kernel, but the name stuck.

What [Dave]’s program does is trace and log all input and output calls going through Kernal, which includes just about any function one might imagine. Things like keyboard input, screen output, and disk or tape I/O are all dutifully counted and logged, allowing one to really peek under the hood at a low level when doing any kind of development work. This kind of tool has turned out to be pretty handy given [Dave]’s penchant for porting Commodore emulators to a variety of (sometimes unusual) platforms.

Interested in giving it a spin? Head to the project’s GitHub repository for all the necessary files as well as some usage details, and enjoy making debugging and development a little less opaque than it otherwise would be.

Original Commodore 64 ad

Love Letter To Commodore 64 Ads Takes Us Down Memory Lane

If you shop, you can get a pretty nice laptop for around $595. Maybe not the top of the line, but still pretty nice with multiple cores, a large hard drive, and a big color screen. But in the 1980s, the Commodore 64 bragged that for $595, they’d give you more than anyone else at twice the price. After all, 64K of RAM! Graphics with 16 whole colors! [Lunduke] dug up a bunch of these ads and has some thoughts on them and we really enjoyed the trip down memory lane.

If you look at other contemporary computers, they did cost more although sometimes it wasn’t a fair comparison. The TRS80 III, for example, cost $999 with 16K of RAM but it also had its own monitor — not color, though.

It is amazing to think that we’ve gone from where 16K was a reasonable amount of RAM in a personal computer to where it isn’t even worth having a flash drive with that capacity. We also can’t help but note that while computing power per dollar is through the roof now, computers aren’t actually that much more fun. We enjoyed interfacing a teletype to our 1802 ELF and working out a 300 baud modem for our TRS-80. Sure, we didn’t have Skyrim or HD movies, but we still have fun.

If you want to relive these exciting days, it is easy enough to build your own C64 with varying degrees of fidelity. It is trivial to emulate the thing on any kind of modern hardware, too.

Yo Dawg, We Heard You Like Retrocomputers

The idea of having software translation programs around to do things like emulate a Super Nintendo on your $3000 gaming computer or, more practically, run x86 software on a new M1 Mac, seems pretty modern since it is so prevalent in the computer world today. The idea of using software like this is in fact much older and easily traces back into the 80s during the era of Commodore and Atari personal computers. Their hardware was actually not too dissimilar, and with a little bit of patience and know-how it’s possible to compile the Commodore 64 kernel on an Atari, with some limitations.

This project comes to us from [unbibium] and was inspired by a recent video he saw where the original Apple computer was emulated on Commodore 64. He took it in a different direction for this build though. The first step was to reformat the C64 code so it would compile on the Atari, which was largely accomplished with a Python script and some manual tweaking. From there he started working on making sure the ROMs would actually run. The memory setups of these two machines are remarkably similar which made this slightly easier, but he needed a few workarounds for a few speed bumps. Finally the cursor and HMIs were configured, and once a few other things were straightened out he has a working system running C64 software on an 8-bit Atari.

Unsurprisingly, there are a few things that aren’t working. There’s no IO besides the keyboard and mouse, and saving and loading programs is not yet possible. However, [unbibium] has made all of his code available on his GitHub page if anyone wants to expand on his work and may also improve upon this project in future builds. If you’re looking for a much easier point-of-entry for emulating Commodore software in the modern era, though, there is a project available to run a C64 from a Raspberry Pi.

Thanks to [Cprossu] for the tip!