Machine_Language_for_the_Commodore_Revised_and_Expanded_Edition.pdf

(26291 KB) Pobierz
669346660 UNPDF
/////////////////////////////////m
JIMBUTTERFIELD
MACHINELANGUAGE
FORTHE COMMODORE 64.128,AND
OTHER COMMODORE COMPUTERS
REVISED&EXPANDEDEDITION
STX $0381
669346660.002.png
■J
669346660.003.png
MACHINE
LANGUAGE
FOR THE
COMMODORE64,128,
and Other
Commodore
Computers
Jim Butterfield
A Brady Book
Published by Prentice Hall Press
New York, New York 10023
669346660.004.png
Machine Language for the Commodore 64,128, and Other
Commodore Computers
Copyright © 1986 by Brady Communications Company, Inc.
All rights reserved
including the right of reproduction
in whole or in part in any form
A Brady Book
Published by Prentice Hall Press
A Division of Simon & Schuster, Inc.
Gulf + Western Building
One Gulf + Western Plaza
New York, New York 10023
PRENTICE HALL PRESS is a trademark of Simon & Schuster, Inc.
Manufactured in the United States of America
123456789 10
Library of Congress Cataloging in Publication Data
Butterfield, Jim
Machine language for the Commodore 64, 128, and
other Commodore computers
Includes index.
1. Commodore 64 (Computer)—Programming. 2. Commodore
computers—Programming. 3. Programming languages
(Electronic computers) I. Title.
QA76.8.C64B88 1986
001.64'2
84-6351
ISBN Q-
669346660.005.png
Contents
Note to Readers
vii
Preface
ix
Introduction
xiii
1 First Concepts
1
The Inner Workings of Microcomputers
Memory Elements
Microprocessor Registers
Instruction Execution
First Program Project
Monitors: What They Are
The Machine Language Monitor
MLM Commands
Changing Memory Contents
Changing Registers
Entering the Program
Things You Have Learned
Detail: Program Execution
Questions and Projects
2 Controlling Output
23
Calling Machine Language Subroutines
CHROUT—The Output Subroutine
Why Not POKE?
A Print Project
Monitor Extensions
Checking: The Disassembler
Running the Program
Linking with BASIC
Loops
Things You Have Learned
Questions and Projects
iii
669346660.001.png
Zgłoś jeśli naruszono regulamin