Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String opcode;
- if(insn.name().equals("CBZ"))
- opcode = "" + 10110100;
- else if(insn.name().equals("CBNZ"))
- opcode = "" + 01010100;
- else
- opcode = StringUtils.leftPad(Integer.toBinaryString(0x54), 8, '0');
- //more code.....
- System.out.println(insn.name()); //outputs CBNZ
- if(insn.name().equals("CBNZ")) //Just to see if I can force the opcode change one last time
- opcode = "" + 01010100;
- System.out.println("CBNZ " + opcode); //outputs CBNZ 266304
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement