gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > How to change data in the header?

#11770 - zazery - Sat Oct 18, 2003 6:12 pm

I've got an ezflash advance and I'm tired of having all my games called "untitled game" I would like to access the header to change the name as well as take a look at other data in the header. If anyone has any suggestions of how I can do that, it will be much appreciated.

#11776 - tepples - Sat Oct 18, 2003 6:40 pm

GBA Rom Fixer by DarkFader
http://www.gbadev.org/tools.php?section=header
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#11777 - DekuTree64 - Sat Oct 18, 2003 6:46 pm

You can either get a header tool from the tools section on the main site, or edit your Crt0.S. If you use a header tool it's easy to do, but you'll have to change it every time you recompile. If you do it in Crt0, it's a little trickier, but it will be permanent. If you're using Jeff's Crt0, just go down ~1/4 of the way through it, and look for this:
Code:

    @ Game Title (80000A0h)
        .byte   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
        .byte   0x00,0x00,0x00,0x00

That's the title, you'll have to get the ASCII values of the letters you want to use and type them in there. You may be able to use letters in single quotes like 'A', 'B', 'C' to make it a lot easier, not sure if it will let you do that.
I've only ever used Jeff's Crt0 though, so I don't know how to do it in DevKit's default one or anything, sorry.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#11781 - yaustar - Sat Oct 18, 2003 9:24 pm

FATv8 is extremely easy to use as well from http://www.gbaemu.com
_________________
[Blog] [Portfolio]

#11792 - zazery - Sat Oct 18, 2003 11:29 pm

Thanks guys for the replies. I found the GBARM to work however I couldn't find the FATv8. Maybe I'm not looking hard enough. I've downloaded the GBAFix too, thanks. It's great to have so much support online.

As for the Crt0.o and Crt0.s, I really don't understand them too well since my ASM knowledge isn't all that great. I did take a look as to where you said you could change the title and I think I'll do that for future projects because it seems to be really useful. If i'm correct these Crt.o/s files are basically only for fixing the header and have nothing to do with the rest of the project.

Thanks again, I really appreciate it, now I'm not stuck with seeing all those "untitled game" roms on my cart.

#11793 - yaustar - Sun Oct 19, 2003 12:56 am

http://207.44.176.77/~admin28/gbaemu/fatools.htm

This should help. It's mainly used to put patchs on roms but it has a nice header editor.
_________________
[Blog] [Portfolio]

#11806 - Quirky - Sun Oct 19, 2003 9:58 pm

DekuTree64 wrote:
you'll have to get the ASCII values of the letters you want to use and type them in there. You may be able to use letters in single quotes like 'A', 'B', 'C' to make it a lot easier, not sure if it will let you do that.


you can do this sort of thing, which is a damn sight easier than working out single ASCII values!

@ Game Title (80000A0h)
.ascii "name of game"

#11807 - zazery - Sun Oct 19, 2003 10:11 pm

Quirky wrote:
you can do this sort of thing, which is a damn sight easier than working out single ASCII values!

@ Game Title (80000A0h)
.ascii "name of game"


Well thats easy to do, is there any info on how to link the Crt0 in with you code and what exactly you can do with it. Sorry I'm new with the whole GBA scene, make files, and haven't coded too much other than in windows. I did make some pictures and sprites on the GBA however i'm still clueless on the Crt0.

Thanks for all the replies!