CTRDG_Read*

C Specification

#include <nitro/ctrdg.h>
BOOL CTRDG_Read8( const u8* address, u8* rdata );
BOOL CTRDG_Read16( const u16* address, u16* rdata );
BOOL CTRDG_Read32( const u32* address, u32* rdata );
  

Arguments

address The read address.
rdata The pointer that stores the read data.

Return Values

Returns TRUE if the read succeeds. Returns FALSE when there is no Game Pak or if the Game Pak could not be read.

Description

These functions read data from the Game Pak.

CTRDG_Read8() reads 8-bit data.
CTRDG_Read16() reads 16-bit data.
CTRDG_Read32() reads 32-bit data.

These functions do not set the access cycle. The access cycle must be set in advance.

See Also

CTRDG_Init, CTRDG_DmaCopy*, CTRDG_CpuCopy*, CTRDG_Write*

Revision History

09/17/2004 Initial version.