extract binop and operation bits correctly