def loop(self): """Advances to the next mode and performs the instruction when it is time (when the condition is met), otherwise does nothing.""" BaseProgram.loop(self) if self.condition_satisfied(): self.increment_mode() self.perform_instruction() return self.s