In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: John -- why aren't you using '{$USES and '{$IFUSED and '{$DEFINE ? That way the progammer only needs to comment out (or conversely, insert) the USES statements so that subroutines/code in loaded files are only compiled if they are used, without having to comment out load instructions and the like. Makes it much tidier and clearer and that way the author of the library (I like the term library, rather than components, btw -- IMHO) can determine what needs to be compiled under what USED circumstances without the enduser of the library necessarily knowing what's going on. I realize Peter's code can be a bit dense on first glance, but you might want to check his code more closely for some nice tricks related to automatic compiling of necessary code. Lastly, the ISR should go at the END of the entire program (last page of memory) -- in many circumstances where there is a decent sized subroutine jump table there will not be room for a decent sized ISR in the first page of code space. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=352776#m352807 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)