[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

  1. When using the PROGRAM mode, all of your BASIC statements must have line numbers in front of them. You can have more than one BASIC statement in a line of your program, but the number of statements is limited by the fact that you can only put 80 characters on a logical screen line. This means that if you are going to go over the 80 character limit you have to put the entire BASIC statement that doesn't fit on a new line with a new line number.

    Always type NEW and hit <RETURN> before starting a new program.

The Commodore 64 has two complete character sets that you can use either from the keyboard or in your programs.

In SET 1, the upper case alphabet and the numbers 0-9 are available without pressing the <SHIFT> key. If you hold down the <SHIFT> key while typing, the graphics characters on the RIGHT side of the front of the keys are used. If you hold down the <C=> key while typing, the graphics characters on the LEFT side of the front of the key are used. Holding down the <SHIFT> key while typing any character that doesn't have graphic symbols on the front of the key gives you the symbol on the top most part of the key.

In SET 2, the lower case alphabet and the numbers 0-9 are available without pressing the <SHIFT> key. The upper case alphabet is available when you hold down the <SHIFT> key while typing. Again, the graphic symbols on the LEFT side of the front of the keys are displayed by pressing the <C=> key, while the symbols on the top most part of any key without graphics characters are selected when you hold down the <SHIFT> key while typing.

To switch from one character set to the other press the <C=> and the <SHIFT> keys together.

PROGRAMMING NUMBERS AND VARIABLES

INTEGER, FLOATING-POINT AND STRING CONSTANTS

Constants are the data values that you put in your BASIC statements. BASIC uses these values to represent data during statement execution. CBM BASIC can recognize and manipulate three types of constants:

  1. INTEGER NUMBERS
  2. FLOATING-POINT NUMBERS
  3. STRINGS

[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated November 13, 1998.