CTRDG_WriteAgbSram

C Specification

#include <nitro/ctrdg.h>
void CTRDG_WriteAgbSram(u32 dst, const void* src, u32 size);
  
Corresponding AGB function: void WriteSram(u8 *dst,u8 *src,u32 size)

Arguments

dst Represents the target SRAM address (address on the AGB memory map)
src Represents the source work area address
size Represents the size of data to be written in bytes

Return Values

None.

Description

Writes data of the size given by "size" into the SRAM destination address given by "dst" from the work area address specified by argument.

The access cycle setting is created in the function and does not need to be set beforehand.

Note: The cartridge bus is locked for a set period by this function.

In addition, the AGB backup device cannot be accessed normally by the IS-NITRO-DEBUGGER.
However, be sure to check operations using an actual DS handheld unit since normal access is possible with actual DS units. (This will be fixed in a future version of IS-NITRO-DEBUGGER.)

See Also

CTRDG_WriteAgbSramAsync

Revision History

04/07/2006 Initial version.

CONFIDENTIAL