The value of a variable can be changed as the assembly proceeds. Variables are local to the assembler. This means that in the generated code or data, every instance of the variable has a fixed value.
Variables are one of the following types:
Numeric.
Logical.
String.
The type of a variable cannot be changed.
The range of possible values of a numeric variable is the same as the range of possible values of a numeric constant or numeric expression.
The possible values of a logical variable are {TRUE}
or {FALSE}
.
The range of possible values of a string variable is the same as the range of values of a string expression.
Use the GBLA
, GBLL
, GBLS
, LCLA
, LCLL
,
and LCLS
directives to declare symbols representing variables,
and assign values to them using the SETA
, SETL
,
and SETS
directives.
- Concepts
- Reference
armasm Reference Guide: