Example #1
0
def saveAllToMemoryModel():
    global hexes
    curAddrInt = int(getStartAddress(), 16)
    for x in hexes:
        #x has the data
        mem.storeWordToMemory(curAddrInt, x)
        curAddrInt += 4
Example #2
0
def saveAllToMemoryModel():
    global hexes
    #print 'saveeeee : '+str(hexes)
    curAddrInt = int(parsehelper.getStartAddress(), 16)
    for x in hexes:
        #x has the data
        mem.storeWordToMemory(curAddrInt, x)
        curAddrInt += 4
def saveAllToMemoryModel():
    global hexes
    curAddrInt=int(getStartAddress(),16)
    for x in hexes:
        #x has the data
        mem.storeWordToMemory(curAddrInt, x)
        curAddrInt+=4
    #mem.printMemoryState()
Example #4
0
def saveAllToMemoryModel():
    global hexes
    #print 'saveeeee : '+str(hexes)
    curAddrInt=int(parsehelper.getStartAddress(),16)
    for x in hexes:
        #x has the data
        mem.storeWordToMemory(curAddrInt, x)
        curAddrInt+=4
Example #5
0
def store32bitDataToMem(address, data):
    data = binaryToHexStr(data)
    data = (data[2:len(data)]).zfill(8)
    mem.storeWordToMemory(address, data)
Example #6
0
def store32bitDataToMem(address, data):
    data = binaryToHexStr(data)
    data = (data[2:len(data)]).zfill(8)
    mem.storeWordToMemory(address, data)