Talk:Inline Assembly: Difference between revisions

Content deleted Content added
No edit summary
m Bot: Replace deprecated source tag with syntaxhighlight
 
(2 intermediate revisions by one other user not shown)
Line 8:
 
Under "Input Operands" I dont think the example code:
<sourcesyntaxhighlight lang="c">
asm("mov %%eax,%%ebx": : "a" (amount));//useless but it gets the idea
</syntaxhighlight>
</source>
matches the text, namely I think it should be :
<sourcesyntaxhighlight lang="c">
int dummy;
asm("add %%eax,%%eax": "=a" (dummy)) : "0" (amount));// the "0" indicate that it's using the same register as the first parameter
</syntaxhighlight>
</source>
--[[User:Dormito|Dormito]] 04:21, 13 February 2014 (CST)
--dormito
 
[[User:Bewing|Bewing]] 00:20, 28 February 2007 (CST)
Return to "Inline Assembly" page.