HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 39
* Does a CONTINUE.
The HOP command is a command-only statement. That is, it can only be
issued at the interpreter prompt and cannot be placed in a program.
Syntax
HOP
The HOP command is useful for the following:
* Hopping through a GOSUB or CALL.
* Hopping through a loop (when executed on the last line of the loop).
The breakpoint that the HOP statement sets is reset by the next HOP
statement (only one HOP breakpoint per program).
Example
The following shows an example of the HOP command. The program pauses at
line 110. The HOP command has been issued during that pause.
>LIST
! exam246
100 LET A=3
105 PRINT "HI"
110 PAUSE
120 PRINT A
130 PRINT A+A
140 PRINT A*A
150 PRINT "BYE"
999 END
>RUN
HI
>HOP
3
130 PRINT A+A
>HOP
6
140 PRINT A*A
>hop
9
150 PRINT "BYE"
>HOP
BYE
999 END
STEP Command
The STEP command--or several STEP commands--can single-step through a
suspended program. Specifically, the STEP command does the following:
1. Executes the line that the program is suspended at.
2. Displays the next line to be executed.
3. Suspends the program at the displayed line.