Game Pak module

Each GBA game or application is stored on a plastic cartridge, officially called "Game Pak".

Modules

module Game Pak SRAM

Files

file bn_config_game_pak.h
file bn_game_pak_wait_state.h

Defines

#define BN_CFG_GAME_PAK_PREFETCH_ENABLED
#define BN_CFG_GAME_PAK_WAIT_STATE_FIRST
#define BN_CFG_GAME_PAK_WAIT_STATE_SECOND
#define BN_GAME_PAK_WAIT_STATE_FIRST_4
#define BN_GAME_PAK_WAIT_STATE_FIRST_3
#define BN_GAME_PAK_WAIT_STATE_FIRST_2
#define BN_GAME_PAK_WAIT_STATE_FIRST_8
#define BN_GAME_PAK_WAIT_STATE_FIRST_AUTO
#define BN_GAME_PAK_WAIT_STATE_SECOND_2
#define BN_GAME_PAK_WAIT_STATE_SECOND_1
#define BN_GAME_PAK_WAIT_STATE_SECOND_AUTO

Define documentation

#define BN_CFG_GAME_PAK_PREFETCH_ENABLED

Specifies if Game Pak prefetch is enabled or not.

When Game Pak prefetch is enabled, the GBA attempts to read opcodes from the Game Pak when the CPU is not using the bus (if any).

#define BN_CFG_GAME_PAK_WAIT_STATE_FIRST

Specifies Game Pak access time in clock cycles for non-sequential accesses.

Values not specified in BN_GAME_PAK_WAIT_STATE_FIRST_* macros are not allowed.

#define BN_CFG_GAME_PAK_WAIT_STATE_SECOND

Specifies Game Pak access time in clock cycles for sequential accesses.

Values not specified in BN_GAME_PAK_WAIT_STATE_SECOND_* macros are not allowed.

#define BN_GAME_PAK_WAIT_STATE_FIRST_4

Game Pak access time is 4+1 clock cycles for non-sequential accesses.

#define BN_GAME_PAK_WAIT_STATE_FIRST_3

Game Pak access time is 3+1 clock cycles for non-sequential accesses.

This setting is not supported by slow flash carts like the SuperCard SD.

#define BN_GAME_PAK_WAIT_STATE_FIRST_2

Game Pak access time is 2+1 clock cycles for non-sequential accesses.

This setting is not supported by the Nintendo 3DS or slow flash carts like the SuperCard SD.

#define BN_GAME_PAK_WAIT_STATE_FIRST_8

Game Pak access time is 8+1 clock cycles for non-sequential accesses.

#define BN_GAME_PAK_WAIT_STATE_FIRST_AUTO

Game Pak access time is 4+1 clock cycles for non-sequential accesses if a slow flash cart like the SuperCard SD has been detected; 3+1 otherwise.

#define BN_GAME_PAK_WAIT_STATE_SECOND_2

Game Pak access time is 2+1 clock cycles for sequential accesses.

#define BN_GAME_PAK_WAIT_STATE_SECOND_1

Game Pak access time is 1+1 clock cycles for sequential accesses.

This setting is not supported by slow flash carts like the SuperCard SD.

#define BN_GAME_PAK_WAIT_STATE_SECOND_AUTO

Game Pak access time is 2+1 clock cycles for sequential accesses if a slow flash cart like the SuperCard SD has been detected; 1+1 otherwise.