code: def add_srec(self, records, overwrite=False):
          
  
          for record in StringIO(records):
              type_, address, size, data = unpack_srec(record.strip())
  
              if type_ == '0':
                  self._header = data
              elif type_ in '123':
                  address *= self.word_size_bytes
                  self._segments.add(_Segment(address,
                                              address + size,
                                              bytearray(data),
                                              self.word_size_bytes),
                                     overwrite)
              elif type_ in '789':
                  self.execution_start_address = address
docs: Add given Motorola S-Records string. Set `overwrite` to ``True`` to
          allow already added data to be overwritten.