I'm usung GCC and writing in C. I am trying to dedicate some of the registers as specific variables to save time swapping in and out of RAM. Instead of:
volatile unsigned int test = 0x0000;
(Which works) I'm using
register int test asm("r26");
The code compiles without any errors or warnings but when I try "temp = 0x1234;" then the register's values don't seem to change. What am I doing wrong ?