[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Inline assembler warning: asm operand 2 probably doesn't
From: |
Joerg Wunsch |
Subject: |
Re: [avr-chat] Inline assembler warning: asm operand 2 probably doesn't match constraints |
Date: |
Tue, 8 Feb 2011 14:45:18 +0100 (MET) |
In article <address@hidden> you write:
> http://pastebin.com/AwuY28F9
"Unknown paste ID"
Can't you just attach it?
> uint8_t inverse = ~inPins;
> : "I" (&mPort), "I" (inverse)
The "IO port" constraint ("I") certainly cannot work here for
"inverse".
I think you need a plain "Register" ("r") constraint, so GCC will
perform the bit complement for you, and then passes the register
it used for the complement down to the inline asm statement.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)