Including Macros from external files?

Status
Not open for further replies.

ViniVan

New Member
I find myself writing (or should I say copy-pasting) the same macro definitions over and over again. Is there anyway to create a file with multiple macro definitions and call them from external files?
 
Of course you can... Just stick it in an "inc"file and include it... Just include it before its called...
 
Even though my project was using relocatable code, I didn't know this can be done. It works! Thanks man!
 
If you build libraries of .INC routines labels used in the main routine need to be declared by the GLOBAL instruction, ref to the MPASM Assembler User Guide explains them.
Max.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…