Mercurial > vba-clojure
diff java/src/com/aurellem/gb/Gb.java @ 100:2090bcb78f44
created functions to get and set register values
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 12 Mar 2012 12:37:04 -0500 |
parents | cb487c4ce5c0 |
children | 3a60bb14a64a |
line wrap: on
line diff
1.1 --- a/java/src/com/aurellem/gb/Gb.java Mon Mar 12 09:59:26 2012 -0500 1.2 +++ b/java/src/com/aurellem/gb/Gb.java Mon Mar 12 12:37:04 2012 -0500 1.3 @@ -98,7 +98,7 @@ 1.4 1.5 public static final int ROM_SIZE = 0x100000; 1.6 1.7 - public static final int NUM_REGISTERS = 27; 1.8 + public static final int NUM_REGISTERS = 28; 1.9 1.10 public static final int GB_MEMORY = 0x10000; 1.11 1.12 @@ -115,4 +115,7 @@ 1.13 public static native void getVRAM(int[] store); 1.14 1.15 public static native void getRegisters(int[] store); 1.16 + 1.17 + public static native void writeRegisters(int[] newRegisters); 1.18 + 1.19 }