MI Demos

# Memory Interface (MI) Sample Demos

## Location

`$TwlSDK/build/demos/mi
$TwlSDK/build/demos.TWL/mi`

## Compilation

Move to the `$TwlSDK/build/demos/mi` (or `$TwlSDK/build/demos.TWL/mi`) directory, and enter

> `% make`

The SRL executable file and the NEF or TEF files with binary information are created in `$TwlSDK/build/demos/mi/(sample name)/bin/(platform)/(target)/`
`$TwlSDK/build/demos.TWL/mi/(sample name)/bin/(platform)/(target)/`.

For example:

> `$TwlSDK/build/demos/mi/dmaCallback-1/bin/ARM9-TS/Release/main.srl`

will be the executable file for the `dmaCallback-1` demo.

## Execution

### For NITRO ROMs:

If using the Ensata emulator:

- Execute NEF and SRL files with ensata.

If using IS-NITRO-DEBUGGER:

- Load and execute an NLF file with IS-NITRO-DEBUGGER.
- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line.

If using IS-TWL-DEBUGGER:

- Load and execute an NLF file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

### For TWL/NITRO HYBRID ROMs:

If using IS-NITRO-DEBUGGER:

- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line.

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

### For TWL LIMITED ROMs:

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

## Description

Name | Directories | Operation
--- | --- | ---
`dmaCallback-1` | `demos` | Uses DMA callback during V-Blank.
`uncompressStream-1` | `demos` | Reads and extracts compressed image data from a stream.
`uncompressBLZ` | `demos` | This sample extracts BLZ-compressed data.
`ndma-1` | `demos.TWL` | Uses the new DMA.
`wramManager-1` | `demos.TWL` | Uses the WRAM manager on WRAM-A/B/C.

## Operation

Operates normally in all operating environments.

## See Also

`MI Function List`

## Revision History

2008/06/23 Added a description of the `uncompressBLZ` sample demo.
2008/05/22 Changed `UnComp_Stream_BmpBG` to `uncompressStream-1`.
2008/04/25 Cleaned up the table. Changed the lists for TWL.
2005/05/10 Added description of `UnComp_Stream_BmpBG` demo.
2005/03/08 Standardized the Japanese word for "interrupt."
2005/03/02 Revised descriptions to reflect current support environment conditions.
2005/03/08 Standardized the Japanese term for "interrupt."
2005/03/02 Revised descriptions to reflect current support environment conditions.
2004/08/17 Standardized the notation of the IS-NITRO-EMULATOR.
2004/07/10 Changed from `.bin` to `.srl.`
2004/01/18 Initial version.

CONFIDENTIAL