Quietust wrote:
With the MMC3, you don't specify the scanline you want the interrupt to happen on - you specify how many more scanlines before it triggers. For example, if you want interrupts at scanlines 20, 30, and 60, you'd set the counter to 20 during vblank, then after the first interrupt you'd set it to 10, then after the second interrupt you'd set it to 30.
In other words, it's a relative counter, not an absolute counter.
yes,i know.maybe mmc3 was confining!
I want to hack mapper2 to mapper 4,and add irq in nmi,but can't pinpoint count the scanlines.
I set one irq line ,but the interrupt will at different posetion(ex: set irq at scanline 8,the game will interrupt at 64)