Microprocessors, Part 2 Codexery

WDC 65C816

16-bit CPU for Apple IIGS and Super NES.

WDC 65C816

The W65C816S, also known as the 65C816 or 65816, is a 16-bit microprocessor from the Western Design Center (WDC). Released in 1985, it is a more powerful version of WDC’s 65C02 8-bit CPU, which itself was a CMOS upgrade of the classic MOS Technology 6502. This chip powered the Apple IIGS and, in a modified form, the Super Nintendo Entertainment System.

The “65” in its name refers to its ability to run in a 65C02-compatible mode, while “816” indicates that its registers can be set to either 8-bit or 16-bit sizes. Beyond larger registers, the W65C816S can address memory using 24 bits, allowing access to up to 16 megabytes of RAM. It also includes an expanded instruction set, a 16-bit stack pointer, and new electrical signals for better system hardware management.

When first powered on, the processor starts in “emulation mode,” acting almost exactly like a 65C02. A two-instruction sequence switches it to “native mode,” enabling all its advanced features while still maintaining broad compatibility with most 65C02 software. Unlike the 40-pin PDIP version of the 65C02—which can directly replace its NMOS predecessor—the PDIP40 W65C816S is not pin-compatible with any other 6502-family CPU.

The W65C802 (or 65802) is fully software-compatible with the 65C816 and is also electrically compatible with the 6502 and 65C02, making it a drop-in replacement for many systems using those older chips. However, because the W65C802 has fewer pins and does not use address multiplexing, it cannot output a full 24-bit address, limiting it to a 64 KB address space. The W65C802 is no longer in production.

**History**

In 1981, WDC founder Bill Mensch began work on the 65C02 with partners Rockwell Semiconductor and Synertek. The main goal was to move the 6502 from NMOS to CMOS, cutting power consumption to between one-tenth and one-twentieth at any given clock speed, while also supporting higher clock speeds. The 65C02 fixed bugs in the original NMOS 6502 (such as the well-known JMP (<addr>) issue) and added new instructions and addressing modes.

Development of the W65C816S started in 1982 after Mensch consulted with Apple about a new Apple II model with improved graphics and sound. Apple wanted a CPU that was software-compatible with the 6502 but could address more memory and handle 16-bit data loads and stores.

Quick Facts

Slowest
1
Slow-Unit
MHz
Fastest
14
Arch
6502
Numinstructions
92
Data-Width
8 (external) / 16 (internal)
Address-Width
24 bits
Variant
W65C802 (pin-compatible with W65C02) / W65C265 (MCU)
Predecessor
MOS 6502 / WDC 65C02
Successor
WDC 65C832 (never released)

Facts from the source article.

Lore & Background

Development of the W65C816S began in 1982 after Bill Mensch consulted with Apple Computer on a new version of the Apple II series with improved graphics and sound. Apple wanted an MPU software-compatible with the 6502 but able to address more memory and handle 16-bit words. The design was finished in March 1984, with samples provided to Apple and Atari Corporation in the second half of that year, and full release in 1985. Mensch was aided during the design by his sister Kathryn, who handled part of the layout. The same process also produced the W65C802, internally identical to the 65C816 but with a pinout matching the original 6502, allowing drop-in replacement while limiting address space to 64 KB. The 65C802 is no longer produced. The basic 65C816 design was second-sourced by VLSI Technology, GTE, Sanyo and others from the mid-to-late 1980s to the early 1990s. In the 1990s, both the 65C816 and 65C02 were converted to a fully static core, allowing the processor's clock to be stopped without loss of register contents, enabling low-power standby designs.

Reader's Guide

The W65C816S represents a significant evolutionary step in the 6502 lineage, bridging 8-bit compatibility with 16-bit performance and a 24-bit address space. Its emulation mode allows it to start up behaving as a 65C02, then switch to native mode via a two-instruction sequence to enable all enhanced features while maintaining substantial backward compatibility. This design made it an attractive upgrade path for existing 6502-based systems, though its PDIP40 version is not pin-compatible with any other 6502 family MPU. The processor's fully static CMOS design offers low power consumption (300 µA at 1 MHz) and wide operating voltage (1.8 V to 5.0 V). Its 24 addressing modes, block-copy instructions (MVN and MVP), and Wait-for-Interrupt (WAI) and Stop-the-Clock (STP) instructions provided programmers with powerful tools for efficient code and power management. The inclusion of a Co-Processor (COP) instruction and an Abort (ABORTB) input for bus error recovery further extended its capabilities. As of April 2025, the W65C816S remains available from WDC in multiple package formats and as IP cores for ASIC integration, underscoring its enduring relevance in embedded and retro-computing applications.

