Author Topic: PRI interrupt triggering when VSYNC "syncs" normal interrupt  (Read 622 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2278
  • Likes Given: 3478
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