
#include <nitro/ctrdg.h>
void CTRDG_ReadAgbFlash(u16 sec_num, u32 offset, u8* dst, u32 size);
Corresponding AGB function: void ReadFlash(u16 secNo,u32 offset,u8 *dst,u32 size)
| sec_num | Destination flash sector number. |
| offset | Offset in the sector in bytes. |
| dst | Address of the work area to store data that was read. |
| size | Size of data read in bytes. |
None.
Reads data of the size in size to the address given by dst from the address starting at offset inside sec_num.
The access cycle setting is created in the function and does not need to be set in advance.
Note: The cartridge bus is locked for a set period by this function.
Note that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.
2006/05/25 Added a description that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.
2006/04/07 Initial version.
CONFIDENTIAL