--- title: "RAM Memory Test" id: 77916 type: "computer_media" slug: "ram-memory-test" url: "http://localhost/computer_media/ram-memory-test/" markdown_url: "http://localhost/computer_media/ram-memory-test.md" published_at: "2026-11-19T15:04:12+00:00" modified_at: "2026-11-19T15:04:12+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/ram-memory-test-1.png" excerpt: "An eight-line ZX80 program that tests added RAM by writing 0 and 255 to each byte and reporting any address that does not hold the value." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" indiv: - name: "Alger Salt" slug: "alger-salt" taxonomy: "indiv" url: "http://localhost/indiv/alger-salt/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "Alger Salt" slug: "alger-salt" taxonomy: "indiv" url: "http://localhost/indiv/alger-salt/" download_url: "https://archive.org/download/timex-sinclair-software-archive/RAM%20Memory%20Test%20%281981%29%28Salt%2C%20Alger%29%28ZX80%29%28US%29%28Program%29.zip" mediadate: "1981" images: - url: "http://localhost/wp-content/uploads/2026/11/ram-memory-test-1.png" - url: "http://localhost/wp-content/uploads/2026/11/ram-memory-test-2.png" article_media: - id: 19680 title: "Build Additional RAM" type: "article" url: "http://localhost/article/build-additional-ram/" media_type_tags: "Utility" license: false --- # RAM Memory Test 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](https://timexsinclair.com/article/build-additional-ram/)). ## 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 ```