Hi,
I have recently learnt how to move the value of an address into another address by inserting extra instructions into a bunch of asm codes using branch instructions. But I am totally clueless about what to do when the addresses of the pile of asm instructions where I want to insert the branch instruction change. The instruction would not be working anymore because the offset the branch instruction would have to be different each time I launch the game (F-Zero GX... a hell of pointers).
At least the empty/unused area where I write my own asm instructions is unaffected by pointers.
But... The aim address where I want to move the value to changes as well.
I used a lis and a ori instruction to define the aim address in an unused register.
I have recently learnt how to move the value of an address into another address by inserting extra instructions into a bunch of asm codes using branch instructions. But I am totally clueless about what to do when the addresses of the pile of asm instructions where I want to insert the branch instruction change. The instruction would not be working anymore because the offset the branch instruction would have to be different each time I launch the game (F-Zero GX... a hell of pointers).
At least the empty/unused area where I write my own asm instructions is unaffected by pointers.
But... The aim address where I want to move the value to changes as well.
I used a lis and a ori instruction to define the aim address in an unused register.


Comment