Making a NES emulator, here's where I'm at: http://imgur.com/O79p9sl
I'm trying to get sprites to display properly and I've discovered the hangup involves the sprite 0 hit flag. There are loops in the game I'm trying (super mario bros) that wait for VBLANK by cycling endlessly until the flag is set, then cleared. When should I be setting this flag? Is there a way to fake this operation, i.e. set the 0 hit flag at the first scanline? Sorry if my question is too game-specific.
I'm trying to get sprites to display properly and I've discovered the hangup involves the sprite 0 hit flag. There are loops in the game I'm trying (super mario bros) that wait for VBLANK by cycling endlessly until the flag is set, then cleared. When should I be setting this flag? Is there a way to fake this operation, i.e. set the 0 hit flag at the first scanline? Sorry if my question is too game-specific.