12.07.2015 Views

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MAXQ</strong> <strong>Core</strong> <strong>Assembly</strong> <strong>Guide</strong>Include FilesThe INCLUDE directive allows common defines, equates and macros to be stored in a file which can be used bymultiple source files in a project or even in multiple projects. The syntax for this directive is as follows.$include ()or#include “”The INCLUDE directive causes the contents of the file to be read and processed by Macro immediatelybefore processing of the current source file continues. Once the include file has been processed, the original fileresumes being processed by Macro at the line following the INCLUDE directive.Include files may be nested by using the INCLUDE directive to include other files, so thatsource.asm#include “def1.inc”def1.inc#define SYMBOL1 01h#include “def2.inc”def2.inc#define SYMBOL2 02h#include “def3.inc”def3.inc#define SYMBOL3 03hhas the same effect assource.asm#define SYMBOL1 01h#define SYMBOL2 02h#define SYMBOL3 03hVersion 1.2 27 of 43 March 7, 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!