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 > Looking for Goldroad compiler

#59957 - spencer723 - Sat Nov 05, 2005 11:06 pm

I was wondering if anyone could post where I could find a newer version of the Goldroad compiler. The Goldroad site isn't working for me and Im just starting to work with GBA ASM development and I have a really old version. Thanks in advance. I have an older version right now and I don't know if it's my code or the compiler thats not working. Here is my code:
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

And I get the errors:
Code:

05/11/2005 5:24:20 PM
error : line 13 : label not found
ldr r2,=(BG2_ENABLE|
error : line 13 : label not found
ldr r2,=(BG2_ENABLE|MODE_3)
error : line 16 : label not found
ldr r2,=vram+

assembled with 3 errors

#59966 - Weird Person - Sun Nov 06, 2005 12:30 am

Why don't you try "Gba Dev. Tools Page" or "This link" ?

And I think your problem isn't the compiler. I think you forgot to download the Screen.h file (and remember to put it in the same folder of the goldroad assembler.).

Have that worked? helped?

#59969 - spencer723 - Sun Nov 06, 2005 1:27 am

Yup, I just needed to update the compiler, thanks :-)

#59987 - poslundc - Sun Nov 06, 2005 3:28 am

You should consider switching over to GCC (via DevkitARM) instead of Goldroad. Goldroad is abandonware as far as anyone knows, and hasn't received an update in years. Most people in the forums use GAS (GCC's assembler) instead.

The directives and symbols are a bit different but once you learn them you can do all of the same exercises from the Goldroad tutorial, and you'll have access to a much larger codebase and wealth of knowledge to draw upon than you would with Goldroad, as well as all of the extra features of GCC (such as access to its preprocessor).

Dan.