In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rwatts wrote: The SX/B NOT operator in 1.51.02 has a problem. When both the operand and the result are array elements, the assembly code generated by the compiler inverts the operand twice. Here's the code I used to confirm this: ByteArray VAR Byte(2) Element0 VAR ByteArray(0) Element1 VAR ByteArray(1) ... Element0 = 0 Element1 = 0 Element1 = NOT Element0 This code leaves Element1 with a value of $00, not $FF as expected. Of course a simple work-around is to add a non-array byte variable, such as Temp: Temp = Element0 Element1 = NOT Temp I also noticed that "NOT" and "~" are not shown in bold in the basic editor. I believe that's because they aren't listed in RESERVED.TXT. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145978 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)