def find(self, pattern):
pos = self.current_segment.data.find(pattern)<EOL>if pos == -<NUM_LIT:1>:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>return pos + self.current_position<EOL>
Searches for a pattern in the current memory segment