Mushroom GBALib 0.7

SourceForge.net Logo

Overview

Mushroom is a simple C library for the Nintendo Game Boy Advance. It provides a thin layer over the GBA hardware to allow for maximum control and flexibility in development.

Mushroom GBALib is public domain.

Send feedback/suggestions to molasses@ihug.com.au

News

2004-05-19 Mushroom 0.7 Released
Bug Fixes, Minor Features Added
- Fixed: bug with DMASET16() and DMASET32() not setting the right value
- Fixed: wait_vbl() no longer gets stuck in a loop when using the VBL interrupt
- Added: random number generator - math_rand()
- Added: debug functions - oam_dump(), hexdump(), bitdump(), dprint()
- Added: macros - PX_TO_TL(), TL_TO_PX(), PX_MOD_TL(), ABS(), SGN()
- Added: functions - get_oam_width_tl(), get_oam_height_tl()
- Added: functions - get_oam_width_px(), get_oam_height_px()
- Added: function - get_oam_tilevol()
- Added: function - hide_objs()
- Added: macros - SET_DISP_BG(), GET_DISP_BG()
- Added: macros - SET_DISP_WIN(), GET_DISP_WIN()
- Renamed: function - memfree() to get_ewram_avail()
Download

2004-02-29 Mushroom 0.6 Released
Minor Features Added
- Added: HUD functions (thanks David Voswinkel)
- Added: defines - IN_EWRAM, IN_IWRAM, FUNC_IN_IWRAM, PACKED, ALIGN4
- Added: DMA macros - DMASET16(), DMASET32()
- Added: Direct Sound macros - sounda_play(), soundb_play(),
         sounda_stop(), soundb_stop(), sound_start_timer(), sound_stop_timer(),
         set_sounda(), set_soundb()
- Updated: copy_bgmap() is about 3x faster.
Download

2003-11-29 Mushroom 0.5 Released
Speedup, cleanup and some math functions.
Download

2003-07-26 Mushroom 0.4 Released
First public release of Mushroom.
Download

Documentation

Mushroom API Reference
This lists all the functions in Mushroom. However, it doesn't list all the macros. Check the Mushroom header files for macros if you need something more low level.

CowBite Virtual Hardware Specifications
This is probably the best freely available reference for the GBA. Mushroom takes most of it's naming conventions from this reference.

Links

http://www.gbadev.org
http://www.devrs.com/gba