In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: In the help file under Reference->Definition about 2/3 down is "Subroutine Declaration" then "Function Declaration" Subroutine Declaration: Label SUB {Min{, Max}} Function Declaration: Label FUNC ReturnCount{, Min{, Max}} WAIT_MS SUB 1,2 ' Minimum of 1 byte, maximum of 2 bytes; byte or byte,byte or word GET_TEMP FUNC 2 ' Returns 2 bytes; no parameters Just remember that the values are BYTES. So if you want a FUNC that receives a WORD and returns a WORD you would use: MyFunc FUNC 2,2 Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=164513#m164527 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)