Logic processor