"Daniel Otte" <[email protected]> writes:

> Hi all,
> I'm having problems assembling the following code:
> [...]
> 28            out _SFR_IO_ADDR(UBRRH0), r24
> The Errors I get are:
> avr-gcc -mmcu=atmega644   -c -o uart_ni-asm.o uart_ni-asm.S
> uart_ni-asm.S: Assembler messages:
> uart_ni-asm.S:28: Error: constant value required


It's UBRR0H (last two chars reversed).  As it is written now, the
assembler must assume that is an externally defined symbol (thus not a
constant).

Heike


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to