Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WDC 65C02 cycle count seems incorrect for opcode $5C #12

Open
sidneycadot opened this issue Dec 15, 2024 · 0 comments
Open

WDC 65C02 cycle count seems incorrect for opcode $5C #12

sidneycadot opened this issue Dec 15, 2024 · 0 comments

Comments

@sidneycadot
Copy link

Hi,

I've implemented instruction-level clock cycle tests that runs on hardware as a reference.

For the 65C02, I use a Neo6502 board, which has a WDC W65C02S6TQG-14 processor.

I have firmly established that an opcode $5c (supposedly a NOP with some odd kind of absolute addressing) on that CPU takes 8 clock cycles. This confirms some sources to be found on the web (eg http://www.6502.org/tutorials/65c02opcodes.html, section 9).

However, the 65x02 testsuite lists this opcode with 4 clock cycles (https://raw.githubusercontent.com/SingleStepTests/65x02/refs/heads/main/wdc65c02/v1/5c.json). This seems to be incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant