Calling a .asm file into another .asm file

Thread Starter

Sri_

Joined Sep 18, 2013
2
Could anyone say whether there is any possibility of calling a .asm file into anther .asm file of other project in MPLAB.
If possilble could u please state the requuired Directive or Instruction.
 

Thread Starter

Sri_

Joined Sep 18, 2013
2
Hi Max,
Am a beginner in Mplab. I wrote an assembly prog to clear all the RAM locations and my intention is to use or import this entire code in to the programe of a new project, instead of repeating the same code once again.

Thanks
 

MaxHeadRoom

Joined Jul 18, 2013
28,686
Put it in an (.INC) include file and add it to the Header file list is one way.
Then use the #include <filename.inc> in the main program.
Max.
 

ErnieM

Joined Apr 24, 2011
8,377
It is also necessary for the project to be able to either see this other code so include the dot-asm file in your project. That's the easiest way to let the linker know it is there.
 
Top