 Complete the following phrase:  Under Charles III in 1762 he took part in the Spanish invasion of Portugal and in Gibraltar. In 1793, now under Charles IV, he earned fame for the courage shown in the 