Continue to Site

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.

  • 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?
 
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top