comparison src/gb/GB.cpp @ 94:612393a0d3a0

fixed memory retrieval function to use the simulated gameboy's mapped memory
author Robert McIntyre <rlm@mit.edu>
date Sun, 11 Mar 2012 20:55:21 -0500
parents 4c60ebca1a9d
children cb487c4ce5c0
comparison
equal deleted inserted replaced
93:4c60ebca1a9d 94:612393a0d3a0
3886 return gbRomSize; 3886 return gbRomSize;
3887 } 3887 }
3888 3888
3889 void storeMemory(int32* store){ 3889 void storeMemory(int32* store){
3890 int i; 3890 int i;
3891 for (i = 0; i < 0xFFFF; i++){ 3891 int j;
3892 store[i] = (int32) gbMemory[i]; 3892 for (i = 0; i < 0x10; i++){
3893 for (j = 0; j < 0x1000; j++){
3894 store[i*0x1000 + j] = (int32) gbMemoryMap[i][j];
3895 }
3893 } 3896 }
3894 } 3897 }
3895 3898
3896 void storeRam(int32* store){ 3899 void storeRam(int32* store){
3897 int i; 3900 int i;