+ Reply to Thread
Results 1 to 4 of 4

Thread: What is the meaning of LIST file?

  1. #1
    Suraj143 Newbie
    Join Date
    Jan 2007
    Location
    South Mald Isld
    Posts
    921

    Question What is the meaning of LIST file?

    Hi guys in the MPLAB in top of every new project I write list p=16F877A.
    Actually what is that? For what purpose is it there? Can I ignore that?

    Thanks


  2. #2
    kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent kchriste Excellent
    Join Date
    Jul 2006
    Location
    Victoria BC, Canada
    Posts
    3,681

    Default

    Ummm... You really should understand what you write.
    The statement "list p=16F877A" tells the assembler what PIC to assemble the code for. VERY important don't you think, since different PICs have different registers and memory mappings? Ignore it at your peril.
    Inside every little problem, is a big problem trying to get out.

  3. #3
    TekNoir Newbie
    Join Date
    Mar 2005
    Location
    Tennessee - USA
    Posts
    138

    Default

    I believe that you could use the processor compiler directive instead, but I also believe that leaving out the list directive will disable production of the listing (*.lst) file, which can be very useful.

  4. #4
    TekNoir Newbie
    Join Date
    Mar 2005
    Location
    Tennessee - USA
    Posts
    138

    Default

    By the way... If you have MPLAB installed, start the IDE and go to help. Select the MPASM compiler. It'll explain all of the compiler directives and the instruction set that you may use when creating your programs.

    The help is actually pretty well written and useful.

+ Reply to Thread

Similar Threads

  1. Good Programing Techniques
    By Suraj143 in forum Micro Controllers
    Replies: 5
    Latest: 27th April 2007, 07:27 AM
  2. ADC reading
    By hjl4 in forum Micro Controllers
    Replies: 37
    Latest: 13th April 2007, 11:29 AM
  3. How we can do it in Assembly..Help Needed
    By Ayne in forum Micro Controllers
    Replies: 37
    Latest: 29th December 2006, 05:49 PM
  4. how would i generate HEX file for multiple assembly files?
    By belinda_sg in forum Micro Controllers
    Replies: 2
    Latest: 30th March 2004, 07:54 AM

Tags for this Thread