Code.bin editing?

Discussion in '3DS - Homebrew Development and Emulators' started by GalladeGuy, Mar 9, 2016.

  1. GalladeGuy
    OP

    GalladeGuy Freeze Kirby :3

    Member
    2,576
    2,565
    Oct 28, 2015
    United States
    So when you open up the code.bin file for a game, its just a huge garbled mess. Does anyone know of a way to understand what it says or turn it into C or something? Sorry if this is a stupid question.
     
    angelhp and DesuIsSparta like this.
  2. Syphurith

    Syphurith Beginner

    Member
    641
    222
    Mar 8, 2013
    Switzerland
    Xi'an, Shaanxi Province
    No way to turn it into direct C, you can only turn it into better ASM with IDAPro. (there is leaked 6.8 copy somewhere)
    Garbled mess -> Machine Code, Read-Only Data and other stuff.
    Split it according to exefs header, and load up those as seperated into IDAPro.
    You can edit it, do remember to first uncompress it. You can compress the code afterwards.
     
  3. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    I've spent a few hours into it but it's still a pain in the ass and I end up with garbled pseudocode which leads me to believe i'm splitting up the file incorrectly.

    Edit: Actually, I guess the pseudocode isn't so garbled, but my Assembly knowledge is very poor.
     
    Last edited by DesuIsSparta, Mar 9, 2016