
7-6
Section
Details of BASIC Commands
221
step
Syntax:
STEP
[<numerical expression>]
Description:
Command. Executes the specified number of lines of BASIC program.
Remarks:
<numerical expression> specifies the number of program lines to execute, it may be any valid
integer expression in the range [0…255]. If it is omitted a value of 1 is assumed.
The
STEP
command resumes execution at the line number after the last executed line. It executes
the number of lines specified before terminating execution. Execution can be continued by issuing
another
STEP
command or by using the
CONT
command.
If
STEP
is executed when there is no information about the last executed line, for instance after an
END
,
LOAD
or
EDIT
command, then
STEP
will execute the first line of the program.
Examples:
> 10 PRINT “STARTED”
> 20 STOP
> 30 PRINT “CONTINUING”
> 40 PRINT “CONTINUING”
> 50 PRINT “FINISHED”
> RUN
STARTED
BREAK EXECUTED IN LINE 20
> STEP 2
CONTINUING
CONTINUING
BREAK IN LINE 40
> CONT
FINISHED
>
See also:
CONT
,
RUN
stop
Syntax:
STOP
Description:
Statement. Terminates execution of the BASIC program and returns to command mode.
Remarks:
The execution of the BASIC program will terminate and the message “BREAK EXECUTED IN
LINE <line number>“ will be displayed on the terminal.
Execution can be continued from the current line by using the
CONT
or the
STEP
commands.
The BASIC variables will not be cleared and open ports will not be closed.
Examples:
STOP
See also:
CONT
,
RUN
,
STEP
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...