it was then that admiral nelson called me into his cabin and entrusted me with the secret signals , both flag and signal gun , which were to be used in combat and it was my job to make sure that these codes were second nature to all the yeomen in the squadron so that we would be ready , come what may .