> Jerry Meng escreveu:
>
> > At 04:08 PM 7/9/98 -0700, you wrote:
> > >I have been trying to figure out how to read .hex files created by the mpas
m
> > >compiler. Does anyone know how to interpret them or where I could find the
> > >info?
>
> if you want i've done a dos program to convert .hex files to plain binary form
at,
>
> to send to an eprom...

While we're at it... There's still another assembler which is capable of
handling PIC code: AS by A. Arnold. It produces a proprietary object
format which can be converted to hex (all formats) or binary using
provided tools. The UNIX version is distributed in source code (ANSI C)
and compiles flawlessly under Linux (DOS and OS/2 versions are also
available).

Pros: runs under UNIX (big BIG +), assembles PIC and loads of other codes
-- virtually every MPU that you ever wanted to get to know ;-),
source code provided

Cons: different from MPASM (of course) as far as pseudo-instructions are
concerned, definitions for registers and bits need some fiddling
to be compatible with Microchip's conventions (no problem
because they reside in .inc files), no .cod file for MPSIM
(the .hex file can still be loaded and executed, though).

AS can also produce a file with symbol information for debugging; maybe
one could write a converter to .COD format...