comparison src/clojure/clojure.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
119 JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getRAMSize 119 JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getRAMSize
120 (JNIEnv *env, jclass clazz){ 120 (JNIEnv *env, jclass clazz){
121 return getRamSize(); 121 return getRamSize();
122 } 122 }
123 123
124
125
126 /* 124 /*
127 * Class: com_aurellem_gb_Gb 125 * Class: com_aurellem_gb_Gb
128 * Method: getRAM 126 * Method: getRAM
129 * Signature: ([I)V 127 * Signature: ([I)V
130 */ 128 */
134 storeRam(ram_store); 132 storeRam(ram_store);
135 env->ReleaseIntArrayElements(arr, ram_store, 0); 133 env->ReleaseIntArrayElements(arr, ram_store, 0);
136 } 134 }
137 135
138 136
137 /*
138 * Class: com_aurellem_gb_Gb
139 * Method: getROM
140 * Signature: ([I)V
141 */
142 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getROM
143 (JNIEnv *env, jclass clazz, jintArray arr){
144 jint *ram_store = env->GetIntArrayElements(arr, 0);
145 storeRom(ram_store);
146 env->ReleaseIntArrayElements(arr, ram_store, 0);
147 }
139 148
149
150 /*
151 * Class: com_aurellem_gb_Gb
152 * Method: getWRAM
153 * Signature: ([I)V
154 */
155 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getWRAM
156 (JNIEnv *env, jclass clazz, jintArray arr){
157 jint *ram_store = env->GetIntArrayElements(arr, 0);
158 storeWRam(ram_store);
159 env->ReleaseIntArrayElements(arr, ram_store, 0);
160 }
161
162
163 /*
164 * Class: com_aurellem_gb_Gb
165 * Method: getVRAM
166 * Signature: ([I)V
167 */
168 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getVRAM
169 (JNIEnv *env, jclass clazz, jintArray arr){
170 jint *ram_store = env->GetIntArrayElements(arr, 0);
171 storeVRam(ram_store);
172 env->ReleaseIntArrayElements(arr, ram_store, 0);
173 }
174
175
176