#include <nitro/mi.h>void MI_SetWramBank( MIWram cnt )This function allocates the work RAM that is shared between ARM9 and ARM7. The argument cnt is in the MI_WRAM enum format and has the following meanings.
MI_WRAM_ARM9_ALL |
Allocates all blocks (32KB) to ARM9. |
MI_WRAM_1616_1 |
Allocates block1 (16KB) to ARM9, and block0 (16KB) to ARM7. |
MI_WRAM_1616_2 |
Allocates block0 (16KB) to ARM9, and block1 (16KB) to ARM7. |
MI_WRAM_ARM7_ALL |
Allocates all blocks (32KB) to ARM7. |
Accesses the WVRAMCNT I/O register (0x4000244) and WRAM BANK (d24 - d25).
cnt |
Work RAM allocation setting |
None
None
03/12/2004 Corrected MI_SetWRAMBank() to MI_SetWramBank()
12/24/2003 Initial Version