> Or, if that's too hard to remember, just think of the Carry flag > after a subtraction as a "non-negative" flag. After a subtract, > Carry will be set if the result is positive or zero, and will be > clear if the result is negative. E.g., And if that's too hard to remember, use my SKIP_WLE (skip if W was less than or equal to other value) and SKIP_WGT macros. These expand to single BTFSx STATUS, C instructions, but alleviate the need to figure out which way C gets set on a subtract each time. Just do a SUBLW or SUBWF followed by SKIP_WLE or SKIP_WGT. These any many other handy macros can be found in STD.INS.ASPIC at http://www.embedinc.com.pic. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.