def value(mnemonic):
codes, mnemonics = zip(*MNEMONIC_TABLE)<EOL>return mnemonics.index(mnemonic.upper())<EOL>
Returns the value of mnemonic (case-insensitive). Raises ``ValueError`` if
the given mnemonic does not exists.