More Real Applications for the ZX 81 and ZX Spectrum

Total Page:16

File Type:pdf, Size:1020Kb

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. Contents Page Int roduct ion 2 Basic Differences 4 3 At Least As Good 7 4 Ti 11 20 5 A Fi le Handling Survival Ki t 36 6 Super Storage and Statistics 47 7 Cricket 69 8 Draw and Move 93 9 Effective 1K Programmi ng 114 10 Bui 1ding Block Programming 129 11 Music 150 Appendix ZX81 Hardware Modifications 171 The idea for this book must be the result of my contacts with other ZX enthusiasts. It is difficult to trace the material back to source, but I am very grateful to all who helped, consciously or otherwise. Particular thanks must go to two people. John Watson supported the venture from the start and contributed many helpful suggest­ ions. It was he who provided the final solution to the ZX Merge problem in the form of a ROM address which allowed the computer to re-initialise itself. Linda, my wife, provided the valuable criticism which has allowed me to keep the book as free from jargon and as readable for the beginner as it is. Without her support in the bleak periods and her constant attention to detail the final result would have been much less good. However you helped, thank you. Cover photographs of Sinclair equipment kindly supplied by Sinclair Research Ltd..
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]
  • Edição De Natal !
    Ano II - Número 5 A revista eletrônica do entusiasta de videogames e microcomputadores clássicos Visitamos a Cinótica! EDIÇÃO DE NATAL ! Entrevistas Internacionais: Ralph Baer Howard S. Warshaw Reviews Especiais: . Prince of Persia . Em Busca dos Tesouros JOGOS 80 1 INDICE C.P.U. EXPEDIENTE Beta - O Retorno ...................................... 04 Jogos 80 é uma publicação da Dickens Editora Virtual. Editor CURIOSIDADES Marcus Vinicius Garrett Chiado Konami´s Synthesizer .............................. 24 Visita à Cinótica ...................................... 22 Co-Editor Eduardo Antônio Raga Luccas Redatores desta Edição EDITORIAL .......................................... 03 Carlos Bragatto Eduardo Antônio Raga Luccas Ericson Benjamin Jorge Braga da Silva JOYSTICK Marcelo Tini E.T. Phone Home! .................................... 17 Marcus Vinicius Garrett Chiado Em Busca dos Tesouros ........................... 09 Murilo Saraiva de Queiroz Fiendish Freddy’s Big Top O’ Fun ............ 15 Revisão M.A.S.H. .................................................. 14 Eduardo Antônio Raga Luccas Prince of Persia ........................................ 11 Marcus Vinicius Garrett Chiado Logotipo Rick Zavala PERSONALIDADES Howard Scott Warshaw .......................... 19 Projeto gráfico e diagramação Ralph Baer .............................................. 06 LuccasCorp. Computer Division Agradecimentos André Saracene Forte TELEX Carlos Bragatto Fernando Salvio Especial: Depoimentos de Natal ............ 25 Howard Scott Warshaw Ralph Baer
    [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]
  • Melbourne House at Our Office Books and Software That Melbourne House Has Nearest to You: Published for a Wide Range of Microcomputers
    mELBDLIAnE HO LISE PAESEnTS camPLITEA BDDHSB SDFTWAAE Me·lbourne House is an international software publishing company. If you have any difficulties obtaining some Dear Computer User: of our products, please contact I am very pleased to be able to let you know of the Melbourne House at our office books and software that Melbourne House has nearest to you: published for a wide range of microcomputers. United States of America Our aim is to present the best possible books and Melbourne House Software Inc., software for most home computers. Our books 347 Reedwood Drive, present information that is suitable for the beginner Nashville TN 37217 computer user right through to the experienced United Kingdom computer programmer or hobbyist. Melbourne House (Publishers) Ltd., Our software aims to bring out the most possible Glebe Cottage, Glebe House, from each computer. Each program has been written to be a state-of-the-art work. The result has been Station Road, Cheddington, software that has been internationally acclaimed. Leighton Buzzard, Bedfordshire, LU77NA. I would like to hear from you if you have any comments or suggestions about our books and Australia & New Zealand software, or what you would like to see us publish. Melbourne House (Australia) Pty. Ltd., Suite 4, 75 Palmerston Crescent, If you have written something for your computer-a program, an article, or a book-then please send it to South Melbourne, Victoria 3205. us. We will give you a prompt reply as to whether it is a work that we could publish. I trust that you will enjoy our books and software.
    [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]
  • ED 278 545 AUTHOR Conference on Science and Technology
    DOCUMENT RESUME ED 278 545 SE 047 709 AUTHOR Thulstrup, Erik W., Ed. TITLE Proceedings of the NordicConference on Science and Technology Education: The Challengeof the Future (Karlslunde Strand, Denmark, May8-12, 1985). INSTITUTION Royal Danish School of EducationalStudies, Copenhagen (Denmark). SPONS AGENCY Nordic Culture Fund, Copenhagen(Denmark).; United Nations Educational, Scientific,and Cultural Organization, Paris (France). REPORT NO ISBN-87-88289-50-8 PUB DATE 8 May 85 NOTE 410p.; Document contains small print;drawings may not reproduce well. PUB TYPE Collected Works- Conference Proceedings (021) EDRS PRICE MF01/12C17 Plus Postage. DESCRIPTORS *Biological Sciences; ComputerUses in Education; Educational Trends; Energy Education;*Environmental Education; *International EducationalExchange; International Programs; MathematicsEducation; Models; *Physical Sciences; Scienceand Society; *Science Curriculum; ScienceEducation; *Science Instruction; Student Attitudes IDENTIFIERS *Nordic Countries ABSTRACT The Nordic Conference of 1985was convened for the purpose of fostering cooperation between scienceand technology educators within different fieldsand at different levels, with approximately 40 science and technologyeducators from Finland, Norway, Sweden, Denmark, India,the United States, and Yugoslavia participating. This report contains27 contributed papers fromthe conference. Some of the topics addressedinclude: (1) teaching with computers; (2) physics instruction; (3)theory of mathematics education; (4) UNESCO's activitiesin science
    [Show full text]
  • CLONE WARS Get a Brazilian
    April 2018 Issue 21 PLUS CLONE WARS Get a Brazilian.. Includes material MIND YOUR LANGUAGE not in the video Continued programming show! feature CONTENTS 16. CLONE WARS The Brazilian clones explored. 22. MIND YOUR LANGUAGE 12. OMNI 128HQ Spectrum languages. A new Speccy arrives. FEATURES GAME REVIEWS 4 News from 1987 Knight Lore 6 Find out what was happening back in 1987. Elixir Vitae 8 12 Isometric Games Grand Prix Championship 9 Knightlore and more. Viagem ao Centro da terra 14 16 Clone Wars Exploration of the Brazilian clones. Kung Fu Knights 20 24 Mind Your Language Sewer Rage 21 More languages from George. Dominator 22 32 Play Blackpool Report from the recent event. Spectres 23 36 Vega Games Wanted: Monty Mole 30 Games without instructions on the Vega. 3D Tunnel 31 38 Grumpy Ogre Retro adventuring and championship moaning. Gauntlet 34 42 Omni 128HQ Laptop A new Spectrum arrives. And more…. Page 2 www.thespectrumshow.co.uk EDITORIAL elcome to issue 21 and thank you W I was working on several things at the for taking the time to download and same time on two different comput- read it. ers. I was doing some video editing on As series seven of The Spectrum Show my main PC and at the same time checking emails and researching fu- comes to an end with a mammoth end say, I am impressed with it. It’s a Har- ture features on my little Macbook Air. of series special, the next series is al- lequin (Spectrum modern clone) main ready well underway in the planning Strangely, both required an update, so board fitted inside a new 48K style stages.
    [Show full text]
  • Object Orientation Through the Lens of Computer Science Education with Some New Implications from Other Subjects Like the Humanities
    Technische Universität München Fakultät für Informatik Fachgebiet Didaktik der Informatik Object-Oriented Programming through the Lens of Computer Science Education Marc-Pascal Berges Vollständiger Abdruck der von der Fakultät für Informatik der Technischen Universität München zur Erlangung des akademischen Grades eines Doktors der Naturwissenschaften (Dr. rer. nat.) genehmigten Dissertation. Vorsitzender: Univ.-Prof. Dr. Johann Schlichter Prüfer der Dissertation: 1. Univ.-Prof. Dr. Peter Hubwieser 2. Univ.-Prof. Dr. Torsten Brinda, Universität Duisburg-Essen Die Dissertation wurde am 07. April 2015 bei der Technischen Universität München eingereicht und durch die Fakultät für Informatik am 02. Juli 2015 angenommen. Abstract In recent years, the importance of the object-oriented paradigm has changed signifi- cantly. Initially it was mainly used in software engineering, but it is now being used more and more in education. This thesis applies methods of educational assessment and statistics to object-oriented programming and in doing so provides a broad overview of concepts, teaching methods, and the current state of research in this field of computer science. Recently, there have been various trends in introductory courses for object-oriented programming including objects-first and objects-later. Using current pedagogical concepts such as cognitive load theory, conceptual change, and self-directed learning in the context of this work, a teaching approach that dispenses almost entirely of instruction by teachers was developed. These minimally invasive programming courses (MIPC) were carried out in several passes in preliminary courses in the Department of Computer Science at the TU München. The students were confronted with a small programming task just before the first lecture.
    [Show full text]
  • QL· Technical Guide
    QL· Technical Guide by Tony Tebby and David Karlin Edited by Michèle Wright First published in 1985 Sinclair Research Ltd 25 Willis Road, Cambridge CB1 2AQ, England ISBN 1 850160368 Documentation and packaging © Sinclair Research Ltd sinclair logo, QL and QL Technical Guide are Registered Trade Marks of Sinclair Research Ltd. All rights reserved. No part of this program, documentation or packaging may be reproduced in any form. Unauthorized copying, hiring, lending or sale and repurchase prohibited. Made in the UK. Contents \ 1.0 About this Guide 4 2.0 Introduction to Qdos 6 2.1 Memory Map 7 2.2 Calling Qdos Routines 10 2.3 Exception Processing 14 2.4 Start-up 16 3.0 Machine Code Programming on the QL 17 3.1 Jobs 17 3.2 SuperBASIC Procedures and Functions 20 3.3 Tasks 21 3.4 Operating System Extensions 21 4.0 Memory Allocation 22 4.1 Heap Mechanism 23 5.0 Input/Output on the QL 24 5.1 Serial I/O 25 5.2 File I/O 26 5.3 Screen and Console I/O 27 6.0 Qdos Device Drivers 31 6.1 Device Driver Memory Allocation 32 6.2 Device Driver Initialisation 32 6.3 Physical Layer 33 6.4 The Access Layer 34 7.0 Directory Device Drivers 38 7.1 Initialisation of a Directory Driver 39 7.2 Access Layer 40 7.3 Slaving 44 8.0 Built-in Device Drivers 46 1 Contents continued 9.0 Interfacing to SuperBASIC 47 9.1 Memory Organisation within the SuperBASIC Area 47 9.2 The Name Table 48 9.3 Name List 49 9.4 Variable Values Area 49 9.5 Storage Formats 50 9.6 Code Restrictions 52 9.7 Linking in New Procedures and Functions 52 9.8 Parameter Passing 52 9.9 Getting the Values
    [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]