Microsoft Open-Sources 6502 BASIC, the Code Atari Licensed in 1978
On 3 September 2025 Microsoft published the assembly source of BASIC M6502 8K Version 1.1 on GitHub (microsoft/BASIC-M6502) under the MIT licence. A post on the Microsoft Open Source Blog announced it. Fragments and unofficial copies had circulated for years, but this is the first official release under an open-source licence.
What was released
The source dates from 1976–78. Microsoft's post says Bill Gates and Ric Weiland completed the 6502 port in 1976, and Commodore licensed it in 1977. Version 1.1 includes garbage-collector fixes worked out in 1978 by Commodore engineer John Feagans with Gates, and it is the version that became the PET's "BASIC V2". The same source assembles for several machines, chosen with a REALIO setting: the Apple II, the Commodore PET, Ohio Scientific, the KIM-1, and a PDP-10 simulation used during development. The repository's commits are back-dated to 1978, so GitHub shows the files as 48 years old. That detail amused the AtariAge thread.
The Atari connection
The Atari isn't one of the build targets, which AtariAge readers noticed straight away. As others pointed out, this source predates the Atari 400/800. Atari's history with this BASIC still runs deep. In early 1978, while the 400 and 800 were still the "Colleen" and "Candy" prototypes, Atari acquired the right to port Microsoft BASIC M6502 8K Version to them. Consultant David Gjerdrum of PRODATA was hired to do the port. It was shown or promised as "Atari Disk BASIC" in early 1979 but cancelled that winter or spring, and Shepardson Microsystems' new design became Atari BASIC. Microsoft's BASIC came back later as a separate product, Atari Microsoft BASIC, programmed at Microsoft by Ric Weiland and released around early 1982, followed by the cartridge-based Microsoft BASIC II in 1983.
So the newly released code is a close relative of the BASIC the Atari nearly shipped with. It is not the code Atari later sold.
Why it matters
Most of the source was already known: a copy surfaced around a decade earlier, and Michael Steil documented it and rebuilt it for many targets (his msbasic project builds with cc65). The official release adds a clear licence. Forum members expect it to help ongoing disassembly work. As one put it, "There's no reason Atari can't be added". Someone could now legally build a Microsoft-dialect BASIC for the Atari from the original source, or compare it with disassemblies of Atari Microsoft BASIC.
Where to get it
The source and a README describing the platform switches are at github.com/microsoft/BASIC-M6502. To build and run this BASIC with modern tools, see Michael Steil's msbasic repository (github.com/mist64/msbasic), which uses the cc65 assembler, and his write-up on pagetable.com.
Credits
- AtariAge — Microsoft's 6502 BASIC is now Open Source — AtariAge forum members
- Microsoft Open Source Blog — Bringing BASIC back: Microsoft's 6502 BASIC is now Open Source — Microsoft Open Source Blog
- GitHub — microsoft/BASIC-M6502 (README) — GitHub project authors
- comp.sys.atari.8bit FAQ (Michael Current) — Atari history timeline — Michael Current (comp.sys.atari.8bit FAQ)
