Search code examples
c++visual-studio-2008masm

masm instruction set recourse


Where would I be able to find a good site of link or document that details what the full instruction set of MASM is?

To give context I am currently working on a C++ project in VS2008, and I have hit a point where it would be useful to know what exactly the assembly is saying (for added context). This isn't my only reason, but it is certainly the most pressing at the moment.

Thanks for any help, hopefully I will be able to figure out the bug without the assembly, but it helps sometimes.


Solution

  • For genuine instructions, the Intel and AMD literature is very good. I don't know the numbers for the Intel manuals, as I have the AMD ones in "real paper" on my desk. Most of what you need will be in AMD Vol 3 (General Purpose and System instructions), but you may need the SSE Vol 4 (128 Bit Media instructions) and Vol 5 x87 (Floating point and 64-bit Media instructions) too.

    I've also used sandpile.org as a quick reference for instructions - mainly to decode instructions from binary.

    Obviously MASM also has a bunch of directives, such as forming strings, assigning section names to different bits, designating something data or code, etc.