* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
- public void write_memory(int address, byte[] bytes, int start, int len) {
+ public void write_memory(int address, byte[] bytes, int start, int len) throws InterruptedException {
ensure_debug_mode();
// dump_memory("write_memory", address, bytes, start, len);
link.printf("O %x %x\n", len, address);
ensure_debug_mode();
// dump_memory("write_memory", address, bytes, start, len);
link.printf("O %x %x\n", len, address);
write_memory(address, bytes, 0, bytes.length);
}
write_memory(address, bytes, 0, bytes.length);
}
try {
byte[] bytes = read_memory(0xa0, 10);
AltosHexfile hexfile = new AltosHexfile (bytes, 0xa0);
return new AltosRomconfig(hexfile);
} catch (IOException ie) {
try {
byte[] bytes = read_memory(0xa0, 10);
AltosHexfile hexfile = new AltosHexfile (bytes, 0xa0);
return new AltosRomconfig(hexfile);
} catch (IOException ie) {