Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was 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

@galibert

Description

@galibert

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions