Spectrum Software Scene 2 Issue 38 Contents Hardware World

Mass Storage



Spectrum+ with Discovery attached

A voyage of Discovery

John Lambert looks at a disc system which could become a standard

OPUS SUPPLIES has just released its Discovery disc system and it has the distinction of being the first to be supported by major software houses, endorsed by a disc manufacturer, and sold through a high street chain. It could, consequently, become the standard system.

The level of support is due to four factors. The Discovery, at is lowest level, is completely compatible in Basic with the microdrive, and many existing programs will run on it without modification. It is supplied with a drive, so software houses can sell discs and know they will fit. The unit has both a printer port - Centronics - and a joystick port - Kempston - negating the need for at least some interfaces. Lastly, it uses very little of the Spectrum memory, making program conversion easier.

Moreover, the Discovery has improved on the Interface One microdrive set up, by including random access files and the option to set aside part of the Spectrum memory as a RAM disc, which works like an ordinary disc drive but is much faster. All the Basic errors in Interface One have been corrected and the syntax can be simplified.

The Discovery range comprises three units: Discovery One, which has a single sided, 40 track, 3½in drive (178K formatted); Discovery Two, which has two drives - the maximum possible; and Discovery Plus which is the upgrade from One to Two.

Users with full-sized keyboards need not worry as the drives are high enough to clear the keyboard and those with a base similar to the Spectrum - Saga, Lo Profile and so on - fit easily.

The unit has a built-in power supply which is used to power the drives and the Spectrum, through the edge connector. That means the on/off switch can be used to reset the computer. It also has the obligatory through port and, for the serious user, a monitor socket. That is taken from the edge connector and so will work only on issue three Spectrums onwards.

All internal hardware is memory mapped within the lower 16K and so should not clash with other add-ons which tend to be I/0 mapped. It is compatible with the VTX5000 modem, something about which Interface One was temperamental. Naturally, it is not compatible with Interface One.

One feature not detailed in the otherwise comprehensive manual is that, with the upgrade, a RAM chip which fits in the interface is supplied. Once fitted that allows you to alter the disc settings of the number of tracks, sectors, and sides, the interleave, skew, and even the density. By playing with those I managed to get a system which gave 196K formatted and was 25 percent faster but which used 1K sectors. The RAM disc, which normally occupies the upper 32K, can also be moved around. For dedicated hackers that will provide hours of amusement: software houses need not worry as there are protection systems built in which, even with that information, are secure.

Benchmarks - all times in seconds.
 MicrodriveDiscRAM disc
Capacity95K178K31K
FORMAT25180
SAVE231379.5
LOAD in order15235
LOAD out order212235
ERASE in order2383512
ERASE out order238234.5
 
Program used:
10 FOR n=1 TO 30
20 SAVE *"m";1;"test"+STR$nCODE 30000,200
30 NEXT n
Filing:
PRINT2005929
INPUT in order688364
INPUT out order1998364
 

Line 20 was changed as required and line 10 to 30 TO 1 STEP -1 for the reverse order. The filing program opened a file, printed 1000 10-character strings and closed the file 15 times. A compatible Basic program with no disc access took 23 seconds.

As microdrives do not handle random access the reverse input gives a comparable timing. The cartridge/disc was reformatted before each test to optimise performance; in normal usage a microdrive cartridge uses odd blocks which effectively doubles the time taken per operation.

As with Interface One, Discovery works by using a system of channels and streams. A channel sends and receives information and a stream is the path along which it passes. For instance, the 'p' channel is the printer which usually has stream three assigned to it. With Discovery fitted a number of channels are created - 'm' for microdrive (in this case disc drive) and 't' and 'b' for the parallel port. The 't' channel is for text with options for printer width, ZX printer emulation, control of carriage returns and line feeds; 'b' is the binary channel and will accept information without modification.

The 'j' channel is for the joystick, which can be turned on and off; the 'd' channel is the drive and is used for commands which relate to the whole disc, such as backup and compact; the 'CAT' channel is the disc directory and can be treated as a file; the 'CODE' channel allows you to send information to, or from, memory.

Discovery normally uses 256 byte blocks - the RAM disc uses 32 bytes and so when loading and saving it takes about 300 bytes. Once the disc has finished, however, that memory is reclaimed and the system takes up no memory. Interface One takes 600 bytes and does not give them back.

To be compatible with the microdrive the system will accept all, its commands, using the same finger knotting syntax; however, unless specified otherwise, the 'm' channel is assumed and can be omitted.

The few differences have been added to make the system more versatile. SAVE will automatically overwrite an existing file of the same name; the long version of MERGE - including the 'm' - will not auto-run but the short version, if not the end of a line, will; and INKEY$# returns a null string at the end of a file (the microdrive stops with an error message). Files can be specified as read or write files by adding the keywords IN and OUT.

The extra random access commands, which can be applied to any file, make ingenious use of existing Spectrum keywords. A random access file is opened using RND, the position is set with POINT and a file can be expanded using EXP. Provision has been made for End of File detection with a simple USR call.

The Discovery One costs £199.95. Compared to an Interface One and microdrive that might seem expensive, but taking into account the printer, joystick and monitor ports, which would cost you around £50.00, it is a far better deal. Discovery Two is priced at £329.95, Discovery Plus at £139.95 and a printer lead at £9.95.

The Discovery range will be available from larger branches of Boots. Further details from Opus Supplies Ltd, London.



Spectrum Software Scene 2 Issue 38 Contents Hardware World

Sinclair User
May 1985