Card Sample Demo

Location

$REVOLUTION_SDK_ROOT/build/demos/carddemo

Compilation

Go to $REVOLUTION_SDK_ROOT/build/demos/carddemo/ and type "make". The executable (.elf file) will be generated under $REVOLUTION_SDK_ROOT/build/demos/carddemo/bin/RVL/.

Execution

Change directories to $REVOLUTION_SDK_ROOT/build/demos/carddemo/bin/RVL/ and do one of the following:

Description

format Explains how to format a Memory Card.
create Explains how to create a file on a Memory Card. The file name is specified using ndrun's -a option.
list Outputs Memory Card files to debug output.
create-1icon Creates a file with 1 icon.
create-8icon Creates a file with 8 icons (animation).
create-bnr-4icon Creates a file with a banner and 4 icons (animation).
listdemo A full-scale demo that explains the following:
  • How to save and display Memory Card animated icons and the banner image.
  • How to save game data safely to the Memory Card. (Try removing the Memory Card from the slot while saving the data.) 
  • When and how to format the Memory Card. 
  • How to use the reset function (TBD) to return to the memory card screen on the Revolution system menu when the Memory Card is full. 
  • How to display a progress bar while formatting the Memory Card and saving/deleting a file. 
  • How the Revolution main unit menu shows the game title and memory card file comments using the IPL ROM font. Note that only the text characters inside green boxes are actually displayed in the IPL file browser.

Note: Examples of animated icon and banner images are stored in the tpl directory.

save Save files located on an optical disc to the Memory Card. The file is specified using ndrun's -a option.

Snapshots of listdemo

Slot Selection Screen

Use the Control Stick or +Control Pad to choose Memory Card Slot A or B. Next, press the A Button to go to file list screen. Note that text outside the green boxes will not be shown in the Revolution memory card screen.

screen1.gif (18387 ???)

File List Screen

Use the Control Stick or +Control Pad to select the file or an <Open> entry. Press the A Button to select [Save] or [Erase]. By selecting the <Open> entry, you can create a new file if there are enough free blocks on the Memory Card. Each row of the file list displays from left to right the animated icon, filename, file entry number, and file block size. (Note that filename are not displayed on the memory card screen of the Revolution main menu.) The comment strings of the currently selected file are shown inside the green boxes in the lower right part of the screen. Note that text outside the green boxes will not be shown in the Revolution memory card screen. In the lower left corner, the card file banner image, animated icon, and all the icon animation patterns are displayed. Generally, the card file banner image should look the same as the disk banner image. Note: the disk banner image must be in RGB5A3 format, but the card file banner image can be in RGB5A3 or C8 with RGB5A3 TLUT to save space.

screen2.gif (25073 ???)

See Also

CARD APIs

Revision History

2007/08/02 Added an explanation to Description on the option that specifies the file name.
2006/03/01 Initial version.


CONFIDENTIAL