In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: Your program probably works but is consuming tons of code space because SX/B is turning every instance of SEROUT into several lines of assembly code. If you move SEROUT to a subroutine, then it only gets expanded once and you save a lot of code space. And, as I showed above, you can add features when you encapsulate "big" SX/B functions into a subroutine. There are several examples in the help file that demonstrate this. See page 23 of the SX manual for a complete description of the IDE controls. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=95955#m96122 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)