In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Indeed, it would. If the parameter count is less than 5 then __PARAMCNT is loaded with the number of parameters; if exactly five parameters are used then this register is used for the fifth parameter (the compiler uses the SUB/FUNC declaration to determine which action to take). The programmer must be aware of the danger of using __PARAMCNT this way; it might be better to pass the address of an array if more than four parameters are required. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=3&m=157842#m176293 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)