This might help you...: http://www.piclist.com/techref/microchip/compcon.htm#16_bit enjoy Mauricio D. Jancic Janso Desarrollos - Microchip Consultant www.janso.com.ar info@janso.com.ar (54) - 11 - 4542 - 3519 Lugones 3238 "B" - C1430ECN Capital Federal Republica Argentina (54) - 11 - 4542 - 3519 MSN: jansodesarrollos@hotmail.com >>-----Original Message----- >>From: pic microcontroller discussion list >>[mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of PSL >>Sent: Jueves, 08 de Enero de 2004 14:17 >>To: PICLIST@MITVMA.MIT.EDU >>Subject: Re: [PIC]: Conditional branching >> >>Opps.. I am sorry i should have given more details >> >>I am looking got coding to do 16bit compare so will need to >>do things like >,<,<>,=,>=,<= all this The coding that i have >>are rather short but if i have to have all ths condition it >>is very lengthy and seem that most of the coding are >>repeating themselves, so i am asking around if there is any >>one to all solution around. >> >>cant produce good code with my small brain hahaha >> >>Thanks anyway >>PSL >>----- Original Message ----- >>From: "Jan-Erik Soderholm XA (TN/PAC)" >> >>To: >>Sent: Friday, January 09, 2004 12:50 AM >>Subject: Re: [PIC]: Conditional branching >> >> >>> PSL wrote : >>> > Hi all >>> > any one got any good conditional branching Pic code to >>share Most of >>> > the coding i see compare magnitude how to do it when i >>have a signed >>> > number? >>> > >>> > Please advice >>> >>> Give a few examples of values and describe what you'd like >>to happen, >>> and we'll see... >>> >>> Do you have to have a signed number ? >>> >>> (Even a simple "btfss" is a (kind of) "conditional branching"...) >>> >>> Jan-Erik. >>> >>> -- >>> http://www.piclist.com hint: The list server can filter out >>subtopics >>> (like ads or off topics) for you. See http://www.piclist.com/#topics >> >>-- >>http://www.piclist.com hint: The list server can filter out >>subtopics (like ads or off topics) for you. See >>http://www.piclist.com/#topics >> >>-- >>Incoming mail is certified Virus Free. >>Checked by AVG Anti-Virus (http://www.grisoft.com). >>Version: 7.0.209 / Virus Database: 261.6.1 - Release Date: 08/01/2004 >> >> -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.209 / Virus Database: 261.6.1 - Release Date: 08/01/2004 -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics