# Gfd Sample Demo

## Location

`$TwlSystem/build/demos/gfd/`

## Compilation

Move to the `$TwlSystem/build/demos/gfd/` directory and run:

> `% make`

Compiling begins, and the SRL executable file and the NEF or TEF files with the binary information are generated in:

> `$TwlSystem/build/demos/gfd/samples/VramManager/(sample name)/bin/(platform)/(target)/`

For example:

> `$TwlSystem/build/demos/gfd/samples/VramManager/FrameTexVramMan/bin/ARM9-TS.HYB/Release/`

The executable file of the release version for the NITRO/TWL HYBRID of the `FrameTexVramMan` demo is generated in the path described above.

## Execution

Move to the `$TwlSystem/build/demos/gfd/samples/VramManager/(sample_name)/bin/(platform)/(target)/` directory. Depending on the type of the built ROM, one of the following methods is used for execution.

### For NITRO ROMs

When using the Ensata emulator:

- Execute the NEF and SRL files with `ensata`.

When 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.

When 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

When 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.

When 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

When 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

#### Samples

`FrameTexVramMan` | This sample uses the frame VRAM manager (texture image).
`FramePlttVramMan` | This sample uses the frame VRAM manager (texture palette).
`LinkedListTexVramMan` | This sample tests the operations of the internal modules of the linked list VRAM manager.

## Operating Environment

Normal operation for all of the samples using IS-TWL-DEBUGGER and IS-NITRO-EMULATOR has been confirmed.

The current version of ensata is not supported.

## See Also

Gfd Function List

## Revision History

2008/06/20 Updated compile method and execution method for TWL.
2006/05/29 Initial version.

CONFIDENTIAL