convert hex to asm for MC68HC08/HCS08

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

convert hex to asm for MC68HC08/HCS08

2,097件の閲覧回数
peimansh
Contributor II

hi

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

ラベル(1)
タグ(4)
3 返答(返信)

1,448件の閲覧回数
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,448件の閲覧回数
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 件の賞賛
返信

1,448件の閲覧回数
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 件の賞賛
返信