2014-12-02 54 views

回答

5

是的,CS可以直接访问。然而,IP不是。惯用的伎俩是做一个CALL指令,将其放置在堆栈上:

mov dx, cs ; save cs into dx 
    call next 
next: 
    pop ax ; place ip of "next" into ax, adjust as necessary 

当然,如果加载地址是不知道这个时候才需要。

+0

啊。我忘了这个,谢谢你提醒我。 – YeeApple 2014-12-02 16:59:46