HEX to ASM to C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Farley
    New Member
    • Jan 2011
    • 1

    HEX to ASM to C

    Hello,

    I have a Hex file for a PIC16F877A. I was able to convert it to a ASM file which compiles in MPLABS.

    I wanted to know if someone is up for the conversion process. I am looking to get a functional code in C. I can email you the code. Also i dont mind paying money if i have to. Its something i reallly need done.

    Please email me at swellracing@gma il.com
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    this is not simple as modern compilers optimise code for size and/or efficency so often the code generated by the compiler does not appear to have a one to one relationship with the C source.
    In the past I have done this conversion by looking at PIC18 and PIC24 ASM programs to get the general structure and in particular the bit settings for clock, IO ports, etc. and writing the C equivalent.

    Comment

    Working...