Disassembly listing


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82

    Default Disassembly listing

    Hi,

    I am trying to get a disassembly listing of my PBP program.
    Using MPLAB I only get a partial result for the more complex Basic statements. I mean that not all the ASM equivalent appear. For example :

    82: CCP1CON = $0C
    00070 0E0C MOVLW 0xc
    83:
    84: CCPR1L = DataByte >> 2
    00074 C01C MOVFF _DataByte, ADCS1

    Obviously MOVLW 0xC is not the complete translation of CCP1CON = $0C.
    Some lines involving CCP1CON are missing in the assembly code.

    My first question is : Is there somewhere an option or a box to be ticked in order to get the full assembly code ?

    My second question is : Is there something equivalent with the MicroCode Studio development environnement. If yes, where ?

    Thank you for your help

    MikeBZH

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Mike BZH

    the one and only way to see what is REALLY in the Controller is to load the Hex in the MPLAB Program window ... "symbolic" tab clicked.

    Using MPLAB as an IDE instead of Microcode Studio makes it work by itself ... and the addresses and variables mnemonics stay as you've entered in your Basic listing ...
    isn't it nice ???


    Alain

    PS I thought St Quentin was a town on the African continent ... not a britton's village or an American JailHouse ...
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default

    Hi Alain,

    It should be fantastic but I did not succeed.
    Please can you give more details about how to proceed ?

    Up to now I have done File>Import and then I have selected the hex file related to my project. I only obtain a disassembly listing of the hex file with no symbolic relation with the Basic. Where is the selection for that ?

    Mike BZH

    PS : Saint-Quentin-en-Yvelines is full of Brittons ! I'm proud to be part of them !

  4. #4
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default How to set Symbolic tab and see disassembled code

    MikeBZH,
    Once you have imported your hex code file into MPLAB IDE, select View\Program Memory and you will then see a disassembled listing of your code. In this dissassembler window, look down in the lower left of the window and you will see some tabs....one named "Machine" and one named "Symbolic". Make sure you have the Symbolic tab selected and you will then see all of the symbolics with your code. Hope this helps you!

  5. #5
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default

    Hi Jellis,

    Many thanks for you repply. Yes it works !

    MikeBZH
    Last edited by MikeBZH; - 15th June 2009 at 08:39.

Similar Threads

  1. O.T. HEX code disassembly
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th March 2007, 16:11

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