EasyManuals Logo

Atari 800 User Manual

Atari 800
326 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 #161 background imageLoading...
Page #161 background image
Atari BASIC Reference
Guide
159
EXAMPLE
POKE
83,20
The previous example consists
of
a statement
that
changes
the
right
margin
of
the screen
to
column
20
. The value
of
the
right
margin
is
stored in
memory
location
83.
POP
The
POP
statement causes a
program
to
ignore
the GOSUB
or
ON
/ GOSUB statement that
was
executed last.
CONFIGURA
liON
POP
In
effect, a GOSUB
or
ON
/ GOSUB statement
is
converted
to
a
GOTO
or
ON
/
GOTO
statement
when
POP
is
executed. The
program
"forgets"
that
it
is
in a
subroutine
.
As
a result,
when
a
POP
statement is executed, the next RETURN statement
branches
the
program
control
to
the
line
after
the GOSUB
statement
befor
e the previous GOSUB statement. In
other
words,
the
program
"fo
rgets"
where
the
subroutine
was called
from
,
so
it
returns
to
a previous GOSUB statement.
A
POP statement
is
used, in general,
to
exit
a
subroutine
.
10
X = 5
20
Y =
10
EXAMPLE
30
GOSUB
100
40
END
100
PRINT X
110
IF
X>O
THEN POP :
GOTO
130
120
RETURN
130
PRINT Y
140
END
RUN
5
10

Other manuals for Atari 800

Questions and Answers:

Question and Answer IconNeed help?

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

Atari 800 Specifications

General IconGeneral
ProcessorMOS Technology 6502
Processor Speed1.79 MHz
ROM10 KB
GraphicsANTIC and GTIA chips
Release Year1979
Display Resolutionup to 320 x 192
Colors128 colors
Sound4 channels
StorageCartridge, cassette, floppy disk
PortsCartridge, serial, monitor
Operating SystemAtari OS

Related product manuals