- OK, so I'm aware of this (blargg's RE) and this (wiki).
- My emu uses cycle clocking instead of scanline clocking for IRQs. Then, a way to detect scanlines is to compare the last line with the current line - if not equals, a scanline was detected. This occurs on scanline cycle zero.
- Next, I'm trying to get CastleVania 3 (USA) working. The questions:
a) Under which conditions is the irq counter incremented?
b) It's stated that an actual IRQ is only sent to the CPU if both the IRQ Enable flag and IRQ Pending flag are raised. What time is an IRQ acknowledged (stops firing off)?
c) Is the irq counter reset to zero on scanline 21?
- My emu uses cycle clocking instead of scanline clocking for IRQs. Then, a way to detect scanlines is to compare the last line with the current line - if not equals, a scanline was detected. This occurs on scanline cycle zero.
- Next, I'm trying to get CastleVania 3 (USA) working. The questions:
a) Under which conditions is the irq counter incremented?
b) It's stated that an actual IRQ is only sent to the CPU if both the IRQ Enable flag and IRQ Pending flag are raised. What time is an IRQ acknowledged (stops firing off)?
c) Is the irq counter reset to zero on scanline 21?