سؤال

How can I build inline assembly with the Microsoft cl tool? when I try the standard

 asm(nop); 

it says unresolved external symbol asm. Any ideas? thanks!

هل كانت مفيدة؟

المحلول

Try with the following:

__asm
{
    nop
    mov   eax, 4
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top