comparison src/clojure/clojure.cpp @ 522:5596cd4a3fc6

added RAM display.
author Robert McIntyre <rlm@mit.edu>
date Sat, 23 Jun 2012 19:12:26 -0500
parents a6d060a64246
children d00096b6bf17
comparison
equal deleted inserted replaced
521:bad7b7430245 522:5596cd4a3fc6
1 #include "com_aurellem_gb_Gb.h" 1 #include "com_aurellem_gb_Gb.h"
2 #include "../sdl/Drive.h" 2 #include "../sdl/Drive.h"
3 #include "../gb/GB.h" 3 #include "../gb/GB.h"
4
4 5
5 #include <string.h> 6 #include <string.h>
6 7
7 #define UNUSED(x) (void)(x) 8 #define UNUSED(x) (void)(x)
8 9
334 const char *_filename = env->GetStringUTFChars(filename, 0); 335 const char *_filename = env->GetStringUTFChars(filename, 0);
335 gbWritePNGFile(_filename); 336 gbWritePNGFile(_filename);
336 } 337 }
337 338
338 339
340
341 /*
342 * Class: com_aurellem_gb_Gb
343 * Method: readMemory
344 * Signature: (I)I
345 */
346 JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_readMemory
347 (JNIEnv *env, jclass clazz, jint address){
348 return (jint) gbReadMemory((u16) address);
349 }