Skip to content

Write to VRAM during SAT DMA and VRAM DMA #162

@rgalland

Description

@rgalland

If both SAT DMA and VRAM DMA are pending, they will execute one after the other automatically whenever vblank is entered. There is an issue when the CPU does a VRAM write during SAT DMA as the CPU write is executed upon SAT DMA completion and then proceeds to VRAM DMA. The correct behaviour is that CPU write occurs after the VRAM DMA.
I have attached a small PCE demo that shows a sprite glitch on real hardware but not in Mednafen. I can only assume that this program was only ever tested on Mednafen or another emulator making the same assumption.
pce_test_sprite_glitch.zip

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