> I need to convert 16 bit binary to 4 BCD digits. I searched the archives > and thought I had found just the right thing, so I more-or-less just pasted > it into my 16C877 code. However, MPASM gives error messages on the lines > with the ds and $ directives. I can't find any references to the $ (except > where it returns the PCL) in the MPASM user's guide. > > ... > > NumH: ds 1 > NumL: ds 1 > TenK: ds 1 > > ... > > addlw $E2 What stone tablet did you find this chiseled on!? I vaguely remember stories of the Ancient Ones that used to say "DS" to reserve storage and "$" to denote hexadecimal. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu