Re: TIB: Link 83


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

Re: TIB: Link 83



I have a Ti-86, which has a slightly different language, but I would use (not tested):

CalcA
1(store)X                                  ;intial value of X
Repeat X==7                            ;repeat until X=7, which will never happen
randInt(0,5,)+1(store)X            ;random integer from 0 to 5, plus 1, stored to X
Disp X
End                                           ;ends Repeat loop

CalcB
1(store)X
Repeat X==7
Get(X)                                      ;I guess that's GetCalc(X) for you
Disp X
End

At any rate, that what I do on my 86. Hope it helps...
 
 

ETTamme1@aol.com wrote:

        Hey guys, I have a question.  I have been working on a link program, but i
have been having trouble getting the variable from one calc to another. I am
using a loop where the variable changes, and I have a loop for the reciveing
calc where it gets the variable and displays it; but it dosnt change, the
variable stays the same.  And the wierd part is, is that i can get it to work
on the home screen but not in the loop Why???     heres the code

CALC 1                                          CALC 2

ClrHome                                         Repeat 0
Repeat 0                                        GetCalc(X)
int(rand5)+1->X                               Disp X
Disp X                                            For(0,1,20)
For(0,1,20)                                     End
End                                               End
End

        Any ideas guys?


References: