[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Assembly + C in AVRGCC 3
From: |
Larry Barello |
Subject: |
Re: [avr-gcc-list] Assembly + C in AVRGCC 3 |
Date: |
Tue, 21 Aug 2001 09:03:39 -0700 |
Your assembly is in an old dialect (so old I can't recall the name).
The current compiler only recognizes the Binutils (GAS) dialect.
Note: register passing has changed as well as the syntax. Look at
www.avrfreaks.org in the GCC section for hints and documents on
writing assembly code.
----- Original Message -----
From: "Andre Mastella" <address@hidden>
To: <address@hidden>
Sent: Tuesday, August 21, 2001 5:50 AM
Subject: [avr-gcc-list] Assembly + C in AVRGCC 3
> > Hi.
> > I have an old program which has an assembly rotine that was ported
to GCC.
> > Inside it, were decalrations of variables in SRAM. The form was...
> >
> > seg eram.gcc_bss_section
> >
> > u_buffer: ds.b 1 ;Serial buffer
> > u_bit_cnt: ds.b 1 ;Bit counter
> > u_status: ds.b 1 ;Status buffer
> > u_reload: ds.b 1 ;Reload-register (internal -
do not
> > use)
> >
> > /*
> > * Indexes
> > */
> > #define base_mem u_buffer
> > #define u_buffer_IX 0
> > #define u_bit_cnt_IX 1
> > #define u_status_IX 2
> > #define u_reload_IX 3
> >
> > seg flash.code
> > ....
> >
> > This does not compile anymore using GCC 3 (20010701).
> > How can I do the same thing for this new version?
> >
> > Thanks in advance.
> > Andre
> > mailto:address@hidden
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
>