RAM Memory Test

Developer(s): Alger Salt
Date: 1981
Type: Program
Platform(s): ZX80
Tags: Utility

A memory test from the article Build Additional RAM, which describes adding 8K of 2114 static RAM to the ZX80 (or MicroAce). For each address from 16576 up to 24384 the program POKEs 0 and reads it back, then POKEs 255 and reads it back, and prints ERROR AT and the address whenever the byte does not hold the value. When the loop finishes it stops.

Line 30 was printed as POKE A.0, which the ZX80 will not accept (it marks a syntax error); the printed Syntactic Sum, 9783, matches POKE A,0, and that is what the file has.

The program needs the added memory: it writes over everything from 16576 to 24384, including the display file, so any ERROR AT lines are lost when the ROM redraws the screen at the end, and on an unexpanded 1K machine it runs into the machine stack.

Published in Syntax March 1981 (Build Additional RAM).

Image Gallery

Source Code

 10 FOR I=192 TO 8000
 20 LET A=16384+I
30 POKE A,0
 40 IF NOT PEEK(A)=0 THEN PRINT "ERROR AT";A
 50 POKE A,255
 60 IF NOT PEEK(A)=255 THEN PRINT "ERROR AT";A
 70 NEXT I
 80 STOP

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.