#8767 - wasiliy - Sat Jul 19, 2003 12:23 pm
hi,
i use armasm. when i try to burn my roms on a cart my burning software says that its not a valid gba rom but my roms run on visual boy advance. i assume that i assembled my rom in a wrong way. here is my make file:
zarmasm -cpu ARM7TDMI -Littleend line.s -o line.o
zarmlink -bin line.o -map -ro-base 0x02000000 -rw-base 0x3000000 -nodebug -o line.bin
#8772 - sgstair - Sat Jul 19, 2003 1:49 pm
wasiliy wrote: |
hi,
i use armasm. when i try to burn my roms on a cart my burning software says that its not a valid gba rom but my roms run on visual boy advance. i assume that i assembled my rom in a wrong way. here is my make file:
zarmasm -cpu ARM7TDMI -Littleend line.s -o line.o
zarmlink -bin line.o -map -ro-base 0x02000000 -rw-base 0x3000000 -nodebug -o line.bin |
I would guess that you have a header problem, either no header, or the wrong one
Take a look here for more information: http://www.work.de/nocash/gbatek.htm#cartridgeheader
-Stephen
#8774 - wasiliy - Sat Jul 19, 2003 2:27 pm
hmm well, now i fixed the rom with F.A.T and upgraded my burning software. now the software seem to recognize the rom but when i try to run it on my gba the rom doesnt start at all.
#8779 - Darkain - Sat Jul 19, 2003 5:19 pm
you are compiling the ROM for multiboot mode. this is why it would work on emulators, and not on the GBA from a cart.
-ro-base 0x02000000
this appears to be the "read only base address"... when it is set to 0x02000000, it tries to execute the code from EWRAM, instead of ROM. it should be set to 0x08000000 to execute the code from rom. try this out and see if it works
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS
#8784 - wasiliy - Sat Jul 19, 2003 10:24 pm
now without fixing the header my rom starts but doesnt really work. i get random output on screen instead of the programmed effect. when i fix the header with FATV8.exe my rom doesnt start at all.
#8785 - wasiliy - Sat Jul 19, 2003 10:47 pm
i have to correct myself:
only when i tell the linke to make a .gba file i get erroneous results. when i tell him to make a .bin the rom wont start at all.
#8786 - sgstair - Sat Jul 19, 2003 11:37 pm
If it helps any, I have several projects for the ARM SDT in my GBA section at http://www.akkit.org/sgstair - all of them compile properly, so you might try comparing the projects - maybe that will help.
I've since given up ARM SDT in favor of devkitadvance - sorry I can't help more
-Stephen
_________________
http://blog.akkit.org/ - http://www.akkit.org/dswifi/
#8791 - wasiliy - Sun Jul 20, 2003 6:15 am
thanks very much to all of you. it works now after i copied the header of sgstair into my code. do i always have to have a header or is there a trick to run without? the header takes a lot of precious bytes :)
#8793 - sgstair - Sun Jul 20, 2003 6:32 am
Nope, no trick
Just gotta have a correct header..
You can use some tricks, by stuffing code in unused sections of the cart header ;)
But, the header must be there (to find out more specifics, see the no$ gbatek site I linked earlier)
-Stephen
_________________
http://blog.akkit.org/ - http://www.akkit.org/dswifi/