Archived

This topic is now archived and is closed to further replies.

A. Buza

inline assembler tuts?

Recommended Posts

A. Buza    122
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

Share this post


Link to post
Share on other sites
Zipster    2365
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites