>> >What is the best way to test if the accumulator is zero? >> >> add zero then check zero flag, is that one way of doing that? > >That works, but it clears the carry flag. If you want the carry flag >cleared, that's fine, otherwise it's not so great. Normally I would use >IORLW 0; that leaves carry alone. AND it has the advantage of working in both the 12 and 14 bit PICs. myke "There are only three kinds of economists in the world. Those who can count and those who can't." - Eddy George, governor of the Bank of England