gbadev
Game Boy Advance homebrew development forum
default profile picture

Minuous

Member
Last seen 7 months ago
Joined:
Posts:
3
Topics:
1

Hello all

Many years ago I made an experimental port of my game to GBA using the HAM compiler (but not any HAM functions). Now I want to continue developing this port. I have installed the latest DevKitARM.

I am using these commands to build it, which is similar to how I used to build it with HAM:

c:\e\gba\dkp\devkitarm\bin\arm-none-eabi-gcc -o ww.elf gba.c engine1.c engine2.c -lm
c:\e\gba\dkp\devkitarm\bin\arm-none-eabi-objcopy -O binary ww.elf ww.gba

Previously it had a main() function for an entry point but the new compiler didn't like this, so I have this entry point instead:

int _start(int argc, char *argv[])

This builds without errors but the generated ww.gba doesn't work at all (gives just a white screen); it seems to be malformed according to tools like GBA Tool Advance. Anyone have any ideas about this issue?