The loader program for John Roach’s 8K EEPROM board, a home-built card that puts a Seeq 8K x 8 EEPROM in the empty 8K-16K area of the ZX81 memory map. It copies N+1 bytes from RAM starting at S into the EEPROM starting at E, first writing 255 into any byte that is not already all ones (the chip can only be written over 255) and pausing for the 1 ms write pulse.
It needs the EEPROM board described in the article; the construction part was promised for the next issue. As printed, the listing has two lines numbered 80 and the loop uses D and P where S and E are set, so it stops with report 2/80.
Published in Sinc-Link November 1984 (8K EEPROM Board).
Source Code
10 REM ** EEPROM LOADER **
20 REM S= STARTING ADDR. OF
30 REM DATA IN RAM.
40 REM N= NUMBER OF BYTES -1.
50 REM E= EEPROM START ADDRS.
60 LET S= 16436
70 LET N= 2047
80 FOR I= D TO D+N
90 IF PEEK (E) = 255 THEN GOTO 130
100 POKE P, 255
110 FOR J= 1 TO 2
120 NEXT J
130 POKE P, PEEK (I)
140 NEXT I
150 PRINT "I'M LOADED, EH!"
160 STOPNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
