def create_code_dict(self, text):
    reg = re.compile('([0-9a-f]{4}  [0-9a-f]{4})')
    rawinfo = re.findall(reg, text)
    for x in rawinfo:
        s_line = re.split('\\s', x)
        addr = int(s_line[0], 16)
        data = int(s_line[2], 16)
        self.code_dict[addr] = data
    return self.code_dict
def create_code_dict(self, text):
    reg = re.compile('([0-9a-f]{4}  [0-9a-f]{4})')
    rawinfo = re.findall(reg, text)
    for x in rawinfo:
        s_line = re.split('\\s', x)
        addr = int(s_line[0], 16)
        data = int(s_line[2], 16)
        self.code_dict[addr] = data
    return self.code_dict