piclist 2003\03\02\110849a >
Thread: MPLAB opinions sought
www.piclist.com/techref/microchip/languages.htm?key=mplab
face picon face BY : Olin Lathrop email (remove spam text)



> 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'<digits>' and 0x<digits>.  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
KILLspampiclist-unsubscribe-requestspamspammitvma.mit.edu>
<004501c2e0d5$bf5c7a80$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) MPLAB opinions sought

month overview.

new search...