At 12:27 PM 6/23/2005, John Piccirillo wrote: >The following works: > >again: > btfsc PORTA, 4 ;check for button press - normal hi > goto again ;button not pressed > btfss PORTA, 4 ; check button released > goto $-1 > call debounce ;4 ms time delay > >The following does NOT work: > >again: > nop > nop > btfsc PORTA, 4 ;check for button press - normal hi > goto again ;button not pressed again1: > btfss PORTA, 4 ;check button released > goto again1: > call debounce Try replacing the "goto $-1" above with a proper label and see what happens. Then report back. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 21 years of Engineering Innovation (1984 - 2005) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist