The Complete SPECTRUM ROM DISASSEMBLY

Total Page:16

File Type:pdf, Size:1020Kb

The Complete SPECTRUM ROM DISASSEMBLY The Complete SPECTRUM ROM DISASSEMBLY BY Dr Ian Logan & Dr Frank O’Hara Transcribed by the following readers of the comp.sys.sinclair newsgroup:- J.R. Biesma Biggo Dr. J. Bland Paul E .Collins Chris Cowley Dr. Rupert Goodwins Jonathan G Harston Marcus Lund Joe Mackay Russell Marks Eduardo Yañez Parareda Adam Stonehewer Mark Street Gerard Sweeney Geoff Wearmouth Matthew Westcott Matthew Wilson Witchy 1 Preface The Sinclair ZX Spectrum is a worthy successor to the ZX 81 which in turn replaced the ZX 80. The Spectrum has a 16K monitor program. This program has been developed directly from the 4K program of the ZX 80 although there are now so many new features that the differences outweigh the similarities. We have both enjoyed producing this book. We have learnt a great deal about the techniques of Z80 machine code programming and now feel that between us we have unravelled the ‘secrets of the Spectrum’. We would like to thank: -- Our families. -- Alfred Milgrom, our publisher who has been extremely helpful. -- Philip Mitchell whose notes on the cassette format were most informative. -- Clive Sinclair and his team at Sinclair Research Ltd. who have produced such a ‘challenging’ and useful machine. January 1983 Ian Logan Lincoln, U.K. Frank O’Hara London, U.K. 2 Contents page Preface Introduction The DISASSEMBLY - The restart routines and tables 1 - The keyboard routines 5 - The loudspeaker routines 11 - The cassette handling routines 15 - The screen and printer handling routines 33 - The executive routines 59 - BASIC line and command interpretation 84 - Expression evaluation 127 - The arithmetic routines 164 - The floating-point calculator 190 Appendix - BASIC programs for the main series 222 (SIN X, EXP X, LN X & ATN X) - The ‘DRAW’ algorithm 228 - The ‘CIRCLE’ algorithm 228 - Note on small integers and -65536 229 Index to routines 231 3 Introduction The 16K monitor program of the Spectrum is a complex Z80 machine code program. Its overall structure is very clear in that it is divided into three major parts: a. Input/Output routines b. BASIC interpreter c. Expression handling However these blocks are too large to be managed easily and in this book the monitor program is discussed in ten parts. Each of these parts will now be ‘outlined’. The restart routines and tables. At the start of the monitor program are the various ‘restart’ routines that are called with the single byte ‘RST’ instructions. All of the restarts are used. For example ‘restart 0008’ is used for the reporting of syntax or run-time errors. The tables in this part of the monitor program hold the expanded forms of the tokens and the ‘key-codes’. The keyboard routine. The keyboard is scanned every 1/50 th. of a second (U.K. model) and the keyboard routine returns the required character code. All of the keys of the keyboard 'repeat' if they are held down and the keyboard routine takes this into consideration. The loudspeaker routines. The spectrum has a single on-board loudspeaker and a note is produced by repeatedly using the appropriate 'OUT' instruction. In the controller routine great care has been taken to ensure that the note is held at a given 'pitch' throughout its 'duration'. The cassette handling routines. It was a very unfortunate feature of the ZX 81 that so little of the monitor program for that machine was devoted to the cassette handling. However in the Spectrum there is an extensive block of code and now the high standard of cassette handling is one of the most successful features of the machine. BASIC programs or blocks of data are both dealt with in the same manner of having a 'header' block (seventeen bytes) that is SAVEd first. This 'header' describes the 'data block' that is SAVEd after it. One disadvantage of this system is that it is not possible to produce programs with any 'security' whatsoever. The screen and printer handling routines. All of the remaining input/output routines of the Spectrum are 'vectored' through the 'channel & stream information areas'. In the standard Spectrum 'input' is only possible from the keyboard but 'output' can be directed to the printer, the upper part of the T.V. display or the lower part of the T.V. display. The major 'input' routine in this part of the monitor program is the EDITOR that allows the user to enter characters into the lower part of the T.V. display. The PRINT-OUT routine is a rather slow routine as the same routine is used for 'all possibilities'. For example, the adding of a single byte to the 'display area' involves considering the present status of OVER and INVERSE on every occasion. The executive routines In this part of the monitor program are to be found the INITIALISATION procedure and the 'main execution loop' of the BASIC interpreter. In the Spectrum the BASIC line returned by the EDITOR is checked for the correctness of its syntax and then saved in the program area, if it was a line starting with a line number, or 'executed' otherwise. This execution can in turn lead to further statements being considered. (Most clearly seen as in the case of - RUN.) i BASIC line and command interpretation. This part of the monitor program considers a BASIC line as a set of statements and in its turn each statement as starting with a particular command. For each command there is a 'command routine' and it is the execution of the machine code in the appropriate 'command routine' that effects the 'interpretation'. Expression evaluation The Spectrum has a most comprehensive expression evaluator allowing for a wide range of variable types, functions and operations. Once again this part of the monitor is fairly slow as all the possible alternatives have to be considered. The handling of strings is particularly well managed. All simple strings are managed 'dynamically' and old copies are 'reclaimed' once they are redundant. This means that there is no 'garbage collecting' to be done. The arithmetic routines The Spectrum has two forms for numbers. Integer values in the range -65535 to +65535 are in an 'integral' or 'short' form whilst all other numbers are in a five byte floating point form. The present version of the monitor is unfortunately marred by two mistakes in this part. i. There is a mistake in 'division' whereby the 34th bit of a division is lost. ii. The value of -65536 is sometimes put in 'short' form and at other times in 'floating-point' and this leads to troubles. The floating-point calculator The CALCULATOR of the Spectrum handles numbers and strings and its operations are specified by 'literals'. It can therefore be considered that there is an internal 'stack operating' language in the CALCULATOR. This part of the monitor program contains routines for all the mathematical functions. The approximations to SIN X, EXP X, LN X & ATN X are obtained by developing Chebyshev polynomials and full details are given in the appendix. Overall the 16K monitor program offers an extremely wide range of different BASIC commands and functions. The programmers have always however been short of 'room' and hence the program is written for 'compactness' rather than 'speed'. ii THE DISASSEMBLY THE RESTART ROUTINES and THE TABLES THE 'START' The maskable interrupt is disabled and the DE register pair set to hold the 'top of possible RAM'. 0000 START DI Disable the 'keyboard interrupt'. XOR A +00 for start (but +FF for 'NEW'). LD DE,+FFFF Top of possible RAM. JP 11CB,START/NEW Jump forward. THE 'ERROR' RESTART The error pointer is made to point to the position of the error. 0008 ERROR-1 LD HL,(CH-ADD) The address reached by the LD (X-PTR),HL interpreter is copied to the error JP 0053,ERROR-2 pointer before proceeding. THE 'PRINT A CHARACTER' RESTART The A register holds the code of the character that is to be printed. 0010 PRINT-A-1 JP 15F2,PRINT-A-2 Jump forward immediately. DEFB +FF,+FF,+FF,+FF,+FF Unused locations. THE 'COLLECT CHARACTER' RESTART The contents of the location currently addressed by CH-ADD are fetched. A return is made if the value represents a printable character, otherwise CH-ADD is incremented and the tests repeated. 0018 GET-CHAR LD HL,(CH-ADD) Fetch the value that is addressed LD A,(HL) by CH-ADD. 001C TEST-CHAR CALL 007D,SKIP-OVER Find out if the character is RET NC printable. Return if it is so. THE 'COLLECT NEXT CHARACTER' RESTART As a BASIC line is interpreted, this routine is called repeatedly to step along the line. 0020 NEXT-CHAR CALL 0074,CH-ADD+1 CH-ADD needs to be incre- mented. JR 001C,TEST-CHAR Jump back to test the new value. DEFB +FF,+FF,+FF Unused locations. THE 'CALCULATOR' RESTART The floating point calculator is entered at 335B. 0028 FP-CALC JP 335B,CALCULATE Jump forward immediately. DEFB +FF,+FF,+FF,+FF,+FF Unused locations. THE 'MAKE BC SPACES' RESTART This routine creates free locations in the work space. The number of locations is determined by the current contents of the BC register pair. 0030 BC-SPACES PUSH BC Save the 'number'. LD HL,(WORKSP) Fetch the present address of the PUSH HL start of the work space and save JP 169E,RESERVE that also before proceeding. THE 'MASKABLE INTERRUPT' ROUTINE The real time clock is incremented and the keyboard scanned whenever a maskable interrupt occurs. 0038 MASK-INT PUSH AF Save the current values held in PUSH HL these registers. LD HL,(FRAMES) The lower two bytes of the 1 INC HL frame counter are incremented LD (FRAMES),HL every 20 ms.
Recommended publications
  • Proximo I VEŘEJNÁ OBCHODNÍ SPOLEČNOST TANGO MAGIC DICE HONBA ZA POKLADEM SILVESTROVSKÁ PECKA VESELÉ VELIKONOCE
    proximo I VEŘEJNÁ OBCHODNÍ SPOLEČNOST TANGO MAGIC DICE HONBA ZA POKLADEM SILVESTROVSKÁ PECKA VESELÉ VELIKONOCE URČENO PRO POČÍTAČE: DELTA, SINCLAIR ZX SPECTRUM / + / 128, DIDAKTIK GAMA, M, KOMPAKT PŘÍRUČKA UŽIVATELE © 1993 PROXIMA Ústí nad Labem TANGO - soubor her Pozor! Čtěte pozorně licenční podmínky firmy PROXIMA předtím, než porušíte obal diskety (kazety). Počítačový program zaznamenaný na disketě (kazetě) je autorským dílem chráněným ustanoveními čs. autorského zákona a mezinárodními smlouvami. Porušením obalu diskety (kazety) se zavazujete dodržovat ustanovení následující smlouvy mezi Vámi a firmou PROXIMA. Licenční ujednání 1. Uživatel je oprávněn instalovat a provozovat počítačový program na jediném počítači a smí si pořídit jedinou bezpečnostní kopii obsahu nosného média. 2. V případě zakoupení multilicenční dodávky počítačového programu je uživatel oprávněn instalovat a provozovat program na takovém počtu počítačů, jaký je uveden v multilicenční smlouvě. 3. Firma PROXIMA neručí za bezvadný chod programu na amatérsky upravených počítačích a počítačích spolupracujících s nestandardními perifériemi včetně interface vlastní výroby. 4. Je zakázáno pořizovat kopie manuálu k programu. 5. Nehodláte-ii respektovat ustanovení této smlouvy, vraťte software v neporušeném obalu tam, kde jste jej získali. Bude Vám vrácena částka, kterou jste zaplatili. Podmínkou je vrácení do 10 dnů od zakoupení a při vrácení je nutno předložit doklad o zaplacení. strana 1 © 1993 PROXIMA Ústí nad Labem TANGO - soubor her TANGO Něco na začátek... Jednoho rána nasmažila vyhlášená kuchařka, paní Krákorová, sto voňavých koblížků. Poklidila, vzala si novou zástěru a čekala vzácnou návštěvu svých kolegyň ze soutěže O zlatou vařečku. Kocour Matěj mžoural ospale do sluníčka a nepostřehl, že se k němu potichu přikradli malý Honzík s Janičkou.
    [Show full text]
  • The ZX Spectrum on Your PC Emulators, Utilities and More
    The ZX Spectrum on your PC Emulators, utilities and more C Woodcock www.cwoodcock.co.uk/zxf ZXF Magazine www.cwoodcock.co.uk/zxf Copyright © 2004 Colin Woodcock First published 2004 by CafePress.com Acknowledgements My thanks to Paul Dunn, Nick Humphries and Jonathan Needle for the valuable suggestions that came out of their proof-reading of the first draft of this book. Thanks also to Matthew Westcott for helping me to understand TR-DOS a little better. ZXF magazine delights in reporting on the achievements of the members of the Spectrum community and is indebited to them all for their efforts. In particular, ZXF could not have achieved its current distribution without the hosting offered by Martijn van der Heide at www.worldofspectrum.org, whose own contribution to the Spectrum scene goes well beyond the easily measurable. Contents Preface vii 1 Emulator basics 1 2 Finding files 15 3 Peripherals 19 4 Emulator extras 27 5 Utilities 32 6 Russian clones; TR-DOS 44 7 Other emulators 49 Appendix I: Key websites 58 Appendix II: Key documents 61 Appendix III: comp.sys.sinclair 63 Index 67 for Jack Preface So you've finally realised. You think that new technology is great - of course you do - but ever since you packed away that old Spectrum in a box and taped up the lid something has most definitely been missing. At last you understand you were turning your back on more than just an obsolete computer. The good news is that you don't have to fish the box out from under the bed just yet (or lament its sale on ebay or at the local car boot): the Spectrum is one of the most emulated computers (if not the most emulated computer) on the planet and the quality of its emulation is just superb.
    [Show full text]
  • Appendix: ZX81 Hardware Modifications
    Appendix: ZX81 Hardware Modifications These are all very simple modifications. They require no more electronic expertise than the ability to solder neatly. None of the programs in the other chapters require any of these modifica­ tions in order to make them run smoothl y, but each suggestion more than pays for the smal l amount of trouble involved. POWER SUPPLY The Sinclair power supply gives an output of 9 vol ts DC via a 3.5 mm j ack plug, with the tip of the plug positive. It is very convenient because all the works are contained within i t s very large, plug type body . The only lead is the 9 volt supply to the ZX81. If you bought a ZX81 kit without a power supply and wish to build one, then this one has definite advantages. If you have a power supply and plan to use your computer for long periods, you might still consider the four or five pounds that the components will cost, worth spending for the following reason. The ZX81 voltage regulator is provided with a small heat sink which gets very hot. It is reasonable to assume that a machine which works at a high temperature and does a particular j ob , will not be as reliable as one which does the same j ob at a much lower temperature. The ZX8l will work as long as it is fed with DC cur­ rent at a voltage between seven and eleven volts. The higher the feed voltage, the harder the voltage regulator has to work to drop it down to the five volts needed by the chips.
    [Show full text]
  • Tecnologias Da Informação E Comunicação
    Referências: Guia da Exposição "Memórias das Tecnologias e dos Sistemas de Informação" www.memtsi.dsi.uminho.pt Colecção: memTSI, DSI e Alfamicro http://piano.dsi.uminho.pt/museuv Departamento de Sistemas de Informação da UM www.memtsi.dsi.uminho.pt http://piano.dsi.uminho.pt/museuv || Sinclair ZX81 || Sinclair ZX SPECTRUM || TIMEX 1500 || TIMEX TC 2068 Máquina lançada em 1981, Lançado em 1982, foi um O Timex 1500 foi criado em O Timex TC 2068 foi TECNOLOGIAS com 1K de memória (max dos maiores sucessos Julho de 1983 e era desenvolvido no final de 16K), sem som e sem cor. comerciais no mercado dos basicamente um sinclair 1983 com um processador “home computers”, Z81 com 16KB de RAM Z80A a 3,5 Mhz. DA INFORMAÇÃO desenhado e comercializado incorporada com Dispunha de 48KB de por uma empresa do Reino possibilidade de expansão memória RAM e 16KB de E COMUNICAÇÃO Unido (Sinclair) por poucas até 64KB. memória ROM. TIC dezenas de contos (o preço Tinha um processador Dispunha de conectores de lançamento foi £129.95 ZILOG Z80A que funcionava para monitor, joystick, no Reino Unido). a uma velocidade de 3,5Mhz. leitor/gravador de casetes, Descendente directo do A imagem em ecrã era a 2 porta de expansão e ZX81, incorporou cor e som. cores com uma resolução televisão, usando um sinal Configuração completa com de 64x44. PAL. impressora térmica Sinclair Em modo de texto permitia Tinha uma resolução de 2040 e um gravador áudio 32 colunas e 24 linhas. 256x192 píxeis e permitia (periférico de arquivo) e Não dispunha de som.
    [Show full text]
  • Aboard the Impulse Train: an Analysis of the Two- Channel Title Music Routine in Manic Miner Kenneth B
    All aboard the impulse train: an analysis of the two- channel title music routine in Manic Miner Kenneth B. McAlpine This is the author's accepted manuscript. The final publication is available at Springer via http://dx.doi.org/10.1007/s40869-015-0012-x All Aboard the Impulse Train: An analysis of the two-channel title music routine in Manic Miner Dr Kenneth B. McAlpine University of Abertay Dundee Abstract The ZX Spectrum launched in the UK in April 1982, and almost single- handedly kick-started the British computer games industry. Launched to compete with technologically-superior rivals from Acorn and Commodore, the Spectrum had price and popularity on its side and became a runaway success. One area, however, where the Spectrum betrayed its price-point was its sound hardware, providing just a single channel of 1-bit sound playback, and the first-generation of Spectrum titles did little to challenge the machine’s hardware. Programmers soon realised, however, that with clever machine coding, the Spectrum’s speaker could be encouraged to do more than it was ever designed to. This creativity, borne from constraint, represents a very real example of technology, or rather limited technology, as a driver for creativity, and, since the solutions were not without cost, they imparted a characteristic sound that, in turn, came to define the aesthetic of ZX Spectrum music. At the time, there was little interest in the formal study of either the technologies that support computer games or the social and cultural phenomena that surround them. This retrospective study aims to address that by deconstructing and analysing a key turning point in the musical life of the ZX Spectrum.
    [Show full text]
  • More Real Applications for the ZX 81 and ZX Spectrum
    More Real Applications for the ZX 81 and ZX Spectrum Macmillan Computing Books Assembly Language Programming for the BBC Microcomputer Ian Birnbaum Advanced Programming for the 16K ZX81 Mike Costello Microprocessors and Microcomputers - their use and programming Eric Huggins The Alien, Numbereater, and Other Programs for Personal Computers­ with notes on how they were written John Race Beginning BASIC Peter Gosling Continuing BASIC Peter Gosling Program Your Microcomputer in BASIC Peter Gosling Practical BASIC Programming Peter Gosling The Sinclair ZX81 - Programming for Real Applications Randle Hurley More Real Applications for the Spectrum and ZX81 Randle Hurley Assembly Language Assembled - for the Sinclair ZX81 Tony Woods Digital Techniques Noel Morris Microprocessor and Microcomputer Technology Noel Morris Understanding Microprocessors B. S. Walker Codes for Computers and Microprocessors P. Gosling and Q. Laarhoven Z80 Assembly Language Programming for Students Roger Hutty More Real Applications for the ZX81 and ZX Spectrum Randle Hurley M © Randle Hurley 1982 All rights reserved. No part of this publication may be reproduced or transmitted, in any form of by any means, without permission. Published by THE MACMILLAN PRESS LTD London and Basingstoke Company and representatives throughout the world ISBN 978-0-333-34543-6 ISBN 978-1-349-06604-9 (eBook) DOI 10.1007/978-1-349-06604-9 The paperback edition of this book is sold subject to the condition that it shall not, by way of trade or otherwise, be lent, resold, hired out, or otherwise circulated without the publisher's prior consent in any form of binding or cover other than that in which it is published and without a similar condition including this condition being imposed on the subsequent purchaser.
    [Show full text]
  • Page 1 of 4 Sinclair ZX80 Computer 1/24/2013
    Sinclair ZX80 computer Page 1 of 4 Home Page Old Ads Links Search Buy/Sell! Sinclair ZX80 Anouncedced: February 1980 Available: Late 1980 Price: £99.95 / US$199.95 How many: 50,000 Weight: 12 ounces CPU: Zilog Z80A @ 3.25MHz RAM: 1K, 64K max Display: 22 X 32 text hooks to TV Ports: memory, cassette Peripherals: Sinclair thermal printer OS: ROM BASIC For just $199.95, you can get a complete, powerful, full- function computer, matching or surpassing other personal computers costing several times more. The Sinclair ZX80 is an extraordinary personal computer, compact and briefcase sized, it weighs just 12oz, yet in performance it matches and surpasses systems many times its size and price. The ZX80 is an advanced example of microelectronics design. Inside, it has one-tenth the number of parts of existing comparable machines. In 1980, British company Sinclair released their ZX80 computer for £99.95 (British pound available in the United States, it is considered to be the world's first computer for under U that's what Sinclair Research Ltd stated in all of their ads. At the bottom of the magazine advertisements was an order form: "Please send me __ ZX computer(s) for $199.95 each ..." The ZX-80 was designed with only the base necessit the shelf components - there are no custom or propri involved. An external cassette drive, typical of the era, is the o loading and saving programs. Even cheaper at £75.95 in a kit form, the inexpensive Sinclair ZX-80 introduced many people to the computer world who might otherwise have forth due to the perceived high prices of other albeit more capable computer systems.
    [Show full text]
  • ZX Diag Cart Manual and Build Guide
    ZX Diag Cart Manual and build guide Developed by Dylan ‘Winston’ Smith, Brendan Alford, Simon Brattel, Ben Versteeg, Graham ‘Turbo’ Mason, Victor Trucco and Russ Pitman Designed by Steve Smith Manufactured by Ben Versteeg Overview Thank you for buying the ZX Diag Cart! This manual describes the features of the interface, as well as how to assemble it if you ordered the kit. In the box The complete and assembled ZX Diag Cart, or in case you ordered the kit: ▪ The ZX Diag Cart circuit board with SMD components already soldered ▪ The diodes, resistors, LEDs, capacitor, transistors, pin headers and jumpers, switches, rubber feet in separately labeled bags ▪ IC’s and IC sockets ▪ Edge connector ▪ This manual Hardware features Autodetection of ZX Spectrum model The ZX Diag Cart automatically detects to which ZX Spectrum model it is connected, so it can control the ROM signals on ZX Spectrum 16/48K, 128K+, +2, +2A or +3, and many clones. LEDs The ZX Diag Cart has 20 LEDs showing these groups of information: - Control signals status, indicated by the blue LEDs - Data lines status, indicated by the red LEDs - Power lines status, indicated by the green LEDs The speed of change of the LEDs is limited by a clever timing circuit, so it’s easier to see what signals are acting and which are stable. Software features The ZX Diag Cart comes with the Integrated Diagnostic Tools. The basic diagnostic tool tests: - ZX Spectrum Internal ROM - ZX Spectrum lower RAM - ZX Spectrum upper RAM - ZX Spectrum RAM paging* - Interrupts *With 128K models Configuration Slider switch Slide it to the right to have the red (middle-row) LEDs show the status of the data lines present on the edge connector.
    [Show full text]
  • How to Write ZX Spectrum Games
    How to Write ZX Spectrum Games Version 1.0 Jonathan Cauldwell Document History Version 0.1 - February 2006 Version 0.2 - January 2007 Version 0.3 - December 2008 Version 0.4 - July 2009 Version 0.5 - October 2010 Version 0.6 - April 2014 Version 1.0 - June 2015 Copyright All rights reserved. No part of this document may be reproduced in any form without prior written permission from the author. Introduction So you've read the Z80 documentation, you know how the instructions affect the registers and now you want to put this knowledge to use. Judging by the number of emails I have received asking how to read the keyboard, calculate screen addresses or emit white noise from the beeper it has become clear that there really isn't much in the way of resources for the new Spectrum programmer. This document, I hope, will grow to fill this void in due course. In its present state it is clearly years from completion, but in publishing the few basic chapters that exist to date I hope it will be of help to other programmers. The ZX Spectrum was launched in April 1982, and by today's standards is a primitive machine. In the United Kingdom and a few other countries it was the most popular games machine of the 1980s, and through the joys of emulation many people are enjoying a nostalgic trip back in time with the games of their childhoods. Others are only now discovering the machine for the first time, and some are even taking up the challenge of writing games for this simple little computer.
    [Show full text]
  • Saving Memory on the Sinclair ZX81 by Sean
    Saving Memory on the Sinclair ZX81 Sean A. Irvine Hamilton, New Zealand [email protected] In 1981, Sinclair Research released the ZX81 microcomputer, or Timex 1000 as it was known in the United States. The ZX81 was based around the 8-bit Z80 microprocessor running at 3.25 MHz with an 8 K read-only memory containing the operating system and a BASIC language interpreter. In the smallest configuration the ZX81 had just 1 K of RAM. An extra RAM pack this could be increase this to 16 K, and some third-party packs sup- ported larger memory sizes. Whatever RAM was available, needed to be shared between the display, any program the user may have loaded or typed in, and any state associated with the current execution. Despite the low amount of memory some remarkable feats were achieved, including an implementation of chess that ran on the 1 K version [17, 18, 19, 20]. In 1982, Sinclair Research released the ZX Spectrum which had 48 K in the most com- mon configuration. The focus here is on the ZX81, but the techniques discussed are ap- plicable to the ZX Spectrum; although with 48 K its memory problems were less acute. The ZX Spectrum had the first ever official implementation of the Scrabble R board game, supporting a vocabulary of over 11 000 words in 48 K [30], comparable to the Unix spell command of that era [29]. We concentrate on the representation of numbers in BASIC, but in practice tricks for representing numbers were combined with other memory saving strategies.
    [Show full text]
  • Spectrum ROM Cartridge Instructions
    Spectrum ROM Cartridge This cartridge contains the 1982 48K Spectrum ROM, configured for use with your Timex/ Sinclair 2068. Using the Cartridge Enter OUT 244,3 and press ENTER. If it's been a while since you've used the magic Timex/Sinclair keyboard, here are the keystrokes: • Press CAPS SHIFT and SYMBL SHIFT to get the E cursor. • Press CAPS SHIFT and O for OUT. • Enter 244 • Press SYMBL SHIFT and N for the comma. • Enter 3. • Press ENTER. Your 2068 should reboot and you should see: © 1982 Sinclair Research Ltd. You can now use your computer as if it were a real ZX Spectrum. This ROM makes your 2068 compatible with almost all 48K Spectrum software. Why OUT 244,3? Timex Command Cartridges are special ROM images prefixed with some information to tell your computer what kind of ROM it is and how to run it. ROMs like Zebra's OS-64 extend the built-in operating system. Others contained BASIC programs moved to a ROM. The Spectrum ROM doesn't have the prefix, so your computer ignores it. OUT 244,3 tells your computer that the 16K ROM space should look at the DOCK (cartridge) instead of the built-in ROM. When you issue the command, your computer reboots from the cartridge ROM. Resources The following webpage has everything I've found about the 2068, including Spectrum ROM information. As I find more information, it'll go on this page: https://www.timexsinclair.com/ computers/timex-sinclair-2068/ Timex Sinclair 2068 Group Since you're a confirmed TS 2068 owner, you may want join the Timex Sinclair 2068 Group.
    [Show full text]
  • Divide Is an IDE Controller for the ZX Spectrum and Compatibles. You
    DivIDE is an IDE controller for the ZX Spectrum and compatibles. You can use IDE hard drives, CD-ROM drives or Compact Flash memory cards, which are the most recommended for using with these computers (because of their small proportions and low electric consumption). Compatibility The DivIDE interface can be used with Sinclair ZX Spectrum 16K, ZX Spectrum 48K and Spectrum +, ZX Spectrum 128K and ZX Spectrum 128+2, Timex 2048 as well as Spectrum clones from Czechoslovakian provenience Didaktik Gama 80K, 128K, 192K and Didaktik M. With a corresponding setting of one jumper on the PCB there is a possibility to connect the controller also to ZX Spectrum +2A, +2B and +3. Controller's Overview DivIDE is built by both circuits controlling IDE device and 8K EEPROM memory, containing firmware to control computer's cooperation with the controller and keeping compatibility with existing software for the ZX Spectrum. There is also a 32K RAM on the PCB for firmware needs. There is also a NMI button for calling the firmware service routine. Firmware Overview At the moment, there is a couple of firmwares available for the DivIDE, each covers another range of user's requirements. 1) FATware FATware is shipped with new DivIDE interfaces. It works with hard drives and CF cards containing at least one FAT16 partition; it allows use of TAP files (simulation of a tape), Z80 and SNA (snapshots) and SCR (screen content). At the moment, it can only read (load) the files. Writing (save) possibility is planned in some of the next versions. 2) DEMFIR It works with ISO9660 file system, so it's ideal for CD-ROM drives; it can even open the ISO file from hard drive or CF card.
    [Show full text]