Hey,
it would be great if someone could provide me a RAM Write template for this instruction: lwzx rX, rY, rX!
For lwzx rX, rY, rZ the template would be:
lis rX, 0xVVVV
ori rX, rX, 0xWWWW
stwx rX, rY, rZ
But this time, the destination and source register is the same.
Thx for answers.
I just did a code for Lego pirates that was similar lwzx r0,r5,r0
Unlock All Red Hat Extras [Thomas83Lin]
C247A0A0 00000002
3980FFFF 7D85012E
7C05002E 00000000
li r12,-1
stwx r12,r5,r0
lwzx r0,r5,r0
Quote from: thomas83lin on May 08, 2011, 10:38:16 PM
I just did a code for Lego pirates that was similar lwzx r0,r5,r0
Unlock All Red Hat Extras [Thomas83Lin]
C247A0A0 00000002
3980FFFF 7D85012E
7C05002E 00000000
li r12,-1
stwx r12,r5,r0
lwzx r0,r5,r0
thx man, it´s short and simple! ;D
Works.
li r12,0x7FFF #new value
stwx r12,r4,r0
lwzx r0,r4,r0 generally:
lis r12, 0xVVVV
ori r12, r12, 0xWWWW
stwx r12, rY, rX
lwzx rX, rY, rXcool. :eek: