@Override
	public boolean applyTo(Program program) {

		ProgramContext context = program.getProgramContext();

		try {
			context.setValue(register, start, end, value);
		}
		catch (ContextChangeException e) {
			errorMsg = e.getMessage();
			Msg.error(this, e.getMessage());
			return false;
		}
		return true;
	}
Constructor for SetRegisterCmd.
@param register      the register to change.
@param start         the starting address of the range.
@param end           the ending address of the range.
@param value         the value to associated over the range.
                     A null value indicates that no value should be associated over the range.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/register/SetRegisterCmd.java