EasyManuals Logo

Atari 65XE User Manual

Atari 65XE
135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #47 background imageLoading...
Page #47 background image
The comma acts like a tab. Each time the computer moves down to
the next line and prints CONGRATULATIONS!, it moves to the next tab
position. The result is a barber-pole effect. Remember to break the
loop with the key.
Semicolon: Computer Glue
A semicolon produces another kind of effect. List the program, change
the comma in line 110 to a semicolon, press , and run the
program:
LIST
110 PRINT "CONGRATULATIONS! ";
120 GOTO 110
RUN
The semicolon glues the PRINT statements together with no space in
between. To put some space between the words, go back and edit line
110 so that it looks like this:
110 PRINT"CONGRATULATIONS! ";
RUN
Colon: A Separator
The colon is a separator. It permits two instructions to be placed on
one line. Change the semicolon in line 110 to a colon and add the
PRINT statement below:
110 PRINT "CONGRATULATIONS!" : PRINT "YOU JUST WON THE
LOTTERY."
RUN
As you progress in your programming ability, conserving space in the
computer's memory becomes important. Consolidating commands on
one line with a colon is one way to help save free bytes of RAM
memory. To see how much memory is conserved, type the following
statement:
PRINT FRE (0)
The computer will answer with a number. Reprogram line 110 so that
the two PRINT statements take up two program lines:
110 PRINT "CONGRATULATIONS!"
115 PRINT "YOU JUST WON THE LOTTERY. "
PRINT FRE (0)
42

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 65XE and is the answer not in the manual?

Atari 65XE Specifications

General IconGeneral
CPUMOS Technology 6502C
CPU Speed1.79 MHz (NTSC) / 1.77 MHz (PAL)
RAM64 KB
ROM16 KB
Release Year1985
GraphicsANTIC and GTIA
Display Resolution320x192
SoundPOKEY sound chip, 4 channels
Operating SystemAtari BASIC
PortsJoystick, Cartridge
StorageExternal 5.25" floppy disk drive

Related product manuals