This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to use register as global variable

hi..

i'm using LCDK C6748 dev tools..

i need to write a code which required a very fast processing (up to 12 machine cycles only)

this code is within interrupt routine , and the interrupt routine will be called every 12 clocks..

therefore i want to use register as global variable to avoid memory access which require high machine cycles..

is there a way to preserve a register ? so that i can access these registers anywhere within the code, especially from interrupt routine