Search the Community
Showing results for tags 'memory'.
-
Warning: I'm new to Commodore/Commander x16 BASIC. And 35 years out of practice in BASIC. And never really that advanced to begin with. And, I'm working on someone's else's code that I cannot make public at this time. I have a linear array of 6 values. The code uses FOR-NEXT to fill all 6 values with a random integer between 3 and 25. The square root of the RND value is calculated before being being multiplied (in case that makes a difference) . The screen is cleared then the values are printed on screen and the user is prompted (GET B$) to accept them or choose 6 new random values. If the user reject them, then the program goes back to the FOR-NEXT loop to create 6 new values. Problem is, if they reject the values 19 times, the program crashes with "?OUT OF MEMORY ERROR IN 650 (the line with the FOR-NEXT and RND). I can use CLR before the FOR-NEXT; no OOM error. But this borks all the arrays in the program that are filled using DATA statements. The FRE(0) function seems like it is applicable I cannot understand how to use it to clear out the array (if that is what causes the OOM)?
- 16 replies
-
Fast RAM test View File While waiting for a release of actual hardware, I thought it might be a good thing to have some software to test the memory in the banked area. I stumpled upon an old article about a fast memory test procedure and created this small program to test alle available memory banks except bank#0. Be warned, this is a destructive test, but it only works on memory area $A000-$BFFF and only on bank 1+. You can find the original article here: https://cx16.dk/fastramtest/ Submitter JimmyDansbo Submitted 01/03/21 Category Misc Apps
-
Version 0.1b
32 downloads
While waiting for a release of actual hardware, I thought it might be a good thing to have some software to test the memory in the banked area. I stumpled upon an old article about a fast memory test procedure and created this small program to test alle available memory banks except bank#0. Be warned, this is a destructive test, but it only works on memory area $A000-$BFFF and only on bank 1+. You can find the original article here: https://cx16.dk/fastramtest/