Just curious! I'm not a dinosaur or anything (only 23) but I did get started in programming way back in the dos/os2 days using C/C++, ASM, basic, and pascal. So, can you use any inline asm in Express
I am afraid I won't be able to help (not that much experience with line inline asm) but one thing you can do is generate the asm for your VC++ program and take a look at the how cout is called there.
Nevetheless, I don't believe all instructions are supported as inline asm (compiler might give errors).
Is there any other references you can point me to /*no pun intended, I promise*/ I'm interested in learning more on how to call functions such as std::cout using inline assembly. I understand the sample that shows how to call printf, but can't seem to call any C++ functions like cout. I'm also looking for information that shows all the legal instructions you can use with VC++ Express, like a listing of all the available instructions. I've been searching Google/MSN/Ask for an hour now with poor relevancy.
Can you use assembly in VC++ Express?
PascalLeBeta
I am afraid I won't be able to help (not that much experience with line inline asm) but one thing you can do is generate the asm for your VC++ program and take a look at the how cout is called there.
Nevetheless, I don't believe all instructions are supported as inline asm (compiler might give errors).
Thanks, Ayman Shoukry VC++ TeamAmit Basu
Yes the compiler will compile inline asm as part of your C++ code. Take a look at http://msdn2.microsoft.com/en-us/library/45yd4tzz.aspx for more details.
Thanks, Ayman Shoukry VC++ TeamStephan M
You can use the /FA compiler switch to generate the asm. http://msdn2.microsoft.com/en-us/library/367y26c6.aspx should contain more info.
Thanks, Ayman Shoukry VC++ TeamMarkDavies
Jonno232
Ayman,
Is there any other references you can point me to /*no pun intended, I promise*/ I'm interested in learning more on how to call functions such as std::cout using inline assembly. I understand the sample that shows how to call printf, but can't seem to call any C++ functions like cout. I'm also looking for information that shows all the legal instructions you can use with VC++ Express, like a listing of all the available instructions. I've been searching Google/MSN/Ask for an hour now with poor relevancy.
Thanks for all of your help!