Generic instruction handler