You copied the Doc URL to your clipboard.

21.62 ROUT

The ROUT directive marks the boundaries of the scope of numeric local labels.

Syntax

{name} ROUT

where:

name

is the name to be assigned to the scope.

Usage

Use the ROUT directive to limit thescope of numeric local labels. This makes it easier for you to avoidreferring to a wrong label by accident. The scope of numeric locallabels is the whole area if there are no ROUT directivesin it.

Use the name option toensure that each reference is to the correct numeric local label.If the name of a label or a reference to a label does not matchthe preceding ROUT directive, the assembler generatesan error message and the assembly fails.

Example

            ; coderoutineA    ROUT            ; ROUT is not necessarily a routine            ; code3routineA   ; code          ; this label is checked            ; code            BEQ     %4routineA   ; this reference is checked            ; code            BGE     %3      ; refers to 3 above, but not checked            ; code4routineA   ; code          ; this label is checked            ; codeotherstuff  ROUT            ; start of next scope

Related concepts

Related reference

Was this page helpful? Yes No