Lil' White Ram - RAM Test By Ken Lill March 7, 2009 (With some fixes and Addition on Feb. 26, 2010) Adam Trionfo asked: "Is there a BASIC program that can be typed in that can test the RAM (at least as much RAM as AstroBASIC can see)?" Ken replied: This will check all addresses from 5000 hex to 7FFF hex. If you are trying to check the Bally's On-Board RAM, you will have to check (B in line 20) from 16384 to 20258. If you try to go farther, you will run into the stack area for the BASIC. Remember, you CANNOT check above 32767 with BALLY or ASTRO basics. It MUST be an extended BASIC. 10 A= 255;C=0 20 FOR B=20480TO 32767STEP 2 30 %(B)=A 40 IF %(B)=A GOTO 70 50 PRINT #0,"%(",B,")=",%(B)," IT S/B="A";C=C+1 70 NEXT B 80 A=A-85;IF A>0GOTO 20 90 PRINT #0,"? ",C",ERR0RS WERE FOUND Explanation: ------------ What you get if you subtract 85 from 255 four times is; Dec Binary Hex --- --------- --- 255 1111 1111 FF 170 1010 1010 AA 85 0101 0101 55 0 0000 0000 00 You'll notice that by doing it this way, you check each bit with a 1 and a 0 twice. This is the quickest way to do a fairly thorough check. You could do a bit-shift method, which is even better, but who wants to tie up their Bally all day? END OF DOCUMENT