Date : Thu, 25 Jun 2009 01:03:33 +0100
From : jgh@... (Jonathan Graham Harston)
Subject: 65C02 instructions
Rick Murray wrote:
> > No, your emulator should execute them as NOPs or as the combined
> > effects that they perform on actual hardware.
>
> The problem, which isn't a great one, is that everybody says the 65C02
> undefined instructions are NOPs. They aren't. They are instructions that
> have no effect. Subtle difference, but one which allows for the
> instruction to be between 1 and 3 bytes in length...
Yes, you can work out how long they are by what addressing range
they are in the opcode map. eg some are NOP abs, some are NOP (zp),Y
etc. Some do odd things like ASL and then ORA from (zp),Y. The
lists at http://mdfs.net/Docs/Comp/6502 show this, specifically
http://mdfs.net/Docs/Comp/6502/OpList
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
A Review of Sheffield City Council's Members' Allowances Scheme
See http://mdfs.net/payreform