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

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

Re: [avr-gcc-list] #define in as


From: Larry Barello
Subject: Re: [avr-gcc-list] #define in as
Date: Tue, 9 Oct 2001 07:07:16 -0700

I do this all the time and it works great...  You need to use the C
preprocessor - GAS doesn't know anything about #defines.

avr-gcc -x assembler-with-cpp <infile> -o <outfile>

----- Original Message -----
From: "Torsten Hahn" <address@hidden>


> Hi,
>
> can i define some usefull names etc. for register or ports in an
pure
> assembler file ?
> I tried around with
>
> #define myregister r16
>
> etc. but this dos not seem to work. The avr-as says
>
> Error: constant value required
>
> When i try to use this like
>
> ldi myregister, 0
>
> Whats wrong ?
>





reply via email to

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