view src/gba/Sram.cpp @ 300:bc1f62b269b5

found program that works as valid items, but now the program is too long...
author Robert McIntyre <rlm@mit.edu>
date Fri, 30 Mar 2012 23:05:38 -0500
parents f9f4f1b99eed
children
line wrap: on
line source
1 #include "../common/System.h"
2 #include "Flash.h"
3 #include "Sram.h"
5 u8 sramRead(u32 address)
6 {
7 return flashSaveMemory[address & 0xFFFF];
8 }
10 void sramWrite(u32 address, u8 byte)
11 {
12 flashSaveMemory[address & 0xFFFF] = byte;
13 systemSaveUpdateCounter = SYSTEM_SAVE_UPDATED;
14 }