\#include "stdafx.h"\
![](/Images/OutliningIndicators/ContractedBlock.gif)int Abs( int i )![](http://www.cppblog.com/Images/dot.gif){\
\_asm mov eax, i;\
\_asm or eax, eax;\
\_asm jge EXIT;\
\_asm neg eax;\
\_asm mov i, eax;\
EXIT: \
return i;\
\
}\
![](/Images/OutliningIndicators/ContractedBlock.gif)int main()![](http://www.cppblog.com/Images/dot.gif){\
int a = -1;\
cout \<\< Abs( a ) \<\< endl;\
\
}
ax换成eax