[SIZE=2][FONT=Trebuchet MS]
list p=12F629
radix dec
include "p12f629.inc"
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON & _INTRC_OSC_NOCLKOUT ;Internal osc.
;************************************
;Beginning of program
;************************************
org 0x00
bsf status, rp0 ;bank 1
bcf TRISIO,4 ;GP4 output
bcf status, rp0 ;bank 0
movlw 07h ;turn off Comparator
movwf CMCON ;must be placed in bank 0
movlw b'00010000' ;to toggle GP4
xorwf GPIO,f
call _1Sec
goto $-3
_1Sec goto $+1
goto $+1
goto $+1
goto $+1
decfsz D1,1
goto _1Sec
decfsz D2,1
goto _1Sec
retlw 00
END
[/FONT][/SIZE]