c语言asm函数什么意思 c语言中asin
C语言中的asm怎么用?
_asm mov ax,0;
_asm{
mov ax,0
mov bx,0
}
两种写法都余渣行,VC++6.0编竖升译竖纤悄通过
谁可以帮我?vc++中 _asm是什么意思啊?
看完下面隐大慎的代码(来自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语言中,asm(“ ”) 这个函数是什么意思?
这行中是内嵌汇编,就是说兄带穗C源程序中插入 eallow 这条汇编指令羡卜。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: c语言asm函数什么意思 c语言中asin
本文地址: https://pptw.com/jishu/6029.html