How is a mnemonic code generated?