替代x86汇编“呼叫”的指令? [英] Substitutes for x86 assembly 'call' instruction?

查看:129
本文介绍了替代x86汇编“呼叫”的指令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是一些替代x86的调用指令?
也许是这样的返回地址推则跳转?

What are some alternatives to the x86 call instruction? Maybe something like a push of the return address then a jump?

也就是其用于获得在存储器中的当前位置的命令

Also is their a command for obtaining the current position in memory?

推荐答案

调用实际上为您完成此例如:

CALL actually does this for you for example

CALL my_func

会做类​​似

push ret_address
jmp my_func

和随后的RET调用只想用你只是被推到JMP回来意义上的地址。是否有你不希望使用CALL或者是不适用于你一个具体的原因是什么?
在内存中当前位置可以尝试阅读EIP寄存器(不能写入)。

and a subsequent RET call would just use the address you just pushed to JMP back in a sense. Is there a specific reason that you don't want to use CALL or is it not available for you? For current position in memory you can try to read EIP register (can't write to it).

这篇关于替代x86汇编“呼叫”的指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