comparison java/src/com/aurellem/gb/Gb.java @ 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
102 102
103 public static final int GB_MEMORY = 0x10000; 103 public static final int GB_MEMORY = 0x10000;
104 104
105 public static native void getMemory(int[] store); 105 public static native void getMemory(int[] store);
106 106
107 public static native void writeMemory(int[] newMemory);
108
107 public static native void getRAM(int[] store); 109 public static native void getRAM(int[] store);
108 110
109 public static native void getROM(int[] store); 111 public static native void getROM(int[] store);
110 112
111 public static native void getWRAM(int[] store); 113 public static native void getWRAM(int[] store);