BRANCHF


 

The BRANCHF instruction alters the program execution sequence by executing a GOTO of a particular Program Execution Label based upon a Function Flag (Function key entry). The instruction uses the following format:

 

 

[label]

BRANCHF

{targets}

 

Where:

label

Optional. A Program Execution Label.

targets

Required. A list of Program Execution Labels from which a new program address is selected.

Flags Affected: Function Key Flag

Note the following:

  1. Each Program Execution Label in {labels} corresponds (sequentially) to a Function Flag (i.e., the first label is taken if F1 is pressed, the second label if F2, the third label if F3, etc.).

  2. The Function Flag is reset if the BRANCHF is taken.

  3. There is a limit of forty (40) Program Execution Labels that may be referenced, since the compiler supports a maximum of forty (40) Function keys.

  4. Additional lines may be used for the list by ending each continued line with a colon (:).

  5. All other rules pertaining to BRANCH apply.

 

 

See Also: Example Code, BRANCH, PERFORMF, Program Control Instructions

 



PL/B Language Reference BRANCH BREAK and CONTINUE