CPCWiki forum

General Category => Programming => Topic started by: arnoldemu on 08:08, 27 June 16

Title: PRI interrupt triggering when VSYNC "syncs" normal interrupt
Post by: arnoldemu on 08:08, 27 June 16
Two HSYNCs after the start of VSYNC the CPC synchronises standard raster interrupts by resetting the counter.

If I cause a PRI interrupt to trigger at this time I get a unexpected result. The PRI does trigger but it seems to be around ~300-400 lines later depending on the value in R4.

At other times during VSYNC PRI will trigger fine and on the expected line.

I need to do more testing to confirm what is happening here.
I set R4 and R7=0, then set PRI to 1.

Powered by SMFPacks Menu Editor Mod