In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Peter, If there is a RETURN between the SUB and the ENDSUB, then ENDSUB does NOT generate one. This was because alot of people had RETURN and then ENDSUB which generated two RETP instructions. You can manually put a RETURN in before the ENDSUB, but it might be better to just let ENDSUB generate one anyway to avoid problems. 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#m324035 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)