RAD Studio
ContentsIndex
PreviousUpNext
asm, _asm, __asm

Category 

Keyword extensions, C++-Specific Keywords 

Syntax  

asm <opcode> <operands> <; or newline>_asm__asm
_asm <opcode> <operands> <; or newline>
__asm <opcode> <operands> <; or newline>

Description 

Use the asm, _asm, or __asm keyword to place assembly language statements in the middle of your C or C++ source code. Any C++ symbols are replaced by the appropriate assembly language equivalents. 

You can group assembly language statements by beginning the block of statements with the asm keyword, then surrounding the statements with braces ({}).

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!