_asm _emit 0x0f _asm _emit 0xa2
发错地方了,发了两个,谁答对200全给了。

解决方案 »

  1.   

    When this instruction is excuted, the system will excute whatever instruction that is stored at location 0x0f at the current location in the current text segment of your program. After this instruction is done, the system will excute whatever instruction that store at location 0xa2, after this instruction is done, the system will continue excute whatever instructions that are following at the current location in the current text segment of your program.
      

  2.   

    我是在看别人的代码,原码是这样的:
    #define CPUID_INSTRUCTION _asm _emit 0x0f _asm _emit 0xa2
    你说0x0f和0xa2是行号么?没有对应行,也没有对应的标号,怎么回事,小弟比较菜,大哥多帮忙。
      

  3.   

    查到了_emit 是一条伪指令,一般用在C编译器不支持的汇编指令时,就需要人为的把这条指令编译成2进制码0x0f 0xa2就是一条汇编指令的2进制码形式,但是这里是哪条汇编指令,我也不太清楚
      

  4.   

    CPUID的机器码。有些编译器不认识CPUID这个指令,就这样直接写机器码了。
      

  5.   

    类似的还有
    rdtsc
    _asm _emit 0x0f _asm _emit 0x31
      

  6.   

    http://www.csdn.net/Develop/article/17%5C17099.shtm
      

  7.   

    http://www.hermes.com.cn/software/2000.08.28.htm
      

  8.   

    看这个!http://saturn.med.nyu.edu/~hewz/p4_instruction_full.html