EasyManua.ls Logo

Husky Hunter - Variables

Husky Hunter
499 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...
BASIC PRCXiRAMMING
SECTION li.3
VARIABLES
4.3 The Basic workspace execution memory is automatically
partitioned by the interpreter according to the number of
program lines entered by the user and the variable storage space
required.
If more than 54K RAM is required then data must be
stored as files which use filespace in other pages of RAM. For
further details see section 3,3,5, HUNTER MEMORY ORGANISA.TION.
However arrays of numerals or strings may be dimensioned as
normal, the filing operation being totally transparent to the
user.
4, 3, 1 LINE NUMBERS
4,3.2
4. 3.2. 1
VER.V09F
Line Numbers are in the range O to 65535, Each line can be up
to 254 characters long, including the line number. Extra lines
can be inserted in the text by simply typing in a new line
number between the two lines of interest.
In view of this, it
is recommended that line numbers are separated by an increment
of 10 for each new line. Line numbers are stored in binary form
and occupy a constant space in memory regardless of the number
chosen. Each line number requires 2 bytes of memory.
VARIABLE STORAGE
HUNTER variables can be stored as either single or double
precision floating point numbers. All simple variables are
single precision giving 6 digit accuracy. Variables are
designated by one alphabetic character (A-Z) followed by an
optional alphanumeric character (A-Z) (0-9), giving up to 962
separate variables,
NOTE: Simple variable names ON, TO, IF, LN, AS, OR and PI should
be avoided as these are also reserved words. Use as variables
can lead to execution errors.
Numerical Arrays
Additionally, variables may form a one-dimension array using
"DIM". Variable arrays may optionally be designated double
precision giving 14 digit accuracy but with an additional memory
overhead, Single precision arrays are designated by a number in
parentheses following the variable name.
A 1 ( 19) , Z ( 2), C( X) ,A (20*T) , AD( 10), AZ ( 62)
There can be 962 separately indentified arrays of single
precision,
NOTE: The number in parentheses can be an expression. Each
variable occupies 5 bytes of HllNTF.R's user memory in arrays, 7
byts,s otherwise.
PAGE 4 - 8