Access the PC in an assembly routine

v.dupaquis
Posts: 1
Joined: Wed Mar 02, 2022 1:48 pm

Access the PC in an assembly routine

Postby v.dupaquis » 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 ?

Who is online

Users browsing this forum: No registered users and 37 guests