Hey. I'm implementing a simple fifo in a project of mine, and am getting both a "C18125 Invalid opcode or ':' expected" and a "C18000 Label not set" errors on third line of the following section of code:
unsigned char SaveCCR; //preserve CCR
asm staa SaveCCR
asm sei // make atomic by disabling interrupts
Tried adding the ':' at the front of the variable name, but I just get another error and I have no idea what Im doing. Other asm instructions work fine, it seems the syntax is incorrect for accessing variables. I couldn't find why this syntax is wrong anywhere.
Any help is very appreciated!