Hi servo260,
Don't know if this could cause the problem...
Is this IF...THEN statement proper? I don't know if it's OK to use a GOSUB like that.
---
main:
if portb.3 = 0 then gosub setup
---
Maybe try this:
IF portb.3 = 0 THEN
gosub setup
EndIF
Arch
Bookmarks