Mercurial > vba-clojure
comparison 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 |
comparison
equal
deleted
inserted
replaced
60:ef59aee6d715 | 61:dc8b383ecefa |
---|---|
3876 for (i = 0; i < gbRamSize; i++){ | 3876 for (i = 0; i < gbRamSize; i++){ |
3877 store[i] = (int32) gbRam[i]; | 3877 store[i] = (int32) gbRam[i]; |
3878 } | 3878 } |
3879 } | 3879 } |
3880 | 3880 |
3881 void storeRom(int32* store){ | |
3882 int i; | |
3883 for (i = 0; i < gbRomSize; i++){ | |
3884 store[i] = (int32) gbRom[i]; | |
3885 } | |
3886 } | |
3887 | |
3888 void storeWRam(int32* store){ | |
3889 int i; | |
3890 for (i = 0; i < 0x8000; i++){ | |
3891 store[i] = (int32) gbWram[i]; | |
3892 } | |
3893 } | |
3894 | |
3895 void storeVRam(int32* store){ | |
3896 int i; | |
3897 for (i = 0; i < 0x4000; i++){ | |
3898 store[i] = (int32) gbVram[i]; | |
3899 } | |
3900 } | |
3901 | |
3902 | |
3881 | 3903 |
3882 | 3904 |
3883 | 3905 |
3884 struct EmulatedSystem GBSystem = | 3906 struct EmulatedSystem GBSystem = |
3885 { | 3907 { |