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>Nested MacrosMacro calls may be made inside a macro body, although macros may not be called recursively (a macro may notinclude a call to itself in its body definition). Parameters may be passed to these nested macro calls, as shownbelow.source filem1 macro p1 p2 p3move Acc, p1m2 p2, p3endmm2 macro p1 p2move Acc, p1m3 p2endmm3 macro p1move Acc, p1endmendm1 #01h, #02h, #03hMacro output file; BEGIN Macro m1move Acc, #1; BEGIN Macro m2move Acc, #2; BEGIN Macro m3move Acc, #3; End Macro m3; End Macro m2; End Macro m1endVersion 1.2 42 of 43 March 7, 2007

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

Saved successfully!

Ooh no, something went wrong!