public static void main(String[] args) {
        System.out.println("hello".substring(0,3));
        int val = 268435456;
        String inter = Integer.toBinaryString(val);
        while(inter.length()<32)
        {
            inter = 0+inter;
        }
        String highest4bits = inter.substring(0, 4);
        String lowest4bits = inter.substring(28, 32);
        System.out.println(highest4bits);
        System.out.println(lowest4bits);
        int diff = Integer.numberOfTrailingZeros(Integer.highestOneBit(256))-Integer.numberOfTrailingZeros(Integer.lowestOneBit(255));
        System.out.println(diff>7);
        String dpiMnemonics[] = {"and","eor","sub","rsb","add","adc","sbc","rsc","tst","teq","cmp","cmn","orr","mov","bic","mvn"};
        System.out.println(Integer.toBinaryString(10));
        String regNum = Integer.toBinaryString(Integer.parseInt("r12".split("r")[1]))+"";
        System.out.println(regNum.charAt(2));
        int[] encode = {0,0,0,0,0,0,0,0,0,0};
        int pos=5;
        int j=0;
        
        for(int i=pos;i<pos+4;i++)
        {
            //System.out.println(regNum.charAt(j));
            encode[i]=Integer.parseInt(regNum.charAt(j)+"");
            j++;
        }
        for(int i=0;i<encode.length;i++)
            System.out.print(encode[i]+" ");
        String rl="{r0-r2,pc}";
        System.out.println(rl.substring(1,rl.length()-1));
    }