I have some Special function registers (SFR) that need to be in volatile type. How can I do this? Because when I declare:
volatile sfr16 CAN0DAT = 0xD0;
It would not surprise me in the least if SFRs were implicitly "volatile", but I'll leave that up to you to research for a definitive answer.