protected void changeToRegisterParameter(Function func, int index, Register reg) {
		Parameter p = func.getParameter(index);
		String name = p.getName();
		DataType dt = p.getDataType();
		String comment = p.getComment();
		func.removeParameter(index);
		AddRegisterParameterCommand cmd =
			new AddRegisterParameterCommand(func, reg, name, dt, index, SourceType.USER_DEFINED);
		cmd.applyTo(func.getProgram());
		p = func.getParameter(index);
		if (!isDefaultParamName(name)) {
			try {
				p.setName(name, SourceType.USER_DEFINED);
			}
			catch (DuplicateNameException e) {
				Assert.fail(e.getMessage());
			}
			catch (InvalidInputException e) {
				Assert.fail(e.getMessage());
			}
		}
		if (comment != null) {
			p.setComment(comment);
		}
	}
Changes the function's parameter indicated by index to be a register
parameter with the indicated register.
@param func the function
@param index the index of an existing parameter
@param reg the new register for this parameter
Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/RepositoryScreenShots.java