LmCast :: Stay tuned in

Microsoft's 6502 BASIC is now Open Source (2025)

Recorded: May 24, 2026, 2:59 p.m.

Original Summarized

Microsoft Releases Historic 6502 BASIC | Microsoft Open Source Blog

Skip to content

Skip to main content

Microsoft

Open Source

Open Source

Open Source

Home

Get involved

Projects

Ecosystem

Our program

Jobs

Blog

More

All Microsoft

Global

Microsoft 365

Azure

Copilot

Windows

Surface

Xbox

Deals

Small Business

Support

Software
Software

Windows Apps

Outlook

OneDrive

Microsoft Teams

OneNote

Microsoft Edge

Moving from Skype to Teams

PCs & Devices
PCs & Devices

Computers

Shop Xbox

Accessories

VR & mixed reality

Certified Refurbished

Trade-in for cash

Entertainment
Entertainment

Xbox Game Pass Ultimate

PC Game Pass

Xbox games

PC games

Business
Business

Microsoft AI

Microsoft Security

Dynamics 365

Microsoft 365 for business

Microsoft Power Platform

Windows 365

Small Business

Digital Sovereignty

Developer & IT
Developer & IT

Azure

Microsoft Developer

Microsoft Learn

Support for AI marketplace apps

Microsoft Tech Community

Microsoft Marketplace

Software companies

Visual Studio

Other
Other

Microsoft Rewards

Free downloads & security

Education

Gift cards

Licensing

Unlocked stories

View Sitemap

Search
Search Open Source blog

No results

Cancel

Blog home

Project updates

Search the site

Search

Project updates

September 3, 2025

2 min read

Bringing BASIC back: Microsoft’s 6502 BASIC is now Open Source

By
Scott Hanselman, 

Stacey Haffner

Share

Content type

Project updates

Topic

IT Trends

Programming Languages

Tools

Tags

GitHub

Windows

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.

Start exploring the newly open-sourced Microsoft 6502 BASIC code

Listing of Altair BASIC on display at the New Mexico Museum of Natural History and Science.

“Altair Basic Sign” by Swtpc6800, public domain via Wikimedia Commons.

Scott Hanselman

VP, Member of Technical Staff, Microsoft/GitHub

Scott Hanselman is a VP, Member of Technical Staff, Microsoft/GitHub working on Open Source, Windows, and mentoring early in career engineers as we navigate this AI augmented moment. As a programmer, teacher, and speaker for 30+ years, he’s worked on .NET, Azure, and Developer Tools. He hosts Hanselminutes, blogs at hanselman.com, and champions open source, inclusion, and human-centered tech.

See more articles from this author

Stacey Haffner

Director, Microsoft OSPO

Stacey Haffner is the Director of Microsoft's OSPO and a developer advocate, where she focuses on open source, AI, and the future of developer tools. For over a decade she's been a product leader, builder, and teacher, working across startups and big tech on .NET, Xbox, Unity, and much more. She's also an independent game developer and teaches on YouTube at youtube.com/@staceyhaffner.

See more articles from this author

Related posts

May 19

4 min read

Introducing STATE-Bench: A benchmark for AI agent memory 

STATE-Bench is an open-source, memory-agnostic benchmark freely available to agent developers, researchers, and platform teams.

May 18

7 min read

From open source to agentic systems: Microsoft at Open Source Summit North America 2026 

Open source is the foundation for AI and, as AI workloads scale, developers need that foundation to be more secure, more predictable, and easier to build apps and agents.

May 14

6 min read

Conductor: Deterministic orchestration for multi-agent AI workflows 

Conductor is an open-source CLI (MIT license, Microsoft org) that takes a different approach: you define your multi-agent workflows in YAML, and the routing between agents is deterministic. Jinja2 templates and expression evaluation handle conditions and branching. The orchestration layer consumes zero tokens. The structure is fixed at definition time—and that's the point.

Apr 28

2 min read

Continuing the story of early DOS development 

