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.

Coding > crt0.0 Help need version with interupts enabled?

#877 - notron - Sat Jan 11, 2003 7:42 pm

I searched the entire devrs/gba site as suggested for the source of crt0.s but it didn't turn up. Tried manually looking through the site, couldn't find it.

I only need a version of crt0.o that has interupts turned on to link into my project. I have "graduated" to the point that I want to turn them own and have my own IntrTable[] setup. All ready to go except I am using DevKitAdv and it has them turned off.

Can someone point me to the source of Jeff F's crt0.s or to a version of crt0.o that already has interrupts enabled??

Thanks in advance for helping this Newbie again!
_________________
MysticX is The Defender

#882 - I.C.E - Sat Jan 11, 2003 8:18 pm

First you must set (line 85):

.equ __InterruptSupport, 1

and then one of the following one:

.equ __FastInterrupts, 1
.equ __SingleInterrupts, 1
.equ __MultipleInterrupts, 1

Because you wrote something about IntrTable[] only SingleInterrupts or MultipleInterrupts fill your needs.

If that is done you only need to feed IntrTable[] with the correct pointers and turning the specific interrupt on.

#886 - notron - Sat Jan 11, 2003 8:25 pm

Thanks to all.

I finally found the source code crt0.s on the gbadev/gba site under the C/misc section ( strange place for ASM code, but that is where it is!).

It is entitled "crtls v1.28" just in case any other newbies need to find this source code.

Next step, assemble according to I.C.E instructions and override link into the GCC.
Thanks again to all.
_________________
MysticX is The Defender