Re: TIB: How does goto work?


[Prev][Next][Index][Thread]

Re: TIB: How does goto work?




     Well what someone told you is correct. When goto is called it jumps to 
the top and scans every line until it finds the right label.  
    It does this much faster than you think it can because the code dosnt 
look like Ti-basic to the calc when it is running.  What Basic languages do 
is the "compile" the code everytime they run and load it into the ram.  For 
those who dont know compiling is translation those If's thens, clrhome's 
etc.. into machine code so that the processor can work with it.  Once its in 
machine code the calc can access things very quickly. This is one of the 
limitations of Basic, because you only have a limited amount of commands that 
the Built in Ti Basic compiler will recognize you only have so much power.  
The advantage of ASM (which i dont know) is that there are far more options 
of what you can tell the calc to do, unfortunatly with all those options you 
have to be even more specific of what you want the calc to do when your 
programming.  Hope it helps
    ~Eric