Compare two 16 Bit numbers, require flag when one greater than the = other? Anyone have the solution? For example: Registers ------------------------------ Number_2_HI_Byte Number_2_LO_Byte Number_1_HI_Byte Number_1_LO_Byte ------------------------------ I have a fixed number in Number_2 (lets say 0x01 0xFF) Number_1 is a very fast counter that starts at 0x00 0x00, I wish to know = when it is greater than Number_2=20 I then require a flag to be set, indicating that it is so! I have tried a subtraction routine but these roll over, I need either a = subtraction routine that doesn't roll over and gives 0x00 0x00 or = something else? Thanks Gary -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu