comparison 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
comparison
equal deleted inserted replaced
99:9fad96094950 100:2090bcb78f44
96 96
97 public static final int RAM_SIZE = 0x8000; 97 public static final int RAM_SIZE = 0x8000;
98 98
99 public static final int ROM_SIZE = 0x100000; 99 public static final int ROM_SIZE = 0x100000;
100 100
101 public static final int NUM_REGISTERS = 27; 101 public static final int NUM_REGISTERS = 28;
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
113 public static native void getWRAM(int[] store); 113 public static native void getWRAM(int[] store);
114 114
115 public static native void getVRAM(int[] store); 115 public static native void getVRAM(int[] store);
116 116
117 public static native void getRegisters(int[] store); 117 public static native void getRegisters(int[] store);
118
119 public static native void writeRegisters(int[] newRegisters);
120
118 } 121 }