opcode guide with cycle count?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
User avatar
Petruza
Posts: 311
Joined: Mon Dec 22, 2008 10:45 pm
Location: Argentina

opcode guide with cycle count?

Post by Petruza »

I think I saw somewhere a 6502 opcode guide with how many cpu cycles each one spent, but I can't find it now.
Is there any? can you point it out? thanks!
qeed
Posts: 61
Joined: Tue Jun 17, 2008 11:51 am

Post by qeed »

frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

User avatar
Petruza
Posts: 311
Joined: Mon Dec 22, 2008 10:45 pm
Location: Argentina

Post by Petruza »

Thanks² !
User avatar
Disch
Posts: 1848
Joined: Wed Nov 10, 2004 6:47 pm

Post by Disch »

Beware that 6502.txt has many critical typos (like the wrong opcode listed in places). This is why I don't like to recommend it to people as a reference doc, even though it does a good job of explaining things.

I'd recommend you use obelisk as a reference to double check against 6502.txt:

http://www.obelisk.demon.co.uk/6502/reference.html

I've been using it for a primary reference for years now and I can assure it is error-free.

Though if you want details about what the CPU is doing on each cycle -- it doesn't get better than this doc (scroll down to near the end):

http://nesdev.com/6502_cpu.txt

That's only really useful for emulator devs, though.
frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

i like 6502.txt for the way it i laid out.. didn't know about the errors though :oops:

actually seeing the description of each clock cycle is cool though, makes it easier to remember how many cycles each operation takes
User avatar
Petruza
Posts: 311
Joined: Mon Dec 22, 2008 10:45 pm
Location: Argentina

Post by Petruza »

Thanks disch! they are great.
CartCollector
Posts: 122
Joined: Mon Oct 30, 2006 8:32 pm

Post by CartCollector »

http://www.6502.org/tutorials/6502opcodes.html

Easy to use, and even includes info on what each instruction does.
frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

^ yeah i found that one recently and i have to say it's quite nice
Post Reply