2002.6 hit flag: when to clear it?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
2002.6 hit flag: when to clear it?
by on (#8014)
2C02 reference that 2002.6 flag remains set 20 scanlines after it hited relative to vint.

I dont know if this behaves like:
- Is hited on sl 20
- is Cleared on sl 40

or

- Is hited on sl 20
- Is cleared after vblank ends.

thanks in advance.

by on (#8015)
I clear it along with all the other $2002 flags right at the start of the pre-render scanline (scanline between VBlank and rendering).

by on (#8016)
it seems that is the way, but i cant figure out why battletoads still dont run for me.. o thought maybe was that, but i wasnt.