Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement