> -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Morgan Olsson > Sent: January 26, 1998 16:22 > To: PICLIST@MITVMA.MIT.EDU > Subject: Shortforms for radix specification? > > > In a program example I learned that a simple dot can be used as prefix for > decimal radix. Like: > ten EQU .10 ;Works OK > > Are there such shortforms for other radix? > (I4m using MPLAB 3.30, and can only find clumsier things like d'157' for > decimal 157) > > I4ve tried: > 0b10111011 and 10111011b for specifying binary but I don4t work > 0d10 and 10d for specifying decimal but I don4t work I beleive for binary one uses b'10111011'. As for the rest, I don't know , I usually set radix to decimal, use 0x for hex when I need it, and when I have a different base I usually convert with my trusty calculator. Hope this helps, TTYL