Great stuff! Glad they finally posted that code. I noticed that it still has a compilation
option for the PDP-10 simulation environment. I’m hoping that someone has that code and it
just hasn’t surfaced yet. I knew they had it for the 8080 but I didn’t realize they had it
for the 6502 as well.
Rich
--
Rich Cini
http://cini.classiccmp.org
https://github.com/RichCini
On 9/3/25, 2:56 PM, "Christian Liendo via cctalk" <cctalk(a)classiccmp.org>
wrote:
Looks like Microsoft is opening their 6502 Basic
https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-hist…
Today, we’re opening the vault—for real.
For decades, fragments and unofficial copies of Microsoft’s 6502 BASIC
have circulated online, mirrored on retrocomputing sites, and
preserved in museum archives. Coders have studied the code, rebuilt
it, and even run it in modern systems. Today, for the first time,
we’re opening the hatch and officially releasing the code under an
open-source license.
Discover the newly open-sourced Microsoft 6502 BASIC code
Microsoft’s first products: From the Altair to the Commodore 64
Microsoft BASIC began in 1975 as the company’s very first product: a
BASIC interpreter for the Intel 8080, written by Bill Gates and Paul
Allen for the Altair 8800. That codebase was soon adapted to run on
other 8-bit CPUs, including the MOS 6502, Motorola 6800, and 6809. You
can learn more about this time and hear directly from Bill Gates on
the Microsoft Learn Website’s History of Microsoft video series or by
visiting Bill Gates’ blog.
The 6502 port was completed in 1976 by Bill Gates and Ric Weiland. In
1977, Commodore licensed it for a flat fee of $25,000, a deal that
placed Microsoft BASIC at the heart of Commodore’s PET computers and,
later, the VIC-20 and Commodore 64. That decision put Microsoft’s
BASIC at the heart of Commodore’s machines and helped millions of new
programmers learn by typing:
10 PRINT “HELLO”
20 GOTO 10
This is BASIC M6502 8K VER 1.1, the 6502 BASIC lineage that powered an
era of home computing and formed the foundation of Commodore BASIC in
the PET, VIC-20, and the legendary Commodore 64. This very source tree
also contains adaptations for the Apple II (“Applesoft BASIC”), built
from the same core BASIC source. The original headers still read,
“BASIC M6502 8K VER 1.1 BY MICRO-SOFT”—a time capsule from 1978.
The version we are releasing here—labeled “1.1”—contains fixes to the
garbage collector identified by Commodore and jointly implemented in
1978 by Commodore engineer John Feagans and Bill Gates, when Feagans
traveled to Microsoft’s Bellevue offices. This is the version that
shipped as the PET’s “BASIC V2.” It even contains a playful Bill Gates
Easter egg, hidden in the labels STORDO and STORD0, which Gates
himself confirmed in 2010.
The enduring appeal of the MOS 6502 CPU
The MOS 6502 was the CPU behind the Apple II, Commodore 8-bit series,
Atari 2600, Nintendo Entertainment System, and many more. Its
simplicity, efficiency, and influence still inspire educators,
hobbyists, and hardware tinkerers today.
In 2025, interest is as strong as ever. The retro-computing scene is
thriving, with FPGA-based re-creations, emulator projects, and active
development communities. The Commodore brand has returned with the
announcement of a new FPGA-powered Commodore 64, the first official
Commodore hardware in decades.
Reconstructing and preserving Microsoft BASIC
Over the years, dedicated preservationists have reconstructed build
environments and verified that the historical source can still produce
byte-exact ROMs. Notably, Michael Steil documented and rebuilt the
original BASIC process for multiple targets. He has ported the code to
assemblers like cc65, making it possible to build and run on modern
systems.
This open-source release builds on that work, now with a clear, modern
license. It follows Microsoft’s earlier release of GW-BASIC, which
descended from the same lineage and shipped in the original IBM PC’s
ROM. That code evolved into QBASIC, and later Visual Basic, which
remains a supported language for Windows application development to
this day.
From the blinking cursor of 1977 to FPGA builds in 2025, BASIC still
fits in your hand. Now, for the first time, this influential 6502
version is truly yours to explore, modify, and share.