avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Using __tmp_reg__ etc in assembly file


From: Colin Wall
Subject: [avr-gcc-list] Using __tmp_reg__ etc in assembly file
Date: Thu, 22 Jan 2009 11:09:51 +1300

Hi List,

I must be missing something.

I can use symbols like __SREG__,  __tmp_reg__ and __zero_reg__ in in-line 
asm (e.g. "push __tmp_reg__") but if I do the same in a pure assembly 
file, the compiler complains with "constant value required". How does one 
access these symbols in the assembly file and keep gas happy?

I know I can always do my own #define, but it feels wrong to re-define 
something that already exists...


Thanks for any help.

--
Colin

###########################################################################
This e-mail is confidential and may contain information subject to legal 
privilege.  If you are not the intended recipient please advise us of our
error by return e-mail then delete this e-mail and any attached files.  
You may not copy, disclose or use the contents in any way.  

The views expressed in this e-mail may not be those of Gallagher Group 
Ltd or subsidiary companies thereof.
###########################################################################




reply via email to

[Prev in Thread] Current Thread [Next in Thread]