> Mark Jurras wrote: >I am using a pic 16c73 to read a Maxim 12-bit A/D. I am looking for a >compact routine to determine if the 16-bit word stored, high byte low byte, >is greater than a stored maximum or less than a stored minimum. You could try this: movf maxl, w subwf numl, w movwf temp movf maxh, w skpc addlw 0x01 subwf numh, w iorwf temp, w skpz skpc goto leap movf numl, w movwf maxl movf numh, w movwf maxh leap ... Regards, Mike Watson