In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Jimmy, A "jmp" is simply a "GOTO", and you aren't allowed to "jmp" or "GOTO" from one routine into the middle on another routine - unless you want your program to crash. Zoot's approach is correct except that instead of saying you should "probably" change the jumps to GOSUBs, he should have said you [b]need[/b] to change your jumps to GOSUBs. Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=369403#m369409 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)