News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

PRI interrupt triggering when VSYNC "syncs" normal interrupt

Started by arnoldemu, 08:08, 27 June 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arnoldemu

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.

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Powered by SMFPacks Menu Editor Mod