def instruction_for_opcode(opcode, data): if data is None or len(data) == 0: return INT_TO_OPCODE.get(opcode, "(UNKNOWN OPCODE)") return "[PUSH_%d] %s" % (opcode, binascii.hexlify(data))
def instruction_for_opcode(opcode, data): if data is None or len(data) == 0: return INT_TO_OPCODE.get(opcode, "(UNKNOWN OPCODE)") return "[PUSH_%d] %s" % (opcode, b2h(data))
def instruction_for_opcode(opcode, data): if len(data) == 0: return INT_TO_OPCODE.get(opcode, "(UNKNOWN OPCODE)") return "[PUSH_%d] %s" % (opcode, binascii.hexlify(data))