0 Members and 8 Guests are viewing this topic.
Oh, andAllowing jumping to an arbitrary place in memory
I like the For( idea.Could you explain examples of usage of jumping to an arbitrary place into memory? I'm not too sure what it does exactly...
This is why we need a switch statement.
Ah sounds cool, thanks for the info By the way I'll create the sub-forum for it now so you can post
Quote from: calc84maniac on November 04, 2010, 11:53:57 pmThis is why we need a switch statement.Doesn't that still take a lot of time to go through, though (when it's run)?
Quote from: Deep Thought on November 05, 2010, 10:40:51 amQuote from: calc84maniac on November 04, 2010, 11:53:57 pmThis is why we need a switch statement.Doesn't that still take a lot of time to go through, though (when it's run)?Nope, switch statement is supposed to do exactly what you were saying, jump to one of a bunch of routines using a table of addresses. It should take the same amount of time for any of the different cases. My plan to make it simpler for Axe to handle was to only allow switching of values 0,1,2,3,...,N, and a default case if the value is greater than N. So what if you wanted to switch and check for A=3,4,5,6? Well, just switch(A-3) and use cases of 0,1,2,3. I don't know if Quigibo will decide to do it this way, though.
Quote from: Deep Thought on November 04, 2010, 07:55:43 pmA couple of feature requests:Allowing For( to take any mem location as a variable. For example, For({L1},0,255) would be really useful.YES
A couple of feature requests:Allowing For( to take any mem location as a variable. For example, For({L1},0,255) would be really useful.
Or an alternative: allowing programs to define where the vars point.
I think something like E89F0→°A would be great. It should be a quick addition to Axe, and Quigibo could still keep the current values as default values and maintain backwards compatibility And as for using addresses in For( loops, I don't think that's a good idea. It's not backwards compatible, as you mentioned, and it'll confuse TI-BASIC programmers who are used to having a var in For(.