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

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

Re: [avr-gcc-list] compile problem


From: Kujala Matti
Subject: Re: [avr-gcc-list] compile problem
Date: Mon, 28 May 2001 09:23:32 +0300 (EET DST)

> Why don't the bit_is_set() and loop_until_bit_is_set() compile? It was really 
> hard to find
> the source of these "Assembler messages" errors.
> 
> C:\avrgcc\fahrtregler>avr-gcc -c -g -O1 -Wall -Wstrict-prototypes 
> -Wa,-ahlms=mai
> n.lst -mmcu=at90s2313 -I. main.c -o main.o --save-temps
> main.s: Assembler messages:
> main.s:134: Error: number must be less than 32
> main.s:589: Error: number must be less than 32
> 
> if (bit_is_set(TCCR1B,ICES1)) {
> 
>       clr r24
> =>    sbic 46,6
>       inc r24
>  
> 
> loop_until_bit_is_set(TIFR,TOV0);
>   
> =>    L_269: sbis 56,1
>       rjmp L_269

Unfortunately 'sbis' assembly command can access only the first 32 
registers. Look at AVR datasheets for details.

--
What sorcery, what spells, have brought thee here?



reply via email to

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