lis r3, 0x1234 ;the top 16 bits of your number
ori r3, r3, 0x5678 ;the bottom 16 bits of your number
The contents of r3 are now 0x12345678
Sorry but I have no knowledge of xilinx power studio or anything like that. All of my experience with PPC comes from reverse engineering Xbox360 stuff.
I don’t really write PowerPC, I’m usually reading it in IDA. If I ever have to test an instruction or something, then I do inline assembly in Visual Studio and run it on my XDK.
How would you use lwzx cant find any information on it?
Edit* Never mind found out
For people who want to know its like lwz but adds the values to get address
Example:
lis r5, 0x8200
ori r5, 0
li r4, 0x10
lwzx r3, r4, r5
//r3 = Value at address of 0x82000010