>Hi all, >I'm needing a help. >I'm looking for a way how get a comparisons with16 bit variables, for >exemple: > >A = B, A < B or A > B > >Somebody could send me any codes? > >Best regards > >Anbar > Substract the 16 bit variables from each other like: A - B if carry gets set: A < B if carry doesn't get set, and zero also not: A > B if zero gets set: A = B You have to watch those carry and zero flags in software by yourself, try 8 bit variables first.... Hope i have been of some help