5.8.38. GBLL directive

The GBLL directive declares and initializes a global logical variable. Possible values of a logical variable are {TRUE} and {FALSE}.

Syntax

The syntax of GBLL is:

GBLL variable-name

where:

variable-name

is the name of the logical variable. variable-name mustbe unique amongst symbols within a source file.

variable-name is initialized to {FALSE}.

Usage

Using GBLL for a variable that is already defined re-initializes the variable to {FALSE}. The scope of the variable is limited to the source file that contains it.

Set the value of the variable with the SETL directive. See SETL directive.

See LCLL directive for information on setting local logical variables.

Global variables can also be set with the -predefine assembler command-line option. Refer to Command syntax for more information.

Example

		GBLL		testrun
testrun		SETL		{TRUE}
		IF 		testrun
		; testcode
		ENDIF
		
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential