Or movf REG1,W xorwf REG2,W bz SAME ;not SAME Regards Luis F. > MOVF REG1,W > SUBWF REG2,W > BTFSS STATUS,Z > GOTO =>;NOT SAME > GOTO =>;SAME > > Quentin > > Graham North wrote: > > > > Hi, > > > > Could someone tell me the fastest way to compare two 8bit values. > > > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.