All of these samples have what you need:
http://msdn.microsoft.com/en-us/library/t13a3526%28v=VS.80%29.aspx
You will need to allow the visual studio to automatically βconvertβ them into the new project format, but I just tried it with the PRIMESSTEP2 example and worked.
All you need is a function prototype, for example:
void sieve(void);
And then you can implement them in asm and they will contact together. You return values ββby placing them in the EAX register, and it will display as the return value in C / C ++.
source share