.
Programming Sprites-Another
Look
153
Making Sprites in BASIC-A
Short Program.
... . .. . . .. 153
Crunching Your Sprite Programs
156
Positioning Sprites on the Screen
157
Sprite
Priorities
.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
161
Drawing a Sprite
162
Creati ng a Sprite
. . .
Step by Step
163
Moving Your Sprite on the Screen. . .. . . .. . . .. . ... . . .. 165
VerticalScrolling.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
166
The Dancing Mouse-A Sprite Program Example. . . . . .. 166
EasySpritemakingChart.. . ... . ...
. . .. . ... . . ...
176
SpritemakingNotes. . . .. . . .. . ... . . .. . . .. . . .. . ... . ..
177
4.
PROGRAMMING SOUND AND MUSIC
ON YOUR COMMODORE 64
183
.
Introduction
184
Volume Control
186
Frequencies
of Sound
Waves.
.
. . . . . . . . . . . . . . . . . . . . ..
186
.
UsingMultiple Voices... .
.. . . ... . . .. . . ... . .. .
187
Controlling Multiple Voices
191
.
Changing
Waveforms
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
192
Understanding W aveforms.. . ..
. ... .
. . .. . ...
194
.
The EnvelopeGenerator. . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
196
.
Filtering
199
.
Advanced Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
202
.
Synchronization
and Ring Modulation
207
5. BASICTOMACHINE LANGUAGE
209
.
What is Machine Language?
. .. . .. . . ... . . .. . . ... ... . ..
210
What
Does Machine
Code
Look Like?
. . . . . . . . . . . . . . . ..
211
Simple
Memory Map of the Commodore
64
. . . . . . . . . . ..
212
The Registers
Inside the 6510 Microprocessor
213
.
How Do You Write Machine
Language
Programs?
214
64MON
215
.
Hexadecimal Notation. . ... . .. . . .. . . . . .
. . .. . ... ..
215
Your First Machine Language Instruction
218
Writing Your First Program
220
. Addressing Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
221
Zero Page
221
The Stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 222
v
Need help?
Do you have a question about the Commodore 64 and is the answer not in the manual?
Questions and answers