C Programming on the IBM PC (C Programmers Reference Guide Series)

asm

asm is used to embed assembly language directly into your C++ program. The general form of the asm statement is shown here:

asm ("instruction");

Here, instruction is an assembly language instruction, which is passed directly to the compiler for assembly in your program.

Many C++ compilers allow additional forms of the asm statement. For example,

asm instruction; asm { instruction sequence }

Here, instruction sequence is a list of assembly language instructions.

Категории