#8886 - krom - Wed Jul 23, 2003 1:28 am
A good set of libraries to make use of the SWI calls to the bios, have been released by Andrew P. Bilyk:
I just coded a set of SWI libraries and figured I'd share them with the gbadev community.
Features:
- Interrupts 0-24 (see CowBite or GBATEK spec sheets for more SWI info)
- Coded in assembly
- Compiled in ARM mode (with -mthumb-interwork for compatibility with Thumb code)
- Header file included, which externally defines?the library?functions
- Each function compiled from an individual source code file, so library will only include functions you actually use.
- Three libraries included:? swi(text).lib, swi(ewram).lib, swi(iwram).lib;? Each library will place the functions in the corresponding section of memory
Instructions:
Include swi.h from your source code
Link desired library when building rom
Get the set of SWI libraries straight from the main site!
I just coded a set of SWI libraries and figured I'd share them with the gbadev community.
Features:
- Interrupts 0-24 (see CowBite or GBATEK spec sheets for more SWI info)
- Coded in assembly
- Compiled in ARM mode (with -mthumb-interwork for compatibility with Thumb code)
- Header file included, which externally defines?the library?functions
- Each function compiled from an individual source code file, so library will only include functions you actually use.
- Three libraries included:? swi(text).lib, swi(ewram).lib, swi(iwram).lib;? Each library will place the functions in the corresponding section of memory
Instructions:
Include swi.h from your source code
Link desired library when building rom
Get the set of SWI libraries straight from the main site!