How to transfer the HEX file to ASM

Status
Not open for further replies.

mydiy

Newbie level 6
Joined
Feb 19, 2005
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,358
Hi all!

I have PIC's HEX file , How to transfer it to asm ?


Thanks


MYDIY
 

In MPLAB IDE click File... Import... and import the hex file.
Then click View... Program memory. That will show you the disassembled program.

Right click on the column headers and uncheck the ones you do not need. Typically you will only need the Disassembly column and the Address column.

You can then right click on an instruction and export the file as text. Then you can open it, then save it as .asm. But you have to find the destination of the goto instructions and create labels manually.

I hope this helps.
 

Hello

You can use PIC simulator IDE, IC-Prog, WinPICProg. They have built in diassembler.

Just load the HEX file, and you can see the ASM code.

Have a nice day
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…