In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: RETURN anywhere in a SUB or FUNC adjusts __STACKPTR if any locals are used. Cannot use a jump because you can actually declare locals after code, so you could have a RETURN in a IF block, then declare some more locals to do something else. I don't recommend doing that, but it can be done. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=324027#m324060 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)