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

CPUPHL test relies on open bus behavior #14

Open
twvd opened this issue Nov 1, 2023 · 0 comments
Open

CPUPHL test relies on open bus behavior #14

twvd opened this issue Nov 1, 2023 · 0 comments

Comments

@twvd
Copy link

twvd commented Nov 1, 2023

Just something I noticed, not sure if it was intentional or not.

In the PLP test, when PHP is used to store the P register, the V flag is set. This is an effect from the BIT $4210 instruction in WaitNMI(). Bit 6 in $4210 is undefined, open bus.

Not really a big deal once you know, but if the idea of these tests is to test CPU instructions, it might be neater to bring the flags to a state only defined by CPU behavior first.

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