Mercurial > vba-clojure
comparison src/clojure/clojure.cpp @ 100:2090bcb78f44
created functions to get and set register values
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 12 Mar 2012 12:37:04 -0500 |
parents | cb487c4ce5c0 |
children | 893c753f8088 |
comparison
equal
deleted
inserted
replaced
99:9fad96094950 | 100:2090bcb78f44 |
---|---|
219 storeRegisters(registers_store); | 219 storeRegisters(registers_store); |
220 env->ReleaseIntArrayElements(arr, registers_store, 0); | 220 env->ReleaseIntArrayElements(arr, registers_store, 0); |
221 } | 221 } |
222 | 222 |
223 | 223 |
224 /* | |
225 * Class: com_aurellem_gb_Gb | |
226 * Method: writeRegisters | |
227 * Signature: ([I)V | |
228 */ | |
229 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_writeRegisters | |
230 (JNIEnv *env, jclass clazz, jintArray arr){ | |
231 jint *new_registers = env->GetIntArrayElements(arr, 0); | |
232 setRegisters(new_registers); | |
233 env->ReleaseIntArrayElements(arr, new_registers, 0); | |
234 } | |
235 |