"developer2112 (sent by Nabble.com)" <[EMAIL PROTECTED]> wrote:

> I get in my listing:

>       UDR = 'A';
>  272: 81 e4           ldi     r24, 0x41       ; 65
>  274: 80 93 2c 00     sts     0x002C, r24

> clearly I am not getting an "out" instruction, what gives?

It will work anyway, only not as effective.  Memory-mapped IO (MMIO)
is the only method where access to the entire set of IO registers on
the AVR can be guaranteed for all devices.

If you turn on optimization, the optimizer will recognize that
situation, and turn that into an "out 0x0c, r24" instruction.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to