Creating INCLUDE file

Status
Not open for further replies.

AGCB

Member
I'm using MPLAB and can't figure out how to create an include file that the assembler can find. I tried saving a file in the MPASM SUITE but it ends up as a text document and then the assembler can't find it when I use the #include directive. I.e. it's not a inc. file. I want to be able to use a macro without copying it into the source code. Thanks for your help!
Aaron
 

You have to save it as a .inc file. Open the file up in your text editor, then go to File>>>Save As... then name the file "includes.inc" or whatever you want to name it, but be sure to type the .inc after the file name.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…