MAXQ Core Assembly Guide - Maxim
MAXQ Core Assembly Guide - Maxim
MAXQ Core Assembly Guide - Maxim
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>Conditional Block NestingConditional assembly blocks may be nested. In this case, each additional #if/#endif block encountered isevaluated if the section it is located in is currently being included.Example Source FileONE equ 01h#define TWO 02h#if (ONE == 1)move Acc, #01#endif#if (TWO == 1)move Acc, #02#elseif (TWO == 2)move Acc, #03#elsemove Acc, #04#endif#ifdef THREEmove Acc, #05#elsemove Acc, #06#endif#ifndef FOURmove Acc, #07#elseif (ONE == 1)move Acc, #08#endif#if ((1+1) == 2)#ifdef TWOmove Acc, #09#endif#else#if (1)move Acc, #10#elsemove Acc, #11#endif#endif; Included; Excluded; Included; Excluded; Excluded; Included; Included; Not evaluated; Excluded; Evaluated; Included; Not evaluated; Excluded; ExcludedendExample Preprocessor Output File (with –s switch included)move Acc, #1; Includedmove Acc, #3; Includedmove Acc, #6; Includedmove Acc, #7; Includedmove Acc, #9; IncludedendVersion 1.2 37 of 43 March 7, 2007