
Originally Posted by
258456
Ok, so just to be clear, i need to learn MASM for putting asm in c++ programs? Not x86 Asm?
MASM is an assembler, there are also various IDE's for it that helps asm programmers code programs. Like in C++ IDE's data types can be given names, labels can be defined for jmps, etc.
I say this because you should know that x86 ASM is simply a list of menomics for opcodes. They're just names given to low level machine functions. x86 asm are those binary instructions. What MASM does is simply take ur written strings and characters and match them directly with the neccessary opcodes. The data types and labels that were referenced by name in your code are replaced with a RVA (Relative Virtual Address).
MASM syntax is created to use
Intel Syntax. Intel makes the processor so it releases and names intructions for opcodes that work on the processor. The only thing is MASM is a program to help code asm. Therefore it has added features such as macros and names like I've been saying. (sorta like Visual Studios has macros) However since MASM uses Intel Syntax you can code in straight x86 Intel syntax and don't have to use any names for variables if you don't want to, but that would be really hard.
Now to answer ur question. If you look on MSDN you will see that in fact the _asm instruction does in fact use MASM syntax. So you can code the same way you can in MASM.
__asm (C++)