Commodore 2001-8 User Manual page 125

Table of Contents

Advertisement

locations 124 and 125 contain the first address of memory where a simple variable name will be
found.Byincrementig the address by 7- each time the ext simple variable name in the table is
encountered.The end of the variables is defined-by the address in 126 and 127.
locations 126 and 127 also define the start of array storage. The first two bytes of array descriptors
arethe same as simple variables but the next five bytes are special as follows:
byte 3
byte 4
byte 5
byte 6
byte 7
VECTOR
ARRAYS
7
+
(size
+
1)'*
(dim)"A
0
1
0
size
+
1
where A
=
2 for integer,
=
3 for string, or
=
5 for floating-.
By incrementing the search address by the,current byte #30f the descriptor each Urne, the next array
variable is reached. Locations 128 and 129contaln the ending address of this table.
BASIC TEXT
( 1 2 4 , 1 2 5 ) - - - - - - -
simple variable
storage
( 1 2 6 , 1 2 7 ) - - - - - - -
array variable
storage
(128,129) - - - - - - -
pointers involved in BASIC
vaiable storage.
high
memory
A·6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pet 2001-8

Table of Contents