Preferred OpCodes

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

Moderator: Moderators

Post Reply
trisman
Posts: 4
Joined: Tue Aug 16, 2005 10:57 pm

Preferred OpCodes

Post by trisman »

Hey, I'm writing an assembler/linker/dis set of programs that targets among other things the nes. What are the preferred opcodes for mnemonics that there are many possibilities for like nop?

Thanks
Nessie
Posts: 134
Joined: Mon Sep 20, 2004 11:13 am
Location: Sweden
Contact:

Post by Nessie »

$EA is the official NOP, the other NOPs are not documented.
trisman
Posts: 4
Joined: Tue Aug 16, 2005 10:57 pm

Post by trisman »

Gratci.
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

The other NOPs aren't official. They are documented, often called DOP (2-byte) and TOP (3-byte). See one of the documents about unofficial instructions (often erroneously called undocumented or illegal instructions). I don't think there's much opinion about how they are disassembled for NES, since they are rarely used by anything.
Post Reply