From: Vincent R. <vin...@fr...> - 2025-01-08 10:00:00
|
On 08/01/2025 at 10:07, Thorsten Otto via Freemint-discuss wrote: >>Theoretically, they >>should just act like "jsr" and "rts". But convincing Ghidra to do that is >>another story. > > Yes, that was the idea. Translating the offsets to function names could be > done later by a script, but for that we have do know them first ;) The key point is to add a reference from the opcode to the target address. What I did with the '$' script. Then as soon as a label is added or renamed at the target address, it will be displayed near all the referring opcodes. I guess that a proper opcode instruction decoding should do the same: - First, automatically add a reference to the target address, using the same method as the '$' script. - Then properly implement the PCode operation (in InstructionPrototype instance?) to materialize the jsr/jmp behaviour for decompilation. I'm not familiar with that stuff, though. -- Vincent Rivière |