Skip to content

Fix CPU memory access patterns #51

Description

@DirtyHairy

In it's current incarnation, the CPU does not emulate memory access correctly. In particular, several writes / reads can happen in a single cycle. The most importand cases are treated correctly (loads and stores happen in the last cycle), but some VCS ROMs are glitched (most prominently Pole Position).

Fixing this will require to turn each instruction into a full state machine. As a first step, it would be enough to turn address decoding into state machines, fully implement the most critical instructions (JSR, RTS, PHA, PHP, etc.) and wrap the others.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions