At 19:54 07.02.99 +0100, you wrote: >Hi. Here's an EASY question: >How to check whether the difference is zero? > >movlw .67 >subwf BYTE_TO_CHECK >btfsc STATUS,Z > > > >If BYTE_TO_CHECK is .67, the result of the thrird instruction will be zero >(67-67=0). >My questions: >* If the diff. is 0, will the Z flag of STATUS be set or cleared? The Zero-Bit is set, if the result of an operation equals zero. => set >* In the above code: Will be executed if BYTE_TO_CHECK is .67? btfsc means bit test file, skip if clear. => yes, will be executed but hereafter will also be executed. -- ciao Jens Wilmer http://www.lc.uni-muenster.de/~wilmerj/