Amol Bhopale wrote:
Hello Chris ans Steve,
I want to do some stack pointer manipulation at the start of each interrupt
vector code. I am not sure whether inline assembly will allow me to do this.
So I want to start interrupt execution in assembly code and then the control
will jump to 'C' part of code. I think inline assembly doesn't allow to use
r0 to r3 registers in the code for manipulation. Please clarify on the same.
The only good reason I can see for stack pointer manipulation within an
interrupt is to change the low power status on return. The right way to
use that is to use the macros provided, rather than mess about directly
with the stack. Look at the documentation for how to use these features.
I think you are just trying to make you life hard.
Regards,
Steve