private int isDPI(String mnemonic)
    {
        if(mnemonic.length()!=3 && mnemonic.length()!=5 && mnemonic.length()!=6)
        {
            return -1;
        }
        String dpiMnemonics[] = {"and","eor","sub","rsb","add","adc","sbc","rsc","tst","teq","cmp","cmn","orr","mov","bic","mvn"};
        System.out.println(mnemonic);
        for(int i=0;i<dpiMnemonics.length;i++)
        {
            if(mnemonic.substring(0, 3).equalsIgnoreCase(dpiMnemonics[i]))
            {
                System.out.println("i="+i);
                return i;
            }
            
        }
        return -1;
    }