Predefined cc65-macros
SCBX(my_sprite) = 10; SCBNEXT(cls) = my_sprite;Note:Do not define a scb as struct, it is a horrible waste of space due to the way cc65 treats structs.
void MyTimer() interrupt // don't forget this key-word !!
{
static hello; // this is ok
IRQ_ENTRY; // set up for C
{ // start a new compound, so that we might use auto-variables
int a,b,c; // now we can do what ever we want
//...
}
IRQ_EXIT; // no C beyond this point !!!
}