_asm mov ax,0;
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:域名申请、虚拟空间、营销软件、网站建设、华龙网站维护、网站推广。
_asm{
mov ax,0
mov bx,0
}
两种写法都余渣行,VC++6.0编竖升译竖纤悄通过
看完下面隐大慎的代码(来自MSDN),你就明白了是什么意思,而且你的英灶敬语也会提高那么一点点。其实他就是一个汇编语言指令。
__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.
For related information, see Assembler (Inline) Topics.
Note Microsoft C++ does not support the ATT C++ asm keyword.
END Microsoft Specific
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
这行中是内嵌汇编,就是说兄带穗C源程序中插入 eallow 这条汇编指令羡卜。