its a quick easy test to check, it works on all chips that i tried just make sure the compiler dosn't compress the subtract into a decrementI do not trust that this may be the case for any PIC though.
i var can be byte or word
Code:j=8 i=6 while j status=1 i=i-2 ;subtractant cannot be 1 s=status debug 13,10,"status ",bin8 s ," i ", dec i j=j-1 wend
Bookmarks