private Parameter getRegisterParameter(DBRecord record, int ordinal) {
		String name = record.getString(OldRegisterVariableDBAdapter.REG_VAR_NAME_COL);
		long dataTypeId =
			record.getLongValue(OldRegisterVariableDBAdapter.REG_VAR_DATA_TYPE_ID_COL);
		String regName = record.getString(OldRegisterVariableDBAdapter.REG_VAR_REGNAME_COL);

		DataType dataType = functionManager.getDataType(dataTypeId);

		try {
			VariableStorage storage = VariableStorage.BAD_STORAGE;
			Register register =
				functionManager.getProgram().getProgramContext().getRegister(regName);
			if (register == null) {
				Msg.error(this, "Invalid parameter, register not found: " + regName);
			}
			else {
				storage = new VariableStorage(program, register.getAddress(), dataType.getLength());
			}
			return new OldFunctionParameter(name, ordinal, dataType, storage, program,
				SourceType.USER_DEFINED);
		}
		catch (InvalidInputException e) {
			Msg.error(this,
				"Invalid parameter '" + name + "' in function at " + entryPoint.toString());
			try {
				return new OldFunctionParameter(name, ordinal, dataType,
					VariableStorage.BAD_STORAGE, program, SourceType.USER_DEFINED);
			}
			catch (InvalidInputException e1) {
				// should not occur
				throw new RuntimeException(e1);
			}
		}
	}
Load the register variable/parameter list from the database.
@return register
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldFunctionDataDB.java