在visual stuido平台下,编译系统为微软VC++嵌入汇编 #include <stdio.h>int main(){ int varx = 0x11223344, vary = 0; _asm { mov EAX, varx mov AX, 5566H mov AL, 77H mov vary, EAX } printf("vary=%08XH\n", vary); return 0;}