Hi all, I've been really tearing my hair out over this one recently. I need to subtract one 16 bit number from another 16 bit number in asm, and also catch if the result is negative. I kind of got it working, but was getting huge minnus numbers screwing up my results :-) I'm trying to work out the difference between one 16 bit ADC sample, and the next, for slow changing signals. Can anyone help me with the code? Thanks Graham --------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu