> Hi to all, I'm new in this mailing-list.I need some informations.
> I wanted to know the correct syntax of the command "__asm".
> I try with:
>
> WNDCLASSEX wincl;
>
> __asm mov wincl.style, CS_DBLCLKS
>
> and returns the error:
> parse error before `wincl'
>
I think it would be something like:
__asm ("mov %1,%0" : "=r" (wincl.style) : "i" (CS_DBLCLKS));
But i'm not sure, i didn't use the inline assembler for quite some
while. (I always used the -S compiler option to check the generated
code) You could read in the GCC manuals if you really need to use
inline assembler. But because of the IMO very complicated syntax it's
probably better to write assembler functions in separate files,
compile with some asm compiler like nasm, and only link them in.
|