I found a sample code here:

http://darreltaylor.com/DT_INTS-14/hello.html

The code is OK for me, since I also need a selected loop indication via led. What if I mod it a like this:

Code:
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
     TOGGLE LED1
IF LED1=1 then goto LOOP1 ELSE GOTO LOOP2

LOOP1:

LOOP2: 
@ INT_RETURN