[Coco] CCASM nested conditional assembly

Roger Taylor rtaylor at bayou.com
Sat Dec 4 16:03:25 EST 2004


Oh, I also added nested conditional assembly.  It supports virtually 
unlimited nesting (32 levels deep).  This is included in the Portal-9 1.62 
download.

Before, you could only use one conditional statement, and any new ones 
before an 'endc' would take over instead of considering the past 
conditions.  Short-circuit (lazy) evaluation is used so that nothing can be 
true after (nested inside of) a false condition until the next endc, which 
causes the last condition to take over again.  Don't worry, it's all automatic.

One nice thing about conditional assembly is that you can place *anything* 
in the conditional block, even ORGs, EQUs, constant strings, etc. to 
redefine the whole program layout based on something like the condition of 
a single symbol at the top of the code.


-- 
Roger Taylor




More information about the Coco mailing list