예제 #1
0
파일: disassemble.py 프로젝트: Zibbo/pycoin
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))
예제 #2
0
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))
예제 #3
0
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))