# 微软 BASIC

**微软 BASIC**（Microsoft BASIC）是微软公司——当时还是合伙制企业 Micro-Soft——自1975年起开发的一系列 BASIC 解释器，最早的是为基于[英特尔 8080](https://www.edgepedia.org/zh/intel-8080) 的 MITS Altair 8800 编写的 Altair BASIC。它是该公司的第一款产品，此后经过向 6502、Z80 及其他处理器的移植，它成为20世纪70至80年代大多数家用电脑的内置编程语言，包括 Apple II（以 Applesoft 之名）、[Commodore PET](https://www.edgepedia.org/zh/commodore-pet) 及后续 Commodore 机型、TRS-80（以 Level II BASIC 之名）和 IBM PC。<sup>[1](https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/)</sup><sup> • </sup><sup>[2](https://www.geschichte-der-informatik.de/articles/basic_the_language_that_democratized_programming/)</sup>

| 关键事实 | 详情 |
|---|---|
| 首款产品 | Altair BASIC，一个为英特尔 8080 编写的 BASIC 解释器，由比尔·盖茨和保罗·艾伦为 Altair 8800 编写；1975年2月完成并售予 MITS<sup>[1](https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/)</sup><sup> • </sup><sup>[3](https://learn.microsoft.com/en-us/shows/history/history-of-microsoft-1975)</sup> |
| 开发方式 | 编写时无法接触 Altair 实机；在 DEC PDP-10 分时计算机上使用艾伦编写的 8080 模拟器进行调试<sup>[4](https://www.computerhistory.org/revolution/artifact/312/1144)</sup> |
| 数学包 | 蒙特·戴维多夫编写了浮点数学例程；源码中一条注释将非运行时代码归功于艾伦，运行时归功于盖茨，数学包归功于戴维多夫<sup>[5](https://www.theregister.com/software/2001/05/13/raiders-of-the-lost-altair-basic-source-code/720050)</sup> |
| 零售定价 | MITS 以500美元出售 Altair BASIC，与 Altair 硬件捆绑时降至75美元<sup>[6](https://time.com/69316/basic/)</sup> |
| 6502 移植 | 1976年中由理查德·韦兰、比尔·盖茨和蒙特·戴维多夫移植到 MOS 6502；授权给 Commodore（1976年10月），并以10,500美元固定费用授权给 Apple（1977年8月），成为 Applesoft BASIC<sup>[7](https://www.apple2history.org/history/ah16/)</sup> |
| IBM PC 版本 | IBM PC 系列附带四种 MS BASIC 解释器：Cassette BASIC、Disk BASIC、Advanced BASIC 和 Cartridge BASIC；GW-BASIC 于1983年问世<sup>[8](https://uwaterloo.ca/computer-museum/exhibits/basic)</sup><sup> • </sup><sup>[9](https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/)</sup> |
| 开源 | GW-BASIC 源码于2018年以 MIT 许可证发布；微软 6502 版 BASIC 1.1 于2025年开源<sup>[9](https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/)</sup><sup> • </sup><sup>[10](https://github.com/Microsoft/GW-BASIC/blob/master/LICENSE)</sup><sup> • </sup><sup>[1](https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/)</sup> |

## 起源：Altair BASIC，1975年

1975年1月号的《大众电子》（*Popular Electronics*）将 MITS Altair 8800 放上封面，这篇文章启发了[保罗·艾伦](https://www.edgepedia.org/zh/paul-allen)和[比尔·盖茨](https://www.edgepedia.org/zh/bill-gates)为该机器开发一种 BASIC 语言。<sup>[3](https://learn.microsoft.com/en-us/shows/history/history-of-microsoft-1975)</sup> 他们致电 Altair 的制造商——[微仪器与遥测系统公司](https://www.edgepedia.org/zh/micro-instrumentation-and-telemetry-systems)（Micro Instrumentation and Telemetry Systems），向首席执行官埃德·罗伯茨承诺他们已有软件能让消费者控制该硬件，尽管他们尚未写出代码。<sup>[11](https://apnews.com/article/dd33373215f6d22ccf4faa2913f6075f)</sup> 他们基于1964年在达特茅斯学院开发的语言 BASIC 进行构建，并且必须在没有机器原型的情况下让它在那台即将问世的 Altair 上运行。<sup>[11](https://apnews.com/article/dd33373215f6d22ccf4faa2913f6075f)</sup>

艾伦和盖茨在编写解释器时无法接触 Altair 实机。艾伦在一台 DEC PDP-10 分时计算机上构建了英特尔 8080 的模拟器，程序就在那里调试。<sup>[4](https://www.computerhistory.org/revolution/artifact/312/1144)</sup> 蒙特·戴维多夫有一天与他们共进午餐，说他会写浮点包，于是编写了数学例程。<sup>[12](https://americanhistory.si.edu/comphist/gates.htm)</sup> 艾伦在与盖茨飞往阿尔伯克基向 MITS 的埃德·罗伯茨演示的途中完成了程序。<sup>[13](https://www.computerhistory.org/revolution/personal-computers/17/312/1142)</sup>

微软自己的历史时间线记录了这一节奏：Altair BASIC 于1975年2月1日完成并售予微软的第一个客户 MITS，被称为个人计算机的第一个计算机语言程序；2.0版于1975年7月1日以4K和8K版本发货；与 MITS 的许可协议于1975年7月22日签署，当时微软这个名字还不存在。盖茨在1975年7月29日给艾伦的一封信中首次使用了“Micro-soft”这个名字。该合伙企业1975年年终销售额总计16,005美元。<sup>[3](https://learn.microsoft.com/en-us/shows/history/history-of-microsoft-1975)</sup>

## 盗版与《致爱好者的公开信》

MITS 以500美元出售 Altair BASIC，购买 Altair 硬件时折扣至75美元，但众多早期微型计算机用户复制了它，以至于盖茨写了一封后来成为传奇的公开信，哀叹 Micro-Soft 知识产权被盗。<sup>[6](https://time.com/69316/basic/)</sup> 《致爱好者的公开信》（“An Open Letter to Hobbyists”）日期为1976年2月3日，发表在 MITS 的通讯《计算机笔记》（*Computer Notes*）和家酿计算机俱乐部通讯等场所。<sup>[14](https://ipmall.law.unh.edu/sites/default/files/hosted_resources/IDEA/54.1ideaBook.pdf)</sup> 信中描述了家酿计算机俱乐部成员如何获得 Altair BASIC 的一个预发布版本，并用高速纸带穿孔机复制，产生了50份拷贝。<sup>[15](https://www.tomshardware.com/software/most-of-you-steal-your-software-bill-gates-complained-about-software-piracy-50-years-ago-and-was-openly-irked-by-communitys-altair-basic-theft)</sup> 这一事件影响了微软此后对 BASIC 的授权方式：按机器授权、源代码受保护、收取版税。<sup>[16](https://evilgeniuslabs.ca/books/visual-basic-history/origins/vb-history-the-basic-dynasty-before-the-name)</sup>

与 MITS 的关系本身也恶化了。1977年4月20日，盖茨和艾伦致函罗伯茨，通知他二人将终止许可协议，理由是 MITS 未能交代版税支付情况、未能“尽最大努力”推广 BASIC、未能与第三方签订保密协议；合同将争议提交有约束力的仲裁。<sup>[17](https://historylink.org/File/21161)</sup>

## 6502 移植与1977年的家用电脑

1975年和1976年，微软为当时几乎所有可用的微处理器生产了 BASIC 解释器，希望将其 BASIC 授权给围绕每种芯片制造计算机的厂商。1976年中，理查德·韦兰、比尔·盖茨和蒙特·戴维多夫将英特尔 8080 BASIC 移植到当时新出的 6502 微处理器上，使用的是微软第一位员工马克·麦克唐纳编写的 6800 模拟器，因为 6800 的指令集与 6502 非常相似。<sup>[7](https://www.apple2history.org/history/ah16/)</sup>

这次移植很快找到了买家。到1976年10月，微软已签订合同将 6502 解释器装入 Commodore PET；尽管 PET 常被认为是第一台将 BASIC 内置于 ROM 而非从纸带、磁盘或盒式磁带加载的计算机，但 HP 9830A 早在1972年就已将 BASIC 装入 ROM 出货。<sup>[7](https://www.apple2history.org/history/ah16/)</sup><sup> • </sup><sup>[20](https://vtda.org/pubs/HP_Journal/HP_Journal_1972-12.pdf)</sup> Apple 来得较晚：Apple II 的用户想要[史蒂夫·沃兹尼亚克](https://www.edgepedia.org/zh/steve-wozniak)的 Integer BASIC 所缺乏的浮点运算，1977年8月 Apple 向微软支付10,500美元，作为微软 6502 BASIC 1.1版固定许可费的前一半。Apple 的兰迪·威金顿添加了 Apple II 的图形命令，产生了 Applesoft BASIC，取代了 Apple II ROM 中的 Integer BASIC。<sup>[7](https://www.apple2history.org/history/ah16/)</sup><sup> • </sup><sup>[2](https://www.geschichte-der-informatik.de/articles/basic_the_language_that_democratized_programming/)</sup>

1977年那一波消费级机器——Apple II、Commodore PET 2001 和 Radio Shack TRS-80——都将 BASIC 作为标志性功能，大约一年内三者都内置了微软的 BASIC。Radio Shack 最初的 Level I BASIC 基于 Palo Alto Tiny BASIC；该公司取得微软 BASIC 的使用许可，将其作为 Level II BASIC 用于后续机器。盖茨认为共享解释器有一个实际好处：由于微软内置的兼容性，程序可以在这些机器之间迁移。<sup>[6](https://time.com/69316/basic/)</sup><sup> • </sup><sup>[12](https://americanhistory.si.edu/comphist/gates.htm)</sup><sup> • </sup><sup>[18](https://www.hp9845.net/9845/history/comparison/)</sup>

## 扩散与方言

整个20世纪70年代末和80年代初，微软 BASIC 传播到数十个平台：Altair、TRS-80、Apple II（Applesoft）、Commodore 机器（CBM BASIC）、MSX 计算机等。<sup>[2](https://www.geschichte-der-informatik.de/articles/basic_the_language_that_democratized_programming/)</sup> 直到80年代初，BASIC 一直是微软最有价值的产品，尽管公司也在为其他语言和处理器创建解释器。<sup>[13](https://www.computerhistory.org/revolution/personal-computers/17/312/1142)</sup>

这种扩散并不整齐划一。尽管大多数家用电脑围绕 [Zilog Z80](https://www.edgepedia.org/zh/zilog-z80) 或 MOS 6502 构建，且都运行 BASIC，但每台机器都有自己的方言，针对图形、内存和存储的命令有机器特定的改动；杂志刊登“转换说明栏”，告诉读者如何在流行计算机之间改编程序清单。<sup>[19](https://spectrum.ieee.org/the-golden-age-of-basic)</sup> 作为对微软 BASIC 发布及该语言大规模盗版的回应，Tiny BASIC——一种小到可装入4 KB或更少内存的免费语言——于1975年发布。<sup>[8](https://uwaterloo.ca/computer-museum/exhibits/basic)</sup>

## IBM PC 与 GW-BASIC

IBM 于1981年发布的 PC 在 ROM 中附带了微软 BASIC。IBM 在 PC 的生命周期内发布了四个版本的 MS BASIC 解释器：Cassette BASIC、Disk BASIC、Advanced BASIC 和 Cartridge BASIC，外加1982年随 PC DOS 1.10 发布的 MS BASIC 编译器。<sup>[8](https://uwaterloo.ca/computer-museum/exhibits/basic)</sup> 1983年，微软为 [IBM PC XT](https://www.edgepedia.org/zh/ibm-pc-xt) 及兼容机发布了 GW-BASIC；GW-BASIC 与 Cassette BASIC 同出一源，后者是原版 IBM PC 内置在 ROM 中的。<sup>[9](https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/)</sup><sup> • </sup><sup>[1](https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/)</sup>

## 保存与开源

微软已将这一谱系的许多部分作为开源发布。GW-BASIC 源码于2018年以 [MIT 许可证](https://www.edgepedia.org/zh/mit-license)出现在 GitHub 上，此前在 MS-DOS 1.25和2.0开源之后有人提出请求。<sup>[9](https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/)</sup><sup> • </sup><sup>[10](https://github.com/Microsoft/GW-BASIC/blob/master/LICENSE)</sup> 最初的4K Altair BASIC 源码清单保存在哈佛大学的普西图书馆，是盖茨的前导师哈里·刘易斯在一个文件柜后面偶然发现的；源码中一条注释将非运行时代码归功于艾伦，运行时归功于盖茨，数学包归功于戴维多夫。<sup>[5](https://www.theregister.com/software/2001/05/13/raiders-of-the-lost-altair-basic-source-code/720050)</sup>

## References

1. [Bringing BASIC back: Microsoft's 6502 BASIC is now Open Source, Microsoft Open Source Blog (2025)](https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/)
2. [BASIC: The Language That Democratized Programming, Geschichte der Informatik](https://www.geschichte-der-informatik.de/articles/basic_the_language_that_democratized_programming/)
3. [The History of Microsoft – 1975, Microsoft Learn](https://learn.microsoft.com/en-us/shows/history/history-of-microsoft-1975)
4. [Paul Allen and Bill Gates, Computer History Museum Revolution](https://www.computerhistory.org/revolution/artifact/312/1144)
5. [Raiders of the Lost Altair BASIC Source Code, The Register (2001)](https://www.theregister.com/software/2001/05/13/raiders-of-the-lost-altair-basic-source-code/720050)
6. [Fifty Years of BASIC, the Programming Language That Made Computers Personal, TIME](https://time.com/69316/basic/)
7. [16-Languages, Apple II History](https://www.apple2history.org/history/ah16/)
8. [BASIC, University of Waterloo Computer Museum](https://uwaterloo.ca/computer-museum/exhibits/basic)
9. [Microsoft Open-Sources GW-BASIC, Windows Command Line blog (2018)](https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/)
10. [GW-BASIC LICENSE, microsoft/GW-BASIC on GitHub](https://github.com/Microsoft/GW-BASIC/blob/master/LICENSE)
11. [Microsoft founder Bill Gates reflects upon a 50-year-old computer code that reshaped technology, AP News](https://apnews.com/article/dd33373215f6d22ccf4faa2913f6075f)
12. [Interview with Bill Gates, Smithsonian National Museum of American History](https://americanhistory.si.edu/comphist/gates.htm)
13. [Altair BASIC Interpreter Source Tape, Computer History Museum Revolution](https://www.computerhistory.org/revolution/personal-computers/17/312/1142)
14. [Final Print, IDEA law journal (UNH ipMall), referencing Open Letter to Hobbyists publications](https://ipmall.law.unh.edu/sites/default/files/hosted_resources/IDEA/54.1ideaBook.pdf)
15. ['Most of you steal your software': Bill Gates complained about software piracy 50 years ago, Tom's Hardware](https://www.tomshardware.com/software/most-of-you-steal-your-software-bill-gates-complained-about-software-piracy-50-years-ago-and-was-openly-irked-by-communitys-altair-basic-theft)
16. [Gates, Allen, and the Microsoft BASIC dynasty (1975–1991), A History of Visual Basic](https://evilgeniuslabs.ca/books/visual-basic-history/origins/vb-history-the-basic-dynasty-before-the-name)
17. [Microsoft moves from New Mexico to Bellevue on January 1, 1979, HistoryLink.org](https://historylink.org/File/21161)
18. [Comparison HP 9845 vs. Apple II and Commodore PET 2001, hp9845.net](https://www.hp9845.net/9845/history/comparison/)
19. [The Golden Age of Basic, IEEE Spectrum](https://spectrum.ieee.org/the-golden-age-of-basic)
20. [HP Journal 1972 12.pdf, vtda.org](https://vtda.org/pubs/HP_Journal/HP_Journal_1972-12.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Compilers, interpreters, and toolchains › Interpreters and language runtimes

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/microsoft-basic

English original: https://www.edgepedia.org/microsoft-basic
