def sixteen(address, sequence):
    """A generator that yields sequences of 16 elements"""
    row = []
    for x in sequence:
        row.append(x)
        if len(row) == 16:
            yield address, row
            del row[:]
            address += 16
    if row:
        yield address, row
