Cannot come up with a better approach for decoding an instruction