Download ASCII Unit C200H

Transcript
Section 4-2
BASIC Language
Format:
RUN [<line>]
<line> is any line number less than 63999.
Remarks:
If a line number is specified, execution begins from that line. If the line number is omitted, execution starts from the first line of the program.
The RUN command clears all variables and closes all open files before executing the designated program.
Program execution can be aborted with CTRL+X, or the START/STOP
switch. Program execution can also be aborted from within the program by
an END or STOP statement.
SAVE Command
Purpose:
To write the program area to the EEPROM
Format:
SAVE
Remarks:
The contents of the BASIC program area and the assembly language program area reserved with the MSET command are written to the EEPROM.
If the START/STOP switch is pressed during execution of the SAVE command, the process will be aborted.
Purpose: To write a program in the current program area to a storage device connected to one of the ports.
Format:
SAVE #<port>,“COMU:[(<valid signal line>)]”
<port> is one of the two ports (1,2).
<valid signal line>: refer to the OPEN statement tables.
Example:
SAVE #1,“COMU:(43)”
Remarks:
When this command is executed, the BASIC LED indicator on the ASCII Unit
will blink rapidly warning the user to prepare the peripheral device for data
transfer. When the device is set, press the START/STOP switch.
During execution of this command the START/STOP switch and key input
through port 1 are inhibited.
For further details on COMU refer to the OPEN command.
TRON and TROFF Commands
Purpose:
Format:
To trace execution of a program
TRON
Remarks:
The TRON command is a debugging tool that enables the programmer to
follow the execution of a program line by line. Execution of the TRON command will cause the line numbers of subsequent program statements to be
displayed on the screen as they are executed.
The trace can be canceled with the TROFF command, the NEW command,
by turning off the power or with the RESET switch.
VERIFY Command
Purpose:
To verify the contents of the EEPROM by comparing them to the
contents of the program area
31