Mercurial > vba-clojure
comparison src/clojure/clojure.cpp @ 96:cb487c4ce5c0
added write-memory!, which allows me to write any value to the
gameboy's memory-mapped rom or ram.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 11 Mar 2012 23:27:19 -0500 |
parents | 4c60ebca1a9d |
children | 2090bcb78f44 |
comparison
equal
deleted
inserted
replaced
95:b74a578d0c88 | 96:cb487c4ce5c0 |
---|---|
141 jint *mem_store = env->GetIntArrayElements(arr, 0); | 141 jint *mem_store = env->GetIntArrayElements(arr, 0); |
142 storeMemory(mem_store); | 142 storeMemory(mem_store); |
143 env->ReleaseIntArrayElements(arr, mem_store, 0); | 143 env->ReleaseIntArrayElements(arr, mem_store, 0); |
144 } | 144 } |
145 | 145 |
146 /* | |
147 * Class: com_aurellem_gb_Gb | |
148 * Method: writeMemory | |
149 * Signature: ([I)V | |
150 */ | |
151 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_writeMemory | |
152 (JNIEnv *env, jclass clazz, jintArray arr){ | |
153 jint *new_memory = env->GetIntArrayElements(arr, 0); | |
154 writeMemory(new_memory); | |
155 env->ReleaseIntArrayElements(arr, new_memory, 0); | |
156 } | |
157 | |
146 | 158 |
147 /* | 159 /* |
148 * Class: com_aurellem_gb_Gb | 160 * Class: com_aurellem_gb_Gb |
149 * Method: getRAM | 161 * Method: getRAM |
150 * Signature: ([I)V | 162 * Signature: ([I)V |