diff src/gb/GB.cpp @ 60:ef59aee6d715

added function to retrieve main RAM
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 19:29:51 -0600
parents 3ce48d803e74
children dc8b383ecefa
line wrap: on
line diff
     1.1 --- a/src/gb/GB.cpp	Wed Mar 07 17:40:00 2012 -0600
     1.2 +++ b/src/gb/GB.cpp	Wed Mar 07 19:29:51 2012 -0600
     1.3 @@ -3871,6 +3871,15 @@
     1.4    return gbRomSize;
     1.5  }
     1.6  
     1.7 +void storeRam(int32* store){
     1.8 +  int i;
     1.9 +  for (i = 0; i < gbRamSize; i++){
    1.10 +    store[i] = (int32) gbRam[i];
    1.11 +  }
    1.12 +}
    1.13 +
    1.14 +
    1.15 +
    1.16  
    1.17  struct EmulatedSystem GBSystem =
    1.18    {