程序计数器更改

use*_*772 0 language-agnostic architecture hardware program-counter

在PC(程序计数器)寄存器发生变化的所有可能性中,我发现了这些:

1) PC increases its value with loading new instruction
2) with jumps and branches
3) with calling subroutine
4) with return from subroutine
Run Code Online (Sandbox Code Playgroud)

这些都是我遗失的东西吗?

我来自这篇文章.

Ale*_*nze 5

还有一些:

  • 硬件中断改变PC以执行中断服务程序,然后返回到被中断的程序.
  • 特殊情况(除以0或页面错误等异常情况)以类似的方式更改PC.
  • 调试中断也是这样做的.
  • 系统调用(它们的调用和返回)也会改变PC.