Hi, I'm trying to read the contents of the PC register in an RH850 uC in C language (GHS compiler), but I haven't found anything about it. The PC register is not mapped to an address. I am no expert in ASM, but the ldsr and stsr opcodes don't provide a way to address the PC register.
Is there an ASM opcode to copy the contents of the PC register to another register?
Please let me know where I can start looking for clues on this.
I don't know with the GHS compiler but for CC-RH, in assembler, PC cannot be specified as an operand.
JBRenesasRulz Forum Moderator
In reply to migsantiago: