def branchToAddress(hexint): # give the exact address in int where to branch armdebug.setPC(hexint - 4) # the magic again! #-4 for the current instruction
def branchWithOffset(offset): # signed offset armdebug.setPC((armdebug.getPC() + offset - 4)) # the magic! #-4 for the current instruction