2010/3/21 sergio masci : > Yes it is common practice to use expressions that show how a constant is > derived rather than the derived constant itself. This helps understand the > code (self-commenting) and makes it MUCH easier to identify and change > constants while you are debugging it or when you need to look at it at a > later date. > > e.g. > =A0 =A0 =A0 =A0; 5 is the number of slots available > =A0 =A0 =A0 =A0; 2 is the number of reserved slots > =A0 =A0 =A0 =A0addlw =A0 5-2 > > is easier to understand than > > =A0 =A0 =A0 =A0; 5 is the number of slots available > =A0 =A0 =A0 =A0; 2 is the number of reserved slots > =A0 =A0 =A0 =A0addlw =A0 3 That makes a lot of sense. Thanks! Josh -- = A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist