棋子
·
2020年02月03日
Hi Daniel,
R15 is the register that holds the PC value.
The 'Cortex-A Programmers Guide' v4.0 available at https://developer.arm.com/doc... details this in sec. 3.1 'Registers'.
Also bear in mind that the PC value you see in the debugger's view may not be the actual PC value within the core.
The PC value on the core when it is executing A32 code is (executing instruction +8) and when it is executing Thumb instructions (T32) it is (executing instruction+4).
See sec. 3.1 again, but the paragraph starting "R15 is the program counter..." on p.3-7 in the above programmers guide.
I hope this helps