VC6.0 中的__asm语句
VC6.0 中的__asm語句
就幾句E文`大家都看的懂吧`
C/C++ Language Reference
__asm
Microsoft Specific
__asm
?? assembly-language-instruction
__asm
{
?? assembly-language-instructions
}
If used without braces, the __asm keyword means that the rest of the line is an assembly-language statement. If used with braces, it means that each line between the braces is an assembly-language statement. For compatibility with previous versions, _asm is a synonym for __asm.
Since the __asm keyword is a statement separator, you can put assembly instructions on the same line.
Note?? Visual C++ does not support the Standard C++ asm keyword.
Example
// Example of the __asm keyword
__asm????????????????? // __asm block
{
?? mov eax, 01h
?? int 10h
}
__asm mov eax, 01h????? // Separate __asm lines
__asm int 10h
// Multiple __asm statements on a line
__asm mov eax, 01h?? __asm int 10h
總結(jié)
以上是生活随笔為你收集整理的VC6.0 中的__asm语句的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mutex 示例代码
- 下一篇: 用VC写Assembly代码(5) --