I need to set int28 10 secs after my tsr is loaded. So i´m using int8
(tried with 1c also), counting a few times and then write int28 vector.
Here is a piece of the code:
int f1 = 1;
....
void interrupt int8(void)
{
b++;
if ((f1) && (b>= 150))
{
old28 = getvect(0x28);
setvect(0x28, int28);
f1 = 0;
}
old8();
}
Int8 is running, im sure of that. Is there any problem with setting a
vector from inside another int? And could I reset int8 from inside of
itself to get rid of that f1 flag? Would getvect and setvect be
crashing the system here?
Tks,
Pedro.