How do I disassemble?


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1

    Default How do I disassemble?

    I keep reading posts on the web that say go to mplab, import your hex file, then goto View->Disassembly Listing but it doesn't work. Nothing ever comes up inside the window... just blankness. I am supposed to see basically the same thing as my whatever.lst file right? So how do I get it to do that? I must be missing a step somewhere...

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    I never used MPLAB. Does it have a Help feature, or forum?

    Robert

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    I think you can't get this from a single Hex file ...

    here you only can see .asm disassembly file ( W/o comments nor source )
    FILE/IMPORT ... Then VIEW/Program file

    if you want the VIEW/ disassembly window ... you need the whole project to have been compiled before !

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    I understand that I will not be able to decompile, but everywhere I look, it says I should be able to disassemble. I know I'm gonna get assembly language back, but I can read assembly, I cannot read hex...

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    Use MPLAB to look at the Program memory after loading the hex file.
    Dave Purola,
    N8NTA
    EN82fn

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    You shouldn't need anything else besides the hex file.

    http://en.m.wikipedia.org/wiki/Decompiler

    The problem is that decompilers don't all translate back to the same version of assembler.

    You can do it, you just need all the proper tools.

    Robert

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    Quote Originally Posted by Demon View Post
    You shouldn't need anything else besides the hex file.

    http://en.m.wikipedia.org/wiki/Decompiler

    The problem is that decompilers don't all translate back to the same version of assembler.

    You can do it, you just need all the proper tools.

    Robert
    Ok, we seem to be mixing terms tho... I was under the impression that when it comes to MC programming, that there is a distinct difference betwteen disassemble and decompile. Correct me if I am under the wrong idea, but I thought the reason disassembly is possible is because assembly is standardized more than with normal type programming for software. The way I understand it, we are really kind of double translating or double compiling on pic unless we want to learn to write in assembly. ie.. PBP3--> assembly--> hex or C--> assembly--> hex or Proton --> assembly--> hex, and this is why disassembly is usually possible even if decompile probly wont be....

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    Quote Originally Posted by Dave View Post
    Use MPLAB to look at the Program memory after loading the hex file.
    Dave, does this show contents in hex?

    If yes, is there a way to export and then convert into MPLAB assembler?

    (a tool could already be available for all I know)

    Robert

  9. #9
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: How do I disassemble?

    It does show it in assembly.
    Dave Purola,
    N8NTA
    EN82fn

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts