1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help with asm: include and compilling

  1. Aug 11, 2008 #1
    I just want to know what exactley must I write in the 'include'. Can I just write #include <P16F84A.INC> or must I write the whole directory path of the file?
    And what does it mean when MPASMWIN desplay errors: 7?
    I have even tried downloading programs in .asm for a PIC and compilling it but it still desplay errors: 7
  2. jcsd
  3. Aug 11, 2008 #2


    User Avatar
    Homework Helper

    For microsoft's assembler (ML or MASM), the syntax is

    include example.inc
  4. Aug 12, 2008 #3
    If you investigate the Help section of MPLAB, you'll find (if you dig deep enough) a list of the error codes generated by the assembler.

    I don't have MPLAB on this pc so I can't help much more than that.
  5. Aug 12, 2008 #4
    The other thing that springs to mind is that there's a load of template files in a subdirectory of MPLAB.

    They're found in a directory something like "C:\MPLAB\template\code"

    If you have a look around using windows explorer, you'll find them.

    There's a template in there that is intended for use with the PIC16F84A... copy that to where ever your work is, & have a good look at it... it should assemble without any errors.
  6. Aug 12, 2008 #5
    You use the INCLUDE keyword and the absolute address of the file or that you want to include for example.

    INCLUDE c:\masm615\include\lib32.inc

    Im assuming that you are using masm.
  7. Aug 18, 2008 #6
    From that f84temp.asm template file I mentioned above:

    Code (Text):

        list      p=16F84             ; list directive to define processor
        #include <p16F84.inc>         ; processor specific variable definitions
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Help with asm: include and compilling
  1. Compiler help (Replies: 1)

  2. Fortran compiling Help (Replies: 4)