Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

The 6502 tests assume the P register has bits 4 & 5. #59

Open
galibert opened this issue Sep 14, 2023 · 0 comments
Open

The 6502 tests assume the P register has bits 4 & 5. #59

galibert opened this issue Sep 14, 2023 · 0 comments

Comments

@galibert
Copy link

It doesn't. They just don't exist. Bit 5 is hardwired to 1 where it matters, bit 4 to !irq_taken (only visible in the pushed P value in brk).

So any test that requires a result in P that has bits 4 or 5 unset in incorrect (and there's a lot of them). A or with 0x30 would clean them up (and doing that to the inputs too would be a decent idea).

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

No branches or pull requests

1 participant