2007年12月26日

VC.net嵌入汇编处理指针的方法

摘要: 如欲得到指针指向的数据,需要二次寻址才可,如下程序为交换两个指针指向数据的代码void Exchange(int *p1,int *p2){#if 1 _asm { mov eax,p1; mov eax,[eax]; mov ebx,p2; mov ebx,[ebx]; mov ecx,p1; mov [ecx],ebx; mov ecx,p2; mov [ecx],eax... 阅读全文

posted @ 2007-12-26 21:51 cutepig 阅读(428) 评论(0) 推荐(0) 编辑

导航