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

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

Re: [avr-gcc-list] inline assembler problem


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] inline assembler problem
Date: Mon, 26 Jan 2004 12:08:50 +0100 (MET)

Ewout Boks <address@hidden> wrote:

> 7.4.1 GCC asm Statement
> Let's start with a simple example of reading a value from port D:
> 
> asm("in %0, %1" : "=r" (value) : "I" (PORTD) : );
> 
> 
> When I attempt to do this, I first get a complaint from avr-gcc saying 
> that :

This stopped working when Marek changed the IO macros so it's now
possible to use the `direct assignment' form in C.  There's an open
bug report for it in the bug database, but so far, nobody rewrote that
part of the inline asm cookbook.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/


reply via email to

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