In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: David, In theory you can expand to any level of indirection, but that requires a change to the way sxb evaluates expressions. Currently, you can have only one operator per line as in ; Attempting arr1[arr2[i]] = val - arr1[arr2[2]] More complex expressions must be split over several lines. What jonnymac proposed, and me too, is to allow an index at a fixed location, either a normal variable or an aliased array variable. Then all that needs to change is the calculation of fsr. It requires no change on how expressions are evaluated. If the index is a normal variable, use the current way of calculating fsr, if the index is an array variable, use the proposed way of calculating fsr. The remaining generated code would remain the same. 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=328791#m328830 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)