In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: JonnyMac, I think your mistaken. strAddr is a normal word variable that gets assigned the value of the passed parameter (__wparam12). strIOByte is aliased to __param1 READINC reads a new value into strIOByte (eg. __param1) which is tested for 0, and if not, calls TX_BYTE. Now, because strIOByte is aliased to __param1 there is a redundant MOV __param1,strIOByte prior to calling TX_BYTE. TX_BYTE destroys __param1 (eg. strIOByte) but not strAddr and since strIOByte is not used after calling TX_BYTE there is no problem. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=328508#m328522 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)