#8740 - DracoX5 - Fri Jul 18, 2003 9:32 pm
I've been trying for what seems like forever to get as to assemble my file with the crt0.s from the devr.com site.
Please, would someone just tell me how I can do this. I have been looking, but can't find anything![/i]
#8841 - Lupin - Mon Jul 21, 2003 2:48 pm
I think you forgot to set up some specific settings in the crt0.s file, open it in your editor and deactivate interrupt handling if you don't use it.
I think you have Jeffs crt0.s file, it has some important switches wich you need to take care of.
What type of error messages do you get?
If you need interrupt handling I would suggest you writing your own routines to handle them.
#8887 - DracoX5 - Wed Jul 23, 2003 2:56 am
Okay, my batch file is as follows:
Code: |
set GBANAME=demo1
gcc -o %GBANAME%.elf main.s
objcopy -O binary %GBANAME%.elf %GBANAME%.gba
pause |
At first ld was giving me messages that I needed crt0.o, so I assembled the file and put it in the same directory. However, now I get this error from ld:
I don't think it's a problem with interrupt handling; I set that up before I tested the batch file.
#8971 - DracoX5 - Fri Jul 25, 2003 5:04 am
Okay, I got it fixed. I'm not quite sure how I did it exactly, but it works now :)
I finally just started trying anything I could think of. I ended up putting ".extern AgbMain" in the crt0.s and using makefiles instead of batch files, along with some other tiny changes that probably weren't necessary.