This is a short program I made, it ram clears when I run it. Using pause commands I have determined that it happens as soon as the first sine command runs, but I am unsure why as when isolating 2-3 lines of code including the same values in the sine I do not get an error.
I did not combine any operations along with the sine command either, it's just a plain sine(var)->var.
Code:
[/i]
I did not combine any operations along with the sine command either, it's just a plain sine(var)->var.
Code:
TEST
//variable intializing
45→OFFSET
300→CX
300→CY
500→WXMA
400→WXMI
100→WYMA
200→WYMI
0→ANG
0→LENGTH→WALL→LX→LY
//ANGLE now equals 45
ANG+OFFSET→ANGLE
Repeat WALL
ReturnIf getKey(15
LENGTH+1→LENGTH
If ANGLE<90
//this line of code causes the ram clear. Note that LY is a variable (LY sort of looks like I mean ListY).
sin(ANGLE)→LY
LY*LENGTH+CY→LY
cos(ANGLE)→LX
LX*LENGTH+CX→LX
End
If LX≥WXMI and LX≤WXMA and LY≥WYMI and LY≤WXMA
1→WALL
End
End