hewlett-packard HP 9835A — 176

176 Debugging The branch can be any of the three standard forms of BASIC branching - I :EH~~'[J::!I·· {address} [; {counter}] C::::::H .. _.L_ {subprogram} I E:F;~:E::::::1~ {address} [:; {counter}] (;C)'::;UE: {line identifier} :r:EF~::E::::::H· {address} [; {counter}] C;(}T·Ci {line identifier} When either CALL or GOSUB has been designated, execution of the assembly language routine is suspended when {address} is reached. Then the designated subprogram or sub- routine is executed. When that subprogram or subroutine is completed, then execution of the assembly language routine resumes with {address}.

When GOTO is specified, an unconditional branch is taken when {address} is encountered and execution of the assembly language routine is terminated. {counter} performs the same as in the simple pausing form. In the GOSUB and GOTO forms, there is an "environmental" restriction. The {line identifier} must be in the same BASIC environment (Le., main program or subprogram) as that in which the IBREAK statement is executed. More on this in "Environments" below. Environments The GOSUB and GOTO types of break points are related to the BASIC "environment" (Le., main program or subprogram) in which they are executed.

Whenever an IBREAK statement of either type is encountered, the resulting break point is effective only for the environment in which the statement is located. The CALL version of break points is in effect in all environ- ments. For example - 210 IBREAK Hook GOTO Check hook the break point established for "Hook" is good only in the subprogram "Test". Leaving Test causes the break point to be cleared.