1、拷贝eax的值
int cur_eax;
__asm
{
mov cur_eax, eax // 将eax放到num变量中
}
2、获取eip的值: eip寄存器没法直接获取,但可以用其他方法得到
int cur_eip;
push eax
_LABEL_:
lea eax, _LABEL_
mov cur_eip, eax
pop eax
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。