|
[求助]请问:在vc程序中如何获得寄存器的值?即如何c代码中将eax的值给变量?
看来LZ还不解编程 ,还有汇编语言,还有编译原理 EAX,EBX,ECX,EDX,ESP,EBP等等都是CPU里的通用寄存器 像你C语言用寄存器?只有汇编语言才可以操作读取寄存器 retrun eax ???这不是语法错误嘛,C语言没有eax关键字 一般C语言编译器是用eax做为返回值,但也不是一定得要这样,是看编译器怎么生成机器代码了 比如 int ret; __asm { call MyFun mov ret,eax //把eax放到ret来 } return ret; |
|
[求助]请问:在vc程序中如何获得寄存器的值?即如何c代码中将eax的值给变量?
EAX是通用寄存器,随时会变化的! |
|
帮我看下这个有什么用...
藐是用C/C++写的吧 014C1C23 55 push ebp 014C1C24 8BEC mov ebp,esp 014C1C26 53 push ebx 014C1C27 56 push esi 014C1C28 57 push edi //上面应该是VC编译器生成的函数入口 014C1C29 83EC 64 sub esp,64 //临时变量分配用的 014C1C2C 68 231C4C01 push 014C1C23 //压入一个指针地址 014C1C31 31F6 xor esi,esi //esi请0 014C1C33 56 push esi //压入0,也就是NULL 014C1C34 56 push esi //连续压0 ,因为push esi比push 0用的机器码要短 014C1C35 56 push esi //所以优化使用push esi 014C1C36 56 push esi 014C1C37 56 push esi 014C1C38 56 push esi 014C1C39 56 push esi 014C1C3A 56 push esi //下面应该是call XXXXXX //变C语言就是fun(0,0,....&p014C1C23) |
|
|
|
|
|
[原创]有真才实学的。才能得到邀请码。
啊?我是什么用户? |
|
[求助]基地址的问题
用户模式是用虚拟地址,每个进程都是有个4G的虚拟地址 |
|
[求助]Ox代表什么?
.......有C++基础才学得好!毕竟很多资料都是以C/C++为讲解的 |
|
[原创]星际争霸存录像卡死原理和解决办法
现在玩星际的变少多了~ |
|
[原创]星际争霸存录像卡死原理和解决办法
后面的内容总是发不出来,卡半天就显示该网页无法显示!....真是无语 |
|
[求助]主页上的OD怎么下载不了??
想学外挂,谁教我 |
|
[求助]我想把delphi程序的最小化变灰色
知道了,谢谢你们! |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值