In 2018 we (re)-open-sourced MS‑DOS 1.25 and 2.11, and more recently in 2024 we were able to make the source for MS‑DOS 4.0 available to the public as well. Today, on 86-DOS 1.00’s 45th anniversary, we’re continuing that tradition with the earliest DOS source code discovered to date.

Microsoft Open Source

Open Source enables Microsoft products and services to bring choice, technology and community to our customers.

Explore projects

Connect with us on social

What's new

Surface Pro

Surface Laptop

Surface Laptop Studio 2

Copilot for organizations

Copilot for personal use

AI in Windows

Explore Microsoft products

Windows 11 apps

Microsoft Store

Account profile

Download Center

Microsoft Store support

Returns

Order tracking

Certified Refurbished

Microsoft Store Promise

Flexible Payments

Education

Microsoft in education

Devices for education

Microsoft Teams for Education

Microsoft 365 Education

How to buy for your school

Educator training and development

Deals for students and parents

AI for education

Business

Microsoft AI

Microsoft Security

Dynamics 365

Microsoft 365

Microsoft Power Platform

Microsoft Teams

Microsoft 365 Copilot

Small Business

Developer & IT

Azure

Microsoft Developer

Microsoft Learn

Support for AI marketplace apps

Microsoft Tech Community

Microsoft Marketplace

Software companies

Visual Studio

Company

Careers

About Microsoft

Company news

Privacy at Microsoft

Investors

Diversity and inclusion

Accessibility

Sustainability

English (United States)

Your Privacy Choices Opt-Out Icon

Your Privacy Choices

Your Privacy Choices Opt-Out Icon

Your Privacy Choices

Consumer Health Privacy

Sitemap

Contact Microsoft

Privacy

Manage cookies

Terms of use

Trademarks

Safety & eco

Recycling

About our ads

© Microsoft 2026

Microsoft has officially open-sourced the historic Microsoft 6502 BASIC code, making this code publicly accessible for exploration, modification, and sharing. This release addresses a long-standing presence of fragmented and unofficial copies of the code that had circulated in online communities, museum archives, and among hobbyists. The development of Microsoft BASIC began in 1975 as the company's initial product, an interpreter for the Intel 8080 written by Bill Gates and Paul Allen for the Altair 8800, which was later adapted to run on various 8-bit CPUs, including the MOS 6502, Motorola 6800, and 6809. The 6502 port was finalized in 1976 by Bill Gates and Ric Weiland. This legacy code formed the basis of Commodore BASIC in the PET, VIC-20, and the iconic Commodore 64, establishing Microsoft BASIC as a foundational element in early home computing.

The specific version being released is labeled 1.1 and contains refinements to the garbage collector that was jointly implemented in 1978 by Commodore engineer John Feagans and Bill Gates. This specific iteration also includes a playful Easter egg, hidden in the labels STORDO and STORD0, which Bill Gates confirmed in 2010. This version corresponds to the code that shipped as the PET’s "BASIC V2" and represents a significant historical artifact from 1978. The underlying 6502 CPU, known for its simplicity and efficiency, remains highly influential, powering numerous systems including the Apple II, the Commodore 8-bit line, the Atari 2600, and the Nintendo Entertainment System.

The significance of this open-source release is amplified by the ongoing interest in retrocomputing, which is currently thriving with projects involving FPGA-based recreations and emulator development. Dedicated preservationists have contributed to reconstructing build environments and verifying that the historical source can generate byte-exact ROMs. For instance, Michael Steil documented and rebuilt the original BASIC process for multiple targets, porting the code to modern assemblers such as cc65, enabling its execution on contemporary systems. This open-source release builds upon earlier milestones, tracing a lineage that includes the earlier release of GW-BASIC, which derived from the same source and was shipped in the original IBM PC ROM, eventually evolving into QBASIC and Visual Basic, which remain relevant for Windows application development. This action aligns with Microsoft's broader commitment to open source, which serves as a foundation for the security and predictability required for scaling artificial intelligence workloads and developing agentic systems.