ZX81s which have been modified in some way and so we cannot guarantee that the ZXpand will work in all circumstances. The ZXpand can also be adapted to work with the Sinclair ZX80 computer, although you will need to use a replacement ROM inside the ZX80 itself (see below).
You may want to organise your files on the card by creating directories, again 8 characters maximum in the name, and putting a few files in each. The ZX81 was never designed to make use of a file system and this should make finding the file you want much easier.
ZXpand Manual CONFIG CONFIG "x" CONFIG "x=y" (Press shift-G in K mode – replaces ‘LLIST’ command) The CONFIG command is the main method of communicating with and configuring the ZXpand interface. As the working of some programs and commands is affected by how the interface is set up, this will be dealt with first.
ZXpand Manual CAT "" CAT "directory" (Press Z in K mode - replaces ‘COPY’ command) It is sometimes useful to know what files are available on the card. The CAT command will do this. Providing an empty string will list the content of the current working directory (CWD). To list the content of directories relative to this then you must specify the path as you might for a DOS based system.
ZXpand Manual LOAD LOAD "filename" LOAD "filename;X" LOAD "filename;address" LOAD "" LOAD will take data from the specified filename on the card and place it in memory. The basic LOAD command will work just as you expect. Specifying an empty name will invoke the tape loader as normal to allow you to load a program from cassette.
AUTOBOOT The ZXpand can be configured to automatically run a program called ‘menu.p’ when the ZX81 is switched on or reset. Nominally the ZXpand is set to autoboot when the SHIFT key is pressed during power on.
A short tap will reset the ZX81 only. The green LED will flash. HARD RESET A longer press, approximately 1.5 seconds, will reset the ZX81 and the interface controller. The green and red LEDs will flash. FACTORY RESET A 5+ second press of the button will restore the content of the EEPROM to its factory default.
ZXpand Manual INFORMATION FOR PROGRAMMERS The interface lives on I/O port 7 which is fully decoded. Bits 15...13 of the address bus are latched when port 7 is accessed and then used as a channel number in order to perform different tasks. Therefore the only valid IO instructions for accessing the port are: out (c),a in a,(C)
0 represents whether a card is present… Alternatively you can call a function at 8190 ($1ffe) to retrieve the value. The ZX81 firmware source is available for instructional use. Any suggestions for improvements/bug reports will be welcomed.
ZXpand Manual HARDWARE THE JOYSTICK PADS The above image shows the break-out pad assignments. The inputs have built-in pull-ups and are active low. A joystick break-out board will be available in the near future. The reset pin is not enabled in the current firmware. Here is an overview of the various components and pads on the ZXpand.
Having modified the ZXpand, you may still use it with the ZX81 by removing the small plastic jumper (just remove it from the two pins you soldered to the board). The new memory decoder GAL works for both systems, so that is all you need to do.
Page 15
.80, these are identical in operation and so any .80 files should be renamed to have the .O extension. As with the ZX81 firmware, the LOAD and SAVE commands will invoke the tape routines when entered without a filename or an empty string “”.
ZXpand Manual ERROR CODES The interface can report the following errors. They are shown in inverse video to distinguish them from standard system report codes. Disk error - the card file system may be damaged Internal error - the filing system data structures are inconsistent Not ready - the card is not responding or no card is present File not found - no such file exists No path - no such directory exists...