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 > VERY strange ...

#9848 - fessor - Tue Aug 19, 2003 10:39 pm

Hi all!

after having follow GBAGuy's tuts for a few days, i decidede to switch to GAS ( since Goldroad isnt updated anymore )

BUT.. it has turned out to be the nightmare of my LIFE...

as an old amiga asm coder ( way to many years ago ) i didn't figure this would be too hard to learn, but anyways here goes...

-- start test.s --
.TEXT
.ARM
.ALIGN

start:
ldr r1,=0x4

infi:
b infi
-- end test.s --

basic code really .. just puts 0x4 in r1, and then loops forever... or so i thought .....

when running in VisualBoyAdvance, the disassembler window just tells me that im NOT branching .. but overrunning into random mem/rom ..

wtf ??

( with a similar code in goldroad, everything just works fine )

im so lost....

..fessor..

#9849 - Omega81 - Tue Aug 19, 2003 11:32 pm

I had the same problem, but I solved it by downloading a linkscript and CRT0.s file from Devrs http://www.devrs.com/gba/files/crtls.zip this link should take you there. There is a guide on how to set it up here http://www.devrs.com/gba/files/gbadevfaqs.php This should help fix that problem. But the FAQ is a bit vagi
_________________
Keep it real, keep it Free, Keep it GNU