In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Although I'm not an SX/B expert, I feel ready to answer your question :-)... It depends on how often you call Pause from your application. You can compare SX/B commands, like Pause with Macros in Assembly, i.e. whenever you place a Pause command in your application, the SX/B compiler replaces this by the sequence of instructions required to generate the pause each time. This is similar to how the Assembler expands macros: Each time you refer to a macro in your application, the Assembler replaces it with the instructions contained in the macro definition each time. On the other hand, when you define a subroutine, and place the Pause command inside this subroutine, the compiler generates the code for the subroutine, and the code for Pause inside of it. Now, when your application calls the subroutine to generate the delay, the compiler only generates the code required to call that subroutine but it does not duplicate the Pause code each time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=232975#m232987 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)