[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Stack Push/Pop Macros
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Stack Push/Pop Macros |
Date: |
Sun, 30 Oct 2005 23:25:06 +0100 (MET) |
Jonathan Goldberg <address@hidden> wrote:
> Can anyone please provide me with some inline assembly macros for
> pushing and popping a special function register, i.e. CANPAGE, to
> and from the stack?
I think that does not make sense.
Just store them in a temporary C variable, and the compiler will take
care of pushing/popping them if needed. No need to use inline asm at
all for this.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)