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

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

[avr-gcc-list] Assembly + C in AVRGCC 3


From: Andre Mastella
Subject: [avr-gcc-list] Assembly + C in AVRGCC 3
Date: Tue, 21 Aug 2001 09:50:11 -0300

> 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



reply via email to

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