SpectrumMachineCodeMadeEasyVolume2.pdf

(5715 KB) Pobierz
•SPECTRUM
MACHINE CODE
MADE EASY
Volume Two
For Advanced Programmers
Paul Holmes
Spectrum Machine Code Made Easy
Volume Two – For Advanced Programmers
At last, the book you've been waiting for, to take you
through machine code on the Spectrum from first
principles. Contents include jumping; jumping relatively;
calling and returning; restarts; jumping with decisions;
flags; loops; double-height characters; ANDing; ORing;
XORing; looping with double byte registers; rotating and
shifting bytes; interrupts; the ROM interrupt routine; and
much more. Appendices include Z80 instructions and
mnemonics.
If you want to increase your knowledge of machine code
then this is the book for you.
Another great book from
INTERFACE PUBLICATIONS
791714761.002.png
SPECTRUM
MACHINE CODE
MADE EASY
Volume Two
For Advanced Programmers
Paul Holmes
I MTERFCE
PUBLICATIONS
791714761.003.png
Features
First published in the UK by:
Interface Publications,
9-11 Kensington High Street,
London W8 5NP.
Easy to understand step by step approach.
Lots of examples to try using the 'hands on' approach.
Dictionary of Z80 machine code.
A further look at system variables.
Printing double height characters.
How to make sound effects.
ROM routines including BEEP, character printing, etc.
Takes the reader from a basic knowledge to a full
understanding of the Z80 instruction set and the ZX Spectrum.
© Copyright 1983, Paul Holmes
All 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 44 9
Cover Illustrator: Stuart Hughes
Typeset and Printed in England by Commercial Colour Press,
London E7.
3
791714761.004.png
Contents
1.
Going places: Jumping, Jumping relatively.
13
Negatives. Hex loader program. Calling and
Returning. Restarts. Printing.
To go or not to go?: Jumping with decisions. Flags. 35
Calling with decisions. Returning with decisions,
loops. Comparing. Double height characters.
2.
3.
A chapter of bits: Setting and re-setting bits, testing 53
bits. Mini-word processor/Intelligent typewriter
program.
4.
Logical Approach: ANDing, ORing, XORing,
71
looping with double byte registers.
5.
Rotating: Rotating and shifting bytes. Decimals.
83
6.
Ports: Making sound, changing the border. BEEP
89
routine.
7.
May I interrupt?: Interrupts, the ROM interrupt
99
routine, interrupt routines.
Appendices
A:
DECIMAL, HEX, ASCII CHARACTER SET,
109
Z80 MNEMONICS.
B:
Z80 INSTRUCTIONS FLAG ADJUSTMENTS.
115
C:
SYSTEM VARIABLES EXPLANATIONS.
121
D:
DEFINITIONS OF ALL Z80 INSTRUCTIONS.
131
5
791714761.005.png
About the author
Paul Holmes, at the time of writing, was a seventeen year old
student who first started computing 3 years ago with a ZX80.
Since then he wrote two ZX81 software packages, toolkit and
graphics toolkit, that were marketed by JRS Software in the
UK and Softsync. in the US. He has for a period been a soft-
ware reviewer for ZX Computing and also wrote software for
Jupiter Cantab before their recent downfall. More recently he
has become the owner-manager of Timescape Software and
has published several of his own games, worked for Atari for a
small period, and has gained much praise from the technical
press about his games which reflect his excellent programming
and design experience.
7
791714761.001.png
Zgłoś jeśli naruszono regulamin