inline assembler tuts?
I was just wondering if anyone knew the location of some tutorials that would help me be able to use the VC inline assembler. All the stuff I''ve found has been either for writing stuff in pure asm, or for MASM 2.0 or some equally archaic version.
I probably won''t end up using it a lot... just idle curiosity
I have a few asm books, but they''re quite confusing to understand, since asm isn''t easy to learn. If your worried about speed, then don''t be (worried). Unless your making the latest, high performance 4D graphics engine, you won''t need it.
November 01, 2000 08:20 PM
Provided you already know asm and just want to inline it, you just use the asm directive in VC, like so...
__asm singlestatement.....
or for a code block, this one;
__asm{
statement1....
statement2....
etc....
}
Simple, that''s it. There are 2 underlines before the asm directive. You probably could have found this answer easily in the online help. I''m not ragging on you for asking, don''t be offended. I''m just reminding you to use the online help. If you actually need to learn asm, (couldn''t hurt), get this book;
Assembly Language for Intel-Based Computers by Kip R. Irvine.
__asm singlestatement.....
or for a code block, this one;
__asm{
statement1....
statement2....
etc....
}
Simple, that''s it. There are 2 underlines before the asm directive. You probably could have found this answer easily in the online help. I''m not ragging on you for asking, don''t be offended. I''m just reminding you to use the online help. If you actually need to learn asm, (couldn''t hurt), get this book;
Assembly Language for Intel-Based Computers by Kip R. Irvine.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement