How do you call a C routine from an interrupt in sas-c??
Whenever I try to do it, the machine locks up.
the C routine looks like this:
----- cut ---
LONG Counter = 0;
void VBLRoutine(void)
{
Counter++;
----- cut -----Quote:}
and the assembly vertical blank interrupt like this :
----- cut -----
; some includes, don't remember precicely
XDEF _VBLRoutine
VertBlankServer
jsr _VBLRoutine
moveq #0,d0
rts
----- cut -----
Now, when I don't call the C routine, but increase the Counter by using
(a1), everything is fine. But when I call the C routine. the machine just
locks.
Now, the VBL is not supposed to just add a counter, it is just a test :-)
--
===========================================================================
Fighting for peace is like *ing for *ity.
