Code:
@ device  pic12F508, intrc_osc, wdt_on, mclr_off, protect_off

X VAR BYTE

OPTION_REG = %10001111 ' pull-ups disabled, 1:128 prescaler assigned to WDT
GPIO = 0               ' pins clear on POR
TRISIO = 0             ' all outputs (except for GPIO.3, which is input only)
  
Main:
  FOR X = 0 TO 9       ' toggle LED on GPIO.0 10 times
    GPIO.0 = 1
    PAUSE 500
    GPIO.0 = 0
    PAUSE 500
  NEXT X
  
  ' sleep until WDT causes a device reset (around 2.3 seconds)
  @ SLEEP
The watchdog timer will timeout in around 2.3 seconds and cause a device reset. If you
just want to start over from 0, just replace @ SLEEP with @ GOTO 0.