****************************************************** *** *** *** comp.binaries.cbm is a moderated binaries- *** *** only newsgroup (no discussion or *** *** crossposting allowed) for Commodore 8-bits *** *** *** *** For information on comp.binaries.cbm visit *** *** http://stockholm.ptloma.edu/comp.binaries.cbm/ *** *** *** *** This file is also available via FTP from *** *** http://ftp.videocam.net.au/cbm/incoming/ *** *** (allow time for submission to be received) *** *** *** ****************************************************** [ Cleaned up slightly -- Cameron Kaiser ] memtest.prg -- A RAM testing program for the C64. -- v1.00 (c) Jason Petersen 2002 =============================================================================== Usage: ------ LOAD"MEMTEST.PRG",dv,1 SYS820 This program will repeatedly test RAM from $0800 to $ffff (62 KB) by writing a value to a location, checking that the location holds the written byte, then moving to the next memory location. When $ffff is reached, the test will start over at $0800, alternating between a fill pattern of $ff and $00. The screen border will flash after each cycle to indicate progress. The test may be aborted at any time by pressing the space key. If there is any discrepancy between the value written and the value read, an error is generated. The error will be displayed on the screen in decimal as: (memory location) (value written) (value read) For Example: ERRORS: 49152 255 251 If many errors are being generated, the space key may need to be held down for a few seconds before the program terminates. Have patience and the program will stop when the current page is finished. If there are many errors and the screen is scrolling, try holding down the CTRL key to slow it down. Why test only 62 KB? The program has to fit in memory somewhere! It sits around the tape buffer from $0334 to $03fe. The screen is from $0400 to $07e8. Trust me, if there are RAM problems in locations $0000 to $0333 you will have no need of this program, since the computer probably won't work. :) It would be easy to make this a 63 KB tester by checking the range $0400 - $07ff as well, but then it would be difficult to read any errors since the screen would be overwritten. You can get the latest version of memtest from: http://thisoldcomputer.com Send comments to petersenj@NOSPAMyahoo.com, flames to /dev/null. Jason