Now try me same line. but replace -MS ON and IWS OFF with
PUSH ON and PLASH 017 (the < and > keys)
10 PRINT Mi COMMODORE =16ess CTRL ana FLASH ON
\--Press ern and FLASH OFF
When you RUN this. It PRINTS out COMMODORE 16 just once. But tne
word COMMODORE flashes continuously, even though your program
has already been RUN. When you use flashing print, it will flash
continuously Both of these one-line programs show how to use things
like reverse printing and flashing letters in the line of a program You
would do other things (change colours, etc.) in the same manner
.
Entering Commands
You might have noticed that you typed some things in as just a single
word (such as NEW). while on other lines you had to type in line
numbers followed by commands and statements within quote marks.
That's because there are two 'modes' that you can use to communicate
with your computer. Both are based on a language made up of terms
that your computer understands. The most straight-forward (and the
one built in to your Commodore 16) is called BASIC. Your Commodore
16 understands a version called Commodore BASIC 3.5. The BASIC
terms (or keywords) are the heart of both modes. The first type,
IMMEDIATE MODE, tells your computer to execute the BASIC
command immediately. You enter the command to be carried out by
your computer when you press the
loon
key. This is also known as
DIRECT MODE. The alternate mode is known as PROGRAMMING, or
INDIRECT MODE Programming mode features line numbers, and
each line contains BASIC commands. The entire program is executed
when you type the command
RUN,
carrying out the commands of the
lines according to line number (lowest lines first). Obviously,
programming mode is what you use to write computer programs.
tor that matter) either for your computer to execute or into your
computers memory. you must press the BMW key
1. YOU CAN EDIT A LINE by overtypIng.
Use the CURSOR KEYS to move to the place in the line that you want
to change. Now just type over what you want to change. Press
IIHRIHN. when you finish.
EXAMPLE
10 PRINT IT IS ONE
O'CLOCK"
If you
want
to change the time
to
TWO. move the cursor to the 0 in
ONE.
10 PRINT "IT !SONE O'CLOCK"
And now just type TWO over ONE and press MOW
10 PRINT IT IS TWO O'CLOCK"
NOTE: When working with numbered program lines. you don't have
to be at the end of the ime to press REMUS Your Commodore 16
remembers the whole line even if you press REHM In the middle
of the line.
2. YOU CAN OPEN UP SPACES IN
A WORD OR LINE with the MST
key (press
fat
along with the
trarrOFl
key). Hold the keys
down until you open up as many spaces as you need. (Notice that
the cursor stays in the same place while spaces open up to the right.)
Then just type what you want to insert.
CORRECTING MISTAKES
Mistakes are a way of life witn computers. Mistakes in programming
must be searched for and remedied for a program to run correctly.
That's what the HELP key is for. A more practical kind of mistake—the
typing error—can mess up programs Just as badly. Not only will
computing improve your typing skills. you'll make great strides in
spotting and correcting typing errors as well. There are several ways to
fix up typing errors. Remember that to enter any changes (or anything,
10 PRINT "CORE"
To change this to COMMODORE.
move
the cursor to
the '0' and press
the UMW and 'INT keys until enough space opens up. Don't bother
to count out the spaces. You can just guess and then open up more if
there aren't enough
10 PRINT "C I
ORE"
cursor
46
47
Need help?
Do you have a question about the Commodore 16 and is the answer not in the manual?
Questions and answers