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

Write to VRAM during SAT DMA and VRAM DMA #162

Open
rgalland opened this issue Jun 29, 2024 · 0 comments
Open

Write to VRAM during SAT DMA and VRAM DMA #162

rgalland opened this issue Jun 29, 2024 · 0 comments

Comments

@rgalland
Copy link

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

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