lpcware

Getting the current PC value

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by graynomad on Fri Aug 03 04:48:09 MST 2012
Does anyone know how to get the PC value into a C variable, the MSR instruction doesn't allow the PC as an operand and I can see no obvious way to get it.

Why? I want my error handler to be able to print the address at which a run-time error occurred.

Outcomes