diff 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
line wrap: on
line diff
     1.1 --- a/src/clojure/clojure.cpp	Thu Mar 22 16:34:10 2012 -0500
     1.2 +++ b/src/clojure/clojure.cpp	Thu Mar 22 20:10:09 2012 -0500
     1.3 @@ -184,6 +184,20 @@
     1.4  
     1.5  /*
     1.6   * Class:     com_aurellem_gb_Gb
     1.7 + * Method:    writeROM
     1.8 + * Signature: ([I)V
     1.9 + */
    1.10 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_writeROM
    1.11 +(JNIEnv *env, jclass clazz, jintArray arr){
    1.12 +  jint *new_rom = env->GetIntArrayElements(arr, 0);
    1.13 +  writeRom(new_rom);
    1.14 +  env->ReleaseIntArrayElements(arr, new_rom, 0);
    1.15 +}
    1.16 +
    1.17 +
    1.18 +
    1.19 +/*
    1.20 + * Class:     com_aurellem_gb_Gb
    1.21   * Method:    getWRAM
    1.22   * Signature: ([I)V
    1.23   */