AnsweredAssumed Answered

PUSH/POP Silly question time.

Question asked by BartW on Dec 5, 2010
Latest reply on Dec 7, 2010 by BartW

Ok i've had a look but I'm still stuck....

How do i push register value to the stack and pop them off.

I have an isr and functions which I want to restore the registers before returning.

How do i do this as push and pop keeps generating errors

In every other micro and cpu i've used i just do this.

isr:

push r0;

push r1;

...

...

pop r1;

pop r0;

rti;

 

Regards

Bart

Outcomes