;
;         "libr_flasher8.txt"      
;
WDT_off:
      wdr
        ; Clear WDRF in MCUSR
      ldi tmpd, (0<<WDRF)
      out MCUSR, tmpd
        ; Write logical one to WDCE and WDE
        ; Keep old prescaler setting to prevent unintentional Watchdog Reset
      in  tmpd, WDTCSR
      ori tmpd, (1<<WDCE)|(1<<WDE)
      out WDTCSR, tmpd
        ; Turn off WDT
      ldi tmpd, (0<<WDE)
      out WDTCSR, tmpd
    ret