Mercurial > vba-clojure
diff 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 |
line wrap: on
line diff
1.1 --- a/src/clojure/clojure.cpp Mon Mar 12 09:59:26 2012 -0500 1.2 +++ b/src/clojure/clojure.cpp Mon Mar 12 12:37:04 2012 -0500 1.3 @@ -221,3 +221,15 @@ 1.4 } 1.5 1.6 1.7 +/* 1.8 + * Class: com_aurellem_gb_Gb 1.9 + * Method: writeRegisters 1.10 + * Signature: ([I)V 1.11 + */ 1.12 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_writeRegisters 1.13 +(JNIEnv *env, jclass clazz, jintArray arr){ 1.14 + jint *new_registers = env->GetIntArrayElements(arr, 0); 1.15 + setRegisters(new_registers); 1.16 + env->ReleaseIntArrayElements(arr, new_registers, 0); 1.17 +} 1.18 +