Post: PPC Compiler
07-27-2013, 02:06 AM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

This is a tool I created for compiling PowerPC instructions into OpCodes. This is EXTREMELY useful for PS3 modding, as all PS3 .elfs are PowerPC. This is a PPU compiler, so it will compile opcodes that will work for any PS3 game application (or xbox .xex files).

Screenshot:

You must login or register to view this content.



How to use

1. Enter your instructions in the box on the left.
2. Enter the address that you will be injecting the opcodes at in the Start Address box (note, this is the address from IDA/Memory, not the HxD address).
3. Click the compile button.
4. Copy the opcodes from the rightmost box and paste them into your elf at the appropriate address.

To designate a register, put a "%" symbol in front of it. For example:

    li r3, 0    <--this will not work.
li %r3, 0 <--this will work.


For bl instructions, just do:

    bl (address to bl to)


For example:

    bl 0x248FA4


For conditional branching instructions, just do the instruction followed by the distance to branch. For example:

    bdnz -0x14
beq 0x14
bne 0x2C




Download

Download the tool here: You must login or register to view this content.
View a virus scan here: You must login or register to view this content.

(Sorry about the false positives, the app has been protected to prevent reverse engineering Choco)

Credits:
-BuC-Shotz for some help and some code
-The makers of MinGW
-xSonoro for packing
-iMCSx for some C# help


Enjoy guys, hopefully this will be useful to some of you!
(adsbygoogle = window.adsbygoogle || []).push({});

The following 69 users say thank you to Choco for this useful post:

-JM-, {H} | Exception, |RichModder|, AlexNGU, B777x, BadChoicesZ, BaSs_HaXoR, BLiNDzZ, BrinkerzHD, Bucko, Chxii, Cyb3r, Dan Dactyl, DH63, ErasedDev, esc0rtd3w, Luckeyy, FBML, flynhigh09, Gabberhard, Gendjisan, GongasPT, Hunter926, ImAzazel, ImPiffHD, ImSooCool, Insult, Island Time, ItsLollo1000, jdmalex, Je Modz, JLM, JOniiX85, klambo, LBK, M-alShammary, Mango_Knife, milky4444, Mr_Snake_-, Mr. Mask, mrdarkblue, Norway-_-1999, Notorious, O-H, GandalfsBish, Pewp, primetime43, Pseudo_Soldier, ryu_hayabusa80, ICS Vortex, SC58, Shark, Smoky420, SnaY, Soldier., Source Code, Sticky, Swaqq, Taylor, TheUnexpected, Ciri, TotalModzHD, Vicodin10, Hash847, xFlavez, xRevolutions
08-23-2016, 01:10 PM #38
Originally posted by Kazr View Post
thanks, i gave up on this a long time ago because i was getting errors but i don't know much about this sort of stuff but in order to finish my project i need to use custom self's so kinda need to work it out or not bother at all.


Feel free to add me on Skype if you need any help Smile
Skype: MichealWeston7

The following user thanked BaSs_HaXoR for this useful post:

ymh
08-24-2016, 03:35 AM #39
ymh
Treasure hunter
Originally posted by HaXoR View Post
Feel free to add me on Skype if you need any help Smile
Skype: MichealWeston7


i should be able to work it out myself but i'll keep that in mind.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo