Page 1 of 1

What happens if the VBLANK int code takes too long?

Posted: Tue Sep 29, 2015 8:51 pm
by tryphon
Is another VBLANK interrupt triggered while processing VBLANK code ?

In other words : do I have to stop Vints in my VBLANK interrupt routine ?

Sorry if this question sounds stupid, I have to make it clear.

Re: What happens if the VBLANK int code takes too long?

Posted: Tue Sep 29, 2015 9:16 pm
by mikejmoffitt
I don't remember if that is what will happen in that situation, but one solution is to have your vblank routine set a flag that vblank is active, which will let your main code spin on that flag until VBlank sets it, at which point your vblank logic can occur.

Re: What happens if the VBLANK int code takes too long?

Posted: Tue Sep 29, 2015 10:23 pm
by Stef
You don't need that, when the 68000 takes an interrupt it raises its interrupt level mask to the current interrupt level, meaning that only higher interrupt can interrupt current processing. A V-Int can interrupt H-Int process but not the contrary, also V-Int cannot interrupt another V-Int.