The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
00001 // ---------------------------------------------------------------------------- 00013 // ---------------------------------------------------------------------------- 00014 00015 00016 #ifndef SO_FLASHMEM_H 00017 #define SO_FLASHMEM_H 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 00024 // ---------------------------------------------------------------------------- //! @{ 00035 // ---------------------------------------------------------------------------- 00036 00037 // ---------------------------------------------------------------------------- 00038 // Includes 00039 // ---------------------------------------------------------------------------- 00040 00041 #include "SoSystem.h" 00042 00043 // ---------------------------------------------------------------------------- 00044 // Public methods; 00045 // ---------------------------------------------------------------------------- 00046 00047 u16 SoFlashMemSaveByte( u16 a_Offset, u8 a_Value ); 00048 u16 SoFlashMemSaveHalfword( u16 a_Offset, u16 a_Value ); 00049 u16 SoFlashMemSaveWord( u16 a_Offset, u32 a_Value ); 00050 u16 SoFlashMemSaveBuffer( u16 a_Offset, u16 a_Length, u8* a_Buffer ); 00051 00052 u8 SoFlashMemLoadByte( u16 a_Offset ); 00053 u16 SoFlashMemLoadHalfword( u16 a_Offset ); 00054 u32 SoFlashMemLoadWord( u16 a_Offset ); 00055 u16 SoFlashMemLoadBuffer( u16 a_Offset, u16 a_Length, u8* a_Buffer ); 00056 00057 // ---------------------------------------------------------------------------- 00058 // EOF 00059 // ---------------------------------------------------------------------------- 00060 00062 00063 #ifdef __cplusplus 00064 } // extern "C" 00065 #endif 00066 00067 #endif