Assuming you always write to PPUADDR in pairs, is it sufficient to reset the VRAM address latch by reading PPUSTATUS just once near the beginning of NMI?
Or should you always reset the latch before writing to PPUADDR to be safe?
Quick question about PPUSTATUS/PPUADDR
Moderator: Moderators
- SecretServiceDude
- Posts: 99
- Joined: Wed Oct 22, 2008 3:49 pm
- Location: Los Angeles, CA
- SecretServiceDude
- Posts: 99
- Joined: Wed Oct 22, 2008 3:49 pm
- Location: Los Angeles, CA
Yes, it's safe to reset it just once. If your NMI has the potential to be long enough, you may want to make sure it doesn't interrupt itself, but I doubt it's a problem.
I've seen very few games, actually only one I can think of, that always read PPUSTATUS before setting the address. Myself, I read it in every NMI.
I've seen very few games, actually only one I can think of, that always read PPUSTATUS before setting the address. Myself, I read it in every NMI.