More sophisticated parsing of mnemonic format (still not perfect)