In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote: Hi Peter; You are right; at least about the jump table. At present I have 95 SUBs, and I had not twigged that I would overflow that page... silly me for not doing the math. So it would not have helped in this case. That said, there is still a good use for a special symbol to cause W to be used as a parameter. Again, to keep code tight, I usually use the calling parameters as variables in a sub (in fact at times all of them plus some shadow stacks) so I won't need to mess with bank switching. Furthermore, mixing SX/B with assembly, and throwing macros into the mix makes thing very awkward. Again, the special symbol-for-W case would help. At present I use all 5 parameters, and wish I could also pass W without having to revert to assembly. The W and fsr get saved in their respective shadow stacks. Doing all the bank switching manually is of course possible..... I was hoping to leave some of that tedium to SX/B. Anyhow, if passing W is not easy, then I will have to live with things the way they are. Sorry for causing a fuss. Cheers, Peter, (pjv) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=353593#m353614 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)