I want to mod a game, but I'm having trouble recompiling after decompiling. I've decompiled my rom with luvdis (https://github.com/aarant/luvdis), which outputs a .s file. Luvdis claims that the decompiled output should recompile identically to the original rom. However, I was unable to recompile my rom (without any modifications). The new rom and the old rom do not match and the new rom doesn't boot in any emulator.
How do I compile a .s file to a useable .gba rom? Am I even approaching this the right way?
How to compile .s to .gba?
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: How to compile .s to .gba?
I tried luvdis with some devkitARM compiled .gba files and managed to build identical ROMs OK. These are the commands I used to recompile the source.
There's a warning: cannot find entry symbol _start but that's benign.
Code: Select all
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc rom.s -Ttext=0x8000000 -nostartfiles -nodefaultlibs -o rom.elf
/opt/devkitpro/devkitARM/bin/arm-none-eabi-objcopy -O binary rom.elf rom.gba
Who is online
Users browsing this forum: No registered users and 2 guests