Rebooting the 70s: Microsoftโ€™s 6502 BASIC Code Goes Open Source

Microsoft open sources 6502 BASIC, letting anyone revisit classic 1970s computing.

Most of us are familiar with what Microsoft is and what it does. The company became a household name due to its Windows and Office offerings but is also known to shape early programming culture through interpreters like Altair BASIC, which helped millions learn coding on emerging microcomputers of the 70s.

On the other hand, the 6502 microprocessor, released in 1975 by MOS Technology, was a low-cost, high-performance chip that powered iconic machines like the Apple II, Commodore PET, and Commodore 64.

Microsoft began work on a 6502 interpreter port of BASIC in 1976, with Commodore licensing it for its PET, VIC-20, and Commodore 64 computers in 1977.

Now, 48 years later, this interpreter, known as Microsoft BASIC for 6502, has been officially open sourced.

Microsoft BASIC for 6502 Goes Open

this is a screenshot of the github repository for "microsoft basic for 6502"

The release, hosted over on GitHub, allows developers, retro-computing enthusiasts, and history fans to explore the original 6502 BASIC code. They can study it, modify it, or even run it on modern emulators.

The version provided is BASIC M6502 8K VER 1.1, the same one that shipped as Commodore BASIC on the Commodore PET, VIC-20, and 64. It includes fixes to the garbage collector, implemented back in 1978 by Bill Gates and Commodore engineer John Feagans.

Microsoft also states that preservationists spent years rebuilding the original environment to ensure the code could still run today. Notably, Michael Steil documented and rebuilt the original BASIC process for multiple targets and ported it to modern assemblers like cc65, making it possible to build and run on current systems.

The source also contains small Easter eggs hidden by Gates and historical notes showing how programmers packed so much functionality into just 8K of memory.

The Source Code

The GitHub repository includes the source and additional information on the interpreter. You can fork it, clone it, or download it to explore, experiment, or just admire a piece of computing history.

Suggested Read ๐Ÿ“–

Microsoftโ€™s DocumentDB Finds New Home with Linux Foundation
DocumentDB joins the Linux Foundation to ensure open, vendor-neutral development.
About the author
Sourav Rudra

Sourav Rudra

A nerd with a passion for open source software, custom PC builds, motorsports, and exploring the endless possibilities of this world.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! Youโ€™ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.