[En-Nut-Discussion] Input operand list question in "ARM GCC Inline Assembler Cookbook"

唐心磊 spider391tang at gmail.com
Sat Feb 8 11:05:09 CET 2014

A great cookbook. I have read it and  I have a question in the cookbook.
( http://www.ethernut.de/en/documents/arm-inline-asm.html )

In the first example in "Using Constants" section.

asm("mov r0, %[flag]" : [flag] "I" (0x80));

I think that the [flag] should be in input operand list as follow.

asm("mov r0, %[flag]" : : [flag] "I" (0x80));

Am I right?   Or some concept I missed?


More information about the En-Nut-Discussion mailing list