B blitzalpha New Member Jul 3, 2004 #1 Could somebody please tell me how to compare two bytes in PIC and determine which is a larger value? Thanks in advance.
Could somebody please tell me how to compare two bytes in PIC and determine which is a larger value? Thanks in advance.
Nigel Goodwin Super Moderator Most Helpful Member Jul 4, 2004 #2 blitzalpha said: Could somebody please tell me how to compare two bytes in PIC and determine which is a larger value? Thanks in advance. Click to expand... You can use subtraction to do it, then check the flags, there's an entire section on the PICList about this at I suggest you have a look there.
blitzalpha said: Could somebody please tell me how to compare two bytes in PIC and determine which is a larger value? Thanks in advance. Click to expand... You can use subtraction to do it, then check the flags, there's an entire section on the PICList about this at I suggest you have a look there.
kentken New Member Jul 4, 2004 #3 I believe that some of the 18F series have a byte test function. Don't rember is it is only =, or if it has <> to. Look at a instructions section of the data sheet. Kent
I believe that some of the 18F series have a byte test function. Don't rember is it is only =, or if it has <> to. Look at a instructions section of the data sheet. Kent