TABLE OF CONTENTS
INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
. What's Included? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
. How to Use This Reference Guide.... .... . ... ...... .." xi
. Commodore 64 ApplicationsGuide. . . . . . . . . . . . . . . . . . . .. xii
. Commodore Information Network. . . . . . . . . . . . . . . . . . . . . .. xvii
1. BASIC PROGRAMMING RULES 1
. Introduction 2
. ScreenDisplay Codes (BASIC Character Set) ............. 2
The Operating System(OS) 2
. Programming Numbers and Variables 4
Integer, Floating-Point and String Constants.. . . . . . . . . . 4
Integer, Floating-Point and String Variables. . . . . . . . . . . 7
Integer, Floating-Point and String Arrays 8
. Expressionsand Operators.. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Arithmetic Expressions.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Arithmetic Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Relational Operators 12
Logical Operators .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. ~3
Hierarchy of Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Stri ng Operations 16
String Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 17
. Programming Techniques 18
Data Conversions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Using the INPUT Statement 18
Using the GET Statement. . . . . . . . . . . . . . . . . . . . . . . . . .. 22
How to Crunch BASIC Programs 24
2. BASIC LANGUAGE VOCABULARY... . . . . . . . . . . . . . .. 29
. Introduction 30
. BASIC Keywords, Abbreviations, and Function Types 31
. Description of BASIC Keywords (Alphabetical) 35
. The Commodore 64 Keyboard and Features 93
. Screen Editor.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 94
iii