In SX Microcontrollers, SX/B Compiler and SX-Key Tool, johncouture wrote: Sandy, Yes, that was my point. Most languages go from right to left (as does Fortran above). I guess I was trying to state that most languages put the receiving operand on the left of the equals sign, yet the WKPND_B = rbStatus seems to defy that logic (grin). Jon, Thus, it looks like the statement is actually a swap (something very common in assemblers). I never got into compiler design (a magical art in my opinion) so sometimes the syntax of the language is a little mysterious to me. I'll have to play around with the syntax and see what kind of assembler code it produces (something I should have done before I posted this, sorry). Anyway, it works great. Now to gather it together into a tutorial. Thanks again. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92178#m92588 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)