C++ 中嵌入汇编
C++ 中嵌入汇编
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
#include<iostream> using namespace std; int main(){ int a,b; while(scanf("%d%d",&a,&b)==2){ int *c=&a; __asm{ mov eax,c; mov eax,[eax]; mov ebx,b; lea eax,[eax+ebx]; mov a,eax; } cout<<a<<endl; } return 0; }
posted on 2012-08-19 19:56 more think, more gains 阅读(204) 评论(0) 编辑 收藏 举报