private void saveMoves() {
		int movesOffset = romEntry.getValue("MoveDataOffset");
		for (Move m : moves) {
			if (m != null) {
				int i = m.internalId;
				rom[movesOffset + (i - 1) * 6 + 1] = (byte) m.effectIndex;
				rom[movesOffset + (i - 1) * 6 + 2] = (byte) m.power;
				rom[movesOffset + (i - 1) * 6 + 3] = typeToByte(m.type);
				int hitratio = (int) Math.round(m.hitratio * 2.55);
				if (hitratio < 0) {
					hitratio = 0;
				}
				if (hitratio > 255) {
					hitratio = 255;
				}
				rom[movesOffset + (i - 1) * 6 + 4] = (byte) hitratio;
				rom[movesOffset + (i - 1) * 6 + 5] = (byte) m.pp;
			}
		}
	}