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.

ASM > Problems with the compiled ROM.

#59967 - Weird Person - Sun Nov 06, 2005 12:53 am

I started reading This Tutorial to program ROMs to GBA. But I got some problems, because after I compile the first example code, the compiled ROM doesn't work in Visual Boy Advance (it shows a stupid white screen.) , and I have to always use BoycottAdvance in order to use my compiled ROM.

Does someone knows what is causing this problem?

(my "goldroad" compiler ? GBA security stuff? bad checksum?)

#59972 - spencer723 - Sun Nov 06, 2005 1:36 am

Can you post your code? Maybe it has something to do with that?

#59975 - Weird Person - Sun Nov 06, 2005 1:43 am

Its the same code of that tutorial you're reading.

Code:

@include screen.h
@textarea

ldr r1,=REG_DISPCNT
ldr r2,=(BG2_ENABLE|MODE_3)
str r2,[r1]
ldr r1,=0x0FF
ldr r2,=vram+2410
str r1,[r2]
label1
B label1

@pool
@endarea


I just find it strange because it doesn't work properly with Visual Boy Advance (Version 1.7B(eta?)), but works with Boycott advance.

#59977 - spencer723 - Sun Nov 06, 2005 2:00 am

That is wierd. It looks fine, maybe it's your version of VBA?

#59980 - Weird Person - Sun Nov 06, 2005 2:12 am

spencer723 wrote:
That is wierd. It looks fine, maybe it's your version of VBA?


Mine is pretty old. It's the version 1.7B, from 2003. Does it have something to deal with this problem?

#59982 - spencer723 - Sun Nov 06, 2005 2:18 am

Can't you just update the emulator by getting a newer version though? You could always use VBA to check the Memory registers using one of the tools in it. If there's nothing in VRAM you know it's not loading anything. Except of course the white pixels.