#include"stdafx.h"
int_tmain(intargc,_TCHAR*argv[])
{
charmessage1[]="Entertheinput:";
charformat[]="%d";//formatstringforthescanffunction
intinput;
intmyarray[5];
_asm{
movebx,0;
leaebx,myarray;
label1:leaeax,message1;
pusheax;//printmessage1
callprintf;
addesp,4;
leaeax,input;
pusheax;
leaeax,format;//readtheinput
pusheax;
callscanf;
addesp,8
moveax,input;
addmyarray[ebx],eax;
addebx,4;
jmplabel1;
}
return0;
}
为什么运行的时候会一直存下去。。。还有为什么会出现Stackaroundthevariable'format'wascorrupt?小女跪求大神帮忙T。T木有多少分了。。。就这么多了。。。T_T
分 -->
|