In SX Microcontrollers, SX/B Compiler and SX-Key Tool, threepointone wrote: I've been working on a relatively big SX/B program the past week, and I encountered a couple of problems: a) Is there any way to include code snippets into sx/b? I wrote a sort of library for an LCD and a couple of other components, and the file is a bit unmanageable at the moment. "INCLUDE" will only include stuff directly in assembly, without compiling it. b) Of course, with a program this big, I need arrays. I've started using them, but I've noticed that there's a couple of places where they just don't work. I know that you can't use them as loop variables in for loops, but they seem to also not work if you're making a "custom" for loop (i.e. do, if var = 0 then exit, inc var, loop) without any compiler errors. The behavior becomes really, really strange (my program works, but it does some really strange things with the LCD--this was in a loop for writing characters). I assume that for some reason banking isn't done properly in loops with arrays without returning any compiler errors? Does this also happen with "goto" loops, and does it only apply for counter variables? Thanks for the help, and sorry if I'm asking anything stupid--I just started working with the SX this week. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=246928 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)