Microsoft releases 6502 BASIC as open source

  • Microsoft releases 6502 BASIC under the MIT license on GitHub, with full code and historical documentation.
  • 1976 interpreter for the MOS 6502 CPU, basis of Applesoft BASIC and present in devices such as PET, VIC-20 and C64.
  • Repository with 6.955 lines of assembler, fixes, conditional compilation, and a hidden easter egg.
  • Boosting preservation of retro and FPGA projects with a clear and modern license.

6502 Microprocessor and BASIC

After almost five decades since its premiere, Microsoft has made 6502 BASIC available to everyone as open source software., with the source code officially hosted in a public repository. This is the first time the historic interpreter has been published in full by the Redmond company, with explicit permission to explore and reuse it.

For years they circulated partial copies and unofficial versions, but now the project is being released with a modern and transparent license. The move opens the door for developers, educators, and retrocomputing enthusiasts examine how one of the pillars of personal software was built and adapt it to new contexts.

What is 6502 BASIC and where does it come from?

History of the 6502 BASIC

The full name of the project is Microsoft BASIC Version 1.1 for the 6502 microprocessorIt was born in 1976 as a port of Microsoft's first commercial product, BASIC for the Intel 8080 of the Altair 8800, to the then-thriving MOS 6502 architecture.

Key figures from the company participated in that effort, with Bill Gates and Ric Weiland involved in adapting the interpreter to the 6502. The result was a compact and versatile BASIC, prepared to run on computers with very limited resources.

Beyond running simple programs, the 6502 BASIC offered Floating-point arithmetic, mathematical functions and operators, string and array handling, and input/output operations. This combination made it a de facto standard for many machines of its time.

Impact and adoption in the 1970s and 1980s

Classic computers with 6502

In 1977, Commodore licensed the 6502 BASIC for $25.000, ensuring its presence in the PET and, later, in the popular VIC-20 and the legendary Commodore 64. That decision marked an entire generation of users who learned to program with these machines.

Microsoft's work also served as a basis for Applesoft BASIC, the interpreter used on the Apple II that replaced Steve Wozniak's Integer BASIC. With this, the 6502 ecosystem consolidated a common language in both educational and domestic environments.

Processor MOS Technology 6502 It was present in a multitude of consumer devices, from personal computers to consoles: the Atari 2600, Atari 800XL and the NES benefited from its low cost and good performance, helping to keep interest in its software and tools alive.

What exactly has Microsoft released?

6502 BASIC source code on GitHub

The company has uploaded to GitHub the Complete assembler source code (6.955 lines) of version 1.1 of the interpreter, accompanied by historical notes and technical considerations. Corrections to the original code are included to fine-tune the fidelity of the generated ROMs.

The source tree incorporates conditional compilation for multiple pioneer systems, such as the Apple II, Commodore PET, Ohio Scientific or the MOS Technology KIM-1, making it easy to play platform-specific versions of the interpreter.

Those who browse the repository will even find a small historical nod: an Easter egg associated with the STORDO tags, attributed to Bill Gates. Beyond the anecdote, the real value lies in being able to study, line by line, how this BASIC was built.

All material is published under MIT license, allowing it to be used, modified, and redistributed with very few restrictions. This release aligns with other recent open source efforts by Microsoft and provides a clear legal framework for current projects.

Why it matters today: Preservation, FPGAs, and learning

Retro projects with 6502 BASIC

The official publication gives support to a community that has been around for years rebuilding build environments and verifying ROMs byte by byteWith the proper license, this volunteer work gains continuity and visibility for those who wish to replicate or expand it.

Furthermore, the rise of FPGA implementations is bringing classic hardware to new audiences; projects like the programmable board for education with 6502 CPU They facilitate access. Replicating the behavior of the original machines in a programmable matrix is ​​more faithful than emulating them through software, according to many enthusiasts, and having the original interpreter facilitates this fidelity.

For teaching and dissemination, the value is twofold: on the one hand, allows you to study low-level programming techniques in a real historical context; on the other hand, it offers an accessible environment for new programmers to understand how a high-level language translates into machine behavior.

Anyone who wants to try it can go directly to the official repository: there are the assembler code, compilation instructions, and references to supported platformsIt's a great opportunity to experiment with real hardware, emulators, or faithful recreation projects.

With this opening, Microsoft rescues a foundational piece of personal computing and places it in the hands of the community with sufficient tools, permissions and context to keep learning and creating. The 6502 BASIC, the protagonist of one era, is ready to inspire the next.

CERBERUS
Related article:
CERBERUS 2100: incredible programmable board for education with legendary Z80 and 6502 CPUs