嵌入汇编问题
#include<stdio.h>
int power1(int num,int power);
int main(void)
{
printf("2的5次方乘以3等于:%d\n",power1(3,5));
getchar();
}
int power1(int num,int power)
{
_asm
{
mov eax,num
mov ecx,power
shl eax,cl
}
}
怎么回事哦?
报_asm 有错....
求救,,,没想明白...