diff src/gb/GB.cpp @ 61:dc8b383ecefa

added code to retrieve other RAM areas and ROM
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 19:53:39 -0600
parents ef59aee6d715
children 4699c7bab77d
line wrap: on
line diff
     1.1 --- a/src/gb/GB.cpp	Wed Mar 07 19:29:51 2012 -0600
     1.2 +++ b/src/gb/GB.cpp	Wed Mar 07 19:53:39 2012 -0600
     1.3 @@ -3878,6 +3878,28 @@
     1.4    }
     1.5  }
     1.6  
     1.7 +void storeRom(int32* store){
     1.8 +  int i;
     1.9 +  for (i = 0; i < gbRomSize; i++){
    1.10 +    store[i] = (int32) gbRom[i];
    1.11 +  }
    1.12 +}
    1.13 +
    1.14 +void storeWRam(int32* store){
    1.15 +  int i;
    1.16 +  for (i = 0; i < 0x8000; i++){
    1.17 +    store[i] = (int32) gbWram[i];
    1.18 +  }
    1.19 +}
    1.20 +
    1.21 +void storeVRam(int32* store){
    1.22 +  int i;
    1.23 +  for (i = 0; i < 0x4000; i++){
    1.24 +    store[i] = (int32) gbVram[i];
    1.25 +  }
    1.26 +}
    1.27 +
    1.28 +
    1.29  
    1.30  
    1.31