Help with asm: include and compilling

  • Thread starter bleeker
  • Start date
  • #1
13
0
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
 

Answers and Replies

  • #2
rcgldr
Homework Helper
8,768
565
For microsoft's assembler (ML or MASM), the syntax is

include example.inc
 
  • #3
156
0
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.
 
  • #4
156
0
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.
 
  • #5
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

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.
 
  • #6
156
0
From that f84temp.asm template file I mentioned above:

Code:
	list      p=16F84             ; list directive to define processor
	#include <p16F84.inc>         ; processor specific variable definitions
 

Related Threads on Help with asm: include and compilling

  • Last Post
Replies
8
Views
4K
  • Last Post
Replies
3
Views
2K
Replies
27
Views
2K
Replies
2
Views
2K
Replies
2
Views
4K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
16
Views
453
  • Last Post
2
Replies
29
Views
9K
Replies
7
Views
2K
Top