Hi all, Just following on from the previous snippets, in an effort to make comparisons easier to understand, here are some more. The best part is, the Z flag is ignored. if RAMx > RAMy movf RAMy,w sublw 0xFF addwf RAMx,w btfsc status,carry goto true if RAMx < RAMy movf RAMx,w sublw 0xFF addwf RAMy,w btfsc status,carry goto true if RAMx >= RAMy movf RAMx,w sublw 0xFF addwf RAMy,w btfss status,carry goto true if RAMx <= RAMy movf RAMy,w sublw 0xFF addwf RAMx,w btfss status,carry goto true -- Best regards Tony http://www.picnpoke.com Email sales@picnpoke.com