In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: If _PARAMCNT is loaded with the number of arguments for any gosub, then you cannot use gosub in the interrupt section because that will destroy _PARAMCNT, unless the sub called from isr happens to have an identical number of parameters. I also know that most subroutines have a fixed number of parameters and therefore _PARAMCNT is hardly ever used, but still, this could lead to some erratic program behaviour, which might not be repeatable, and therefore almost impossible to debug. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=3&m=157842#m176298 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)