New Locations for MC Routines in a 64K RAMpack

Publication: LISTing Newsletter
Date: December 1990
Pages: 12

ZX81

NEW LOCATIONS FOR M/C ROUTINES IN A 64K RAMPACK

Retyped from the Sept 1985 issue of Vancouver N/L “ZXAPPEAL“

Those of you who, like me, have a 64K Rampack know that the area between 8 and 16K is a great spot to put your favourite machine code routines.

The trouble is that a lot of commercially available peripherals, made for the ZX81, use up some or all of this area by squatting their ROMs all over it.

On a normal ZX81, machine language programs do not run above 32K; there is however a solution. It comes to us from Christofer Tolis, who lives in Stockholm, Sweden; via Glen Read, who noticed it in the British mag. “Electronics and Wireless World”.

As you may know, when address line A15 goes high (and M1 low, which means an OPcode fetch is in progress, as opposed to a data fetch, this is the reason you can store data above 32K in the first place) the Ferrenti chip kicks in the display routines. See also ZXappeal April ’85.

To avoid all this we simply make sure A15 can not go high (at the Ferranti chip) unless A14 does the same, which it will not do when you are running a machine language routine between 32 and 48K.

Don’t worry A14 will be high when a legitimate display needs generating as long as the display file lives in the Sinclair sanctioned 16 to 32K area. This means that your BASIC program, which fills up the space between the system variables and the display file, must be less than 15K, in order to keep the display file within the 32K border, but programs that long have yet to be written for the ZX81.

TO DO THE DEED:

Cut the trace at the Ferranti #18 pin and install a 1K resistor. Solder a diode between pins 11 and 18 on the Ferranti side of the resistor using the correct polarity, and ,voila, yet another 16K to put your favourite machine language routines. Oh and by the way, these routines are of course safe from the reset button just as they are in the 8 to 16K area. You knew that, didn’t you?

Retyped by G.F.C.

Diode (1N4148) and 1K resistor between pins 11 and 18 (A14, A15) of the ZX81 SLC
Diode (1N4148) and 1K resistor between pins 11 and 18 (A14, A15) of the ZX81 SLC