Из Borland C++ 3.1
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>
QUOTE </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
asm, _asm, __asm (keywords)
You use the asm statements to place assembly language statements in the
middle of your C++ source code.
Syntax:
- Код: выделить все
asm <opcode> <operands> <; or newline>
_asm <opcode> <operands> <; or newline>
__asm <opcode> <operands> <; or newline>
Any C++ symbols are replaced by the appropriate assembly language
equivalents.
If you want to include a number of asm statements, surround them with
braces:
- Код: выделить все
asm {
pop ax; pop ds
iret}
Example
- Код: выделить все
Asm mov ax,_stklen
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
<!--coloro:green--><span style="color:green"><!--/coloro-->А что я не так сказал?<!--colorc--></span><!--/colorc-->
<!--coloro:red--><span style="color:red"><!--/coloro-->А ты как думал? Конечно это ИМХО<!--colorc--></span><!--/colorc-->
<!--coloro:red--><span style="color:red"><!--/coloro-->>В каждом системном администраторе есть что-то от Бога.<!--colorc--></span><!--/colorc-->
В каждом программисте есть что-то от Бога для Бога. :-р
<a href="http://www.erepublik.com/en/referrer/mrScalder" target="_blank">
</a>