Book Review: The Complete Spectrum ROM Disassembly

See all articles from CATS v2 n12
Author(s): M.S.Morris
Publication: CATS Newsletter
Pub Details: CATS v2 n12 (Volume 2, Issue 12)
Date: March 1985
Pages: 17

The Complete Spectrum ROM Disassembly by Ian Logan and Frank O’Hara is an annotated assembly language listing of the Spectrum ROM routines.With some additions and modifications to implement the improvements in capability made by Timex,all of the Spectrum routines can be found in the 2068 as well.The book is therefore valuable to any 2068 user who wants to know more about the operating system and has some familiarity with Z80 assembly language.

Using a 2068 disassebler to compare the 2068 to the SPECTRUM shows that not only are the main routines either exactly the same or very similar,they also occur in the same order- with the following differences:

1) Cassette handling routines in the 2068 are placed in the “extension ROM”,and tape messages are in the main ROM starting at 15497(d),while the Spectrum has both located between 1218 and 2547(d).

2) Routines to handle 2068 plug-in cartridges (not in the Spectrum) are located between 6069 and 6468(d).

3) Other routines unique to the 2068 and which support functions not in the Spectrum are distributed throughout the main ROM.

Because of the differences cited above, a Spectrum program with a call to a ROM routine will not run on a 2068 unless the address is corrected.To find the correct address using the Spectrum ROM Disassembly,one may follow this procedure: Locate the Spectrum routine in the book;load a disassebler in the 2068;search the 2068 ROM for same routine.To assist in the search, the table below shows the starting addresses for the main sections of the Spectrm ROM followed by the corresponding address for the 2068.

Z80 Restarts          0000   (0000)
Token/Key Tables      0149   (0152)
Keyboard              0654   (0688)
Beeper                0949   (1011)
Cassette            1218 (ext. ROM)
Screen/Printer        2548   (1280)
Executive             4535   (3357)
Basic Interpreter     6728   (6469)
Graphics Commands   8874     (9731)
Expression Eval.    9467    (10324)
Math. Routines     11599    (12557)
Char. Set          15616    (15616)

The book is available from Zebra Systems for $19.95.

M.S.Morris