comparison src/clojure/clojure.cpp @ 62:4699c7bab77d

added code to retrieve CPU registers
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 20:10:21 -0600
parents dc8b383ecefa
children d7c38ce83421
comparison
equal deleted inserted replaced
61:dc8b383ecefa 62:4699c7bab77d
171 storeVRam(ram_store); 171 storeVRam(ram_store);
172 env->ReleaseIntArrayElements(arr, ram_store, 0); 172 env->ReleaseIntArrayElements(arr, ram_store, 0);
173 } 173 }
174 174
175 175
176 /*
177 * Class: com_aurellem_gb_Gb
178 * Method: getRegisters
179 * Signature: ([I)V
180 */
181 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getRegisters
182 (JNIEnv *env, jclass clazz, jintArray arr){
183 jint *registers_store = env->GetIntArrayElements(arr, 0);
184 storeRegisters(registers_store);
185 env->ReleaseIntArrayElements(arr, registers_store, 0);
186 }
176 187
188