
118
Character Variable Space Allocations
Section 7-2
Writing Data from the Terminal to the ASCII Unit
To write BASIC programs from the terminal to the user memory (RAM) of the
ASCII Unit, execute the LOAD command, and transfer the text file once the
ASCII Unit is in a transfer wait state.
BASIC Program Transfer Commands
7-2
Character Variable Space Allocations
When executing the BASIC program in a C200H-ASC11/ASC21/ASC31
ASCII Unit, the method can be selected for allocating space for character vari-
ables to user memory. The following two methods are available.
Note
For numeric variables, the size of the variable area is fixed based on the type,
and is therefore allocated in user memory using the static (fixed) method out-
lined below.
Static (Fixed) Method
When compiling the BASIC program, space for all character variables in the
BASIC program will be statically reserved in user memory.
Setting
At the beginning of the BASIC program, the maximum character variable con-
tent to be used in the BASIC program is specified using the OPTION
LENGTH command. The maximum length can be specified from 1 to 255
characters.
Content
The space for character variables is reserved statically and therefore free
memory cannot be generated as with the dynamic method. Even if not actu-
ally used, the space allocated for all variables will still be used.
Restrictions with this method are outlined below:
Operation
Command
Example
Transferring
BASIC programs
between the termi-
nal and ASCII Unit
Terminal-to-ASCII
Unit user memory
(RAM)
LOAD
>LOAD #1
ASCII Unit user
memory
(RAM)-to-terminal
SAVE
>SAVE #1
Transferring
BASIC programs
between flash
ROM and the
ASCII Unit
Flash
ROM-to-ASCII Unit
user memory (RAM)
ROMLOAD
>ROMLOAD
ASCII Unit user
memory
(RAM)-to-flash ROM
ROMSAVE
>ROMSAVE
User memory
While compiling, the area for all
character variables is statically
reserved in user memory.
Variable area
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...