TI-85 programing


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

TI-85 programing



The \->\ is the store arrow.

What is supposed to happen:
    You move a dot on the screen with the arrow keys.  When you press
exit, alpha, del, or stat, another dot shoots off in a different
direction.

What dose happen:
    The main dot moves fine with the arrow keys but the shot(second dot)
is not correct.  It only shoots once to the left, infinit times to the
right and neither up nor down.

This is to be used in Zoom Decimal Form.
This is written so only one shot can be on the screen at once.



0\->\X        ;this is the main dot
0\->\Y
Y\->\FY        ;this is the shot
X\->\FX
0\->\S        ;tells shot where to go
Lbl A
ClDrw
If FX>6.3 or FX<6.3 or FY>3.1 or FY<3.1    ;screen boudaries
0\->\S
;tells shot to recycle
If S==0
X\->\FX
If S==0
Y\->\FY
PtOn(X,Y)                ;main dot
If FX*X or FY*Y
PtOn(FX,FY)                ;second shot
If S==1                    ;tells the shot how to move
FX-.3\->\FX
If S==2
FY+.3\->\FY
If S==3
FX+.3\->\FX
If S==4
FY-.3\->\FY
0\->\Z
getKy\->\Z            ;the main dot movement
If Z==24
X-.1\->\X
If Z==25
Y+.1\->\Y
If Z==26
X+.1\->\X
If Z==34
Y-.1\->\Y
If S==0
getKy\->\V            ;the shot movement
If V==31
1\->\S
If V==22
2\->\S
If V==33
3\->\S
If V==42
4\->\S
Goto A

Any who might see a problem please resspond.