# MI_SetWramBank

## Syntax

  `#include <nitro/mi.h>`
  `void MI_SetWramBank( MIWram cnt )`

## Arguments

cnt | Work RAM allocation setting

## Return Values

None.

## Description

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.

## Internal Operation

Accesses the WVRAMCNT I/O register (0x4000244) and WRAM BANK (d24 - d25).

## See Also

None.

## Revision History

2004/03/12 Corrected `MI_SetWRAMBank()` to `MI_SetWramBank()`.
2003/12/24 Initial version.

CONFIDENTIAL