def registerHexStringToValue(self, s): if s == ('x'*(self.NATIVE_REGISTER_WIDTH/8*2)): return 0 tmp = int(s, 16) if self.isLE: return tools.reverseEndianess(tmp, self.getNativeRegisterWidth()) return tmp
def registerHexStringToValue(self, s): tmp = int(s, 16) return tools.reverseEndianess(tmp, self.getNativeRegisterWidth())
def toRegisterHexString(self, value): if self.isLE: v = tools.reverseEndianess(value, self.getNativeRegisterWidth()) else: v = value return "%08x" % v
def toRegisterHexString(self, value): return self.REGISTER_STRING_TEMPLATE % tools.reverseEndianess(value, self.getNativeRegisterWidth())