diff 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
line wrap: on
line diff
     1.1 --- a/java/src/com/aurellem/gb/Gb.java	Sun Mar 11 13:53:27 2012 -0500
     1.2 +++ b/java/src/com/aurellem/gb/Gb.java	Sun Mar 11 19:07:31 2012 -0500
     1.3 @@ -27,6 +27,12 @@
     1.4      }
     1.5  
     1.6      public static native void step();
     1.7 +    
     1.8 +    public static native int ntick();
     1.9 +
    1.10 +    public static boolean tick(){
    1.11 +	return (1 == ntick());
    1.12 +    }
    1.13  
    1.14      public static native void nstep(int keymask);
    1.15