PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

So BASIC: Bill Gates Releases Microsoft's Original Source Code

In the 1970s, Gates and his Microsoft co-founder, Paul Allen, used a computer in Harvard's lab to compose what he calls the 'coolest code I've written.' It's now public for the first time.

 & Emily Forlini Senior Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS
(Credit: Gates Notes)

Ahead of Microsoft's 50th anniversary this week, co-founder Bill Gates has released the company's original source code.

Gates and Paul Allen wrote it in BASIC using a PDP-10 mainframe at Harvard. Gates has now published a 157-page PDF of scanned, yellowed pages for all to see. "That code remains the coolest code I've written to this day," Gates says on his blog. "I still get a kick out of seeing it, even all these years later."

Original Microsoft code
(Credit: Bill Gates)

Gates and Allen were inspired to write the code by a 1975 issue of Popular Electronics, which featured an Altair 8800. (PC Magazine wasn't founded until 1982, or surely that would have inspired him, too!) "When Paul and I saw that cover, we knew two things: the PC revolution was imminent, and we wanted to get in on the ground floor," Gates writes.

The two wrote a letter to the company that made the personal computer, MITS, claiming they had a version of BASIC that could run on it. That was not true, so they had to build it themselves.

The computer could not "speak" BASIC, so they created a BASIC interpreter to translate the code into something it could understand and act on. Another problem was they didn't have the Intel 8080 chip the Altair ran on. So, Allen wrote a program to simulate it on the PDP-10. They worked for two months on it, alongside a third friend, Monte Davidoff.

Gates charts the origins of Altair BASIC in more detail in his new book, Source Code, which he discussed in an interview with our editor-in-chief earlier this year.

"Before Office, Windows 95, or Xbox, Microsoft began with this code," a Microsoft spokesperson tells us.

You can't do much with the PDF released by Gates; it's even too "basic" for ChatGPT, which couldn't understand the document when we uploaded it. "No text could be extracted from this file," it said. It's more of a nostalgic look back at Microsoft's humble beginnings. As The Register notes, however, an annotated disassembly of Altair BASIC 3.2 is available on GitHub.

About Our Expert

Emily Forlini

Emily Forlini

Senior Reporter

My Experience

As a news and features writer at PCMag, I cover the biggest tech trends that shape the way we live and work. I specialize in on-the-ground reporting, uncovering stories from the people who are at the center of change—whether that’s the CEO of a high-valued startup or an everyday person taking on Big Tech. I also cover daily tech news and breaking stories, contextualizing them so you get the full picture.

I came to journalism from a previous career working in Big Tech on the West Coast. That experience gave me an up-close view of how software works and how business strategies shift over time. Now that I have my master's in journalism from Northwestern University, I couple my insider knowledge and reporting chops to help answer the big question: Where is this all going?

My Expertise

I'm the expert at PCMag for on-the-ground feature reporting and trending tech news, with a particular focus on electric vehicles and AI. I've published hundreds of articles and am also a podcast host, a bi-weekly tech correspondent for CBS News, a panel speaker and moderator, and a frequent contributor to a range of news and radio channels around the country.

The Technology I Use

All the latest from Apple and Microsoft, but I'll never give up my wired headphones! 

Read full bio