Mercurial > vba-clojure
comparison java/src/com/aurellem/gb/Gb.java @ 92:1ff2c546f5ad
added tick(), which allows one to step through each opcode of gameboy
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 11 Mar 2012 19:07:31 -0500 |
parents | 95cb2152d7cd |
children | 4c60ebca1a9d |
comparison
equal
deleted
inserted
replaced
91:613353b7e012 | 92:1ff2c546f5ad |
---|---|
25 public static void loadVBA(){ | 25 public static void loadVBA(){ |
26 System.loadLibrary("vba"); | 26 System.loadLibrary("vba"); |
27 } | 27 } |
28 | 28 |
29 public static native void step(); | 29 public static native void step(); |
30 | |
31 public static native int ntick(); | |
32 | |
33 public static boolean tick(){ | |
34 return (1 == ntick()); | |
35 } | |
30 | 36 |
31 public static native void nstep(int keymask); | 37 public static native void nstep(int keymask); |
32 | 38 |
33 public static void step(int keymask){ | 39 public static void step(int keymask){ |
34 if (-1 == keymask) {step();} | 40 if (-1 == keymask) {step();} |