Esempio n. 1
0
 def __init__(self, segment, ranges, text):
     ChangeMetadataCommand.__init__(self, segment)
     # Only use the first byte of each range
     self.ranges = self.convert_ranges(ranges)
     log.debug("%s operating on ranges: %s" % (self.pretty_name, str(ranges)))
     self.text = text
     indexes = ranges_to_indexes(self.ranges)
     self.index_range = indexes[0], indexes[-1]
     if len(ranges) == 1:
         self.pretty_name = "%s @ %04x" % (self.pretty_name, self.segment.start_addr + indexes[0])
Esempio n. 2
0
 def __init__(self, segment, memory_map):
     ChangeMetadataCommand.__init__(self, segment)
     self.memory_map = memory_map
Esempio n. 3
0
 def __init__(self, segment, ranges):
     ChangeMetadataCommand.__init__(self, segment)
     print ranges
     self.ranges = ranges
Esempio n. 4
0
 def __init__(self, segment, addr, label):
     ChangeMetadataCommand.__init__(self, segment)
     self.addr = addr
     self.label = label