So Yehoshua did as Moshe had said to him, and did battle with Amalek; and Moshe, Aharon, and Chur went up to the top of the hill.