[b][red]This message was edited by IDK at 2006-11-15 14:1:56[/red][/b][hr]
Anyone tried to use gas inlined assembly? I'm trying to do a simple SSE2 mandelbrot program with inline asm with Dev+C++.
GLubyte* buffer = new GLubyte[wid*heg];
//if(y==0) y=heg, pointer=buffer+wid*heg;
That was the code calling the code I'm trying to write:
As you might see, wid and height in the lea statement are wierd.
Since gas cannot do any preprocesing and the manual:http://sourceware.org/binutils/docs-2.17/as/index.html
suggests that I'll use the built in featurs of my C compiler.
How do I do that?
EDIT: Firefox crashed when I tried to post this...
I posted a workaround instead, but it still doesn't work for constants in the assembly, but almost...
Now it looks neater anyway.
I still have no clue...
0 · ·