In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: pjv, It would be great to have that in sx/b. I remember from MSX basic, it had a ON INTERVAL=nnn GOSUB construct which would allow to define a subroutine that would get called at regular intervals. Accompanied keywords were INTERVAL ON (start interval timer), INTERVAL STOP (stop interval timer), INTERVAL OFF (disable interval timer) and INTERVAL RESUME (at subroutine end). At the start of such a subroutine was an implied INTERVAL STOP to prevent calling the subroutine from within the subroutine in case it took longer than the interval time. At the subroutine end was an implied INTERVAL RESUME. I can imagine having INTERVAL0 to INTERVAL9 to support 10 scheduled tasks. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=157842#m157893 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)