On Wed, Oct 24, 2001 at 01:35:14PM -0400, andy n1yew wrote: > hows about: > CALL TESTZERO > > TESTZERO MOVF TESTME,W > SUBLW 0 > BTFSC STATUS,Z > GOTO ZEROROUTINE > GOTO NOTZEROROUTINE > The sublw is unnecessary. MOVF affects the zero flag upon load. So if TESTME is 0, then the zero flag will be set when moved. An even better snippet that doesn't use W at all: testzero movf testme,F btfsc STATUS,Z goto zeroroutine goto notzeroroutine BAJ -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads