Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Oct. 30, 2005 19:19:12

Jonathan G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Stack Push/Pop Macros


Can anyone please provide me with some inline assembly macros forpushing and popping a special function register, i.e. CANPAGE, to andfrom the stack? Are there some already defined in avr-libc?Thanks,
Jonathanbegin:vcard
fn:Jonathan Goldberg
n:Goldberg;Jonathan
org:Heorot International
email;internet:
title:President and Chief Executive Officer
tel;work:915-276-2933
tel;cell:915-276-2933
x-mozilla-html:TRUE
url:http://www.heorotintl.comversion:2.1
end:vcard_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Oct. 30, 2005 22:25:39

Joerg W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Stack Push/Pop Macros


Jonathan Goldberg <> 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 .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support