# MI_SetMainMemoryPriority

## C Specification

  `#include <nitro/mi.h>`
  `void MI_SetMainMemoryPriority( MIProcessor proc )`

## Description

This function sets the priority for access to the main memory.

It sets the priority for instances when both ARM9 and ARM7 are accessed simultaneously.

The argument `proc` is in `MIProcessor` enumeration format and has the following meanings:

`MI_PROCESSOR_ARM9` | Gives priority to ARM9.
`MI_PROCESSOR_ARM7` | Gives priority to ARM7.

## Internal operation

Accesses the `EXMEMCNT` I/O register `(0x4000204)`.

## Arguments

`proc` | Access priority setting

## Return Values

None

## See Also

``MI_GetMainMemoryPriority`, `MI_DispMemDmaCopy`, `MI_HBlankDmaCopy``

## Revision History

08/26/2004 Added MI_DispMemDmaCopy to See Also
12/25/2003 enum name changed to `MIProcessor`
12/18/2003 Initial Version