#8502 - whodoo - Sat Jul 12, 2003 12:47 pm
as far as I know, an interupthandle for e.g. VBlank should look something like this:
...
if(REG_IF == INT_VBLANK)
{
// Do VBlank stuff
REG_IF = INT_VBLANK; // Clear
}
why do I have to set REG_IF = ... to clear it? I mean since I checked REG if in the first line, it?s allready set to 1?..so why do I have to set it to 1 when it?s allready is 1?
and if the program occurs more than one interupt at the same time I guess that
if(REG_IF == INT_VBLANK)
wouldnt work?
...
if(REG_IF == INT_VBLANK)
{
// Do VBlank stuff
REG_IF = INT_VBLANK; // Clear
}
why do I have to set REG_IF = ... to clear it? I mean since I checked REG if in the first line, it?s allready set to 1?..so why do I have to set it to 1 when it?s allready is 1?
and if the program occurs more than one interupt at the same time I guess that
if(REG_IF == INT_VBLANK)
wouldnt work?