Joshua did as Moses told him and fought the Amalekites, while Moses, Aaron, and Hur went to the top of the hill.