In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote: Bean This is the last bit of code that does not compile. All of the variables in this are global. SUB CalcCRC cValue = crc_HSB ^ cValue >> 4 ^ (crc_HSB ^ cValue) crc = cValue ^ (cValue << 5) ^ cValue << 12) ^ (crc << 8) ENDSUB The first line of code in the subroutine gives the error msg is: INVALID NUMBER OF PARAMETERS ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394728#m394752 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)