Access the PC in an assembly routine
Posted: Tue Jun 21, 2022 2:18 pm
I'm trying to get the current PC value into an assembly routine written for xtensa (lx6) cores. After digging into the instruction set doc, I cannot see really how to achieve this. It looks as if the PC is not mapped into the 16 AR, and I cannot see it listed into the registers I can access through the RSR instruction, or even the RER instruction.
Any Idea ?
Any Idea ?