public String getCPUStateInfo() {
		String ret = "";
		for(int i=0;i<8;i++)
			if(rMask[i] == 0xFF)
				ret += " " + registerNames[i]+" = "+Integer.toHexString(r[i]);
		if(getCarry() != -1)
			ret += " carry = "+getCarry();
		if(getZero() != -1)
			ret += " zero = "+getZero();
		if(loadedBank != -1)
			ret += " bank = "+Integer.toHexString(loadedBank);
		return ret;
	}