EasyManua.ls Logo

Commodore PET - Array Header

Commodore PET
447 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
This time the pointer addresses a location in upper core (8187 in this program)
that contains the string:
8188 8190
8187!
8189 ! 8191
~
HI!
H 0
Array
Storage
Format
Arrays
are
stored
in
the
Array
Area
of
user
program
memory
(see Figure
6-2).
Arrays
may
be
floating
point,
integer,
or
string
and are
stored
in
the
order
in
which
they
are
created
by
the
program.
The
type
of
array
is
dis-
tinguished
by
the
way
in
which
the
two-character
array
name is
stored,
exactly
the
same
as
for
variable
names.
An
array
is
stored
with
a header
followed
by
the
elements
of
the
array,
in
the
general
form:
~
He_a_d_e_r
1
E1,m,"
0 1
EI,m,,"
[~]
EI,m,""
1
(Elements are
stored
in
reverse
order
for
strings.)
Ali
types
of
arrays
have
the
same
header
format.
The
header
contains
seven
bytes
plus
two
bytes
for
each
array
dimension
beyond
1.
ARRAY
HEADER
1st
2nd
Total
l
bytes
Number of
Last
dimensions
dimension
char
char
Low High
Low
sife High
Byte'
2 3 4 5 6
Like
floating
point
variables,
floating
point
array
elements
each
have
five
bytes.
However,
for
integers
the
unused
three
bytes,
and
for
strings
the
unused
two
bytes,
are dropped
for
array
elements.
322

Table of Contents

Related product manuals