On Wed, 28 Nov 2001, Vasile Surducan wrote: > On Tue, 27 Nov 2001, Drew Vassallo wrote: > > > >Compare two 16 Bit numbers, require flag when one greater than the other? > > > > > >Anyone have the solution? > > > > No, but I'm sure you can find it here: > > > > http://www.piclist.com/techref/microchip/compcon.htm#16_bit > > > or here: http://www.geocities.com/vsurducan/electro/PIC/lib.html I've been looking at comparisons lately. In fact I've been looking at them too much and am starting to get sick of it (but that's another story). I saw your page Vasile and noticed that it can be dramatically streamlined if your're willing to change the interface ever so slightly. ; unsigned char compare_lt_eq_gt(unsigned int a, unsigned int b) ; ; compare two integers. return 0 if they're equal, 1 if a>b, or 2 if auP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads