daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Nov 21st, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. String opcode;
  2. if(insn.name().equals("CBZ"))
  3.     opcode = "" + 10110100;
  4. else if(insn.name().equals("CBNZ"))
  5.     opcode = "" + 01010100;
  6. else
  7.     opcode = StringUtils.leftPad(Integer.toBinaryString(0x54), 8, '0');
  8.  
  9.  
  10. //more code.....
  11.  
  12.  
  13. System.out.println(insn.name()); //outputs CBNZ
  14. if(insn.name().equals("CBNZ")) //Just to see if I can force the opcode change one last time
  15.     opcode = "" + 01010100;
  16. System.out.println("CBNZ " + opcode); //outputs CBNZ 266304
RAW Paste Data
Top