Donkey Kong Land 2 timing [solved]

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Donkey Kong Land 2 timing [solved]
by on (#210335)
Can anyone shed some light on how Donkey Kong Land 2 performs its frame timing? It does not appear to depend on interrupts. Rather, it seems to work its magic by polling LY and the LCD Control Register.

The timing appears to be slightly off in my emulator. Sometimes it writes to VRAM for a full extra scanline after VBlank. Other times it starts writing to VRAM a few dots before HBlank. If I allow it to write to VRAM at arbitrary times (which is not how the hardware works), the game appears to function normally.
Re: Donkey Kong Land 2 timing [solved]
by on (#210747)
BGB confirms inaccessible VRAM writes and the game functions normally even when these writes are blocked. It's strange, but it functions.