PowerPC Beginner's Tutorial

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.

oh…okay…so how do generate your elf files for the powerpc?

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.

oh…okay thanx anyways

This is an impressively detailed tutorial. Well worth the read, I hope people take advantage of this.

I wish I had this when I started reversing, haha…

Thank you! This helped me ALOT!
-Thanked!

nice post bro

Only 7 months after posting I am finally getting around to reading this :stuck_out_tongue:

I know it took you time to write this stuff down

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

Good job!

Oh look some more of your tutorials i’m interested in


EDIT: Removed by poster.

Brilliant thread, thank you. More than worthy of a bump :smile:

Link to Stanford lectures youtube playlist is broken. Here’s a fix:
http://www.youtube.com/watch?v=Ps8jOj7diA0&feature=results_main&playnext=1&list=PL492F57D13521DC2E

sweet

Dont post in dead threads 4 years old and just say sweet.
@Chris.
@STN
Lock this up

It is a stickied post and is still a good tutorial so I see no reason to close it.

1 Like