I want to integrate ASM and C++ code in Visual Studio 2010. Basically, I want to be able to use certain routines created in ASM in my C++ code.
So I want to know:
int val=compute();
?All of these samples have what you need:
http://msdn.microsoft.com/en-us/library/t13a3526%28v=VS.80%29.aspx
You will have to let visual studio automatically "convert" them to the new project format, but I just tried it with the PRIMESSTEP2 example and it worked.
All you need is a function prototype like:
void sieve(void); // prototype for Sieve of Eratosthenes function
And then you can implement them in asm and they will link together. You return values by placing them in the EAX register and it will come through as a return value in C / C++.