Re: TI-85 error and the same thing works on a ti-92 (?)


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

Re: TI-85 error and the same thing works on a ti-92 (?)



>Ok, this is because the Ti-85 keep in memory at each iteration that
>there was an 'if'/'then' and no 'end'.
>Do the same thing on a ti-92 :
>
>lbl a
>if 0=0 then
> goto a
>endif
>
>I run that 10 minutes with no error !
>
>How the ti-92 can do that ?

goto should clear any memory allocated by the if/then statement without
needing an end. I would think that in the 85, they implemented goto as
a simple JMP (Z80 equiv) instruction, not clearing any data that might be
used by If_Then and other structured programming commands. Apparently,
in the 92, they chose to have the instruction deallocate that memory, which
is as it should be, because you don't need to worry about a program's
flow control returning from a goto instruction.

-------------------------------------------
Pat Gunn, a C programmer and member of TeamOS/2,
User of NT, OS/2, PC-DOS7, Linux, etc. My homepage is http://ftp.apk.net/~qc
Fan of Executor, a Mac emulator for DOS, Linux, and NeXT (http://www.ardi.com)
And then came the godly NEKO, a flying first strike 32/32 black creature
-------------------------------------------


References: