In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, The value of "tmsg >> 8" is a constant that is evaluated when your code is assembled. Just like "idx+1". Let's assume that idx = 8 and tmsg = $123. The assembler would convert "MOV idx+1,#tmsg >> 8" into "MOV 9,#1" So you see the SX is not performing any math at all. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=84844#m85094 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)