comparison src/gb/GB.cpp @ 191:893c753f8088

added function to set ROM
author Robert McIntyre <rlm@mit.edu>
date Thu, 22 Mar 2012 20:10:09 -0500
parents 2090bcb78f44
children a6d060a64246
comparison
equal deleted inserted replaced
190:9a7a46c4aa1b 191:893c753f8088
3918 for (i = 0; i < gbRomSize; i++){ 3918 for (i = 0; i < gbRomSize; i++){
3919 store[i] = (int32) gbRom[i]; 3919 store[i] = (int32) gbRom[i];
3920 } 3920 }
3921 } 3921 }
3922 3922
3923 void writeRom(int32* new_rom){
3924 int i;
3925 for (i = 0; i < gbRomSize; i++){
3926 gbRom[i] = (u8)(0xFF & new_rom[i]);
3927 }
3928 }
3929
3923 void storeWRam(int32* store){ 3930 void storeWRam(int32* store){
3924 int i; 3931 int i;
3925 for (i = 0; i < 0x8000; i++){ 3932 for (i = 0; i < 0x8000; i++){
3926 store[i] = (int32) gbWram[i]; 3933 store[i] = (int32) gbWram[i];
3927 } 3934 }