VIC-20_Programmers_Notebook.pdf

(15939 KB) Pobierz
lJ.
22089
VIC20
Programmer's
Notebook
Earl R. Savage
~
I
01 .lJ.-Lll:..C.I lOP.!!
CONTINUING EDUCATION SERIES'"
.J_,J,
IJWiJL.
n~lll:l
edtted by Ttrus. Ttrus
&
Larsen
The Blacksburg Continuing Education'M Series
The Blacksburg
Continuing
Education
SeriesT"
of books provide a
laboratory-or experiment-
oriented approach
to electronic topics. Present
and
forthcoming titles
in
this series include:
• Advanced 6502 Interfacing
Analog
Instrumentation
Fundamentals
Apple II Assembly language
Apple
Interfacing
Basic Business Software
Basic Robotics
Concepts
BASIC Programmer's Notebook
Circuit Design
Programs
for the Apple II
Circuit Design Programs for the TRS-80
Computer Assisted Home Energy Management
Design of Active Filters, With Experiments
Design of Op·Amp Circuits, With Experiments
Design of Phose-locked loop Circuits, With
Expe riments
Design of VMOS Circuits, With Experiments
8080/8085 Software Design
(2
Volumes)
8085A
Cookbook
Electronic Music
Circuits
Fiber Optics Communications, Experiments,
and
Projects
555 Timer Applications
Sourcebook,
With
Experiments
FORTH Programming
Guide to CMOS Basics, Circuits,
&
Experiments
How to Program and Interface the 6800
Introduction to Electronic Speech Synthesis
Introduction to FORTH
Computer Communication Techniques
Microcomputer-Analog Converter Software and
Hardwa
re
Interfacing
Microcomputer
Data-Base
Management
Microcomputer Design and Maintenance
Microcomputer Interfacing With the 8255 PPI Chip
NCR Basic Electronics Course, With Experiments
NCR EDP Concepts Course
PET
Interfacing
Programming and
Interfacing
the 6502, With
Experim
ents
16·Bit Microprocessors
• Real Time Control With the TRS-80
6502 Software Design
• 6801, 68701, and 6803 Microcomputer Programming and Interfacing
• The 68000: Principles and Programming
6809 Microcomputer
Programming
&
Interfacing, With Experiments
• STD Bus Interfacing
• TEA
:
An 8080/8085 Co-Resident Editor/ Assembler
• TRS-80 Assembly language Mode Simple
• TRS-80 Color Computer
Interfacing,
With Experiments
• TRS-80 Interfacing
(2
Volumes)
• TRS-80 More Than BASIC
Word processing for Small Businesses
In most cases, these books provide both text
material and
experiments, which permit
one
to
demonstrate and explore the concepts that are covered
in
the book. These books remain among
the
very
few that provide
step~by-step
instructions concerning how to learn basic electronic con-
cepts, wire actual circuits, test microcomputer interfaces,
and
program
computers
based
on
popu-
lar microprocessor chips. We have found that the books
are
very useful to the electronic
novice
who desires to
join
the
"electro
nics
revolution," with
minimum
time
and
effort.
Jonathan A. Titus, Christopher A. Titus,
and
David G. Larsen
"The
Blacksburg Group"
Bug symbol
tr~demark
The
Blacksburg Group, Inc., Blacksburg,
VA
24060
[
[
,[
,I
[
\[
VIC20
[
·[
PROGRAMMER'S
NOTEBOOK
Earl R. Savage
I[
[
'(
tc
[
(
Howard W. Sams
&
Co., Inc.
4300 WEST 62ND
ST. INDIANAPOLIS, INDIANA 46268 USA
I(
,1[
[
[
[
[
[
[
Copyright© 1983 by Jerls, Inc.
[
[
[
[
FIRST EDITION
FIRST PRINTING- 1983
All rights reserved. No part of this book shall be
reproduced, stored in a retrieval system, or
transmitted by any means, electronic, mechanical,
photocopyin g, recording, or otherwise, without
written permission from the publisher. No patent
liability is assumed with respect to the use of the
information contained herein. While every pre-
caution has been taken in the preparation of this
book, the publisher assumes no responsibility for
errors or omissions. Neither is any liability assumed
for damages resulting from the use of the
information contained herein.
Internationa l Standard Book Number: 0-672-22089-X
Library of Congress Catalog Card Number: 83-50494
Edited by:
Welborn Associates
Illustrated by:
David K. Cripe
[I
Printed in the United States of America.
[
[
[
[
[
Preface
This Notebook is dedicated to the proposition that program
writing on the VIC-20 can be both easier and better. That state-
ment includes every type of program-game, tutorial, financial,
mathematicaf, and record keeping - in short, whatever you set
your VIC 20 to do.
All of us begin our programming with efforts that are both
simple and crude. Enough effort and debugging made them do
the job in spite of their crudeness. No one starts out with flawless
programming. In fact, it is extremely doubtful that anyone ever
achieves perfection because there is just too much to learn,
especially considering the continuous improvements made in
both hardware and software. So, this Notebook is designed for
you, the VIC 20 programmer-user, whether you are a beginner or
an old hand.
If you are getting started, you can achieve better program-
ming results by using the techniques and subroutines in this book
because here you will find shortcuts and "tricks of the pro-
grammer's trade." There are subroutines and other statement
sequences that are designed to "dress up" your programs and
make them more professional in appearance. Also, there are
techniques for increasing their effectiveness and efficiency. You
will find instructions and explanations for making your VIC 20 do
things that have not yet occurred to you. Best of all, any of these
Notes can be copied directly into your programs because they are
written specifically for the VIC 20.
Be advised that there are few programs in this book. There are
many subroutines and program fragments that you can use;
however, the programs will have to be yours. These Notes will
help you do the job- they won't do it for you. There is no sub-
stitute for your imagination and sense of purpose.
[
[
[
[
[
[
[
[
L
[
Zgłoś jeśli naruszono regulamin