Thanks Olin. I should be more consistent with my contant definitions. I use 0x all over the place, so I think I'll take your advise and change everything to this format - at least all my hex constants will then appear in the same colour. On the other hand, perhaps h'' would be better, because it is more in line with how we declare binary, decimal, octal, and string constants as well, i.e. Binary: b'' Decimal: d'' Hex: h'' Octal: o'' String: '' 0x seems a little out of place in this line up. Rgs Ian -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Olin Lathrop Sent: Monday, 3 March 2003 3:07 am To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: MPLAB opinions sought > a) I like the context colouring, except MPLAB gets it screwed up from > time to time, particularly with literals. Example 'movlw 0Ah' shows > the '0Ah' in red as it should, but 'movlw 0Dh' shows the '0D' in black, > and the 'h' in purple. Seems to compile properly, but seeing things > like this makes me paranoid that the assembler too might get it mixed > up. Duh! Is this Microchip's way of saying "be more consistent with > your literal definitions" ? Keep in mind that the syntax you are using is not officially supported. The only officially correct ways of specifying an integer constant in hexadecimal are H'' and 0x. Some older syntaxes have been allowed in the past, but these have not been in the documentation for quite a while. Actually it's too bad they didn't take the opportunity to finally get rid of all the historical baggage. It decreases the chances of it finding genuine errors. I suggest you fix all your code to use the correct syntax. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu