If you do not have a Commodore 64 in your household then try an emulator. An emulator is a program that copies the features of another computer or game system. The best emulator for your computer is VICE. If you don't want to download and install VICE, then you can use this online emulator. It's not the best, but it will work.
This is the screen you see on the Commodore when you first turn it on. That block under the word "READY" is called the cursor. It flashes on the screen. The flashing cursor tells you where the letter you type will go. Next, I am going to tell you about the BASIC commands and coding for beginners.
There are two different modes for communicating with the machine. The first mode is called immediate mode or
it can also be called direct mode. The second mode is called program mode. In immediate mode, you type
in commands, and when you press RETURN, the computer responds right away. In program mode, you make your own program
that is stored in RAM (memory) so you can
RUN it later.
The first command I will tell you about is
PRINT "IAN SKINNER CREATED THIS WEBSITE"
- You can print your name or a sentence, but you have to have quotation marks around what you want the computer to print.
- You can print numbers, and you don't need quotation marks.
- You can print arithmetic problems and use
PRINT "EWHITE £RED ↑GREEN"
- You can also print colour change codes and other special characters. I will explain what these are in a later section.
If you wanted to make an actual program in program mode, then you have put numbers at the beginning of each line of your program. Try
10 PRINT"COMMODORE" and press RETURN. You can use a question mark as a short form for
10 ?"COMMODORE" and it means the same thing. After you press RETURN,
it looks like nothing happened, but what actually happened is the computer knows that you finished your line of code and it is stored in RAM.
The line number tells the computer what order your program lines should go in. The numbers
can go up from 0 to 63999. If you want your computer to type "COMMODORE", then you would have to use the
This command is used for running programs that are stored in memory.
Let's add a line to our program. Type
20 GOTO 10. This line will be put right after line number 10. If you want to see what
you have so far in your program, just type
LIST and then press RETURN.
Now, if you type
RUN, then the program will go in an endless loop until you press the STOP key. If you have more than one line
in the program, the computer goes from the first line to the last line unless you tell it to go back to a previous line.
When it says
BREAK IN 10, it does not mean anything is broken. All it means is just that the computer is taking a break from
running your program, and in this case it stopped at line 10.
Next, I will tell about how to get colours on your screen.