Commodore 2001-8 User Manual page 126

Table of Contents

Advertisement

Because the variables are divided in storage between arrays and simple variables insertion of an
additional simple variable is a bit more complicated once an array has been defined. First, the entire array
storage area must be block moved upward by seven bytes and the pointers adjusted upward
+
7.
Finally, the simple variable can be inserted at the end of simple variable storage.
If large arrays are defined and initialized first before simple variables are
assigned, much execution time can be lost moving the arrays each time a
simple variable is defined. The best strategy to followin this case is to
assign a value to all known simple variables before assigning arrays.
This will optimize execution speed.
Functions of NEWand CLR on data pointer:
CLR
String pointer equated to top of memory data pointerto
start of text - 1end of array table to start of variables end
of simple variables to start of variables.
NEW
String pointer equated to top of memory data pointer to
start oftext - 1 end of array table to start of text
+
3
end of simple variables to start of text
+
start of variables
to start of text
+
3.
A·7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pet 2001-8

Table of Contents