In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Well, my code is actually passing a variable through the SX/B mechanism of using the __PARAMx or __WPARAMxx variables which are in the global address space; when you're using your own variables you may need to ensure that you've got the correct BANK selected when you're working in the Assembly code. If you look in my example above I point to the serial bank because that's where txCount resides. __PARAM1 is in the global space so I don't have to switch to BANK 0 to get to it. If you don't have it you might want to get a copy of Guether Daubach's excellent book, "Programming the SX Microcontroller." ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=179621#m179641 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)