Why can't you set the instruction pointer directly?

前端 未结 4 1750
陌清茗
陌清茗 2020-11-27 06:09

The Wikipedia article about x86 assembly says that \"the IP register cannot be accessed by the programmer directly.\"

Directly means with instructions like mov and a

4条回答
  •  我在风中等你
    2020-11-27 06:27

    I think they meant that the IP register cannot be accessed directly in the same way the other registers are accessed. Programmers can definitely write to IP, for example by issuing a jump instruction.

提交回复
热议问题