sgdk
sram.h
Go to the documentation of this file.
00001 
00022 #ifndef _SRAM_H_
00023 #define _SRAM_H_
00024 
00025 
00026 #include "mapper.h"
00027 
00028 
00029 #define SRAM_CONTROL    MAPPER_BASE
00030 #define SRAM_BASE       0x200001
00031 
00032 
00037 void SRAM_enable();
00042 void SRAM_enableRO();
00047 void SRAM_disable();
00048 
00057 u8 SRAM_readByte(u32 offset);
00066 u16 SRAM_readWord(u32 offset);
00075 u32 SRAM_readLong(u32 offset);
00085 void SRAM_writeByte(u32 offset, u8 val);
00095 void SRAM_writeWord(u32 offset, u16 val);
00105 void SRAM_writeLong(u32 offset, u32 val);
00106 
00107 
00108 #endif // _SRAM_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines