In SX Microcontrollers, SX/B Compiler and SX-Key Tool, James Newton wrote: PJV, I've already done all that in the mymacros.src file I referenced above. Look at the way the subroutine macro is defined. The only difference is you do the setup when you define the subroutine rather than when you call it; that way you don't have to worry about duplicate setup. There is also a working macro for the OLD version of SASM that includes a subroutine inline the first time and then calls it at that location each following time in the old newsletter article. It's fun to see new people work with macros though... ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=244787#m245817 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)