• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 

ViniVan

New Member
Even though my project was using relocatable code, I didn't know this can be done. It works! Thanks man!
 

MaxHeadRoom78

Well-Known Member
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.

Latest threads

EE World Online Articles

Loading
Top