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:

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
[/i]
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement