Help with asm: include and compilling

  • Thread starter Thread starter bleeker
  • Start date Start date
AI Thread Summary
To include a file in assembly language for the PIC16F84A, the correct syntax is to use the `#include` directive followed by the file name, such as `#include <P16F84A.INC>`. It is not necessary to specify the full directory path if the file is located in the default include directory. Errors displayed by MPASMWIN, specifically error code 7, typically indicate issues with the syntax or missing files. Users are encouraged to check the MPLAB Help section for a comprehensive list of error codes. Additionally, template files for the PIC16F84A can be found in the MPLAB installation directory, which can serve as a useful reference for proper assembly syntax and structure.
bleeker
Messages
13
Reaction score
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
 
Technology news on Phys.org
For microsoft's assembler (ML or MASM), the syntax is

include example.inc
 
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.
 
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.
 
bleeker said:
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.
 
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
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top