#36670 - Vertex - Sun Feb 27, 2005 9:58 pm
Hi!
and
GCC compile this code correct, but I can't boot this with my GBA.
I think, the problem is, that on address 0x02000000 is the instruction "b $020000e4". But on other bootable roms, the istruction is every "b $020000c0".
I can send my rom with F2APowerWriter correctly and start it, but with my own send-tool, I can only sending roms with "b $020000c0" correctly.
Can anyone help me?
cu olli
Code: |
#include "gball.h"
#define MULTIBOOT volatile const u8 __gba_multiboot; MULTIBOOT int main(void) { u16 c = 0; SetMode(MODE_3 | BG2_ENABLE); for(c = 0; c < 38400; c++) { VideoBuffer[c] = (31 << 10); } while(1); } |
and
Quote: |
path=E:\Dev\GBA\DevkitARM\devkitadv-r5-beta-3\bin
gcc -Ttext=0x02000000 -o main.elf main.c objcopy -O binary main.elf main.mb.gba del *.elf pause |
GCC compile this code correct, but I can't boot this with my GBA.
I think, the problem is, that on address 0x02000000 is the instruction "b $020000e4". But on other bootable roms, the istruction is every "b $020000c0".
I can send my rom with F2APowerWriter correctly and start it, but with my own send-tool, I can only sending roms with "b $020000c0" correctly.
Can anyone help me?
cu olli