comparison src/clojure/clojure.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 09b3bc0b71b5
comparison
equal deleted inserted replaced
190:9a7a46c4aa1b 191:893c753f8088
182 } 182 }
183 183
184 184
185 /* 185 /*
186 * Class: com_aurellem_gb_Gb 186 * Class: com_aurellem_gb_Gb
187 * Method: writeROM
188 * Signature: ([I)V
189 */
190 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_writeROM
191 (JNIEnv *env, jclass clazz, jintArray arr){
192 jint *new_rom = env->GetIntArrayElements(arr, 0);
193 writeRom(new_rom);
194 env->ReleaseIntArrayElements(arr, new_rom, 0);
195 }
196
197
198
199 /*
200 * Class: com_aurellem_gb_Gb
187 * Method: getWRAM 201 * Method: getWRAM
188 * Signature: ([I)V 202 * Signature: ([I)V
189 */ 203 */
190 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getWRAM 204 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getWRAM
191 (JNIEnv *env, jclass clazz, jintArray arr){ 205 (JNIEnv *env, jclass clazz, jintArray arr){