public void encodeRegisterListBinary(String list, int[] encoding) {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        String regs[]=list.split(",");
        //System.out.println("in reglist "+list);
        for(int i=0;i<regs.length;i++)
        {
            
            if(regs[i].contains("-"))
            {
                String reg1[]=regs[0].split("-");
                int start = Integer.parseInt(reg1[0].substring(1));
                int end = Integer.parseInt(reg1[1].substring(1));
                for(int j=start;j<end+1;j++)
                    encoding[j]=1;
            }
            else
                encoding[Integer.parseInt(regs[i].substring(1))]=1;
        }
        
        if(!regs[1].equalsIgnoreCase("pc"))
            encoding[Integer.parseInt(regs[1].substring(1))]=1;
        if(regs[1].equalsIgnoreCase("pc"))
            encoding[15]=1;
    }