Luis Moreira > I need to compare to numbers to see which of them is higher can someone > point me on the right direction? (You don't say, but you want to use a PIC, right ? If not, there are easier ways :-) ) This is very different on the 16/12F series from the 18 series. On the 18 series there are single instructions (CPFSEQ, CPFSGT, CPFSLT) to do this, on the 16/12F series you need a couple of instructions (a SUBxx together with any of the SKIP instructions) to do the same thing. The 18 series is a clear winner in this regards :-) What PIC series are you using ? Jan-Erik. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads