In SX Microcontrollers, SX/B Compiler and SX-Key Tool, RS_Jim wrote: @Bean, The following does not compile correctly: ' ------------------------------------------------------------------------- ' Conditional Compilation Symbols ' ------------------------------------------------------------------------- '{$DEFINE SERIAL} ' ' ' ------------------------------------------------------------------------- ' INTERRUPT ' ------------------------------------------------------------------------- ' ------------------------------------------------------------------------- '{$IFDEF SERIAL} INTERRUPT NOPRESERVE 230_400 '{$ELSE} INTERRUPT NOPRESERVE 100_000 '{$ENDIF} ' ------------------------------------------------------------------------- All of my other conditionals compile correctly including a nested one '{$IFDEF SERIAL} '{$IFDEF LCD_DSP} '{$ELSE } '{$ENDIF} IT Tries to use both interupt rates and the assemblier complains about overwriting the same program location. I can also tell from the __INTOPTION that it is picking up the second value (10,000) as it equats __INTOPTION to $80 not $88. If I don't use the conditional and just comment out the interupt option I don't want, it compiles/assembles correctly. I have conditionals burried in the interupt load file and that is working correctly. RS_JIM '{$ENDIF} ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367635#m370876 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)