8000 65816 Differences is Missing Some Detail. · Issue #217 · X16Community/x16-docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

65816 Differences is Missing Some Detail. #217

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

Open
Yazwh0 opened this issue Aug 31, 2024 · 1 comment
Open

65816 Differences is Missing Some Detail. #217

Yazwh0 opened this issue Aug 31, 2024 · 1 comment

Comments

@Yazwh0
Copy link
Contributor
Yazwh0 commented Aug 31, 2024

https://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%20Appendix%20F%20-%2065C816%20Processor.md#compatibility-with-the-65c02

According to the images here the 65816 isn't cycle compatible with the 65c02 when reading registers with side effects.

These are worth mentioning as they could cause subtle compatibility bugs, not just with the vera data ports, but any IO device.

I've not been able to check, but I assume the undefined 'nops' are also different. These are also useful, eg having a 1 cycle nop vs the documented 2 cycle version.

@mooinglemur
Copy link
Contributor

Regarding the second point, the 65C816 only has two NOP instructions: the original $EA, and $42. Both are 2-cycle. $42 takes two bytes, and it was originally designed as for "future expansion". It might be viable to use to control a bus-snooping add-on card.

The rest of the opcode table is filled out with instructions, none of them one-cycle.

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

2 participants
0