6502

Home * Hardware * 6502



The 6502 is an 8-bit microprocessor that was designed by Chuck Peddle and Bill Mensch for MOS Technology in 1975. Peddle and Mensch were previously involved in designing the Motorola 6800. The 6502's performance was actually competitive with other CPUs using significantly faster clocks, partly due to a simplistic state machine implemented by combinatorial logic to a greater extent than in many other designs. Therefor it was a popular processor for dedicated chess computers as well as general purpose systems such as the single board computer KIM-1, and early home computers, notably Apple II, Atari 8-bit, Commodore PET and Commodore 64, which actually uses a close derivative of the 6502, the 6510.

=Register Files= Like its precursor, the Motorola 6800 (but unlike Intel 8080) the 6502 has very few registers. There was one 8-bit accumulator register (A), two 8-bit index registers (X and Y), an 8-bit processor status register (P), an 8-bit stack pointer (S), and a 16-bit program counter (PC).

=Endianess= Unlike Motorola 6800, the 6502 is a little-endian processor, concerning the byte-order of 16-bit words in memory.

=Quotes= By Dan and Kathe Spracklen from their Oral History on the advantages of the 6502 compared to 8080/Z80 while porting Sargon: Danny Spracklen: Yes, the instruction set was a little more efficient, I think, and more- it was more, if you could say, RISC like. ...

It was a simpler instruction set, but it actually- the cycle times on the individual instructions were very fast, like one microsecond, instead of like 4 or 5 microseconds, on the Z-80.

Kathleen Spracklen: Yes. And it had the short branch. You can’t underestimate the value that the short branch offered. They had the ability- if you could branch within a one byte distance of where you were, and using it as a sign number, positive or negative, you had an extremely fast branching instruction. So if you could make loops very, very small and tight, you could really run with high, high speed.

=Architecture= MC650x Internal Architecture =TK20=

The TurboKit TK20 by German engineering company Schaetzle+Bsteh was a discrete 6502 compatible 18 MHz high speed CPU with own fast shadow memory build from more than 100 integrated circuits, dedicated for general purpose and chess computers with 6502 processor, connected via a ribbon cable to the 40 pin processor socket of the host system. The TK 20 was used by Ed Schröder with his dedicated Rebel programs at the WCCC 1986 and various World Microcomputer Chess Championship, and also by Ulf Rathsman and his Y! programs. Further, the dedicated Saitek Leonardo Turbo mini series was extended by Schaetzle+Bsteh with an 18 MHz integrated TurboKit.

=6502 Chess Programs=
 * Category:6502

=See also=
 * 6800
 * 8080
 * Z80

=Manuals=
 * 6502 Programming Manual, August 1976 (pdf)

=Selected Publications=
 * Peter Jennings (1976). MicroChess, a Chess playing program for the 6502 Microcomputer. pdf, Courtesy of Peter Jennings, The Computer History Museum
 * For instance, how to flip the board in 6502 Assembly :
 * [[FILE:MicroChess6502Flip.JPG|none|border|text-bottom]]


 * Lance A. Leventhal (1979). 6502 Assembly Language Programming. Osborne/McGraw-Hill, pdf
 * Editor (1981). Battle of the Chips. Personal Computing, Vol. 5, No. 1, pp. 82 » [Z80
 * Rodnay Zaks (1983). Programming the 6502 (Fourth Edition). Sybex, Inc. ISBN 0-89588-135-7.

=Forum Posts=
 * Retrocomputing with the 6502 by Steven Edwards, CCC, June 22, 2007
 * Vintage Chess Programming by Srdja Matovic, CCC, October 08, 2011
 * My Arduino-Based 6502 Simulation/Emulation...thing? by halkun, 6502.org Forum, November 26, 2012 » Arduino
 * RIP Chuck Peddle (designer of the 6502) by Srdja Matovic, CCC, Dezember 23, 2019
 * Reliving the 80's at 100 Mhz. by Ed Schroder, CCC, August 15, 2020

=External Links=
 * MOS Technology 6502 from Wikipedia
 * 6502 Assembly - Wikibooks
 * 6502.org: The 6502 Microprocessor Resource
 * 6502.org Forum


 * Visual6502.org
 * NMOS 6502 ALU from Dieter's Homepage
 * Wieder lieferbar: der 6502-Mikroprozessor from heise online, January 25, 2012 (German)

=References=

Up one Level