def find_all(self, pattern):
pos = []<EOL>last_found = -<NUM_LIT:1><EOL>while True:<EOL><INDENT>last_found = self.current_segment.data.find(pattern, last_found + <NUM_LIT:1>)<EOL>if last_found == -<NUM_LIT:1>:<EOL><INDENT>break<EOL><DEDENT>pos.append(last_found + self.current_segment.start_address)<EOL><DEDENT>return pos<EOL>
Searches for all occurrences of a pattern in the current memory segment, returns all occurrences as a list