Advertisement

Learning Assembler

Started by September 18, 2000 09:55 PM
2 comments, last by gimp 24 years, 4 months ago
This has probably been asked a gazillion times before but perhaps not exactly like this: I want to learn assembler, but, I''m not interested in full assembler apps using MASM, NASM etc.... All I want to do is inline assembler in vc++. Can anyone suggest any good resource. I read the gamedev win32 resource and there way off what I want to do. Basically all I''m interested in in doing really fast math and eventially getting my hands dirty with a bit of SSE / 3dnow. I read a recent Dr Dobbs article on doing concurrent calculation using simd which seemed really cool, but I''m thinking that I need to learn the basics first. Like moving between register and memory... generally just ''doing stuff''. I need to learning more about what registers can be used for what things(I was reading that MUL can only be done on ?? EBX?(not sure which one). So, does anyone know of a good tutorial that onmly focuses on the basics rather than how to use masm or use directdraw from asm? Many thanks gimp
Chris Brodie
YOu can''t do SSE, MMX or 3DNow! with inline assembly. You have to make a separate assembly modules and assemble them to .obj files and make a C++ header and put it into your project.

------------------------------
#pragma twice


sharewaregames.20m.com

Advertisement
All really.... Interesting. What I planning to do was create assembler optimised math functions like matrix calc etc that was tuned for each processor. I guess this would be better living in seperate DLL''s anyway...

So, I guess I will need to learn how to use MASM...

Still, anyone got any good links to assembly tutorials, basic''s??

gimp
Chris Brodie

You can have MMX instructions in inline assembly (with MSVC++); simply start off your block with:

    __asm{   ...}    


...I''ve never used SSE or 3DNow so I can''t comment on these. I''d be really suprised if you can''t inline these pupsters too though.

This topic is closed to new replies.

Advertisement