TI-M: Faster Basic


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

TI-M: Faster Basic




I am going to write a small game in Basic and I was wondering if anyone
could make the following code any faster?  What I have takes way too long
to move an X around the screen.


ClrHome
1->R
1->C
Lbl A
Output(R,C," ")
getKey->K
If K=24
C-1->C
If K=26
C+1->C
If K=25
R-1->R
If K=34
R+1->R
If R=0
1->R
If R=9
8->R
If C=0
1->C
If C=17
16->C
Output(R,C,"X")
Goto A





References: