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 can I create a .gba file??

#68764 - harrisale - Thu Jan 26, 2006 6:38 pm

Does anyone know of any programs the will allow me to compile/convert my GBA .bin to a .gba rom file?

thanx
_________________
=====harrisale+++++

#68773 - Cearn - Thu Jan 26, 2006 7:04 pm

...

rename it?

Seriously, we can't help you if you don't tell us what the .bin file is supposed to be in the first place. Generally, a .bin just means that it's a binary file, which literally can mean anything.

Also, you don't have to shout. We ain't deaf.

#68783 - Chaotic Harmony - Thu Jan 26, 2006 7:47 pm

Yeah, I think you just need to rename it. I put an extra line in my "make" batch file to do exactly that, and haven't had any problems.
_________________
http://www.distractionware.com

#68785 - wintermute - Thu Jan 26, 2006 7:58 pm

Chaotic Harmony wrote:
Yeah, I think you just need to rename it. I put an extra line in my "make" batch file to do exactly that, and haven't had any problems.


ewwwwww

#68789 - Chaotic Harmony - Thu Jan 26, 2006 8:07 pm

Excuse me? :)
_________________
http://www.distractionware.com

#68795 - Cearn - Thu Jan 26, 2006 8:21 pm

Chaotic Harmony wrote:

wintermute wrote:
Chaotic Harmony wrote:
Yeah, I think you just need to rename it. I put an extra line in my "make" batch file to do exactly that, and haven't had any problems.

ewwwwww

Excuse me? :)

You'll have to forgive wintermute. He's a Real Programmer, which means he know how to do Proper Project Builds, which means he prefers makefiles over batch files. The thing is, he's right though.
Also 'ewwwww' on having an extra line in the batch/make file just to rename from 'bin' to 'gba', when you can just objcopy to the desired extension in the first place. An extra line is just silly.

#68810 - tepples - Thu Jan 26, 2006 10:13 pm

Cearn wrote:
Also 'ewwwww' on having an extra line in the batch/make file just to rename from 'bin' to 'gba', when you can just objcopy to the desired extension in the first place. An extra line is just silly.

Unless your binary needs other postprocessing before it is usable, such as appending a data file. You'll find such a convention in my GBA programs' build scripts?: .bin before it adds the GBFS file and .gba afterward.

? I refer to "build scripts" generically because I still use batch files for the simplest projects such as the GBFS demo, but for more complex projects such as TOD, GSM Player, and Luminesweeper, I use GNU makefiles.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#68813 - Cearn - Thu Jan 26, 2006 10:28 pm

tepples wrote:
Cearn wrote:
Also 'ewwwww' on having an extra line in the batch/make file just to rename from 'bin' to 'gba', when you can just objcopy to the desired extension in the first place. An extra line is just silly.

Unless your binary needs other postprocessing before it is usable, such as appending a data file. You'll find such a convention in my GBA programs' build scripts?: .bin before it adds the GBFS file and .gba afterward.

Granted. That's why I said "just to rename", which doesn't apply when you're adding data.

#68902 - Fatnickc - Fri Jan 27, 2006 7:55 am

If you are using batch files, you needn't add a new line. Simply replace .bin with .gba.

Last edited by Fatnickc on Fri Jan 27, 2006 8:30 pm; edited 1 time in total

#68919 - keldon - Fri Jan 27, 2006 10:33 am

Fatnickc wrote:
If you are using batch files, you needn't add a new line. Simply replace .bat with .gba.


I take it you mean .bin with .gba.

#68938 - Chaotic Harmony - Fri Jan 27, 2006 2:28 pm

Quote:
You'll have to forgive wintermute. He's a Real Programmer, which means he know how to do Proper Project Builds, which means he prefers makefiles over batch files. The thing is, he's right though.


I see. Well, thanks for the tip - I'm not much of a programmer. It's a means to an end for me, so as long as what I do works and plays well, I don't care how it's coded.
_________________
http://www.distractionware.com

#68990 - Fatnickc - Fri Jan 27, 2006 8:29 pm

keldon wrote:
Fatnickc wrote:
If you are using batch files, you needn't add a new line. Simply replace .bat with .gba.


I take it you mean .bin with .gba.

So I do. It was early in the morning, and I'm just a plain fool.
I'll edit the original post..