SALLY (Atari 6502C) and the 6502 CPU
- Year
- 1981
- Type
- Component
- Category
- Custom chip — CPU
- Manufacturer
- Atari, Inc. (custom part made by MOS Technology, Synertek, Rockwell, NCR, UMC)
- Related
- Altirra
Overview
Every 8-bit Atari is driven by a 6502, the 8-bit microprocessor with a 16-bit address bus designed by Chuck Peddle (architecture) and Bill Mensch (engineering) and introduced by MOS Technology in September 1975. The 6502 was already in the Apple II and Commodore PET, and its 6507 cousin ran the Atari VCS, so it was a natural choice for the 400/800.
The Atari design adds one requirement a stock 6502 does not meet well: ANTIC, the display processor, must regularly take over the memory bus for DMA, which means stopping the CPU mid-stream. In most NTSC 400/800s this was done with a standard MCS6502A (a 2 MHz-rated part, Atari number C014377) plus four extra chips of halt logic. Atari then commissioned its own variant, SALLY, which adds a /HALT input on pin 35 and a second R/W line on pin 36, making those extra chips unnecessary. SALLY appeared in late NTSC 400/800s, all PAL 400/800s, every XL and XE computer, and also the Atari 5200 and 7800.
Specifications
| Item | Detail |
|---|---|
| Architecture | NMOS 6502 core: 8-bit data bus, 16-bit address bus (64 KiB) |
| Atari part numbers | C014377 (standard 6502, most NTSC 400/800); C014806 (SALLY) — UMC versions marked UM6502I |
| Extra SALLY pins | Pin 35 /HALT, pin 36 second R/W (unconnected on a standard 6502) |
| Clock | 1.789773 MHz NTSC (half the NTSC colour subcarrier); 1.7734475 MHz PAL/SECAM (2/5 of the PAL subcarrier) |
| Timing | 114 machine cycles per scan line; 29,868 cycles per NTSC frame, 35,568 per PAL frame |
| Effective speed | Roughly 60–90% of the raw clock, depending on how much DMA the current display needs (Altirra) |
| Manufacturers | MOS Technology, Synertek, Rockwell, NCR, United Microelectronics (UMC) |
The "6502C" naming trap
Atari's field service manuals called SALLY "6502 (Modified)", "Custom 6502" or "6502C", and Atari Corp.'s XE owner's manuals kept using "6502C". This causes endless confusion, because chips really marked 6502C — MOS MCS6502C/MPS6502C, Synertek SY6502C, Rockwell R6502C, UMC UM6502C — are ordinary 6502s rated for higher clock speeds, not Atari's part. A genuine SALLY is never marked "6502C"; apart from the UMC UM6502I it always carries Atari's C014806 number. A second warning: the 6502C is unrelated to the CMOS 65C02, which has extra instructions and different undocumented behaviour and was never used in the 8-bit line.
Using it today / tips
- Replacing a dead CPU. An XL/XE needs a SALLY (or a board that supplies the HALT function); a plain 6502 will not work in a SALLY socket without extra logic, because pins 35/36 are unused on it.
- Undocumented opcodes work. Since SALLY is the same NMOS core, the "illegal" opcodes catalogued in Altirra's CPU chapter (LAX, SAX, SLO and friends) behave as on any NMOS 6502 — and code written "to the metal" may use them. CMOS 65C02 or 65C816 upgrade boards break such software, which is why Altirra devotes sections to 65C02 and 65C816 compatibility.
- Cycle counting. With 114 cycles per line and ANTIC stealing some of them, precise raster effects are written against ANTIC's DMA pattern rather than the raw clock; Altirra's ANTIC chapter (§4.14, scan line timing) tabulates the stolen cycles.
History
Antic's February 1983 preview of the 1200XL described its processor as "improved with onboard logic drivers and the addition of a HALT line", noting it differed from the 400/800's CPU — the point at which SALLY became universal in new Atari computers.
Credits
- Picture: SALLY (C014806) in an Atari 800XL. — Multicherry, via Wikimedia Commons (CC BY-SA 4.0)
- comp.sys.atari.8bit FAQ (Michael Current) — sections 1.1, 1.12, 1.13 — Michael Current (comp.sys.atari.8bit FAQ)
- Altirra Hardware Reference Manual — §2.1 Basic architecture, Chapter 3 (CPU) — Avery Lee (Altirra)
- Antic Vol. 1 No. 6 (Feb 1983) — Inside Atari: Atari 1200XL — AtariMagazines.com (Kevin Savetz), 1983
