
vi
Contents
5
6
Summary of 8502
Op
Codes 175
The
8502 Instruction Set 180
Introduetion
to
CP/M
Procedures
Bringing
Up
CP/M
on
the
Commodore 128 202
Help for Beginners 202
Summary of CP/M Commands 206
Makinga
Backup Copy of the CP/M Disk 212
Text
Screen Procedures
Preliminary Considerations 216
Switching Column Formats 220
Switching Character Sets 224
Setting
the
Normal/Inverse Character Format 229
Setting Screen
and
Character Colors 231
Using Cursor Control Features 241
Setting Alternative Text Windows 243
Using
the
Screen-Editing Features 250
Printing Text from Machine Language Programs 255
Working
with
the
Character Sets 264
Working Directly
with
Screen
Data
272
Using Alternative Screen RAM Locations 276
Writing Directly to
the
80-Column Screen 279
201
215
7 Bit-Mapped Graphics
Procedures
283
Bit-Mapped Screen Formats 284
Plotting Figures
on
the Graphics Sereens 290
Rescaling
the
Screen 300
Saving
and
Reloading Bit-Mapped Shapes 301
Setting Graphics Sereens from Machine Language Routines 304
Working Directly
with
Standard Bit-Mapped Sereens 307
Working Directly
with
the Multicolor Bit-Map Screen 314
8 Sprite
Animation
Procedures
317
9
Creating Sprite Figures 318
Saving
and
Reloading Sprites 322
Specifying, Positioning,
a:qd
Moving Sprites 323
Detecting Sprite Collisions' 329
Sprites
and
Machine Language Routines 337
Sound
and
Music
Procedures
J
Preliminary Considerations 348 i
Using BASIC'sVOL
and
SOUND Staterne ts 351
Using BASIC's PLAY
and
TEMPO Staterne
ts
356
Using
the
ENVELOPE Statement 360
Using the FILTER Statement 362
347