public void setValueAt(Object aValue, int rowIndex, int columnIndex) { if (columnIndex == 1 && aValue != null) { char value; if (aValue instanceof Number) { value = (char) ((Number) aValue).intValue(); } else if (aValue instanceof String) { String sValue = (String) aValue; try { if (sValue.startsWith("0x")) { value = (char) Integer.parseInt(sValue.substring(2), 16); } else if (sValue.startsWith("0b")) { value = (char) Integer.parseInt(sValue.substring(2), 2); } else { value = (char) Integer.parseInt(sValue); } } catch (NumberFormatException ignored) { return; } } else return; cpu.memset(M_A + rowIndex, value); // TODO debugger flag } }