The state of $2002 after this many cycles of PAL could be any number from 0 to 127, depending on the state of the sprite hardware and various internal PPU buffers, but bit 7 will be clear. You can 'bpl' to test this number: 'bpl' is taken if PAL (was "branch if PLus" now "branch if PaL"), 'bmi' if NTSC.Sivak wrote:Sorry for sounding like a noob, but what exactly would the value be in $2007 at this point if it was PAL? 0?blargg wrote:Code: Select all
lda $2007 sta ntsc_if_neg
Detecting for NTSC or PAL
Moderator: Moderators
Shouldn't that be $2002 (PPUSTATUS), not $2007 (PPUDATA)?