@Override
    public void replaceArgument(Value replace, Value newVal, boolean throwOnError) throws Exception {
        if(argument.equals(replace)) {
            argument = newVal;
        } else if (throwOnError) {
            throw new Exception("error replacing argument, argument not present in instruction");
        }
    }