You can link to assembly language object files created by MASM, TASM or inline your ASM code. To inline the assembly language code you use the __asm keyword.
You can write your assembly language as either a block or single lines, for example:-
// Inline assembly block.
__asm
{
pop cx
pop di
add di, cx
push di
}
// Single inline statements.
__asm pop cx
__asm pop di
__asm add di, cx
__asm push di