コード例 #1
0
def WriteRegister(Name, Value):
    response = UdkCommandHelper.sendPacket(
        "P%x=%s" %
        (_RegisterIndex(Name), UdkCommandHelper.list_to_string(Value)))
    if response == "OK":
        UdkCommandHelper.executeCommand("flushregs")
    return response == "OK"
コード例 #2
0
def WriteRegister(Name, Value):
    response = UdkCommandHelper.sendPacket(
                 "P%x=%s" % (_RegisterIndex(Name), UdkCommandHelper.list_to_string(Value))
                 )
    if response == "OK":
        UdkCommandHelper.executeCommand("flushregs")
    return response == "OK"
コード例 #3
0
def SearchSignature(Address, Length, Alignment, Positive, Signature):
    response = UdkCommandHelper.sendUdkExtensionPacket(
        "search,%x,%x,%x,%x,%s" % (Address, Length, Alignment, Positive,
                                   UdkCommandHelper.list_to_string(Signature)))
    if response == "":
        return None
    else:
        return int(response, 16)
コード例 #4
0
def SearchSignature(Address, Length, Alignment, Positive, Signature):
    response = UdkCommandHelper.sendUdkExtensionPacket(
                 "search,%x,%x,%x,%x,%s" % (
                   Address, Length, Alignment, Positive, UdkCommandHelper.list_to_string(Signature)
                   )
                 )
    if response == "":
        return None
    else:
        return int(response, 16)
コード例 #5
0
def WriteMemory(Address, Width, Value):
    response = UdkCommandHelper.sendUdkExtensionPacket(
        "MMIO%x,%x,%x:%s" % (Address, Width, len(Value),
                             UdkCommandHelper.list_to_string(Value, Width)))
    return response == "OK"
コード例 #6
0
def WriteMemory(Address, Width, Value):
    response = UdkCommandHelper.sendUdkExtensionPacket(
                 "MMIO%x,%x,%x:%s" % (Address, Width, len(Value), UdkCommandHelper.list_to_string(Value, Width))
                 )
    return response == "OK"