# MOS Technology 6502

[MOS Technology](https://www.edgepedia.org/zh/mos-technology) 6502 是一款8位微处理器，1975年由宾夕法尼亚州诺里斯敦的 MOS Technology 公司推出，设计工作由查克·佩德尔（Chuck Peddle）领导的一支团队完成，团队成员不久前刚离开摩托罗拉。它的定价为25美元，而同类处理器当时售价约250美元，因而成为苹果II、[Commodore PET](https://www.edgepedia.org/zh/commodore-pet)、雅达利2600、[Commodore 64](https://www.edgepedia.org/zh/commodore-64)、BBC Micro 和任天堂娱乐系统（NES）的中央处理器——或直接使用，或经由衍生型号。<sup>[1](https://www.allaboutcircuits.com/news/the-mos-6502-how-a-25-chip-sparked-a-computer-revolution/)</sup><sup> • </sup><sup>[2](https://www.computerhistory.org/siliconengine/microprocessor-integrates-cpu-function-onto-a-single-chip/)</sup>

| 关键事实 | 详情 |
|---|---|
| 类型 | 8位 NMOS 微处理器，16位地址总线，可寻址64 KB<sup>[3](https://lbaeza.neocities.org/mcs6500/6500_ch01.html)</sup><sup> • </sup><sup>[4](https://seneca-ictoer.github.io/SPO600/G-6502/6502)</sup> |
| 推出 | 1975年；1975年9月在旧金山 WESCON 展会上首次发售，售价25美元，而摩托罗拉6800和英特尔8080约为250美元<sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup> |
| 设计者 | 查克·佩德尔及一支团队，成员包括比尔·门施（Bill Mensch），另有约六名来自摩托罗拉6800项目的工程师加入<sup>[6](https://www.computerhistory.org/collections/catalog/102739968)</sup> |
| 指令集 | 56条独立指令，配合多种寻址方式<sup>[7](https://archive.computerhistory.org/resources/access/text/2019/12/102796714-05-01-acc.pdf)</sup> |
| 栈 | 固定在内存地址 $0100 至 $01FF 的256字节栈，由8位栈指针控制<sup>[8](https://www.nesdev.org/obelisk-6502-guide/instructions.html)</sup> |
| 主要系统 | 苹果II、Commodore PET（1 MHz 6502）、雅达利2600（6507变体）、Commodore 64（6510变体）、NES（RP2A03变体）<sup>[9](https://americanhistory.si.edu/collections/object/nmah_334374)</sup><sup> • </sup><sup>[10](https://www.tomshardware.com/video-games/retro-gaming/mad-scientist-visualizes-atari-2600-fetching-data-from-rom-for-mesmerizing-light-show-signal-propagation-through-the-circuits-animated)</sup><sup> • </sup><sup>[11](https://www.nesdev.org/wiki/2A03)</sup> |
| 后续系列 | CMOS 版65C02增加了指令并修复了问题；16位 W65C816 扩展了该系列<sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup> |

## 在摩托罗拉的起源

6502诞生于对摩托罗拉定价的不满。查克·佩德尔是摩托罗拉半导体产品部（位于凤凰城）的工程师，他在1974年初就主张公司应当为工业控制市场开发一款低成本的6800，摩托罗拉对此不感兴趣。1974年8月，佩德尔出走，加入位于宾夕法尼亚州[福吉谷](https://www.edgepedia.org/zh/valley-forge)附近的一家小型集成电路制造商 MOS Technology，带走了比尔·门施和大约六名摩托罗拉工程师。<sup>[13](https://www.embeddedrelated.com/showarticle/1453.php)</sup><sup> • </sup><sup>[6](https://www.computerhistory.org/collections/catalog/102739968)</sup>

团队的第一款产品是6501，它与[摩托罗拉6800](https://www.edgepedia.org/zh/motorola-6800)引脚兼容，可以使用同一个插座。摩托罗拉提起诉讼，6501在一项和解中撤出，而 MOS 则得以自由销售6502。佩德尔后来说，6501从来不是真正的目标：“6501其实并不是我在设计的东西。我在设计的是6502。”<sup>[14](https://www.nesdev.org/wiki/Visual6502wiki/6502_traces_of_6501)</sup><sup> • </sup><sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup> 据佩德尔的口述史，这场官司让 MOS 花掉约一百万美元，并耗费近一年时间应诉。<sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup>

## 25美元的发布

MOS 以25美元发布6502，而当时摩托罗拉和英特尔同类处理器的售价仍是250美元。由于展会不允许在场内销售，团队在1975年 WESCON 展会期间租下圣弗朗西斯酒店的麦克阿瑟套房，用罐子装着处理器在那里出售；最醒目的广告刊登在1975年9月8日的《电子工程时报》（*Electronic Engineering Times*）上。<sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup><sup> • </sup><sup>[15](https://www.c64.com/articles/spectacular_rise_and_fall_of_commodore_the.html)</sup>

低价靠的是制造良率。MOS 开发出一套在正式生产前修正掩模的工艺，公司报告芯片的成功率约为70%。这些工艺工作记录在产品经理特里·霍尔特（Terry Holdt）的档案中，核心是 N 沟道硅栅耗尽型负载工艺和一套50步的生产流程。<sup>[16](https://www.commodore.ca/text/chuck.htm)</sup><sup> • </sup><sup>[17](https://www.team6502.org/the-holdt-archives.html)</sup>

## 架构

6502是一款8位处理器，配16位地址总线，因此可寻址65,536字节内存。它可见的寄存器很少：一个8位累加器、X 和 Y 两个[变址寄存器](https://www.edgepedia.org/zh/index-register)、一个8位栈指针、一个处理器状态寄存器，以及一个16位程序计数器。<sup>[4](https://seneca-ictoer.github.io/SPO600/G-6502/6502)</sup><sup> • </sup><sup>[18](https://github.com/eteran/pretendo/blob/master/doc/cpu/6502.txt)</sup>

**零页。** 内存的前256字节，即地址 $0000 至 $00FF，称为零页。引用零页的指令只需一个地址字节而非两个，因此比绝对寻址更短、更快；MOS 最初的编程手册建议把常用数值放在这里。<sup>[19](https://lbaeza.neocities.org/mcs6500/6500_ch05.html)</sup>

**栈。** 栈占据 $0100 至 $01FF 这一固定页面，共256字节，因为栈指针只有8位宽。压入超过256字节就会回绕，覆盖较早的数值。

**寻址方式。** 除了隐含、立即、绝对和零页寻址之外，6502还提供变址寻址和两种间接寻址。索引间接寻址写作 (zp,X)，在取出有效地址之前先把 X 寄存器加到零页指针上；间接索引寻址写作 (zp),Y，先从零页取出一个16位指针，再加上 Y。间接索引寻址是遍历大型数组的主力，代价是当加法跨越页边界时多花一个周期。<sup>[20](https://github.com/spacerace/6502/blob/master/doc/6502-asm-doc/dr6502-docs/ADDRESS.DOC)</sup>

**十进制算术。** 算术单元在十进制标志位的控制下直接执行二进制编码十进制（BCD）的加减法，实时修正二进制结果，无需单独的十进制调整指令；手册称这是该系列的一个显著特点。<sup>[21](https://lbaeza.neocities.org/mcs6500/6500_ch02.html)</sup>

佩德尔把设计目标形容为“万能溶剂”：一套指令少、寻址好、便宜到可以用来做任何事的指令集。在“精简指令集”一词流行之前，他就称它为精简指令集机器。<sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup>

## 系列与变体

6502衍生出一个庞大的变体家族，在总线宽度、封装和功能上各有不同：<sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup>

- **6507**：精简版本，13位地址总线，只能寻址8 KB，用于雅达利2600。<sup>[22](https://cdn.hackaday.io/files/1646277043401568/Atari_2600_Programming_for_Newbies_Revised_Edition.pdf)</sup>
- **6510**：Commodore 64的处理器，在6502基础上集成一个8位 I/O 端口和一根 AEC 引脚，可将地址总线和数据总线置为高阻态；6510t、7501和8502是软件上完全相同的变体，只是引脚数和芯片工艺不同。<sup>[23](https://www.cpcwiki.eu/index.php/MOS_6502)</sup><sup> • </sup><sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup>
- **6509**：增加内部的分页支持。<sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup>
- **RP2A03**：NES 的变体，由理光（Ricoh）制造，十进制模式标志位被禁用，声音、手柄和 DMA 功能集成在同一块芯片上。<sup>[11](https://www.nesdev.org/wiki/2A03)</sup>
- **65C02**：首个 CMOS 变体，增加了指令、修复了问题，并把大多数未公开的操作码改为空操作。罗克韦尔（Rockwell）、GTE 和 WDC（西部设计中心）都生产过各自的版本；WDC 的 W65C02S 至今仍在生产，并增加了 STP 和 WAI 指令。<sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup><sup> • </sup><sup>[24](https://www.westerndesigncenter.com/wdc/AN-002_W65C02S_Replacements.php)</sup>
- **65CE02 和 4510**：Commodore 后期演进的型号，增加了指令和寄存器，4510还集成了 MMU。<sup>[12](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)</sup>

## 它驱动的系统

6502及其衍生型号出现在1970年代末和1980年代那些具有标志性意义的个人电脑与游戏机上。1977年1月发布的 Commodore PET 使用1 MHz 的6502；苹果II于1977年6月上市，配1 MHz 的6502和4 KB 内存；雅达利2600使用6507；Commodore 64使用6510；NES 使用 RP2A03。<sup>[9](https://americanhistory.si.edu/collections/object/nmah_334374)</sup><sup> • </sup><sup>[25](https://www.computinghistory.org.uk/det/492/Apple-II/)</sup><sup> • </sup><sup>[10](https://www.tomshardware.com/video-games/retro-gaming/mad-scientist-visualizes-atari-2600-fetching-data-from-rom-for-mesmerizing-light-show-signal-propagation-through-the-circuits-animated)</sup><sup> • </sup><sup>[11](https://www.nesdev.org/wiki/2A03)</sup> 就连 [Commodore 1541](https://www.edgepedia.org/zh/commodore-1541)软盘驱动器里也自带一颗1 MHz 的6502，配以内存、I/O 芯片和 ROM。<sup>[26](https://www.tomshardware.com/pc-components/cpus/commodore-64-floppy-drive-has-the-power-to-be-a-computer-bulky-1982-commodore-1541-5-25-inch-drive-packs-a-1-mhz-mos-6502-cpu)</sup>

Commodore 创始人杰克·特拉米尔（Jack Tramiel）在1977年夏天买下 MOS Technology，资金来自欧文·古尔德（Irving Gould）担保的三百万美元贷款，从而为 PET 及后来的机器确保了可靠的芯片供应。<sup>[27](https://www.commodore.ca/text/pet.htm)</sup>

## 软件

微软的6502 BASIC 由[比尔·盖茨](https://www.edgepedia.org/zh/bill-gates)（Bill Gates）和里克·韦兰（Ric Weiland）于1976年编写，成为这一平台的软件基础。Commodore 于1977年以一次性25,000美元获得授权，并将其随 PET、VIC-20和 Commodore 64出货；苹果将其改编为 Applesoft BASIC，用于苹果II。2025年9月，微软以 [MIT 许可证](https://www.edgepedia.org/zh/mit-license)发布了这份6,955行的汇编源代码。<sup>[28](https://www.tomshardware.com/software/bill-gates-48-year-old-microsoft-6502-basic-goes-open-source)</sup><sup> • </sup><sup>[29](https://www.techradar.com/pro/want-to-build-on-bill-gates-microsoft-open-sourced-the-original-code-written-by-the-company-founder-now-its-over-to-you)</sup>

## 遗产

[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)认为，6502作为6800架构的低成本变体，促成了苹果、雅达利、Commodore 等公司的个人电脑与游戏。佩德尔在2014年的口述史中称它是“我做过的最好的单个项目”。<sup>[2](https://www.computerhistory.org/siliconengine/microprocessor-integrates-cpu-function-onto-a-single-chip/)</sup><sup> • </sup><sup>[5](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)</sup> 这一架构通过 WDC 的 CMOS 产品仍在生产，爱好者们也仍在围绕原始指令集搭建基于6502的单板计算机。<sup>[24](https://www.westerndesigncenter.com/wdc/AN-002_W65C02S_Replacements.php)</sup>

## References

1. [The MOS 6502: How a $25 Chip Sparked a Computer Revolution, All About Circuits](https://www.allaboutcircuits.com/news/the-mos-6502-how-a-25-chip-sparked-a-computer-revolution/)
2. [1971: Microprocessor Integrates CPU Function onto a Single Chip, Computer History Museum](https://www.computerhistory.org/siliconengine/microprocessor-integrates-cpu-function-onto-a-single-chip/)
3. [MCS6500 Microcomputer Family Programming Manual, MOS Technology, January 1976](https://lbaeza.neocities.org/mcs6500/6500_ch01.html)
4. [6502, SPO600 Software Portability and Optimization](https://seneca-ictoer.github.io/SPO600/G-6502/6502)
5. [Oral History of Charles Ingerham "Chuck" Peddle, Computer History Museum, 2014](https://archive.computerhistory.org/resources/access/text/2014/08/102739939-05-01-acc.pdf)
6. [Mensch, Jr., Bill (William David) oral history, Computer History Museum](https://www.computerhistory.org/collections/catalog/102739968)
7. [Getting down to business with your microcomputer, Computer History Museum, 1979](https://archive.computerhistory.org/resources/access/text/2019/12/102796714-05-01-acc.pdf)
8. [6502 Instructions, NESdev Obelisk Guide](https://www.nesdev.org/obelisk-6502-guide/instructions.html)
9. [Commodore PET 2001 Microcomputer, National Museum of American History](https://americanhistory.si.edu/collections/object/nmah_334374)
10. [Mad scientist visualizes Atari 2600 fetching data from ROM, Tom's Hardware](https://www.tomshardware.com/video-games/retro-gaming/mad-scientist-visualizes-atari-2600-fetching-data-from-rom-for-mesmerizing-light-show-signal-propagation-through-the-circuits-animated)
11. [2A03, NESdev Wiki](https://www.nesdev.org/wiki/2A03)
12. [The new 6502 family implementation, MAME documentation](https://github.com/mamedev/mame/blob/master/docs/source/techspecs/m6502.rst)
13. [Development of the MOS Technology 6502: A Historical Perspective, Jason Sachs, Embedded Related](https://www.embeddedrelated.com/showarticle/1453.php)
14. [Visual6502wiki/6502 traces of 6501, NESdev Wiki](https://www.nesdev.org/wiki/Visual6502wiki/6502_traces_of_6501)
15. [The Spectacular Rise and Fall of Commodore, C64.com](https://www.c64.com/articles/spectacular_rise_and_fall_of_commodore_the.html)
16. [History of Chuck Peddle, Commodore.ca](https://www.commodore.ca/text/chuck.htm)
17. [The Holdt Archives, team6502.org](https://www.team6502.org/the-holdt-archives.html)
18. [6502 Registers, pretendo documentation](https://github.com/eteran/pretendo/blob/master/doc/cpu/6502.txt)
19. [MCS6500 Programming Manual, Chapter 5: Non-Indexing Addressing Techniques](https://lbaeza.neocities.org/mcs6500/6500_ch05.html)
20. [6502 Addressing Modes, ADDRESS.DOC](https://github.com/spacerace/6502/blob/master/doc/6502-asm-doc/dr6502-docs/ADDRESS.DOC)
21. [MCS6500 Programming Manual, Chapter 2: The Data Bus, Accumulator and Arithmetic Unit](https://lbaeza.neocities.org/mcs6500/6500_ch02.html)
22. [Atari 2600 Programming for Newbies, Revised Edition](https://cdn.hackaday.io/files/1646277043401568/Atari_2600_Programming_for_Newbies_Revised_Edition.pdf)
23. [MOS 6502, CPCWiki](https://www.cpcwiki.eu/index.php/MOS_6502)
24. [AN-002: Replacement Notes for Obsolete Versions of 6502 8-bit Microprocessors, Western Design Center](https://www.westerndesigncenter.com/wdc/AN-002_W65C02S_Replacements.php)
25. [Apple II, Computing History](https://www.computinghistory.org.uk/det/492/Apple-II/)
26. [Commodore 64 floppy drive has the power to be a computer, Tom's Hardware](https://www.tomshardware.com/pc-components/cpus/commodore-64-floppy-drive-has-the-power-to-be-a-computer-bulky-1982-commodore-1541-5-25-inch-drive-packs-a-1-mhz-mos-6502-cpu)
27. [The Amazing Commodore PET, Commodore.ca](https://www.commodore.ca/text/pet.htm)
28. [Bill Gates' 48-year-old Microsoft 6502 BASIC goes open source, Tom's Hardware](https://www.tomshardware.com/software/bill-gates-48-year-old-microsoft-6502-basic-goes-open-source)
29. [Microsoft open-sourced the original code written by the company founder, TechRadar](https://www.techradar.com/pro/want-to-build-on-bill-gates-microsoft-open-sourced-the-original-code-written-by-the-company-founder-now-its-over-to-you)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › 处理器与处理器工程 › 微处理器系列

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/mos-technology-6502

English original: https://www.edgepedia.org/mos-technology-6502
