From 1fc2021e29935b1b4930203ba7ec1a2b0380d9cb Mon Sep 17 00:00:00 2001 From: red031000 Date: Thu, 14 Jan 2021 21:28:45 +0000 Subject: decompile CTRDG_backup --- arm9/lib/include/CTRDG_flash.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arm9/lib/include/CTRDG_flash.h (limited to 'arm9/lib/include/CTRDG_flash.h') diff --git a/arm9/lib/include/CTRDG_flash.h b/arm9/lib/include/CTRDG_flash.h new file mode 100644 index 00000000..9a4aff41 --- /dev/null +++ b/arm9/lib/include/CTRDG_flash.h @@ -0,0 +1,25 @@ +#ifndef POKEDIAMOND_CTRDG_FLASH_H +#define POKEDIAMOND_CTRDG_FLASH_H + +#include "nitro/types.h" +#include "MI_exMemory.h" + +typedef struct CTRDGiFlashSectorTag +{ + u32 size; + u16 shift; + u16 count; + u16 top; + u8 reserved[2]; +} CTRDGiFlashSector; + +typedef struct CTRDGFlashTypeTag +{ + u32 romSize; + CTRDGiFlashSector sector; + MICartridgeRamCycle agbWait[2]; + u16 makerID; + u16 deviceID; +} CTRDGFlashType; + +#endif //POKEDIAMOND_CTRDG_FLASH_H -- cgit v1.2.3 From f9512bc6c7b8c93a4c72b92825db67718863a200 Mon Sep 17 00:00:00 2001 From: red031000 Date: Thu, 25 Feb 2021 15:34:52 +0000 Subject: partial CTRDG_flash_AT29LV512.o decomp --- arm9/lib/include/CTRDG_flash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arm9/lib/include/CTRDG_flash.h') diff --git a/arm9/lib/include/CTRDG_flash.h b/arm9/lib/include/CTRDG_flash.h index 9a4aff41..aa02d951 100644 --- a/arm9/lib/include/CTRDG_flash.h +++ b/arm9/lib/include/CTRDG_flash.h @@ -4,6 +4,8 @@ #include "nitro/types.h" #include "MI_exMemory.h" +#define CTRDG_AGB_FLASH_ADR 0x0A000000 + typedef struct CTRDGiFlashSectorTag { u32 size; -- cgit v1.2.3