EMULATION
BASIC and demos on the Commodore 64
Les Pounder reveals how to relive the 1980s with a Commodore 64 and BASIC via emulation, and without the rubbish hair and laughable fashions.
Les Pounder
The Personal Computer with Professional Power was how the Commodore 64 was introduced back in 1982 and that power lasted for 12 years until the C64 was discontinued in 1994. But the Commodore 64 has a legacy that now spans decades.
Music, art, games and even robotics were made possible by a home computer with less power than your grandad’s phone. Inside the C64 was a MOS-branded 6510 CPU running at 0.985MHz (PAL) and 1.023MHz (NTSC) along with 64KB RAM, of which 38KB was available to the user. So much was accomplished with this machine, despite now looking rather underpowered.
In the 1980s the diverse range of home computers saw groups of like-minded individuals forming clubs and user groups to support their users. Does this sound familiar to you? The storage medium of the day were cassette tapes, used to store games and programs. If you had a bit of money then a 1541 floppy drive, basically another computer that read 5¼-inch floppy disks and sent the data to the C64, could be yours for £200.
OUR EXPERT
Les Pounder is associate editor at Tom’s Hardware and a freelance creative technologist. He blogs about his discoveries at www.bigl.es.
Emulating the Commodore 64 is simple, even with low-power hardware. There are a number of ways to emulate it. The first is via a commercial package from Cloanto. Called C64 Forever (www.c64forever.com) this application offers easy emulation via a GUI interface. But the problem is that there’s no Linux client, only Windows. To emulate the C64 on Linux we need Vice, which we shall install and use in this feature. There’s a C64 distribution for the Raspberry Pi, called Combian and we looked at that in LXF261. The easiest way to emulate a C64 is also the most expensive. A C64 Mini console was released that provided a mini console running Linux and Vice. A further full-size version was also released and this had a working keyboard, but this retails for £110. That’s a bit too pricey for our liking!
We used Ubuntu for our test machine, but the same instructions should also work with Raspberry Pi OS and can be adapted for other Linux distributions.
Quick Tip
All of the code in this tutorial can be downloaded from our GitHub repository https://github.com/lesp/LXF267-C64BASIC/archive/master.zip.
Getting a Vice
Installing the Vice emulator is a little more involved than just using a package manager, but that’s where we should start. Install the Vice emulator via the Terminal using this command $ sudo apt update && sudo apt install vice