I'm using IDA Pro 6.9 with some PowerPC disassembly. The code sets up
r13 to a value, say 0x10000, then offsets that register to load and store memory in that region.
r13 is never modified again in the code, it is only used for loading/storing data by offsetting.
e_stb r7, -0x56E2(r13)
I'm hoping there is a way to tell IDA the value of r13 so that it will automatically generate a reference to the correct memory location so that I get something like:
e_stb r7, -0x56E2(r13) # Named_Location
As well as the value at that location when I hover with the mouse.
Igor Skochinsky gave what is the correct answer but didn't fix my specific problem.
The answer seems to have worked anywhere r13 is used in an add instruction,
e_add16i r31, r13, -0x2DF2 # unk_4000ADE2 but is not working for direct relative load/store instructions,
e_stb r3, -0x2E08(r13) (no variable name, offset in red).
This might be a bug in IDA.