In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rodneymc wrote: Hi Russ, Look in the SX/B help file under "Declaration" for one alternative. Another, it looks like you need to declare your sub's first, these assume to pass 0 variables to the subroutine: [code]Program START [code]'__________________________________________________________________________ ' Subroutines / Jump Table '__________________________________________________________________________ [code]PIC3 SUB 0 CLICKS SUB 0 PIC1 SUB 0 [code]START: 'Then after the main code (after the END), I typically put the subroutines. ' code Main: ' code END '___________________________ 'I like using the sub...endsub format, but there are alternate ways: '___________________________ SUB PIC3 'code endsub '___________________________ SUB clicks 'code endsub '___________________________ SUB PIC3 'code endsub '___________________________[/code] Hope this helps! Rodney ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=286298#m286315 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)