Power_Programming_for_the_Commodore_64.pdf

(37000 KB) Pobierz
---------------_._-----
Librarv oj Congress Cataloging
In
Publication Data
Sutton, James, (date)
Power programming the Commodore 64,
Includes index.
I. Commodore 64 (Computer)-Prop:ramming.
2. A.'.sembler language (Computer program language)
3. Computer graphics.
4. Computer sound processing.
/. Title.
QA76.8.C64S89 1985
ISBN
0~13~6X7H49~O
001.64'2
85~3517
Editorial/production ,upervision:
Karen Skrable Fortgang
Cover photo:
Geoff Gove, The Image Bank
Cover design:
Photo Plus Art
l\lanufacturing buyer:
Gordon Oshourne
Commodore 64
is a registered trademark of
Commodore Electronics Limited,
@
1985 by
Prentice-Hall, Inc.,
Englewood Cliffs, New Jersey 07632
The author and publisher of this book have used their best efforts in preparing this book.
These efforts include the development, research, and testing of the theories and programs to
determine their effectiveness. The author and publisher make no warranty of any kind,
expressed or implied, with regard
to
these programs or the documentation contained in this
book. The author and publisher shall not be liable in any event for incidental or consequential
damages in connection with, or arising out of, the furnishing, performance, or use of these
programs.
All rights reserved. No part of this hook may he
reproduced,
IfI
any forll1 or hy any means,
without permission in writing from the publisher.
Printed in the United States of America
10
9
8
7
fi
5
4
2
ISBN
0-13-687849-0
01
Prentice-Hall International, Inc.,
London
Prentice-Hall of Australia Pty. Limited,
Sydney
I:ditora Prentice-Hall do Brasil, Uda.,
Rio de Janeiro
Prentice-Hall Canada Inc.,
Toronto
Prentice-Hall Hispanoamericana, S.A.,
Mexico
Prentice-Hall of India Private Limited,
New Delhi
Prentice-Hall of Japan, Inc.,
Tokvo
Prentice-Hall of Southeast Asia Pte. Ltd.,
Singapore
Whitehall Books Limited,
Wellington, New Zealand
PREFACE:EXPOS~ ~
ACKNOWLEDGMENTS
xiii
1
PAST ITS PLASTIC ENVELOPE: THE COMPUTER'S INNER MACHINERY 1
The 'Number Mill' 2
Information 4
NUMERIC CODES
5
BINARY CODE
5
BINARY-TO-DECIMAL CONVERSION 7
DECIMAL-TO-BINARY CONVERSION 8
ADDITION 9
SUBTRACTION
10
MINUTE NUMBERS
/3
MUL TIPLICATION 15
DIVISION 16
SHIFTS 16
LOGICAL OPERATIONS 18
HEXADECIMAL CODE 21
CODE CONVERSIONS
21
ARITHMETIC 23
BCD CODE 24
iii
Zgłoś jeśli naruszono regulamin