. Indexing 223
Indirect Indexed 223
Indexed Indirect 224
Branches and Testing. . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 226
. Subroutines 228
. Useful Tips for the Beginner 229
. Approaching a Large Task. . . . . . . . . . . . . . . . . . . . . . . . . . .. 230
. MCS6510 Microprocessor Instruction Set-
Alphabetic Sequence "'. . . . . . . . . . . . . . . . . . . . . . . . .. 232
Instruction Addressing Modes and
Related Execution Times. . . . . . . . . . . . . . . . . . . . . . . . .. 254
. Memory Management on the Commodore 64 .. .. ... ... ... 260
. The KERNAL.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 268
. KERNALPower-Up Activities. . . . . . . . . . . . . . . . . . . . . . . . . .. 269
How to Use the KERNAL.. . . . . . . . . . . . . . . . . . . . . . . . . .. 270
User Callable KERNALRoutines 272
Error Codes 306
. Using Machine Language From BASIC 307
Where to Put Machine Language Routines.. . . . . . . . . . .. 309
How to Enter Machine Language 309
. Commodore 64 MemoryMap ... ..... . ... .. 310
Commodore 64 Input/Output Assignments. . . . . . . . . . . . .. 320
6. INPUT/OUTPUT GUIDE... . . . . . . . . . . . . . . . . . . . . . . . . . .. 335
. Introduction 336
. Output to the TV .. .. ... .. ... ... ... .. ... .. ... ... .. ... 336
. Output to Other Devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 337
Output to Printer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 338
Output to Modem 339
WorkingWithCassetteTape. . ... .. ... ... .. ... .. .... 340
Data Storage on Floppy Diskettes. . . . . . . . . . . . . . . . . . .. 342
. The Game Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 343
Paddles 346
Light Pen 348
. RS-232 Interface Description 348
General Outline 348
Opening an RS-232 Channel 349
Getting Data From an RS-232 Channel 352
Sending Data to an RS-232 Channel 353
Closing an RS-232 Data Channel 354
Sample BASIC Programs. . . . . . . . . . . . . . . . . . . . . . . . . . .. 356
vi