Hi All. I was squeezing some folks assembler code today and ran across part of it when one needs to compare variable against several constants one by one and if case is equivalency found jump to some address. What I originally had : movfw var xorlw A ;first compare vs A constant skpnz goto addr_its_equal xorlw B^A ;then compare vs B constant skpnz goto addr_its_equal xorlw C^B ;then compare vs C constant skpnz goto addr_its_equal etc... Interesting squeeze was found :) so I decided to share in case if somebody else might find idea helpful. movfw var xorlw A skpz xorlw B^A skpz xorlw C^B skpnz ; goto addr_its_equal WBR Dmitry. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist