In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Nick, Yes __PARAM1 holds the first byte returned, then __PARAM2 holds the 2nd byte returned, and so on. If a WORD variable is returned you can use the alias __WPARAM12. FUNC's must be declared so the compiler knows how many bytes you are returning. As in: MyFunc FUNC 2 ' A function that returns 2 bytes (1 WORD) Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=297459#m297832 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)