5.8.61. SETA directive

The SETA directive sets the value of a local or global arithmetic variable.

Syntax

The syntax of SETA is:

variable-name SETA expression

where:

variable-name

is the name of a variable declared by a GBLA or LCLA directive.

expression

is a numeric expression. See Numeric expressions.

Usage

You must declare variable-name using a LCLA or GBLA directive before using SETA. Refer to GBLA directive and LCLA directive for more information.

Example

				GBLA		VersionNumber
VersionNumber 				SETA 		21
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential