Hi
Want to know if there is a way to instruct the compiler to preserve more than the normal registers (R0-R3, R12, LR, PSR, and PC) during an interrupt.
Regards Viktor Bucher
Surely, the compiler has to preserve whatever registers it uses - and, if it doesn't use a register, there is no point in preserving it?!
Not exactly. I wrote an assembly function that is called from inside the interrupt. This function uses more registers than those that are preserved by the interrupt itself
but if YOU wrote the function in assembly, you must do the preserve and restore manually...
hence:
void __asm foo(void) { push... . . . pop... }
View all questions in Keil forum