convert hex to asm for MC68HC08/HCS08

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

convert hex to asm for MC68HC08/HCS08

2,128 Views
peimansh
Contributor II

hi

how can I convert a hex file to assembly source for HCS08 mcu family?

Labels (1)
Tags (4)
3 Replies

1,479 Views
tonyp
Senior Contributor II

You possibly mean you need to convert a hex file (like S19) to ASM.  Assuming the file actually contains 9S08 code, you would need a disassembler, preferably a code-seeking one.  Although this tool can help by doing some of the job, it cannot do a complete reversal of the ASM file (except for trivial cases) without significant operator input.

Don't forget a lot of the source-code information is irreversibly lost when translating from ASM to machine code, and this needs a lot of human involvement to attempt to recover -- and, then again, with no guarantees of success in all cases.  I would say this may be a daunting task, and in most cases it turns out a much more difficult one than simply re-writing the app's functionality from scratch.

If, however, you have no choice but to actually recover this specific file (e.g., to recover perhaps some very valuable algorithms,) you'll need to disassemble with the help of some tool, and a *lot* of manual work (proportional to the size of the application).

Another possibility to using a disassembler is to use a software simulator in which you load your app and execute it until you have managed 100% branch coverage.  This will reveal your full code little by little.  Again, a lot of manual work will be required.

Good luck.

1,479 Views
peimansh
Contributor II

Another possibility to using a disassembler is to use a software simulator in which you load your app and execute it until you have managed 100% branch coverage

hi Mr Tony Papadimitriou

thanks for good answer but please more explain about simulator section.

regards,

peiman sh.

0 Kudos
Reply

1,479 Views
david_diaz
NXP Employee
NXP Employee

Hello,

I am afraid I do not know any way or method to do that.

Have a great day :smileyhappy:

0 Kudos
Reply