CTRDG_Read

# CTRDG_VerifyAgbSram

## C Specification

      #include <nitro/ctrdg.h>

      u32 CTRDG_VerifyAgbSram(u32 tgt, const void* src, u32 size);

      Corresponding AGB function: u32 VerifySram(u8 *tgt,u8 *src,u32 size)

## Arguments

tgt | Pointer to the SRAM address to be verified (data to be written, address in the AGB memory map).
src | Pointer to the verification source work area address (original data).
size | The size of data verified in bytes.

## Return Values

Returns 0 if verification succeeds. Returns the error address on the device side if verification fails.

## Description

This function verifies data of the size given by "size" from the address in the work area given by "src" against the data at the address given by "tgt" in SRAM.
This function returns 0 if verification ends correctly; otherwise, it returns the address where the verification error occurs.

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.
Note that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.

## See Also

`CTRDG_VerifyAgbSramAsync
`

## Revision History

05/25/2006 Added a description that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.
04/07/2006 Initial version.

CONFIDENTIAL