Thanks Jan-Erik You are right, I=B4ve got it using the 18F compare instructions. I did a mistake, because I=B4ve been using to 16F series. I also tried to do this using subtract with borrow instruction, but I could not make it work. Best Regards Luis F. > antoniasse wrote : > > >> Subject: [PIC]:18F compare routines > > Why not simply use the 18F compare *instructions* ? > > Note that in most cases it's enough to compare > the high bytes of the 16 bit numbers, only if they > are equal you have to compare the low bytes. > Depending on which of the operations you are > doing, of course. > > Jan-Erik. > > > > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist=20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist