so how about a subroutine, where you exit the asm prog and run a basic prog with the timing loop have it start up the asm program again. You can have the basic program have switch a variable or something and the asm program will read that and goto a certain label after the subroutine (does anybody understand what i'm saying) -Cliff