private void dumpMemory() {
		short [] m = chip8.getCpu().getMemory().getEntireMemory();
		String s = "00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F\n";
		for (int i = 0; i < 4096; i++) {
			if (i % 15 == 0 || i == 0) { 
				String val = i == 0 ? "00 " : "";
				val = (i != 0 && i < 10) ? "0" + i + " " : "";
				s += "\n" + val + Integer.toHexString(i) + ":  "; 
			}
			if (m[i] == 0) {
				s += "00 ";
			}
			else if (m[i] > 0xA) {
				s += "0" + Integer.toHexString(TypeConverter.getUint16(m[i])).toUpperCase() + " "; 
			}
			else {
				s += Integer.toHexString(TypeConverter.getUint16(m[i])).toUpperCase() + " ";
			}
		}
		this.textAreaMemory.setText(s);
	}