I have a hex file PIC16F628 program,how can i get the original program form in ASM file .Is that possible to convert hex file to its original form by some software?!
Be careful, between macro's and inteligent compilers using C code, the assembly code you end up with might not be human readable right off the bat. Even a disassembler written by the same company that produced the software that created the hex code is going to come up with very different results.
Be careful, between macro's and inteligent compilers using C code, the assembly code you end up with might not be human readable right off the bat. Even a disassembler written by the same company that produced the software that created the hex code is going to come up with very different results.
The idea isn't to recreate the original source (that would be impossible, as the required information isn't there), it's to create source code that MPASM can accept and create the identical HEX file from.
Macro's aren't a problem, their code simply appears multiple times in the source as they would during assembly anyway. C generated code is more of a problem, as C compilers usually produce really poor unreadable code!, with some really bizzare methods?.