15 MIN READ TIME

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.

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

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99c
SUBSCRIBE NOW
30 day trial, then just $9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
September 2020
VIEW IN STORE

Other Articles in this Issue


In This Issue
Backups are dead, long live backups!
No one needs to back up any more. Yes, after
REVIEWS
AMD Ryzen 3 3300X
We always enjoy looking back at the past with processors,
Crucial P2 500GB
On the hunt for a new SSD for your system?
EndeavourOS 7.15.2020
An intermediate, rolling release, distro for anyone wanting a taste
BunsenLabs Lithium
A lightweight Debian-based distribution that leverages OpenBox, Tint2 and Compton
Tropico 6
Tropico 6 is a great game for people watching. It’s
ROUNDUP
Privacy distributions
Specialist distributions such as the ones featured in this Roundup
BACK UP LIKE CLOCKWORK!
There are two types of people in this world: those
INTERVIEW
PRESSURE VESSEL
Simon McVittie is a Debian developer and a consultant for
IN-DEPTH
LibreOffice 7
These very words have been written with LibreOffice 7.0 and
Pi USER
KEEPING ALL CHANNELS OPEN
Cerys Lock is the organiser of the Stafford Raspberry Jam
Self-hosting Raspberry Pi cluster of Pis
We get the feeling that large sections of the population
Radio PiPi
Part of the Pi’s appeal is the physical interaction necessary
Pi in Space
We’ve mentioned multiple times over the past year the various
4tronix Picon Plus
An advanced motor controller for the Raspberry Pi that provides
How to run Arch Linux on the Pi
Jonni Bidwell thinks he can hear the unmistakable sound of
CODING ACADEMY
Recreate the Game of Life simulator
Each issue we’re building a retro video game. In this
REGULARS AT A GLANCE
LibreOffice looks to protect long-term viability
There was a brief internet drama back in July when
Tor Project under threat
You may never have heard of the US Open Technology
Encrypted Data Act
Conspiracy theorists often say governments love spying on their citizens
RING THE PLUMBER!
A key improvement that PipeWire brings over PulseAudio is that
THAT’S NO WOLF
You may think of MongoDB as a wolf hiding in
Linux Foundation to track and trace Covid-19
Ireland’s Health Service Executive (HSE) has announced that it’s donating
Proton 5.0
It’s a regular theme that we cover the latest milestone
Manjaro changes
The Treasurer of the Manjaro project has stepped down over
Distro watch
Lovers of reptile-based distros will love the latest spin of
WANTS AND NEEDS
We’ve just had an email from a client who wants
LINUX IS THE TOPS
Linux turned 29 shortly after we went to press. The
Kernel Watch
Linus Torvalds announced the release of Linux 5.8, which has
ONGOING DEVELOPMENT
Steven Price (Arm) posted a patch enabling MTE (memory tagging
Answers
Got a burning question about open source or the kernel?
Mailserver
Write to us at Linux Format, Future Publishing, Quay House, The
Symphonium
Alexander Tolstoy has an open source app for everything, not
Cadmus
Few people want background noise in their audio recordings, and
E4head
This article was written when Fedora developers were discussing the
Gromit-MPX
During a presentation in front of an audience, it’s common
Fsmon
Sometimes there’s a good reason to know a bit more
Qt-SESAM
Every once in a while there’s a study on network
Video-trimmer
Normally, few people would reach for a heavyweight video-editing application
Pillar Valley
The Pillar Valley author declares on its Github front page
Caveexpress
Most platform-style arcade games have so much in common that
Flatpak
The two main rivals in application sandboxing are Snap and
Viper Browser
Browsing the web is one computing task that’s well served
TUTORIALS
Assemble basic touch and motor controls
Les Pounder is associate editor at Tom’s Hardware and a
Scheduling tasks
Shashank Sharma is a trial lawyer in Delhi. He collects
Databases made quick and easy
Nick Peers built his first database for his computer science
Build a streaming video web service
The (fictional) Brixton Youth Sports Association (BYSA) needs a place
Create a video game in the Godot engine
Godot is an open source video game development engine. In
Chat
X
Pocketmags Support