Did You Know?

Origins & the Road to a 16-Bit Apple

In 1981, Bill Mensch, founder and CEO of the Western Design Center, began modernizing the venerable 6502 processor. Partnering with Rockwell Semiconductor and Synertek, his team aimed to migrate the design from NMOS to CMOS fabrication, cutting power consumption to roughly one-tenth or one-twentieth of the original at any given clock speed while enabling higher frequencies. The redesign also let them fix long-standing silicon bugs, such as the infamous indirect JMP errata, and introduce new instructions and addressing modes.

By 1982, Mensch had set a more ambitious target. After consulting with Apple Computer about a next-generation Apple II with improved graphics and sound, he identified the need for a CPU that stayed software-compatible with the 6502 yet could address substantially more memory and load or store 16-bit words. The 65C816 was finished in March 1984, with samples reaching Apple and Atari in the second half of that year and full commercial release in 1985. Mensch's sister Kathryn assisted with part of the chip's physical layout. The identical internal silicon also produced the 65C802, which diverged from the 816 only at the final pin-assignment stage.

Architecture: 16-Bit Power in a 6502 Skin

The 65C816's designation encodes its dual identity: the '65' signals its 65C02 compatibility mode, while '816' denotes selectable 8- and 16-bit register sizes. At reset the chip boots into emulation mode, where it behaves substantially as a 65C02. A two-instruction sequence then switches it to native mode, unlocking the full 16-bit ALU, a 16-bit accumulator, stack pointer, and index registers X and Y, plus a 16-bit direct-page register.

Memory addressing extends to 24 bits, opening up a 16-megabyte address space. Two 8-bit bank registers—one for data, one for program—generate bits 16 through 23 of addresses, enabling independent program segmentation and linear data access. The instruction set spans 256 opcodes across 24 addressing modes, including block-copy operations (MVN and MVP) for rapid data-structure transfers, a wait-for-interrupt instruction, a stop-the-clock instruction for power savings, and a co-processor instruction. Additional control outputs such as valid-data-address, valid-program-address, and vector-pull signals support dual-cache systems, cycle-steal DMA, and interrupt-vector fetch timing. An ABORT input with an associated vector lets the processor recover from bus-error conditions like page faults.

Legacy from the IIGS to the SNES and Beyond

The 65C816 found its most prominent home inside the Apple IIGS, where it powered a machine that Apple had specifically requested during the 1982 design consultations. In a modified form, the same 16-bit core also became the heart of the Super Nintendo Entertainment System, cementing the chip's place in gaming history.

Beyond those flagship products, the design proved remarkably durable. From the mid-to-late 1980s through the early 1990s, the 65C816 was second-sourced by VLSI Technology, GTE, Sanyo, and other manufacturers, broadening its availability well past WDC's own production. In the 1990s, both the 65C816 and its 65C02 sibling were reworked to a fully static core, meaning the processor's second clock phase could be halted entirely without losing register contents. Paired with asynchronous static RAM, this enabled standby designs that drew minimal power.

As of April 2025, WDC still sells the 65C816S in 40-pin PDIP, PLCC44, and 44-pin TQFP packages. It is also available as a microcontroller through the W65C265 and as IP cores for ASIC integration, exemplified by Winbond's W55V9x series of TV Edutainment ICs.

Compatibility, Compromise & the 65C802 Sibling

A defining tension in the 65C816's design was balancing radical new capability with the enormous installed base of 6502 and 65C02 software. The emulation mode that greets the chip at reset ensures that legacy code runs with substantial compatibility, and all 256 opcodes remain functional in both emulation and native modes. The direct-page register and stack-relative addressing further enable reentrant, recursive, and relocatable programming styles.

Yet the 65C816 broke one critical physical constraint: unlike the PDIP40 65C02, which served as a pin-compatible drop-in for the NMOS 6502, the PDIP40 65C816S is not pin-compatible with any other member of the 6502 family. This limitation gave rise to the 65C802 (also called 65802), which is fully software-compatible with the 816 and electrically compatible with both the 6502 and 65C02. Because it reuses the original 6502 pinout and does not multiplex its address lines, the 65C802 is capped at a 64 KB address space. Hardware designers building systems from scratch typically chose the 816 for its full 16 MB reach, and the 65C802 was eventually withdrawn from production.

More in Microprocessors, Part 2 1-24

Spotted an error? Know more?

Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced

Comments

Loading…
Open in the interactive codex →