程序集x86 JMP到相对地址大于127(7F)

时间:2017-04-15 21:32:50

标签: assembly x86 processor opcode

我的装配不是很流畅;我想要实现的目标如下:

00001 INC EAX
00002 MOV EBX, 22
00003 JMP 140 <-- Here I want to jump +140 from the current EIP
...
00143 RETN <-- I want to land here

我在组装x86中了解了短距离,远距离,近距离跳跃,我似乎无法弄清楚如何进行我想要的跳跃,最近的解决方案是短暂的跳跃:

EB8F JMP xx <-- It would work if I'm jumping into a place less than 7F, but my jump is bigger than 127 (7F).

EB8F是我指令的操作码。

如何从当前EIP跳转140字节前进

0 个答案:

没有答案