code: def reset(self):
          
          self.__mem.reset()
          self.__cpu.reset()
          self.__tainter.reset()
  
          # Instructions pre and post handlers.
          self.__instr_handler_pre = None, None
          self.__instr_handler_post = None, None
  
          self.__set_default_handlers()
docs: Reset emulator. All registers and memory are reset.