MasteringMachineCodeOnYourZXSpectrum.pdf

(7930 KB) Pobierz
796733028.003.png
MASTERING
MACHINE CODE
ON YOUR
ZX SPECTRUM
by Toni Baker
with illustrations by Cathy Lowe
796733028.004.png
First published in the UK by:
Interface Publications,
9-11 Kensington High Street,
London W8 5NP.
Text © Copyright 1983, Toni Baker
Artwork © Copyright 1983, Cathy Lowe
AII rights reserved. This book may not be reproduced in part or in whole
without the explicit prior written permission of the publishers. The
routines outlined in this book may not be used as part of any program
offered for publication nor for programs intended to be sold as software,
except as allowed by the publisher. Permission must be sought, in
advance, for all applications of this material beyond private use by the
purchaser of this volume.
ISBN 0 907563 23 6
Cover Illustrator, Stuart Hughes
Typeset and Printed in England by Commercial Colour Press,
London E7.
Further information on Spectrum Machine Code may be obtained from
the ZX Machine Code Users Club.
Toni Baker
37 Stratford Road
Wolverton,
Milton Keynes,
MK12 5LW
CONTENTS
CHAPTER ONE – INTRODUCTION
A brief summary of the book.
CHAPTER TWO – INTRODUCTION TO HEXADECIMAL AND
MACHINE CODE
Computers count in sixteens not tens. The system is called
hexadecimal and this chapter will help you to get to know it.
CHAPTER THREE – SIMPLE ARITHMETIC
Simple” means very simple! Plusses and takes only. Shares and
timeses are left till later!
CHAPTER FOUR – PEEKING AND POKEING AND MORE ABOUT
LOADING
An explanation of how to use memory in RAM.
CHAPTER FIVE – STACKING AND JUMPING
How to use the stack to store data. Jumping and conditional jumping is
explained, and the use of subroutines explained.
CHAPTER SIX – TAKING BYTES TO BITS
Or how to count on your thumbs. This is called binary, and reveals the
innermost secrets of how computers count!
CHAPTER SEVEN – PRINTING THINGS TO THE SCREEN
In BASIC the PRINT statement is one of the most widely used of all.
Here's how to use it in machine code.
CHAPTER EIGHT – A DICTIONARY OF MACHINE CODE
AII the instructions. A complete explanation of every single machine
language instruction used by the Spectrum.
4
796733028.005.png 796733028.006.png 796733028.001.png 796733028.002.png
Zgłoś jeśli naruszono regulamin