Simplify intToBin and decodeInstruction