'---------------------------------------------------
' My program. (wkd 02-oct-02)
'---------------------------------------------------


powerup:
  output 0                    ' watchdog LED
  input  1                    ' start button
  output 2                    ' ****change to fit your program
  output 3
  output 4
  output 5
  output 6
  output 7


watchdog:
  high 0                       ' LED on
  for b0 = 1 to 10
    pause 25                   ' delay a bit. 
    if in1 = 0 then start      ' check for button press
  next 
  low 0                        ' LED off
  for b0 = 1 to 50
    pause 25                   ' delay
    if in1 = 0 then start      ' check for button press
  next 
  goto watchdog                ' and repeat

start:
  low 0                       ' leave LED off (or on if you want)

' ..........insert your code here.........

finish:
  goto watchdog                 ' start all over again