In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: That makes sense and is a good reason to use that instead. One thing that i've noticed in your latest program is the way you've got the variables split up in different arrays. I would have thought that all the servo values could have been all in a single array and the counts in another. It looks like you've got it structured the way due to the way the SX handles the banks and you can just keep working in a single bank at a time. That is something i'll need to be wary of in my own programs. Does SX/B only automatically handle the banking when doing basic statements and ignore it when it encounters a section of ASM code? If so, a section that covers the best practices for the layout of variables and banks would make an excellent addition to your book. I can see that you've been primarily using the SX28 chips. Have you done much on the SX48 with your code? Bean mentioned in another thread that instead of using a BANK 0 that a BANK $10 should probably be used on the SX48. If that is the case than perhaps another topic for the help file (or book) could be using conditional compiling so that the same code can assemble for both the SX28 and SX48. It seems that for many programs there isn't much difference but for some it may help. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=252933#m253576 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)