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:
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
2010-05-26 07:08:02
Yes i want to get code either as ASM file or C program
2010-05-26 07:30:47
+1
A:
Writing your own is fairly simple. and you can make the output re-assembleable if you like.
dwelch
2010-05-27 05:38:05
A:
Just use IDA Pro: http://www.hex-rays.com/idapro/ It disassemble everything and it the best tool ever for it.
Nicolas Viennot
2010-05-27 05:41:05
A:
You may have better luck asking this @ http://electronics.stackexchange.com/
mjh2007
2010-10-06 13:57:56