views:

139

answers:

5

I want to disassemble a hex file of PIC16F877A. Is there any good disassembler ? After disassembly is it possible to compile again ? What are the things I have to take care of ?

A: 

Let me google that for you

First few links seem promising.

shoosh
A: 

You can get a disassembly listing in MPLAB. Select the right device, import the hex file, View Program Memory. It should be possible to edit and reassemble. However, this is in PIC assembly language, you mentioned compile, so are you thinking of trying to get C code back from hex? If so, that's much harder.

Martin
Yes i want to get code either as ASM file or C program
+1  A: 

Writing your own is fairly simple. and you can make the output re-assembleable if you like.

dwelch
A: 

Just use IDA Pro: http://www.hex-rays.com/idapro/ It disassemble everything and it the best tool ever for it.

Nicolas Viennot
A: 

You may have better luck asking this @ http://electronics.stackexchange.com/

mjh2007