In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: I'm modifying this project -- [url][/url] -- so that in addition to running servos, the SX board handles encoders, velocity control, real-time ramping, etc. (the final output goes to an MD22 motor controller). I've got everything pretty much the way I want, but had to convert much of the code to assembly so I could get it all to fit, esp. when dealing with lots of variables. So.... I have a number of cases where my code space is much much tighter presuming that I can use IND whereever I would use a normal register (presuming FSR is set correctly ahead of time). E.g. [code] MOV W, #registers ADD W, globalIndex MOV FSR, W CJA IND, globalB1, @:decit CJB IND, globalB1, @:incit JMP @:done :decit DEC IND SKIP :incit INC IND :done [/code] Presuming this will work? Most of the code I see with IND tends to be CLRs and MOVs, etc. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=284586 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)