【发布时间】:2012-08-23 21:19:49
【问题描述】:
在汇编中以下列方式执行远调用是否合法:
call farCall ;call an example function that jumps to memory
farCall:
jmp 0x1111:2222 ;example address in memory
程序在 0x1111:2222 加载
;do some stuff
ret ;return to where the call was made, NOT THE JUMP
TO THIS ADDRESS
请注意,这是 16 位实模式,而不是 32 位保护模式(我知道已经有问题了)
【问题讨论】:
-
然后你会返回到错误的段(即 0x1111 而不是你调用的任何段),但可以肯定的是,去吧,汇编器不会阻止你。