C++ 中嵌入汇编
C++ 中嵌入汇编
View Code
#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 阅读(212) 评论(0) 收藏 举报

浙公网安备 33010602011771号