Morning all. First thanks for all the opinions.
On advice, I checked the help files for MPLAB and found that I can use either the equ, set or #define functions. equ or #define are the better ones to use, as set could be reset to a different value if i wasn't careful. As a simple substitution is required, I'm going to use equ.
If I wanted to use a string, it'd be the #define function.
Thanks everyone for the input, it's all valuable.
As an aside, if I wanted to do a comparison between a received byte and a "constant" byte, is a substituion followed by a check of the zero flag the best way to do it? If the "smaller" byte is "on top" would i be right in saying the zero wouldn't set? so would i do the substitution twice, each way round, to make sure they both equal zero?
Mark