#23591 - Darmstadium - Thu Jul 15, 2004 10:04 pm
i'm finally getting around to switching over to GAS! but i'm having a problem. I can't get any of my code to work. it assembles ok but none of it does anything; there is just a white screen. here is what I'm trying to assemble:
i'm using the following dos commands to compile (just typing them in for now):
path=c:\devkitadv\bin
gcc -c testasm.s
objcopy -O binary testasm.o testasm.gba
does anybody know what I'm doing wrong?
thanks
Code: |
.arm .align 4 start: ldr r0,=0x40000000 ldr r1,=0x401 str r1,[r0] ldr r0,=0x60000000+10*2+10*2*240 ldr r1,=0x7FFF str r1,[r0] mainloop: b mainloop .pool |
i'm using the following dos commands to compile (just typing them in for now):
path=c:\devkitadv\bin
gcc -c testasm.s
objcopy -O binary testasm.o testasm.gba
does anybody know what I'm doing wrong?
thanks