Codes falls thru after the GOSUB, goes to timesetup, then tries to RETURN from which there was no GOSUB...therefore, the PIC dies a horrible death not knowing where to RETURN to.Code:MINSI: If Butup=0 then IMINUTES=IMINUTES+1 IF BUTDWN=0 THEN IMINUTES=IMINUTES-1 IF BUTSTART=0 THEN GOTO CONTINUE IF BUTRESET=0 THEN GOTO HOURSI ENDIF ENDIF ENDIF ENDIF GOSUB TIMESETUP timesetup: LCDOUT $FE, 1, "GAME LENGTH" LCDOut $FE,$C0,DEC2 IHours,":",DEC2 IMinutes,":00.00" PAUSE 200 REturn
Ok, not that horrible, and not a death, but it probably does stop dead in it's tracks.
Bookmarks