Where can I learn the 6502 hardware and instruction set?

Building your first 6502-based project? We'll help you get started here.
Post Reply
LBSC
Posts: 64
Joined: 16 Sep 2017

Where can I learn the 6502 hardware and instruction set?

Post by LBSC »

I want to learn the 56 instructions and the hardware like, registers, ALU or whatever. Where can I learn that?
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Where can I learn the 6502 hardware and instruction set?

Post by BigDumbDinosaur »

LBSC wrote:
I want to learn the 56 instructions and the hardware like, registers, ALU or whatever. Where can I learn that?
Due to its enormous proliferation, as well as its role in shaping computer history, the 6502 is arguably the most documented microprocessor ever designed. Everything you could possibly want to know about it is as close as the nearest Internet search engine.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Where can I learn the 6502 hardware and instruction set?

Post by GARTHWILSON »

The best tutorial and reference I know of is the programming manual "Programming the 65816 including the 6502, 65C02, and 65802"" by David Eyes and Ron Lichty. It's not free anymore, but it's definitely worth the price. No 65xx enthusiast should be without it. The 65c02, BTW, has more instructions than the 56 number you gave (it's around 72), and more addressing modes too, and the 65816 has even more. If you're just getting into this, do not limit yourself to the original NMOS 6502's instruction set.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
JenniferDigital
Posts: 92
Joined: 25 May 2015

Re: Where can I learn the 6502 hardware and instruction set?

Post by JenniferDigital »

Another thing that might well help you is that the Kowalski simulator shows you information about the instruction at your text cursor as you edit. This means you're getting given little clues as you go.

Oh, and although it is Windows software it does seem to work under Wine.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Where can I learn the 6502 hardware and instruction set?

Post by BigEd »

GARTHWILSON wrote:
The best tutorial and reference I know of is the programming manual "Programming the 65816 including the 6502, 65C02, and 65802"" by David Eyes and Ron Lichty.
I'll quote myself from another thread:
Quote:
A lot of people - including me - got started on other books. Rodnay Zaks' Programming the 6502 is a classic. It looks like Lance Leventhal also wrote one. I'm sure you can find a cheap secondhand copy, or a copy on line. The Advanced User Guide for Acorn's BBC Micro is also pretty good.
Note however that these older works are only about the original 6502 instruction set. That's quite enough to learn about how to use a 6502, but the 65C02 does offer some extra instructions which help a little with performance and code density, and the 65816 goes a lot further.
LBSC
Posts: 64
Joined: 16 Sep 2017

Re: Where can I learn the 6502 hardware and instruction set?

Post by LBSC »

BigEd wrote:
GARTHWILSON wrote:
The best tutorial and reference I know of is the programming manual "Programming the 65816 including the 6502, 65C02, and 65802"" by David Eyes and Ron Lichty.
I'll quote myself from another thread:
Quote:
A lot of people - including me - got started on other books. Rodnay Zaks' Programming the 6502 is a classic. It looks like Lance Leventhal also wrote one. I'm sure you can find a cheap secondhand copy, or a copy on line. The Advanced User Guide for Acorn's BBC Micro is also pretty good.
Note however that these older works are only about the original 6502 instruction set. That's quite enough to learn about how to use a 6502, but the 65C02 does offer some extra instructions which help a little with performance and code density, and the 65816 goes a lot further.
Thank you so much! This is the best tutorial ever =]
Post Reply