Mercurial > vba-linux
diff src/gba/Sram.cpp @ 19:5e8e5083da94
brought in common and gba, fixed problems with outdated Makefile.am files in both of these packages
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 04 Mar 2012 14:33:52 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gba/Sram.cpp Sun Mar 04 14:33:52 2012 -0600 1.3 @@ -0,0 +1,15 @@ 1.4 +#include "../common/System.h" 1.5 +#include "Flash.h" 1.6 +#include "Sram.h" 1.7 + 1.8 +u8 sramRead(u32 address) 1.9 +{ 1.10 + return flashSaveMemory[address & 0xFFFF]; 1.11 +} 1.12 + 1.13 +void sramWrite(u32 address, u8 byte) 1.14 +{ 1.15 + flashSaveMemory[address & 0xFFFF] = byte; 1.16 + systemSaveUpdateCounter = SYSTEM_SAVE_UPDATED; 1.17 +} 1.18 +